@bounded-sh/client 0.0.51 → 0.0.53-next.0
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/index.d.ts +1 -1
- package/dist/auth/providers/injected-wallet-types.d.ts +1 -1
- package/dist/auth/providers/phantom-wallet-provider.d.ts +0 -2
- package/dist/auth/providers/privy-wallet-provider.d.ts +3 -5
- package/dist/auth/solana-rpc.d.ts +1 -2
- package/dist/builds/apps.d.ts +2 -0
- package/dist/builds/client.d.ts +23 -1
- package/dist/builds/index.d.ts +7 -4
- package/dist/builds/types.d.ts +66 -0
- package/dist/{email-auth-provider-Bm6vmoy3.js → email-auth-provider-BQ-DTX3z.js} +2 -2
- package/dist/{email-auth-provider-Bm6vmoy3.js.map → email-auth-provider-BQ-DTX3z.js.map} +1 -1
- package/dist/{email-auth-provider-Bh2fDYcb.mjs → email-auth-provider-CR7B2pob.mjs} +2 -2
- package/dist/{email-auth-provider-CdbhqElf.mjs.map → email-auth-provider-CR7B2pob.mjs.map} +1 -1
- package/dist/{email-auth-provider-CdbhqElf.mjs → email-auth-provider-CRFJd5Rp.mjs} +2 -2
- package/dist/{email-auth-provider-Bh2fDYcb.mjs.map → email-auth-provider-CRFJd5Rp.mjs.map} +1 -1
- package/dist/{email-auth-provider-CnHsY8U-.js → email-auth-provider-CyEhOnGQ.js} +2 -2
- package/dist/{email-auth-provider-CnHsY8U-.js.map → email-auth-provider-CyEhOnGQ.js.map} +1 -1
- package/dist/{guest-auth-provider-Xir8zyfZ.mjs → guest-auth-provider-1GGM1eWA.mjs} +2 -2
- package/dist/{guest-auth-provider-Xir8zyfZ.mjs.map → guest-auth-provider-1GGM1eWA.mjs.map} +1 -1
- package/dist/{guest-auth-provider-CHqB_uN0.js → guest-auth-provider-3cWfAi5V.js} +2 -2
- package/dist/{guest-auth-provider-CHqB_uN0.js.map → guest-auth-provider-3cWfAi5V.js.map} +1 -1
- package/dist/{guest-auth-provider-Dgmr7e0Z.mjs → guest-auth-provider-BLzLLs7u.mjs} +2 -2
- package/dist/{guest-auth-provider-Dgmr7e0Z.mjs.map → guest-auth-provider-BLzLLs7u.mjs.map} +1 -1
- package/dist/{guest-auth-provider-fjOMwfpW.js → guest-auth-provider-DkUngKob.js} +2 -2
- package/dist/{guest-auth-provider-fjOMwfpW.js.map → guest-auth-provider-DkUngKob.js.map} +1 -1
- package/dist/{index-BsrZb496.js → index-C6p_-77w.js} +56 -32
- package/dist/index-C6p_-77w.js.map +1 -0
- package/dist/{index-Cy0IRs6U.mjs → index-Co7IqxVo.mjs} +54 -32
- package/dist/index-Co7IqxVo.mjs.map +1 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.native-BaEZwiWd.js → index.native-BTPOnWux.js} +56 -32
- package/dist/index.native-BTPOnWux.js.map +1 -0
- package/dist/{index.native-B29WKXlr.mjs → index.native-BoKkzObx.mjs} +54 -32
- package/dist/index.native-BoKkzObx.mjs.map +1 -0
- package/dist/index.native.js +4 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +1 -1
- package/dist/{injected-evm-wallet-provider-DkyIMRce.mjs → injected-evm-wallet-provider-Bsh00akg.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-DkyIMRce.mjs.map → injected-evm-wallet-provider-Bsh00akg.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-DWnpa6Yx.mjs → injected-evm-wallet-provider-CA9ENSN4.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-DWnpa6Yx.mjs.map → injected-evm-wallet-provider-CA9ENSN4.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-DUyX7Xj9.js → injected-evm-wallet-provider-Cjs3K7fU.js} +2 -2
- package/dist/{injected-evm-wallet-provider-DUyX7Xj9.js.map → injected-evm-wallet-provider-Cjs3K7fU.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-CEWIg-_U.js → injected-evm-wallet-provider-DCqeV702.js} +2 -2
- package/dist/{injected-evm-wallet-provider-CEWIg-_U.js.map → injected-evm-wallet-provider-DCqeV702.js.map} +1 -1
- package/dist/{injected-wallet-provider-DsesEVnZ.mjs → injected-wallet-provider-BwHOxPAR.mjs} +6 -8
- package/dist/injected-wallet-provider-BwHOxPAR.mjs.map +1 -0
- package/dist/{injected-wallet-provider-DpJvuK73.js → injected-wallet-provider-CfzCTdM5.js} +6 -8
- package/dist/injected-wallet-provider-CfzCTdM5.js.map +1 -0
- package/dist/{injected-wallet-provider-C65NiItg.js → injected-wallet-provider-CmhZtf9E.js} +6 -8
- package/dist/injected-wallet-provider-CmhZtf9E.js.map +1 -0
- package/dist/{injected-wallet-provider-DqBpuASt.mjs → injected-wallet-provider-uF4yZt8l.mjs} +6 -8
- package/dist/injected-wallet-provider-uF4yZt8l.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/index-BsrZb496.js.map +0 -1
- package/dist/index-Cy0IRs6U.mjs.map +0 -1
- package/dist/index.native-B29WKXlr.mjs.map +0 -1
- package/dist/index.native-BaEZwiWd.js.map +0 -1
- package/dist/injected-wallet-provider-C65NiItg.js.map +0 -1
- package/dist/injected-wallet-provider-DpJvuK73.js.map +0 -1
- package/dist/injected-wallet-provider-DqBpuASt.mjs.map +0 -1
- package/dist/injected-wallet-provider-DsesEVnZ.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C6p_-77w.js');
|
|
4
4
|
var core = require('@bounded-sh/core');
|
|
5
5
|
require('react');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
exports.BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA = index.BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA;
|
|
10
|
+
exports.BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA = index.BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA;
|
|
11
|
+
exports.BUILD_REVIEW_CAPABILITY_SCHEMA = index.BUILD_REVIEW_CAPABILITY_SCHEMA;
|
|
9
12
|
exports.BuildsApiError = index.BuildsApiError;
|
|
10
13
|
exports.FAILURE_REASONS = index.FAILURE_REASONS;
|
|
11
14
|
exports.NON_TERMINAL_STATES = index.NON_TERMINAL_STATES;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as BuildsApiError,
|
|
1
|
+
export { W as BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA, V as BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA, U as BUILD_REVIEW_CAPABILITY_SCHEMA, M as BuildsApiError, S as FAILURE_REASONS, N as NON_TERMINAL_STATES, O as OffchainAuthProvider, Q as PARK_REASONS, P as PrivyExpoProvider, R as RUN_STATES, T as TERMINAL_STATES, G as apps, L as builds, z as completeLoginFromRedirect, B as completeLoginInPopup, k as defaultInjectedEvmProvider, d as defaultInjectedProvider, H as deserializeTransaction, q as getAuthLoading, v as getAuthProvider, m as getCurrentUser, I as getIdToken, g as getPlatform, l as init, t as login, A as loginWithPopup, x as loginWithPrivy, y as loginWithRedirect, u as logout, p as onAuthLoadingChanged, o as onAuthStateChanged, K as requestEip6963Providers, J as setPlatform, w as signInAnonymously, C as useAuth, F as useBuildRun, D as useQuery } from './index-Co7IqxVo.mjs';
|
|
2
2
|
export * from '@bounded-sh/core';
|
|
3
3
|
export { BoundedDeclineError, DECLINE_EVENT_NAME, RATE_LIMIT_EVENT_NAME, aggregate, count, deriveDecline, dispatchDeclineEvent, dispatchRateLimitEvent, docId, get, getConfig, getFiles, getMany, queryAggregate, runExpression, runExpressionMany, runQuery, runQueryMany, search, set, setFile, setMany, signAndSubmitTransaction, signMessage, signTransaction, subscribe } from '@bounded-sh/core';
|
|
4
4
|
import 'react';
|
|
@@ -840,11 +840,9 @@ class OffchainAuthProvider {
|
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
-
const SURFNET_RPC_URL = "https://surfpool.fly.dev";
|
|
844
843
|
const SUPPORTED_SOLANA_NETWORKS = new Set([
|
|
845
844
|
"solana_devnet",
|
|
846
845
|
"solana_mainnet",
|
|
847
|
-
"surfnet",
|
|
848
846
|
]);
|
|
849
847
|
function normalizeSolanaRpcUrl(rpcUrl) {
|
|
850
848
|
if (typeof rpcUrl !== "string")
|
|
@@ -858,7 +856,7 @@ function isSupportedSolanaRpcNetwork(network) {
|
|
|
858
856
|
function resolveSolanaRpcUrl(explicitRpcUrl, network, context) {
|
|
859
857
|
if (network != null && network !== "" && !isSupportedSolanaRpcNetwork(network)) {
|
|
860
858
|
throw new Error(`${context} does not support Solana network "${network}". ` +
|
|
861
|
-
`Expected one of: solana_devnet, solana_mainnet
|
|
859
|
+
`Expected one of: solana_devnet, solana_mainnet.`);
|
|
862
860
|
}
|
|
863
861
|
const rpcUrl = normalizeSolanaRpcUrl(explicitRpcUrl);
|
|
864
862
|
if (rpcUrl)
|
|
@@ -4466,7 +4464,7 @@ async function getAuthProvider(config) {
|
|
|
4466
4464
|
// manager as legacy email sessions. Human login should be started
|
|
4467
4465
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
4468
4466
|
// logout surface for those sessions.
|
|
4469
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-
|
|
4467
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-CyEhOnGQ.js'); })).EmailAuthProvider();
|
|
4470
4468
|
break;
|
|
4471
4469
|
case "wallet":
|
|
4472
4470
|
case "phantom": {
|
|
@@ -4485,7 +4483,7 @@ async function getAuthProvider(config) {
|
|
|
4485
4483
|
if (!isWalletLoginEnabled(config)) {
|
|
4486
4484
|
throw walletLoginNotEnabledError(authMethod);
|
|
4487
4485
|
}
|
|
4488
|
-
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
4486
|
+
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-CmhZtf9E.js'); });
|
|
4489
4487
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
4490
4488
|
break;
|
|
4491
4489
|
}
|
|
@@ -4498,7 +4496,7 @@ async function getAuthProvider(config) {
|
|
|
4498
4496
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
4499
4497
|
// to point at a specific wallet or set chainId/domain.
|
|
4500
4498
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
4501
|
-
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-
|
|
4499
|
+
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-Cjs3K7fU.js'); });
|
|
4502
4500
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
4503
4501
|
break;
|
|
4504
4502
|
}
|
|
@@ -4526,7 +4524,7 @@ async function getAuthProvider(config) {
|
|
|
4526
4524
|
break;
|
|
4527
4525
|
case "guest":
|
|
4528
4526
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
4529
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
4527
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-DkUngKob.js'); })).GuestAuthProvider();
|
|
4530
4528
|
break;
|
|
4531
4529
|
}
|
|
4532
4530
|
if (!currentAuthProvider) {
|
|
@@ -4582,7 +4580,7 @@ async function signInAnonymously() {
|
|
|
4582
4580
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
4583
4581
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
4584
4582
|
// so bundle-splitting can see it.
|
|
4585
|
-
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
4583
|
+
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-DkUngKob.js'); })).GuestAuthProvider();
|
|
4586
4584
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
4587
4585
|
const commit = (user) => {
|
|
4588
4586
|
// No await/interleaving inside this block: provider/method/config/marker
|
|
@@ -4825,7 +4823,12 @@ async function logout$1(options) {
|
|
|
4825
4823
|
// Hosted sessions ('email' covers the whole hosted surface: email OTP +
|
|
4826
4824
|
// social + the OIDC redirect/popup flows) are the ones with an issuer
|
|
4827
4825
|
// cookie; wallet and guest sessions have nothing hosted to end.
|
|
4828
|
-
|
|
4826
|
+
// Check the STORED marker as well as the in-memory method: the hosted
|
|
4827
|
+
// OIDC flows (loginWithPopup / completeLoginFromRedirect) write the
|
|
4828
|
+
// 'email' marker via exchangeCode() but never touch currentAuthMethod,
|
|
4829
|
+
// which stays 'guest'/explicit even after a hosted upgrade. Worst case of
|
|
4830
|
+
// a false positive is a harmless idempotent issuer bounce.
|
|
4831
|
+
const wasHosted = currentAuthMethod === 'email' || getStoredAuthMethod() === 'email';
|
|
4829
4832
|
await currentAuthProvider.logout();
|
|
4830
4833
|
setStoredAuthMethod(null);
|
|
4831
4834
|
currentAuthProvider = null;
|
|
@@ -5299,6 +5302,31 @@ async function decideGate(appId, runId, gateId, options) {
|
|
|
5299
5302
|
const { intentKey: _intentKey, idempotencyKey: _suppliedKey } = options, decision = __rest(options, ["intentKey", "idempotencyKey"]);
|
|
5300
5303
|
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/gates/${encodeURIComponent(gateId)}/decision`, { method: 'POST', body: Object.assign(Object.assign({}, decision), { idempotencyKey }) });
|
|
5301
5304
|
}
|
|
5305
|
+
async function refreshReviewCapability(appId, runId, gateId, options) {
|
|
5306
|
+
const idempotencyKey = actionIdempotencyKey(options, 'refreshReviewCapability()');
|
|
5307
|
+
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/gates/${encodeURIComponent(gateId)}/review-capability/refresh`, {
|
|
5308
|
+
method: 'POST',
|
|
5309
|
+
body: {
|
|
5310
|
+
expectedGeneration: options.expectedGeneration,
|
|
5311
|
+
expectedExpiresAtMs: options.expectedExpiresAtMs,
|
|
5312
|
+
expectedRecoveryUntilMs: options.expectedRecoveryUntilMs,
|
|
5313
|
+
expectedAudience: options.expectedAudience,
|
|
5314
|
+
expectedReviewerBindingHash: options.expectedReviewerBindingHash,
|
|
5315
|
+
idempotencyKey,
|
|
5316
|
+
},
|
|
5317
|
+
});
|
|
5318
|
+
}
|
|
5319
|
+
/**
|
|
5320
|
+
* Read one exact delegated-review capability and its narrow lifecycle result.
|
|
5321
|
+
* This does not refresh or extend the window and exposes no generic run-view
|
|
5322
|
+
* authority.
|
|
5323
|
+
*/
|
|
5324
|
+
async function getReviewCapability(appId, runId, gateId, options) {
|
|
5325
|
+
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/gates/${encodeURIComponent(gateId)}/review-capability`, {
|
|
5326
|
+
method: 'POST',
|
|
5327
|
+
body: { expectedPreviewUrl: options.expectedPreviewUrl },
|
|
5328
|
+
});
|
|
5329
|
+
}
|
|
5302
5330
|
async function topup(appId, runId, options) {
|
|
5303
5331
|
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/topup`, { method: 'POST', body: options });
|
|
5304
5332
|
}
|
|
@@ -5344,6 +5372,9 @@ const FAILURE_REASONS = [
|
|
|
5344
5372
|
'bind_failed',
|
|
5345
5373
|
'internal_error',
|
|
5346
5374
|
];
|
|
5375
|
+
const BUILD_REVIEW_CAPABILITY_SCHEMA = 'bounded.build-review-capability.v1';
|
|
5376
|
+
const BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA = 'bounded.build-review-capability-refresh.v1';
|
|
5377
|
+
const BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA = 'bounded.build-delegated-review-capability.v1';
|
|
5347
5378
|
|
|
5348
5379
|
const NORMAL_POLL_MS = 2000;
|
|
5349
5380
|
const PARKED_POLL_MS = 5000;
|
|
@@ -5580,22 +5611,25 @@ function useBuildRun(appId, runId, options) {
|
|
|
5580
5611
|
}
|
|
5581
5612
|
|
|
5582
5613
|
/**
|
|
5583
|
-
* Platform first-party surfaces only (bounded.sh, oapps.fun, localhost)
|
|
5584
|
-
*
|
|
5614
|
+
* Platform first-party surfaces only (bounded.sh, oapps.fun, localhost), with
|
|
5615
|
+
* one exact Drafted exception for delegated review/decision routes. Other
|
|
5616
|
+
* generated-app origins remain blocked; server-side callers are unaffected.
|
|
5585
5617
|
*/
|
|
5586
5618
|
const builds = {
|
|
5587
5619
|
submit,
|
|
5588
5620
|
get,
|
|
5621
|
+
getReviewCapability,
|
|
5589
5622
|
events,
|
|
5590
5623
|
cancel,
|
|
5591
5624
|
decideGate,
|
|
5625
|
+
refreshReviewCapability,
|
|
5592
5626
|
topup,
|
|
5593
5627
|
list: list$1,
|
|
5594
5628
|
watch,
|
|
5595
5629
|
};
|
|
5596
5630
|
|
|
5597
5631
|
async function create(options = {}) {
|
|
5598
|
-
const body = Object.assign(Object.assign(Object.assign(Object.assign({}, (options.name !== undefined ? { name: options.name } : {})), (options.prompt !== undefined ? { prompt: options.prompt } : {})), (options.clientToken !== undefined ? { clientToken: options.clientToken } : {})), (options.intent !== undefined ? { intent: options.intent } : {}));
|
|
5632
|
+
const body = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (options.name !== undefined ? { name: options.name } : {})), (options.prompt !== undefined ? { prompt: options.prompt } : {})), (options.clientToken !== undefined ? { clientToken: options.clientToken } : {})), (options.intent !== undefined ? { intent: options.intent } : {})), (options.oapp === true ? { oapp: true } : {}));
|
|
5599
5633
|
const app = await requestDevApi('/apps/new', {
|
|
5600
5634
|
method: 'POST',
|
|
5601
5635
|
body,
|
|
@@ -5861,7 +5895,7 @@ class PrivyExpoProvider {
|
|
|
5861
5895
|
};
|
|
5862
5896
|
}
|
|
5863
5897
|
// Sign and submit
|
|
5864
|
-
const { signature, txInfo } = await this.signAndSubmitInternal(tx, wallet,
|
|
5898
|
+
const { signature, txInfo } = await this.signAndSubmitInternal(tx, wallet, connection);
|
|
5865
5899
|
return {
|
|
5866
5900
|
transactionSignature: signature,
|
|
5867
5901
|
blockNumber: (txInfo === null || txInfo === void 0 ? void 0 : txInfo.slot) || 0,
|
|
@@ -5941,7 +5975,7 @@ class PrivyExpoProvider {
|
|
|
5941
5975
|
const { blockhash } = await connection.getLatestBlockhash('confirmed');
|
|
5942
5976
|
versionedTx.message.recentBlockhash = blockhash;
|
|
5943
5977
|
}
|
|
5944
|
-
const { signature } = await this.signAndSubmitInternal(transaction, wallet,
|
|
5978
|
+
const { signature } = await this.signAndSubmitInternal(transaction, wallet, connection);
|
|
5945
5979
|
return signature;
|
|
5946
5980
|
}
|
|
5947
5981
|
async restoreSession() {
|
|
@@ -5993,22 +6027,10 @@ class PrivyExpoProvider {
|
|
|
5993
6027
|
}
|
|
5994
6028
|
return wallet;
|
|
5995
6029
|
}
|
|
5996
|
-
async signAndSubmitInternal(transaction, wallet,
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
const signed = await wallet.signTransaction(transaction);
|
|
6001
|
-
const txSig = await connection.sendRawTransaction(signed.signedTransaction, {
|
|
6002
|
-
skipPreflight: true,
|
|
6003
|
-
maxRetries: 3,
|
|
6004
|
-
});
|
|
6005
|
-
signature = txSig;
|
|
6006
|
-
}
|
|
6007
|
-
else {
|
|
6008
|
-
// Non-Surfnet: use Privy's combined sign+send
|
|
6009
|
-
const result = await wallet.signAndSendTransaction(transaction, connection);
|
|
6010
|
-
signature = result.signature;
|
|
6011
|
-
}
|
|
6030
|
+
async signAndSubmitInternal(transaction, wallet, connection) {
|
|
6031
|
+
// Use Privy's combined sign+send
|
|
6032
|
+
const result = await wallet.signAndSendTransaction(transaction, connection);
|
|
6033
|
+
const signature = result.signature;
|
|
6012
6034
|
const txInfo = await confirmAndCheckTransaction(connection, signature);
|
|
6013
6035
|
return { signature, txInfo };
|
|
6014
6036
|
}
|
|
@@ -6041,6 +6063,9 @@ class PrivyExpoProvider {
|
|
|
6041
6063
|
}
|
|
6042
6064
|
}
|
|
6043
6065
|
|
|
6066
|
+
exports.BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA = BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA;
|
|
6067
|
+
exports.BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA = BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA;
|
|
6068
|
+
exports.BUILD_REVIEW_CAPABILITY_SCHEMA = BUILD_REVIEW_CAPABILITY_SCHEMA;
|
|
6044
6069
|
exports.BuildsApiError = BuildsApiError;
|
|
6045
6070
|
exports.EMBEDDED_WALLET_UNSUPPORTED = EMBEDDED_WALLET_UNSUPPORTED;
|
|
6046
6071
|
exports.FAILURE_REASONS = FAILURE_REASONS;
|
|
@@ -6049,7 +6074,6 @@ exports.OffchainAuthProvider = OffchainAuthProvider;
|
|
|
6049
6074
|
exports.PARK_REASONS = PARK_REASONS;
|
|
6050
6075
|
exports.PrivyExpoProvider = PrivyExpoProvider;
|
|
6051
6076
|
exports.RUN_STATES = RUN_STATES;
|
|
6052
|
-
exports.SURFNET_RPC_URL = SURFNET_RPC_URL;
|
|
6053
6077
|
exports.TERMINAL_STATES = TERMINAL_STATES;
|
|
6054
6078
|
exports.apps = apps;
|
|
6055
6079
|
exports.bs58 = bs58;
|
|
@@ -6084,4 +6108,4 @@ exports.setPlatform = setPlatform;
|
|
|
6084
6108
|
exports.signInAnonymously = signInAnonymously;
|
|
6085
6109
|
exports.useAuth = useAuth;
|
|
6086
6110
|
exports.useBuildRun = useBuildRun;
|
|
6087
|
-
//# sourceMappingURL=index.native-
|
|
6111
|
+
//# sourceMappingURL=index.native-BTPOnWux.js.map
|