@t2000/sdk 10.26.0 → 10.27.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/browser.cjs +4 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +4 -2
- package/dist/browser.js.map +1 -1
- package/dist/{commerce-DOKu1FYI.d.cts → commerce-DR_F-Eg6.d.cts} +12 -2
- package/dist/{commerce-DOKu1FYI.d.ts → commerce-DR_F-Eg6.d.ts} +12 -2
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -3
- package/dist/index.d.ts +24 -3
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1444,7 +1444,17 @@ declare function addSendToTx(tx: Transaction, coin: TransactionObjectArgument, r
|
|
|
1444
1444
|
* onto the Job at create, FeeConfig versioning, bounded windows). Override
|
|
1445
1445
|
* via env for testnet/dev.
|
|
1446
1446
|
*/
|
|
1447
|
-
/** The published `a2a_escrow` package id
|
|
1447
|
+
/** The published `a2a_escrow` package id on MAINNET — a literal, never an
|
|
1448
|
+
* env read.
|
|
1449
|
+
*
|
|
1450
|
+
* Security (S.930): the env-overridable constant below is a dev/testnet
|
|
1451
|
+
* convenience, which makes it useless as a trust anchor — anything verifying
|
|
1452
|
+
* "is this the real escrow package?" against it would be checking the
|
|
1453
|
+
* attacker's own answer. Signature-time verification compares against THIS.
|
|
1454
|
+
* Must match the Move upgrade publish notes. */
|
|
1455
|
+
declare const MAINNET_A2A_ESCROW_PACKAGE_ID = "0x358a819c1c016e2cc84ef5fbea81cba90c31f7f8a62bf45cb5e5276acf198bdd";
|
|
1456
|
+
/** The published `a2a_escrow` package id (mainnet default; env-overridable
|
|
1457
|
+
* for testnet/dev — NOT a trust anchor, see above). */
|
|
1448
1458
|
declare const A2A_ESCROW_PACKAGE_ID: string;
|
|
1449
1459
|
/** The shared `FeeConfig` object every escrow entry reads (mainnet). */
|
|
1450
1460
|
declare const A2A_ESCROW_FEE_CONFIG_ID: string;
|
|
@@ -1600,4 +1610,4 @@ declare function putJobSpec(base: string, content: string): Promise<string>;
|
|
|
1600
1610
|
* the store is untrusted; the chain hash is the authority). */
|
|
1601
1611
|
declare function getJobSpec(base: string, hash: string): Promise<string>;
|
|
1602
1612
|
|
|
1603
|
-
export { type T2000ErrorData as $, A2A_ESCROW_FEE_CONFIG_ID as A, type BalanceResponse as B, CLOCK_ID as C, DEFAULT_ACTIVITY_REPORT_URL as D, ETH_TYPE as E, SUI_TYPE as F, GAS_RESERVE_MIN as G, SUPPORTED_ASSETS as H, IKA_TYPE as I, JOB_STATES as J, KNOWN_TARGETS as K, LABEL_PATTERNS as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OVERLAY_FEE_RATE as O, PREFLIGHT_MAX_AMOUNT as P, type SendResult as Q, type ServiceListing as R, STABLE_ASSETS as S, type SimulationResult as T, type StableAsset as U, type SuiHolding as V, type SuiRpcTxBlock as W, type SupportedAsset as X, type SwapRouteResult as Y, T2000Error as Z, type T2000ErrorCode as _, A2A_ESCROW_PACKAGE_ID as a, suiToMist as a$, T2000_OVERLAY_FEE_WALLET as a0, TOKEN_MAP as a1, type TransactionLeg as a2, type TransactionRecord as a3, type TransactionSigner as a4, type TxDirection as a5, USDC_DECIMALS as a6, USDC_TYPE as a7, USDE_TYPE as a8, USDSUI_TYPE as a9, formatAssetAmount as aA, formatSui as aB, formatUsd as aC, getDecimals as aD, getDecimalsForCoinType as aE, getJob as aF, getJobSpec as aG, jobActionsFor as aH, listServices as aI, mapMoveAbortCode as aJ, mapWalletError as aK, mistToSui as aL, parseSuiRpcTx as aM, payWithX402 as aN, preflightCreateJob as aO, preflightFail as aP, preflightPay as aQ, preflightSend as aR, preflightSwap as aS, putJobSpec as aT, rawToStable as aU, rawToUsdc as aV, refineLendingLabel as aW, reportX402Activity as aX, resolveSymbol as aY, resolveTokenType as aZ, stableToRaw as a_, USDT_TYPE as aa, WAL_TYPE as ab, WBTC_TYPE as ac, type X402ActivityPayload as ad, type ZkLoginProof as ae, ZkLoginSigner as af, buildCreateJobTx as ag, buildDeliverJobTx as ah, buildRefundJobTx as ai, buildRejectJobTx as aj, buildReleaseJobTx as ak, buildSendTx as al, buildSwapTx as am, checkPositiveAmount as an, checkSuiAddress as ao, classifyAction as ap, classifyLabel as aq, classifyTransaction as ar, executeTx as as, extractAllUserLegs as at, extractTransferDetails as au, extractTxCommands as av, extractTxSender as aw, fallbackLabel as ax, fetchService as ay, findSwapRoute as az, type ActivityReportConfig as b, truncateAddress as b0, usdcToRaw as b1, validateAddress as b2, verifyJobForSeller as b3, type T2000Options as b4, type X402Probe as b5, type SerializedCetusRoute as b6, type SwapResult as b7, type SwapQuoteResult as b8, type PaymentRequest as b9,
|
|
1613
|
+
export { type T2000ErrorData as $, A2A_ESCROW_FEE_CONFIG_ID as A, type BalanceResponse as B, CLOCK_ID as C, DEFAULT_ACTIVITY_REPORT_URL as D, ETH_TYPE as E, SUI_TYPE as F, GAS_RESERVE_MIN as G, SUPPORTED_ASSETS as H, IKA_TYPE as I, JOB_STATES as J, KNOWN_TARGETS as K, LABEL_PATTERNS as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OVERLAY_FEE_RATE as O, PREFLIGHT_MAX_AMOUNT as P, type SendResult as Q, type ServiceListing as R, STABLE_ASSETS as S, type SimulationResult as T, type StableAsset as U, type SuiHolding as V, type SuiRpcTxBlock as W, type SupportedAsset as X, type SwapRouteResult as Y, T2000Error as Z, type T2000ErrorCode as _, A2A_ESCROW_PACKAGE_ID as a, suiToMist as a$, T2000_OVERLAY_FEE_WALLET as a0, TOKEN_MAP as a1, type TransactionLeg as a2, type TransactionRecord as a3, type TransactionSigner as a4, type TxDirection as a5, USDC_DECIMALS as a6, USDC_TYPE as a7, USDE_TYPE as a8, USDSUI_TYPE as a9, formatAssetAmount as aA, formatSui as aB, formatUsd as aC, getDecimals as aD, getDecimalsForCoinType as aE, getJob as aF, getJobSpec as aG, jobActionsFor as aH, listServices as aI, mapMoveAbortCode as aJ, mapWalletError as aK, mistToSui as aL, parseSuiRpcTx as aM, payWithX402 as aN, preflightCreateJob as aO, preflightFail as aP, preflightPay as aQ, preflightSend as aR, preflightSwap as aS, putJobSpec as aT, rawToStable as aU, rawToUsdc as aV, refineLendingLabel as aW, reportX402Activity as aX, resolveSymbol as aY, resolveTokenType as aZ, stableToRaw as a_, USDT_TYPE as aa, WAL_TYPE as ab, WBTC_TYPE as ac, type X402ActivityPayload as ad, type ZkLoginProof as ae, ZkLoginSigner as af, buildCreateJobTx as ag, buildDeliverJobTx as ah, buildRefundJobTx as ai, buildRejectJobTx as aj, buildReleaseJobTx as ak, buildSendTx as al, buildSwapTx as am, checkPositiveAmount as an, checkSuiAddress as ao, classifyAction as ap, classifyLabel as aq, classifyTransaction as ar, executeTx as as, extractAllUserLegs as at, extractTransferDetails as au, extractTxCommands as av, extractTxSender as aw, fallbackLabel as ax, fetchService as ay, findSwapRoute as az, type ActivityReportConfig as b, truncateAddress as b0, usdcToRaw as b1, validateAddress as b2, verifyJobForSeller as b3, type T2000Options as b4, type X402Probe as b5, type SerializedCetusRoute as b6, type SwapResult as b7, type SwapQuoteResult as b8, type PaymentRequest as b9, isCetusRouteFresh as bA, isInRegistry as bB, normalizeAsset as bC, normalizeCoinType as bD, probeX402 as bE, queryHistory as bF, queryTransaction as bG, selectAndSplitCoin as bH, selectSuiCoin as bI, serializeCetusRoute as bJ, simulateTransaction as bK, throwIfSimulationFailed as bL, verifyCetusRouteCoinMatch as bM, type SuiCoreClient as ba, type SponsoredCoinMergeCache as bb, type SendableAsset as bc, CETUS_USDC_SUI_POOL as bd, type CoinPage as be, DEFAULT_GRPC_URL as bf, GASLESS_MIN_STABLE_AMOUNT as bg, GASLESS_STABLE_TYPES as bh, MAINNET_A2A_ESCROW_PACKAGE_ID as bi, OPERATION_ASSETS as bj, type Operation as bk, SENDABLE_ASSETS as bl, type SelectAndSplitResult as bm, type SerializedCetusRoutePath as bn, type SerializedRouterDataV3 as bo, addSendToTx as bp, addSwapToTx as bq, assertAllowedAsset as br, assertBuyerRequirements as bs, buildDeclineJobTx as bt, deserializeCetusRoute as bu, fetchAllCoins as bv, getCoinMeta as bw, getSuiClient as bx, getSuiGrpcClient as by, isAllowedAsset as bz, COIN_REGISTRY as c, type ClassifyBalanceChange as d, type ClassifyResult as e, type CoinMeta as f, DEFAULT_COMMERCE_API_BASE as g, DEFAULT_NETWORK as h, type DepositInfo as i, type ExtractedTransfer as j, type Job as k, type JobState as l, type JobTerms as m, type JobVerification as n, KeypairSigner as o, LOFI_TYPE as p, MAX_DELIVER_HORIZON_MS as q, MAX_JOB_USDC as r, MAX_REVIEW_WINDOW_MS as s, MIST_PER_SUI as t, type OverlayFeeConfig as u, PREFLIGHT_OK as v, type PayOptions as w, type PayResult as x, type PreflightResult as y, SUI_DECIMALS as z };
|
|
@@ -1444,7 +1444,17 @@ declare function addSendToTx(tx: Transaction, coin: TransactionObjectArgument, r
|
|
|
1444
1444
|
* onto the Job at create, FeeConfig versioning, bounded windows). Override
|
|
1445
1445
|
* via env for testnet/dev.
|
|
1446
1446
|
*/
|
|
1447
|
-
/** The published `a2a_escrow` package id
|
|
1447
|
+
/** The published `a2a_escrow` package id on MAINNET — a literal, never an
|
|
1448
|
+
* env read.
|
|
1449
|
+
*
|
|
1450
|
+
* Security (S.930): the env-overridable constant below is a dev/testnet
|
|
1451
|
+
* convenience, which makes it useless as a trust anchor — anything verifying
|
|
1452
|
+
* "is this the real escrow package?" against it would be checking the
|
|
1453
|
+
* attacker's own answer. Signature-time verification compares against THIS.
|
|
1454
|
+
* Must match the Move upgrade publish notes. */
|
|
1455
|
+
declare const MAINNET_A2A_ESCROW_PACKAGE_ID = "0x358a819c1c016e2cc84ef5fbea81cba90c31f7f8a62bf45cb5e5276acf198bdd";
|
|
1456
|
+
/** The published `a2a_escrow` package id (mainnet default; env-overridable
|
|
1457
|
+
* for testnet/dev — NOT a trust anchor, see above). */
|
|
1448
1458
|
declare const A2A_ESCROW_PACKAGE_ID: string;
|
|
1449
1459
|
/** The shared `FeeConfig` object every escrow entry reads (mainnet). */
|
|
1450
1460
|
declare const A2A_ESCROW_FEE_CONFIG_ID: string;
|
|
@@ -1600,4 +1610,4 @@ declare function putJobSpec(base: string, content: string): Promise<string>;
|
|
|
1600
1610
|
* the store is untrusted; the chain hash is the authority). */
|
|
1601
1611
|
declare function getJobSpec(base: string, hash: string): Promise<string>;
|
|
1602
1612
|
|
|
1603
|
-
export { type T2000ErrorData as $, A2A_ESCROW_FEE_CONFIG_ID as A, type BalanceResponse as B, CLOCK_ID as C, DEFAULT_ACTIVITY_REPORT_URL as D, ETH_TYPE as E, SUI_TYPE as F, GAS_RESERVE_MIN as G, SUPPORTED_ASSETS as H, IKA_TYPE as I, JOB_STATES as J, KNOWN_TARGETS as K, LABEL_PATTERNS as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OVERLAY_FEE_RATE as O, PREFLIGHT_MAX_AMOUNT as P, type SendResult as Q, type ServiceListing as R, STABLE_ASSETS as S, type SimulationResult as T, type StableAsset as U, type SuiHolding as V, type SuiRpcTxBlock as W, type SupportedAsset as X, type SwapRouteResult as Y, T2000Error as Z, type T2000ErrorCode as _, A2A_ESCROW_PACKAGE_ID as a, suiToMist as a$, T2000_OVERLAY_FEE_WALLET as a0, TOKEN_MAP as a1, type TransactionLeg as a2, type TransactionRecord as a3, type TransactionSigner as a4, type TxDirection as a5, USDC_DECIMALS as a6, USDC_TYPE as a7, USDE_TYPE as a8, USDSUI_TYPE as a9, formatAssetAmount as aA, formatSui as aB, formatUsd as aC, getDecimals as aD, getDecimalsForCoinType as aE, getJob as aF, getJobSpec as aG, jobActionsFor as aH, listServices as aI, mapMoveAbortCode as aJ, mapWalletError as aK, mistToSui as aL, parseSuiRpcTx as aM, payWithX402 as aN, preflightCreateJob as aO, preflightFail as aP, preflightPay as aQ, preflightSend as aR, preflightSwap as aS, putJobSpec as aT, rawToStable as aU, rawToUsdc as aV, refineLendingLabel as aW, reportX402Activity as aX, resolveSymbol as aY, resolveTokenType as aZ, stableToRaw as a_, USDT_TYPE as aa, WAL_TYPE as ab, WBTC_TYPE as ac, type X402ActivityPayload as ad, type ZkLoginProof as ae, ZkLoginSigner as af, buildCreateJobTx as ag, buildDeliverJobTx as ah, buildRefundJobTx as ai, buildRejectJobTx as aj, buildReleaseJobTx as ak, buildSendTx as al, buildSwapTx as am, checkPositiveAmount as an, checkSuiAddress as ao, classifyAction as ap, classifyLabel as aq, classifyTransaction as ar, executeTx as as, extractAllUserLegs as at, extractTransferDetails as au, extractTxCommands as av, extractTxSender as aw, fallbackLabel as ax, fetchService as ay, findSwapRoute as az, type ActivityReportConfig as b, truncateAddress as b0, usdcToRaw as b1, validateAddress as b2, verifyJobForSeller as b3, type T2000Options as b4, type X402Probe as b5, type SerializedCetusRoute as b6, type SwapResult as b7, type SwapQuoteResult as b8, type PaymentRequest as b9,
|
|
1613
|
+
export { type T2000ErrorData as $, A2A_ESCROW_FEE_CONFIG_ID as A, type BalanceResponse as B, CLOCK_ID as C, DEFAULT_ACTIVITY_REPORT_URL as D, ETH_TYPE as E, SUI_TYPE as F, GAS_RESERVE_MIN as G, SUPPORTED_ASSETS as H, IKA_TYPE as I, JOB_STATES as J, KNOWN_TARGETS as K, LABEL_PATTERNS as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OVERLAY_FEE_RATE as O, PREFLIGHT_MAX_AMOUNT as P, type SendResult as Q, type ServiceListing as R, STABLE_ASSETS as S, type SimulationResult as T, type StableAsset as U, type SuiHolding as V, type SuiRpcTxBlock as W, type SupportedAsset as X, type SwapRouteResult as Y, T2000Error as Z, type T2000ErrorCode as _, A2A_ESCROW_PACKAGE_ID as a, suiToMist as a$, T2000_OVERLAY_FEE_WALLET as a0, TOKEN_MAP as a1, type TransactionLeg as a2, type TransactionRecord as a3, type TransactionSigner as a4, type TxDirection as a5, USDC_DECIMALS as a6, USDC_TYPE as a7, USDE_TYPE as a8, USDSUI_TYPE as a9, formatAssetAmount as aA, formatSui as aB, formatUsd as aC, getDecimals as aD, getDecimalsForCoinType as aE, getJob as aF, getJobSpec as aG, jobActionsFor as aH, listServices as aI, mapMoveAbortCode as aJ, mapWalletError as aK, mistToSui as aL, parseSuiRpcTx as aM, payWithX402 as aN, preflightCreateJob as aO, preflightFail as aP, preflightPay as aQ, preflightSend as aR, preflightSwap as aS, putJobSpec as aT, rawToStable as aU, rawToUsdc as aV, refineLendingLabel as aW, reportX402Activity as aX, resolveSymbol as aY, resolveTokenType as aZ, stableToRaw as a_, USDT_TYPE as aa, WAL_TYPE as ab, WBTC_TYPE as ac, type X402ActivityPayload as ad, type ZkLoginProof as ae, ZkLoginSigner as af, buildCreateJobTx as ag, buildDeliverJobTx as ah, buildRefundJobTx as ai, buildRejectJobTx as aj, buildReleaseJobTx as ak, buildSendTx as al, buildSwapTx as am, checkPositiveAmount as an, checkSuiAddress as ao, classifyAction as ap, classifyLabel as aq, classifyTransaction as ar, executeTx as as, extractAllUserLegs as at, extractTransferDetails as au, extractTxCommands as av, extractTxSender as aw, fallbackLabel as ax, fetchService as ay, findSwapRoute as az, type ActivityReportConfig as b, truncateAddress as b0, usdcToRaw as b1, validateAddress as b2, verifyJobForSeller as b3, type T2000Options as b4, type X402Probe as b5, type SerializedCetusRoute as b6, type SwapResult as b7, type SwapQuoteResult as b8, type PaymentRequest as b9, isCetusRouteFresh as bA, isInRegistry as bB, normalizeAsset as bC, normalizeCoinType as bD, probeX402 as bE, queryHistory as bF, queryTransaction as bG, selectAndSplitCoin as bH, selectSuiCoin as bI, serializeCetusRoute as bJ, simulateTransaction as bK, throwIfSimulationFailed as bL, verifyCetusRouteCoinMatch as bM, type SuiCoreClient as ba, type SponsoredCoinMergeCache as bb, type SendableAsset as bc, CETUS_USDC_SUI_POOL as bd, type CoinPage as be, DEFAULT_GRPC_URL as bf, GASLESS_MIN_STABLE_AMOUNT as bg, GASLESS_STABLE_TYPES as bh, MAINNET_A2A_ESCROW_PACKAGE_ID as bi, OPERATION_ASSETS as bj, type Operation as bk, SENDABLE_ASSETS as bl, type SelectAndSplitResult as bm, type SerializedCetusRoutePath as bn, type SerializedRouterDataV3 as bo, addSendToTx as bp, addSwapToTx as bq, assertAllowedAsset as br, assertBuyerRequirements as bs, buildDeclineJobTx as bt, deserializeCetusRoute as bu, fetchAllCoins as bv, getCoinMeta as bw, getSuiClient as bx, getSuiGrpcClient as by, isAllowedAsset as bz, COIN_REGISTRY as c, type ClassifyBalanceChange as d, type ClassifyResult as e, type CoinMeta as f, DEFAULT_COMMERCE_API_BASE as g, DEFAULT_NETWORK as h, type DepositInfo as i, type ExtractedTransfer as j, type Job as k, type JobState as l, type JobTerms as m, type JobVerification as n, KeypairSigner as o, LOFI_TYPE as p, MAX_DELIVER_HORIZON_MS as q, MAX_JOB_USDC as r, MAX_REVIEW_WINDOW_MS as s, MIST_PER_SUI as t, type OverlayFeeConfig as u, PREFLIGHT_OK as v, type PayOptions as w, type PayResult as x, type PreflightResult as y, SUI_DECIMALS as z };
|
package/dist/index.cjs
CHANGED
|
@@ -3292,7 +3292,8 @@ init_coinSelection();
|
|
|
3292
3292
|
init_errors();
|
|
3293
3293
|
init_token_registry();
|
|
3294
3294
|
init_coinSelection();
|
|
3295
|
-
var
|
|
3295
|
+
var MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID = "0x69ad93c555519de520a5c7f7f2963ad6f8b91cefc098fc2eed75942dcb5bcbe7";
|
|
3296
|
+
var A2A_ESCROW_OPENING_PACKAGE_ID = process.env.A2A_ESCROW_OPENING_PACKAGE_ID ?? MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID;
|
|
3296
3297
|
var A2A_ESCROW_PACKAGE_V2_ID = "0x860288d789dc617f6474a0a6801d6011e53bf30d5fb801cdad47b9bc6adb098b";
|
|
3297
3298
|
var A2A_ESCROW_PACKAGE_V3_ID = "0x69ad93c555519de520a5c7f7f2963ad6f8b91cefc098fc2eed75942dcb5bcbe7";
|
|
3298
3299
|
var CLOCK_ID2 = "0x6";
|
|
@@ -3428,7 +3429,8 @@ async function getOpening(client, openingId) {
|
|
|
3428
3429
|
}
|
|
3429
3430
|
|
|
3430
3431
|
// src/wallet/job.ts
|
|
3431
|
-
var
|
|
3432
|
+
var MAINNET_A2A_ESCROW_PACKAGE_ID = "0x358a819c1c016e2cc84ef5fbea81cba90c31f7f8a62bf45cb5e5276acf198bdd";
|
|
3433
|
+
var A2A_ESCROW_PACKAGE_ID = process.env.A2A_ESCROW_PACKAGE_ID ?? MAINNET_A2A_ESCROW_PACKAGE_ID;
|
|
3432
3434
|
var A2A_ESCROW_FEE_CONFIG_ID = process.env.A2A_ESCROW_FEE_CONFIG_ID ?? "0xddaa25570950b7484dbf20797ebcf75707be9c87cd67bef2a06ed2e81d2c494b";
|
|
3433
3435
|
var A2A_ESCROW_FEE_CONFIG_VERSION = Number(
|
|
3434
3436
|
process.env.A2A_ESCROW_FEE_CONFIG_VERSION ?? 931861903
|
|
@@ -3798,6 +3800,10 @@ async function fetchJson(url, init) {
|
|
|
3798
3800
|
}
|
|
3799
3801
|
return json;
|
|
3800
3802
|
}
|
|
3803
|
+
var sponsoredTxGuard = null;
|
|
3804
|
+
function setSponsoredTxGuard(guard) {
|
|
3805
|
+
sponsoredTxGuard = guard;
|
|
3806
|
+
}
|
|
3801
3807
|
async function listOpenJobs(base, filter = {}) {
|
|
3802
3808
|
const params = new URLSearchParams();
|
|
3803
3809
|
if (filter.status) params.set("status", filter.status);
|
|
@@ -3816,6 +3822,7 @@ async function getOpenJob(base, id) {
|
|
|
3816
3822
|
}
|
|
3817
3823
|
async function sponsoredOpeningVerb(base, signer, action, params) {
|
|
3818
3824
|
const address = signer.getAddress();
|
|
3825
|
+
sponsoredTxGuard?.({ base, action });
|
|
3819
3826
|
const prep = await fetchJson(`${base}/job/prepare`, {
|
|
3820
3827
|
method: "POST",
|
|
3821
3828
|
body: { address, action, params }
|
|
@@ -3825,6 +3832,7 @@ async function sponsoredOpeningVerb(base, signer, action, params) {
|
|
|
3825
3832
|
if (!(nonce && txBytes)) {
|
|
3826
3833
|
throw new Error("Failed to prepare the transaction.");
|
|
3827
3834
|
}
|
|
3835
|
+
sponsoredTxGuard?.({ base, action, txBytes });
|
|
3828
3836
|
const { signature } = await signer.signTransaction(utils.fromBase64(txBytes));
|
|
3829
3837
|
const json = await fetchJson(`${base}/job/submit`, {
|
|
3830
3838
|
method: "POST",
|
|
@@ -4317,6 +4325,8 @@ exports.KeypairSigner = KeypairSigner;
|
|
|
4317
4325
|
exports.LABEL_PATTERNS = LABEL_PATTERNS;
|
|
4318
4326
|
exports.LimitEnforcer = LimitEnforcer;
|
|
4319
4327
|
exports.LimitExceededError = LimitExceededError;
|
|
4328
|
+
exports.MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID = MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID;
|
|
4329
|
+
exports.MAINNET_A2A_ESCROW_PACKAGE_ID = MAINNET_A2A_ESCROW_PACKAGE_ID;
|
|
4320
4330
|
exports.MAX_DELIVER_HORIZON_MS = MAX_DELIVER_HORIZON_MS;
|
|
4321
4331
|
exports.MAX_JOB_USDC = MAX_JOB_USDC;
|
|
4322
4332
|
exports.MAX_OPEN_WINDOW_MS = MAX_OPEN_WINDOW_MS;
|
|
@@ -4453,6 +4463,7 @@ exports.selectAndSplitCoin = selectAndSplitCoin;
|
|
|
4453
4463
|
exports.selectSuiCoin = selectSuiCoin;
|
|
4454
4464
|
exports.serializeCetusRoute = serializeCetusRoute;
|
|
4455
4465
|
exports.setLimits = setLimits;
|
|
4466
|
+
exports.setSponsoredTxGuard = setSponsoredTxGuard;
|
|
4456
4467
|
exports.simulateTransaction = simulateTransaction;
|
|
4457
4468
|
exports.stableToRaw = stableToRaw;
|
|
4458
4469
|
exports.suiToMist = suiToMist;
|