@bounded-sh/client 0.0.117 → 0.0.118
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/bounded-login-widget.d.ts +5 -0
- package/dist/auth/providers/transaction-utils.d.ts +5 -3
- package/dist/connections.d.ts +5 -1
- package/dist/{email-auth-provider-CMfwB-Uj.mjs → email-auth-provider-B9cZ-puM.mjs} +2 -2
- package/dist/{email-auth-provider-C5bYKzpN.mjs.map → email-auth-provider-B9cZ-puM.mjs.map} +1 -1
- package/dist/{email-auth-provider-BCWTczE2.js → email-auth-provider-BYiK3ZCv.js} +2 -2
- package/dist/{email-auth-provider-BCWTczE2.js.map → email-auth-provider-BYiK3ZCv.js.map} +1 -1
- package/dist/{email-auth-provider-3tuw_aDK.js → email-auth-provider-C-qQ46kD.js} +2 -2
- package/dist/{email-auth-provider-3tuw_aDK.js.map → email-auth-provider-C-qQ46kD.js.map} +1 -1
- package/dist/{email-auth-provider-C5bYKzpN.mjs → email-auth-provider-DFHalX9c.mjs} +2 -2
- package/dist/{email-auth-provider-CMfwB-Uj.mjs.map → email-auth-provider-DFHalX9c.mjs.map} +1 -1
- package/dist/{guest-auth-provider-CsM_SuGH.mjs → guest-auth-provider-BRq3JB0_.mjs} +2 -2
- package/dist/{guest-auth-provider-CsM_SuGH.mjs.map → guest-auth-provider-BRq3JB0_.mjs.map} +1 -1
- package/dist/{guest-auth-provider-DkX8cQqr.js → guest-auth-provider-D1q3C5uC.js} +2 -2
- package/dist/{guest-auth-provider-DkX8cQqr.js.map → guest-auth-provider-D1q3C5uC.js.map} +1 -1
- package/dist/{guest-auth-provider-_jdqZKUo.js → guest-auth-provider-g5-T58yA.js} +2 -2
- package/dist/{guest-auth-provider-_jdqZKUo.js.map → guest-auth-provider-g5-T58yA.js.map} +1 -1
- package/dist/{guest-auth-provider-DH4iA0oS.mjs → guest-auth-provider-i8-RL0js.mjs} +2 -2
- package/dist/{guest-auth-provider-DH4iA0oS.mjs.map → guest-auth-provider-i8-RL0js.mjs.map} +1 -1
- package/dist/{index-DrVV40Si.js → index-eMCWYiRe.js} +83 -66
- package/dist/index-eMCWYiRe.js.map +1 -0
- package/dist/{index-Sx-Caknc.mjs → index-xNGb1ROp.mjs} +84 -67
- package/dist/index-xNGb1ROp.mjs.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.native-CMNMw3Pe.js → index.native-ByI3rRu4.js} +47 -50
- package/dist/index.native-ByI3rRu4.js.map +1 -0
- package/dist/{index.native-DfDVa7MG.mjs → index.native-YmmnwqEw.mjs} +48 -51
- package/dist/index.native-YmmnwqEw.mjs.map +1 -0
- package/dist/index.native.js +1 -1
- package/dist/index.native.mjs +1 -1
- package/dist/{injected-evm-wallet-provider-BCZQuyPF.mjs → injected-evm-wallet-provider--x3yWNps.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-BCZQuyPF.mjs.map → injected-evm-wallet-provider--x3yWNps.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-CVMhv4xf.js → injected-evm-wallet-provider-BIYAL_NZ.js} +2 -2
- package/dist/{injected-evm-wallet-provider-CVMhv4xf.js.map → injected-evm-wallet-provider-BIYAL_NZ.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-CUNTCT-a.js → injected-evm-wallet-provider-BMjQaUiB.js} +2 -2
- package/dist/{injected-evm-wallet-provider-CUNTCT-a.js.map → injected-evm-wallet-provider-BMjQaUiB.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-E7eCpvLr.mjs → injected-evm-wallet-provider-BoLGCVqD.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-E7eCpvLr.mjs.map → injected-evm-wallet-provider-BoLGCVqD.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-BroBvwi6.js → injected-wallet-provider-D3fVFadN.js} +14 -5
- package/dist/{injected-wallet-provider-BroBvwi6.js.map → injected-wallet-provider-D3fVFadN.js.map} +1 -1
- package/dist/{injected-wallet-provider-BoRoxrEl.mjs → injected-wallet-provider-DSOjJP3u.mjs} +14 -5
- package/dist/{injected-wallet-provider-BoRoxrEl.mjs.map → injected-wallet-provider-DSOjJP3u.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-ezYLhye8.mjs → injected-wallet-provider-DuWTw-fM.mjs} +14 -5
- package/dist/{injected-wallet-provider-ezYLhye8.mjs.map → injected-wallet-provider-DuWTw-fM.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-BqYJQDGu.js → injected-wallet-provider-zXw__lyf.js} +14 -5
- package/dist/{injected-wallet-provider-BqYJQDGu.js.map → injected-wallet-provider-zXw__lyf.js.map} +1 -1
- package/package.json +2 -2
- package/dist/index-DrVV40Si.js.map +0 -1
- package/dist/index-Sx-Caknc.mjs.map +0 -1
- package/dist/index.native-CMNMw3Pe.js.map +0 -1
- package/dist/index.native-DfDVa7MG.mjs.map +0 -1
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ar as BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA, aq as BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA, ap as BUILD_REVIEW_CAPABILITY_SCHEMA, ai as BuildsApiError, a6 as ConnectionError, ao as FAILURE_REASONS, ak as NON_TERMINAL_STATES, ac as OffchainAuthProvider, an as PARK_REASONS, ad as PrivyExpoProvider, am as RUN_STATES, al as TERMINAL_STATES, aa as VenueEscrowError, W as WalletConfigError, R as apps, ah as builds, a3 as completeConnection, J as completeLoginFromRedirect, a2 as connect, af as connectBroadcast, ag as connectServiceSession, p as defaultInjectedEvmProvider, f as defaultInjectedProvider, a5 as disconnect, a8 as disputeVenueEscrow, G as ensureSharedWalletLoginReady, N as ensureSignedIn, F as ensureWalletLoginReady, a7 as fundVenueEscrow, x as getAuthLoading, B as getAuthProvider, a4 as getConnections, u as getCurrentUser, _ as getIdToken, K as getLoginReturnError, U as getOrCreateTurnkeyWallet, g as getPlatform, Y as getTurnkeyWalletRecoveryUrl, X as getTurnkeyWalletSessionState, a9 as getVenueEscrow, q as init, z as login, L as loginWithPopup, D as loginWithPrivy, I as loginWithRedirect, E as loginWithWallet, A as logout, aj as mediaAgentTools, w as onAuthLoadingChanged, v as onAuthStateChanged, $ as onramp, a0 as onrampQuote, a1 as onrampStatus, M as openBoundedWidget, V as openTurnkeyKeyExport, H as preloadWalletLogin, ae as requestEip6963Providers, ab as setPlatform, C as signInAnonymously, T as signSolanaMessageViaTurnkey, Z as startTurnkeyEmailLogin, k as supportsWalletSignIn, O as useAuth, Q as useBuildRun, P as useQuery, y as waitForAuthReady } from './index-
|
|
1
|
+
export { ar as BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA, aq as BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA, ap as BUILD_REVIEW_CAPABILITY_SCHEMA, ai as BuildsApiError, a6 as ConnectionError, ao as FAILURE_REASONS, ak as NON_TERMINAL_STATES, ac as OffchainAuthProvider, an as PARK_REASONS, ad as PrivyExpoProvider, am as RUN_STATES, al as TERMINAL_STATES, aa as VenueEscrowError, W as WalletConfigError, R as apps, ah as builds, a3 as completeConnection, J as completeLoginFromRedirect, a2 as connect, af as connectBroadcast, ag as connectServiceSession, p as defaultInjectedEvmProvider, f as defaultInjectedProvider, a5 as disconnect, a8 as disputeVenueEscrow, G as ensureSharedWalletLoginReady, N as ensureSignedIn, F as ensureWalletLoginReady, a7 as fundVenueEscrow, x as getAuthLoading, B as getAuthProvider, a4 as getConnections, u as getCurrentUser, _ as getIdToken, K as getLoginReturnError, U as getOrCreateTurnkeyWallet, g as getPlatform, Y as getTurnkeyWalletRecoveryUrl, X as getTurnkeyWalletSessionState, a9 as getVenueEscrow, q as init, z as login, L as loginWithPopup, D as loginWithPrivy, I as loginWithRedirect, E as loginWithWallet, A as logout, aj as mediaAgentTools, w as onAuthLoadingChanged, v as onAuthStateChanged, $ as onramp, a0 as onrampQuote, a1 as onrampStatus, M as openBoundedWidget, V as openTurnkeyKeyExport, H as preloadWalletLogin, ae as requestEip6963Providers, ab as setPlatform, C as signInAnonymously, T as signSolanaMessageViaTurnkey, Z as startTurnkeyEmailLogin, k as supportsWalletSignIn, O as useAuth, Q as useBuildRun, P as useQuery, y as waitForAuthReady } from './index-xNGb1ROp.mjs';
|
|
2
2
|
export * from '@bounded-sh/core';
|
|
3
3
|
export { AppTokenExchangeError, BoundedDeclineError, DECLINE_EVENT_NAME, RATE_LIMIT_EVENT_NAME, ScopedClientReadOnlyError, aggregate, clearAppTokenCache, count, createAppTokenAuthHeaders, createClient, deriveDecline, dispatchDeclineEvent, dispatchRateLimitEvent, docId, exchangeAppToken, get, getConfig, getFiles, getMany, queryAggregate, reconcileSetResult, runExpression, runExpressionMany, runQuery, runQueryMany, search, set, setFile, setMany, signAndSubmitTransaction, signMessage, signTransaction, subscribe, waitForSetResult } from '@bounded-sh/core';
|
|
4
4
|
import 'react';
|
|
@@ -4916,10 +4916,9 @@ async function signAndSubmitTransactionWithTurnkey(transaction, feePayer) {
|
|
|
4916
4916
|
// has signed silently invalidates their signature - signTransactionWithTurnkey only ADDS the
|
|
4917
4917
|
// Turnkey signature, it never re-signs the others. So only refresh the blockhash while the
|
|
4918
4918
|
// transaction is still unsigned; once a real signature is present, preserve the caller's message
|
|
4919
|
-
// verbatim
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
if (!hasSignature) {
|
|
4919
|
+
// verbatim. The confirmation is fenced on the lifetime read above either way: for a pre-signed
|
|
4920
|
+
// transaction that is a superset of the one its signers fenced on, never a shorter wait.
|
|
4921
|
+
if (!transactionHasSignature$1(transaction)) {
|
|
4923
4922
|
if (isLegacy) {
|
|
4924
4923
|
const legacy = transaction;
|
|
4925
4924
|
legacy.recentBlockhash = blockhash;
|
|
@@ -4935,19 +4934,17 @@ async function signAndSubmitTransactionWithTurnkey(transaction, feePayer) {
|
|
|
4935
4934
|
transaction.message.recentBlockhash = blockhash;
|
|
4936
4935
|
}
|
|
4937
4936
|
}
|
|
4938
|
-
else {
|
|
4939
|
-
confirmBlockhash = (isLegacy
|
|
4940
|
-
? transaction.recentBlockhash
|
|
4941
|
-
: transaction.message.recentBlockhash) || blockhash;
|
|
4942
|
-
}
|
|
4943
4937
|
const signed = await signTransactionWithTurnkey(transaction);
|
|
4944
4938
|
const signature = await connection.sendRawTransaction(signed.serialize(), {
|
|
4945
4939
|
skipPreflight: false,
|
|
4946
4940
|
maxRetries: 3,
|
|
4947
4941
|
});
|
|
4948
|
-
const confirmation = await
|
|
4949
|
-
if (confirmation.
|
|
4950
|
-
throw new Error(`Turnkey transaction
|
|
4942
|
+
const confirmation = await core.confirmSignature(connection, { signature, lastValidBlockHeight });
|
|
4943
|
+
if (!confirmation.landed) {
|
|
4944
|
+
throw new Error(`Turnkey transaction ${signature} was not confirmed: ${confirmation.reason}. Check its status before sending it again.`);
|
|
4945
|
+
}
|
|
4946
|
+
if (confirmation.status.err) {
|
|
4947
|
+
throw new Error(`Turnkey transaction failed: ${JSON.stringify(confirmation.status.err)}`);
|
|
4951
4948
|
}
|
|
4952
4949
|
return signature;
|
|
4953
4950
|
}
|
|
@@ -6089,7 +6086,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6089
6086
|
// manager as legacy email sessions. Human login should be started
|
|
6090
6087
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
6091
6088
|
// logout surface for those sessions.
|
|
6092
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-
|
|
6089
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-C-qQ46kD.js'); })).EmailAuthProvider();
|
|
6093
6090
|
break;
|
|
6094
6091
|
case "phantom": {
|
|
6095
6092
|
// First-class Solana WALLET LOGIN (the poof/TaroBase-style "connect
|
|
@@ -6131,7 +6128,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6131
6128
|
// (bounded-login-widget.ts), so registration never counts as
|
|
6132
6129
|
// evidence the user has a wallet.
|
|
6133
6130
|
await ensureSolanaMobileWalletRegistered(config, configuredNetwork);
|
|
6134
|
-
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
6131
|
+
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-zXw__lyf.js'); });
|
|
6135
6132
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
6136
6133
|
break;
|
|
6137
6134
|
}
|
|
@@ -6144,7 +6141,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6144
6141
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
6145
6142
|
// to point at a specific wallet or set chainId/domain.
|
|
6146
6143
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
6147
|
-
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-
|
|
6144
|
+
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-BMjQaUiB.js'); });
|
|
6148
6145
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
6149
6146
|
break;
|
|
6150
6147
|
}
|
|
@@ -6169,7 +6166,7 @@ async function getAuthProvider(config, fromStorage = false) {
|
|
|
6169
6166
|
break;
|
|
6170
6167
|
case "guest":
|
|
6171
6168
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
6172
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
6169
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-g5-T58yA.js'); })).GuestAuthProvider();
|
|
6173
6170
|
break;
|
|
6174
6171
|
}
|
|
6175
6172
|
if (!currentAuthProvider) {
|
|
@@ -6231,7 +6228,7 @@ async function signInAnonymously() {
|
|
|
6231
6228
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
6232
6229
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
6233
6230
|
// so bundle-splitting can see it.
|
|
6234
|
-
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
6231
|
+
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-g5-T58yA.js'); })).GuestAuthProvider();
|
|
6235
6232
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
6236
6233
|
// adoptSessionProvider awaits only getConfig() (already resolved here) and then
|
|
6237
6234
|
// runs every write - provider/method/config/marker/user - in one synchronous
|
|
@@ -6402,7 +6399,7 @@ function ensureSharedWalletLoginReady() {
|
|
|
6402
6399
|
if (!sharedWalletReady) {
|
|
6403
6400
|
sharedWalletReady = (async () => {
|
|
6404
6401
|
await core.getConfig();
|
|
6405
|
-
await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
6402
|
+
await Promise.resolve().then(function () { return require('./injected-wallet-provider-zXw__lyf.js'); });
|
|
6406
6403
|
})().catch((error) => {
|
|
6407
6404
|
sharedWalletReady = null;
|
|
6408
6405
|
throw error;
|
|
@@ -8582,35 +8579,29 @@ async function getParsedTransactionCompat(connection, signature) {
|
|
|
8582
8579
|
}
|
|
8583
8580
|
}
|
|
8584
8581
|
/**
|
|
8585
|
-
*
|
|
8586
|
-
*
|
|
8582
|
+
* Waits for a broadcast signature by HTTPS status polling, fenced on the blockhash
|
|
8583
|
+
* lifetime it was signed against (core's `confirmSignature`), then checks for an
|
|
8584
|
+
* on-chain error. Throws if the transaction failed on-chain or was not seen before
|
|
8585
|
+
* the fence closed. Returns parsed transaction info on success.
|
|
8587
8586
|
*/
|
|
8588
|
-
async function confirmAndCheckTransaction(connection, signature) {
|
|
8587
|
+
async function confirmAndCheckTransaction(connection, signature, lastValidBlockHeight) {
|
|
8589
8588
|
var _a;
|
|
8590
|
-
const
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
// Log retrieval is diagnostic only; the on-chain error is the verdict.
|
|
8603
|
-
}
|
|
8604
|
-
const errorMessage = extractTransactionError(status.err, logMessages);
|
|
8605
|
-
throw new Error(`Transaction failed: ${errorMessage}`);
|
|
8606
|
-
}
|
|
8607
|
-
if (status.confirmationStatus === 'confirmed' || status.confirmationStatus === 'finalized') {
|
|
8608
|
-
return await getParsedTransactionCompat(connection, signature);
|
|
8609
|
-
}
|
|
8589
|
+
const confirmation = await core.confirmSignature(connection, { signature, lastValidBlockHeight });
|
|
8590
|
+
if (!confirmation.landed) {
|
|
8591
|
+
throw new Error(`Transaction ${signature} was not confirmed: ${confirmation.reason}. Check its status before sending it again.`);
|
|
8592
|
+
}
|
|
8593
|
+
if (confirmation.status.err) {
|
|
8594
|
+
let logMessages;
|
|
8595
|
+
try {
|
|
8596
|
+
const txInfo = await getParsedTransactionCompat(connection, signature);
|
|
8597
|
+
logMessages = (_a = txInfo === null || txInfo === void 0 ? void 0 : txInfo.meta) === null || _a === void 0 ? void 0 : _a.logMessages;
|
|
8598
|
+
}
|
|
8599
|
+
catch (_b) {
|
|
8600
|
+
// Log retrieval is diagnostic only; the on-chain error is the verdict.
|
|
8610
8601
|
}
|
|
8611
|
-
|
|
8602
|
+
throw new Error(`Transaction failed: ${extractTransactionError(confirmation.status.err, logMessages)}`);
|
|
8612
8603
|
}
|
|
8613
|
-
|
|
8604
|
+
return getParsedTransactionCompat(connection, signature);
|
|
8614
8605
|
}
|
|
8615
8606
|
|
|
8616
8607
|
/**
|
|
@@ -8780,24 +8771,30 @@ class PrivyExpoProvider {
|
|
|
8780
8771
|
// included), so refreshing the blockhash after any signer (sponsor / co-signer)
|
|
8781
8772
|
// has signed silently invalidates their signature. Only refresh while the
|
|
8782
8773
|
// transaction is still unsigned; once a real signature is present, submit the
|
|
8783
|
-
// caller's transaction verbatim.
|
|
8774
|
+
// caller's transaction verbatim. Either way the confirmation is fenced on a
|
|
8775
|
+
// lifetime read now: for a pre-signed transaction that is a superset of the
|
|
8776
|
+
// one its signers fenced on, never a shorter wait.
|
|
8777
|
+
let lastValidBlockHeight;
|
|
8784
8778
|
if (!transactionHasSignature(transaction)) {
|
|
8779
|
+
const { blockhash, lastValidBlockHeight: freshLastValid } = await connection.getLatestBlockhash('confirmed');
|
|
8780
|
+
lastValidBlockHeight = freshLastValid;
|
|
8785
8781
|
const isLegacyTx = 'recentBlockhash' in transaction &&
|
|
8786
8782
|
!('message' in transaction && 'staticAccountKeys' in transaction.message);
|
|
8787
8783
|
if (isLegacyTx) {
|
|
8788
8784
|
const legacyTx = transaction;
|
|
8789
|
-
const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');
|
|
8790
8785
|
legacyTx.recentBlockhash = blockhash;
|
|
8791
8786
|
legacyTx.lastValidBlockHeight = lastValidBlockHeight;
|
|
8792
8787
|
legacyTx.feePayer = feePayer || new PublicKey(wallet.address);
|
|
8793
8788
|
}
|
|
8794
8789
|
else {
|
|
8795
8790
|
const versionedTx = transaction;
|
|
8796
|
-
const { blockhash } = await connection.getLatestBlockhash('confirmed');
|
|
8797
8791
|
versionedTx.message.recentBlockhash = blockhash;
|
|
8798
8792
|
}
|
|
8799
8793
|
}
|
|
8800
|
-
|
|
8794
|
+
else {
|
|
8795
|
+
({ lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed'));
|
|
8796
|
+
}
|
|
8797
|
+
const { signature } = await this.signAndSubmitInternal(transaction, wallet, connection, lastValidBlockHeight);
|
|
8801
8798
|
return signature;
|
|
8802
8799
|
}
|
|
8803
8800
|
async restoreSession(beforeCommit) {
|
|
@@ -8868,11 +8865,11 @@ class PrivyExpoProvider {
|
|
|
8868
8865
|
`Sign in again before ${action}.`);
|
|
8869
8866
|
}
|
|
8870
8867
|
}
|
|
8871
|
-
async signAndSubmitInternal(transaction, wallet, connection) {
|
|
8868
|
+
async signAndSubmitInternal(transaction, wallet, connection, lastValidBlockHeight) {
|
|
8872
8869
|
// Use Privy's combined sign+send
|
|
8873
8870
|
const result = await wallet.signAndSendTransaction(transaction, connection);
|
|
8874
8871
|
const signature = result.signature;
|
|
8875
|
-
const txInfo = await confirmAndCheckTransaction(connection, signature);
|
|
8872
|
+
const txInfo = await confirmAndCheckTransaction(connection, signature, lastValidBlockHeight);
|
|
8876
8873
|
return { signature, txInfo };
|
|
8877
8874
|
}
|
|
8878
8875
|
// The constructor rpcUrl wins, then init()'s rpcUrl, then the platform RPC
|
|
@@ -8966,4 +8963,4 @@ exports.useBuildRun = useBuildRun;
|
|
|
8966
8963
|
exports.useQuery = useQuery;
|
|
8967
8964
|
exports.waitForAuthReady = waitForAuthReady;
|
|
8968
8965
|
exports.walletStandardFeatureName = walletStandardFeatureName;
|
|
8969
|
-
//# sourceMappingURL=index.native-
|
|
8966
|
+
//# sourceMappingURL=index.native-ByI3rRu4.js.map
|