@t2000/sdk 10.27.2 → 10.29.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 +55 -50
- 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 +55 -52
- package/dist/browser.js.map +1 -1
- package/dist/{commerce-DR_F-Eg6.d.cts → commerce-B6_F6JYi.d.cts} +56 -23
- package/dist/{commerce-DR_F-Eg6.d.ts → commerce-B6_F6JYi.d.ts} +56 -23
- package/dist/index.cjs +112 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -15
- package/dist/index.d.ts +23 -15
- package/dist/index.js +109 -49
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, B as BalanceResponse, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, h as DEFAULT_NETWORK, i as DepositInfo, E as ETH_TYPE, j as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, k as Job, l as JobState, m as JobTerms, n as JobVerification, K as KNOWN_TARGETS, o as KeypairSigner, L as LABEL_PATTERNS, p as LOFI_TYPE, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, u as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, v as PREFLIGHT_OK, w as PayOptions, x as PayResult, y as PreflightResult, S as STABLE_ASSETS, z as SUI_DECIMALS, F as SUI_TYPE, H as SUPPORTED_ASSETS, Q as
|
|
1
|
+
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, B as BalanceResponse, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, h as DEFAULT_NETWORK, i as DepositInfo, E as ETH_TYPE, j as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, k as Job, l as JobState, m as JobTerms, n as JobVerification, K as KNOWN_TARGETS, o as KeypairSigner, L as LABEL_PATTERNS, p as LOFI_TYPE, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, u as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, v as PREFLIGHT_OK, w as PayOptions, x as PayResult, y as PreflightResult, S as STABLE_ASSETS, z as SUI_DECIMALS, F as SUI_TYPE, H as SUPPORTED_ASSETS, Q as SendAssetClass, R as SendResult, T as ServiceListing, U as SimulationResult, V as StableAsset, W as SuiHolding, X as SuiRpcTxBlock, Y as SupportedAsset, Z as SwapRouteResult, _ as T2000Error, $ as T2000ErrorCode, a0 as T2000ErrorData, a1 as T2000_OVERLAY_FEE_WALLET, a2 as TOKEN_MAP, a3 as TransactionLeg, a4 as TransactionRecord, a5 as TransactionSigner, a6 as TxDirection, a7 as USDC_DECIMALS, a8 as USDC_TYPE, a9 as USDE_TYPE, aa as USDSUI_TYPE, ab as USDT_TYPE, ac as WAL_TYPE, ad as WBTC_TYPE, ae as X402ActivityPayload, af as ZkLoginProof, ag as ZkLoginSigner, ah as buildCreateJobTx, ai as buildDeliverJobTx, aj as buildRefundJobTx, ak as buildRejectJobTx, al as buildReleaseJobTx, am as buildSendTx, an as buildSwapTx, ao as checkPositiveAmount, ap as checkSuiAddress, aq as classifyAction, ar as classifyLabel, as as classifySendAsset, at as classifyTransaction, au as executeTx, av as extractAllUserLegs, aw as extractTransferDetails, ax as extractTxCommands, ay as extractTxSender, az as fallbackLabel, aA as fetchService, aB as findSwapRoute, aC as formatAssetAmount, aD as formatSui, aE as formatUsd, aF as getDecimals, aG as getDecimalsForCoinType, aH as getJob, aI as getJobSpec, aJ as invalidSendAssetMessage, aK as jobActionsFor, aL as listServices, aM as mapMoveAbortCode, aN as mapWalletError, aO as mistToSui, aP as parseSuiRpcTx, aQ as payWithX402, aR as preflightCreateJob, aS as preflightFail, aT as preflightPay, aU as preflightSend, aV as preflightSwap, aW as putJobSpec, aX as rawToStable, aY as rawToUsdc, aZ as refineLendingLabel, a_ as reportX402Activity, a$ as resolveSymbol, b0 as resolveTokenType, b1 as stableToRaw, b2 as suiToMist, b3 as truncateAddress, b4 as usdcToRaw, b5 as validateAddress, b6 as verifyJobForSeller } from './commerce-B6_F6JYi.cjs';
|
|
2
2
|
import '@mysten/sui/keypairs/ed25519';
|
|
3
3
|
import '@mysten/sui/grpc';
|
|
4
4
|
import '@mysten/sui/client';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, B as BalanceResponse, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, h as DEFAULT_NETWORK, i as DepositInfo, E as ETH_TYPE, j as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, k as Job, l as JobState, m as JobTerms, n as JobVerification, K as KNOWN_TARGETS, o as KeypairSigner, L as LABEL_PATTERNS, p as LOFI_TYPE, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, u as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, v as PREFLIGHT_OK, w as PayOptions, x as PayResult, y as PreflightResult, S as STABLE_ASSETS, z as SUI_DECIMALS, F as SUI_TYPE, H as SUPPORTED_ASSETS, Q as
|
|
1
|
+
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, B as BalanceResponse, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, h as DEFAULT_NETWORK, i as DepositInfo, E as ETH_TYPE, j as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, k as Job, l as JobState, m as JobTerms, n as JobVerification, K as KNOWN_TARGETS, o as KeypairSigner, L as LABEL_PATTERNS, p as LOFI_TYPE, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, u as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, v as PREFLIGHT_OK, w as PayOptions, x as PayResult, y as PreflightResult, S as STABLE_ASSETS, z as SUI_DECIMALS, F as SUI_TYPE, H as SUPPORTED_ASSETS, Q as SendAssetClass, R as SendResult, T as ServiceListing, U as SimulationResult, V as StableAsset, W as SuiHolding, X as SuiRpcTxBlock, Y as SupportedAsset, Z as SwapRouteResult, _ as T2000Error, $ as T2000ErrorCode, a0 as T2000ErrorData, a1 as T2000_OVERLAY_FEE_WALLET, a2 as TOKEN_MAP, a3 as TransactionLeg, a4 as TransactionRecord, a5 as TransactionSigner, a6 as TxDirection, a7 as USDC_DECIMALS, a8 as USDC_TYPE, a9 as USDE_TYPE, aa as USDSUI_TYPE, ab as USDT_TYPE, ac as WAL_TYPE, ad as WBTC_TYPE, ae as X402ActivityPayload, af as ZkLoginProof, ag as ZkLoginSigner, ah as buildCreateJobTx, ai as buildDeliverJobTx, aj as buildRefundJobTx, ak as buildRejectJobTx, al as buildReleaseJobTx, am as buildSendTx, an as buildSwapTx, ao as checkPositiveAmount, ap as checkSuiAddress, aq as classifyAction, ar as classifyLabel, as as classifySendAsset, at as classifyTransaction, au as executeTx, av as extractAllUserLegs, aw as extractTransferDetails, ax as extractTxCommands, ay as extractTxSender, az as fallbackLabel, aA as fetchService, aB as findSwapRoute, aC as formatAssetAmount, aD as formatSui, aE as formatUsd, aF as getDecimals, aG as getDecimalsForCoinType, aH as getJob, aI as getJobSpec, aJ as invalidSendAssetMessage, aK as jobActionsFor, aL as listServices, aM as mapMoveAbortCode, aN as mapWalletError, aO as mistToSui, aP as parseSuiRpcTx, aQ as payWithX402, aR as preflightCreateJob, aS as preflightFail, aT as preflightPay, aU as preflightSend, aV as preflightSwap, aW as putJobSpec, aX as rawToStable, aY as rawToUsdc, aZ as refineLendingLabel, a_ as reportX402Activity, a$ as resolveSymbol, b0 as resolveTokenType, b1 as stableToRaw, b2 as suiToMist, b3 as truncateAddress, b4 as usdcToRaw, b5 as validateAddress, b6 as verifyJobForSeller } from './commerce-B6_F6JYi.js';
|
|
2
2
|
import '@mysten/sui/keypairs/ed25519';
|
|
3
3
|
import '@mysten/sui/grpc';
|
|
4
4
|
import '@mysten/sui/client';
|
package/dist/browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { coinWithBalance, Transaction } from '@mysten/sui/transactions';
|
|
2
|
-
import { isValidSuiAddress, normalizeSuiAddress, fromBase64 } from '@mysten/sui/utils';
|
|
2
|
+
import { isValidSuiAddress, normalizeSuiAddress, fromBase64, normalizeStructTag } from '@mysten/sui/utils';
|
|
3
3
|
import '@mysten/sui/grpc';
|
|
4
4
|
import '@mysten/sui/graphql';
|
|
5
5
|
import { AggregatorClient, Env } from '@cetusprotocol/aggregator-sdk';
|
|
@@ -855,28 +855,6 @@ var SUPPORTED_ASSETS = {
|
|
|
855
855
|
}
|
|
856
856
|
};
|
|
857
857
|
var STABLE_ASSETS = ["USDC", "USDsui"];
|
|
858
|
-
var OPERATION_ASSETS = {
|
|
859
|
-
send: ["USDC", "USDsui", "SUI"],
|
|
860
|
-
swap: "*"
|
|
861
|
-
};
|
|
862
|
-
function isAllowedAsset(op, asset) {
|
|
863
|
-
const allowed = OPERATION_ASSETS[op];
|
|
864
|
-
if (allowed === "*") return true;
|
|
865
|
-
const target = asset.toLowerCase();
|
|
866
|
-
return allowed.some((a) => a.toLowerCase() === target);
|
|
867
|
-
}
|
|
868
|
-
function assertAllowedAsset(op, asset) {
|
|
869
|
-
if (!asset) return;
|
|
870
|
-
if (!isAllowedAsset(op, asset)) {
|
|
871
|
-
const allowed = OPERATION_ASSETS[op];
|
|
872
|
-
const list = Array.isArray(allowed) ? allowed.join(", ") : "any";
|
|
873
|
-
const swapHint = " Swap to USDC or USDsui first, or send SUI." ;
|
|
874
|
-
throw new T2000Error(
|
|
875
|
-
"INVALID_ASSET",
|
|
876
|
-
`${op} only supports ${list}. Cannot use ${asset}.${swapHint}`
|
|
877
|
-
);
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
858
|
var GASLESS_STABLE_TYPES = {
|
|
881
859
|
USDC: SUPPORTED_ASSETS.USDC.type,
|
|
882
860
|
USDsui: SUPPORTED_ASSETS.USDsui.type
|
|
@@ -1247,18 +1225,41 @@ async function buildSwapTx(params) {
|
|
|
1247
1225
|
return outputCoin;
|
|
1248
1226
|
}
|
|
1249
1227
|
init_errors();
|
|
1250
|
-
|
|
1228
|
+
init_token_registry();
|
|
1229
|
+
function classifySendAsset(asset) {
|
|
1230
|
+
const coinType = resolveTokenType(asset.trim());
|
|
1231
|
+
if (!coinType) return null;
|
|
1232
|
+
let normalized;
|
|
1251
1233
|
try {
|
|
1252
|
-
|
|
1253
|
-
} catch
|
|
1254
|
-
return
|
|
1234
|
+
normalized = normalizeStructTag(coinType);
|
|
1235
|
+
} catch {
|
|
1236
|
+
return null;
|
|
1237
|
+
}
|
|
1238
|
+
if (normalized === normalizeStructTag(GASLESS_STABLE_TYPES.USDC)) {
|
|
1239
|
+
return { kind: "gasless-stable", symbol: "USDC", coinType: GASLESS_STABLE_TYPES.USDC };
|
|
1240
|
+
}
|
|
1241
|
+
if (normalized === normalizeStructTag(GASLESS_STABLE_TYPES.USDsui)) {
|
|
1242
|
+
return { kind: "gasless-stable", symbol: "USDsui", coinType: GASLESS_STABLE_TYPES.USDsui };
|
|
1243
|
+
}
|
|
1244
|
+
if (normalized === normalizeStructTag(SUI_TYPE)) {
|
|
1245
|
+
return { kind: "sui", symbol: "SUI", coinType: SUI_TYPE };
|
|
1246
|
+
}
|
|
1247
|
+
return { kind: "coin", symbol: resolveSymbol(coinType), coinType };
|
|
1248
|
+
}
|
|
1249
|
+
function invalidSendAssetMessage(asset) {
|
|
1250
|
+
return `Unknown asset "${asset}". Use a registry symbol (USDC, USDsui, SUI, MANIFEST, \u2026) or a full coin type (0x\u2026::module::TYPE).`;
|
|
1251
|
+
}
|
|
1252
|
+
function preflightSend(input) {
|
|
1253
|
+
const cls = classifySendAsset(input.asset);
|
|
1254
|
+
if (!cls) {
|
|
1255
|
+
return preflightFail("INVALID_ASSET", invalidSendAssetMessage(input.asset));
|
|
1255
1256
|
}
|
|
1256
1257
|
const amountCheck = checkPositiveAmount(input.amount);
|
|
1257
1258
|
if (!amountCheck.valid) return amountCheck;
|
|
1258
|
-
if (
|
|
1259
|
+
if (cls.kind === "gasless-stable" && input.amount < GASLESS_MIN_STABLE_AMOUNT) {
|
|
1259
1260
|
return preflightFail(
|
|
1260
1261
|
"INVALID_AMOUNT",
|
|
1261
|
-
`Minimum gasless transfer is ${GASLESS_MIN_STABLE_AMOUNT} ${
|
|
1262
|
+
`Minimum gasless transfer is ${GASLESS_MIN_STABLE_AMOUNT} ${cls.symbol}. Got ${input.amount}.`
|
|
1262
1263
|
);
|
|
1263
1264
|
}
|
|
1264
1265
|
const addressCheck = checkSuiAddress(input.to);
|
|
@@ -1275,42 +1276,44 @@ async function buildSendTx({
|
|
|
1275
1276
|
const pf = preflightSend({ to, amount, asset });
|
|
1276
1277
|
if (!pf.valid) throw new T2000Error(pf.code, pf.error);
|
|
1277
1278
|
const recipient = validateAddress(to);
|
|
1278
|
-
const
|
|
1279
|
-
|
|
1280
|
-
const rawAmount = displayToRaw(amount,
|
|
1279
|
+
const cls = classifySendAsset(asset);
|
|
1280
|
+
const decimals = cls.kind === "gasless-stable" || cls.kind === "sui" ? SUPPORTED_ASSETS[cls.symbol].decimals : await resolveCoinDecimals(client, cls.coinType);
|
|
1281
|
+
const rawAmount = displayToRaw(amount, decimals);
|
|
1281
1282
|
const tx = new Transaction();
|
|
1282
1283
|
tx.setSender(address);
|
|
1283
|
-
const balanceResp = await client.core.getBalance({ owner: address, coinType:
|
|
1284
|
+
const balanceResp = await client.core.getBalance({ owner: address, coinType: cls.coinType });
|
|
1284
1285
|
const totalBalance = BigInt(balanceResp.balance.balance);
|
|
1285
1286
|
if (totalBalance < rawAmount) {
|
|
1286
|
-
throw new T2000Error("INSUFFICIENT_BALANCE", `Insufficient ${
|
|
1287
|
-
available: Number(totalBalance) / 10 **
|
|
1287
|
+
throw new T2000Error("INSUFFICIENT_BALANCE", `Insufficient ${cls.symbol} balance`, {
|
|
1288
|
+
available: Number(totalBalance) / 10 ** decimals,
|
|
1288
1289
|
required: amount
|
|
1289
1290
|
});
|
|
1290
1291
|
}
|
|
1291
|
-
if (
|
|
1292
|
-
const rawFloor = displayToRaw(GASLESS_MIN_STABLE_AMOUNT, assetInfo.decimals);
|
|
1293
|
-
const remainder = totalBalance - rawAmount;
|
|
1294
|
-
if (remainder > 0n && remainder < rawFloor) {
|
|
1295
|
-
const total = Number(totalBalance) / 10 ** assetInfo.decimals;
|
|
1296
|
-
throw new T2000Error(
|
|
1297
|
-
"INVALID_AMOUNT",
|
|
1298
|
-
`Gasless ${asset} transfers must send the entire balance or leave at least ${GASLESS_MIN_STABLE_AMOUNT} ${asset}. Sending ${amount} of ${total} leaves ${(total - amount).toFixed(assetInfo.decimals)}. Send ${total} (everything) or at most ${(total - GASLESS_MIN_STABLE_AMOUNT).toFixed(assetInfo.decimals)}.`,
|
|
1299
|
-
{ available: total, required: amount }
|
|
1300
|
-
);
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
if (asset === "SUI") {
|
|
1292
|
+
if (cls.kind === "sui") {
|
|
1304
1293
|
const [sendCoin] = tx.splitCoins(tx.gas, [rawAmount]);
|
|
1305
1294
|
tx.transferObjects([sendCoin], recipient);
|
|
1306
1295
|
return tx;
|
|
1307
1296
|
}
|
|
1308
|
-
|
|
1297
|
+
if (cls.kind === "coin") {
|
|
1298
|
+
const sendCoin = coinWithBalance({ type: cls.coinType, balance: rawAmount })(tx);
|
|
1299
|
+
tx.transferObjects([sendCoin], recipient);
|
|
1300
|
+
return tx;
|
|
1301
|
+
}
|
|
1302
|
+
const rawFloor = displayToRaw(GASLESS_MIN_STABLE_AMOUNT, decimals);
|
|
1303
|
+
const remainder = totalBalance - rawAmount;
|
|
1304
|
+
if (remainder > 0n && remainder < rawFloor) {
|
|
1305
|
+
const total = Number(totalBalance) / 10 ** decimals;
|
|
1306
|
+
throw new T2000Error(
|
|
1307
|
+
"INVALID_AMOUNT",
|
|
1308
|
+
`Gasless ${cls.symbol} transfers must send the entire balance or leave at least ${GASLESS_MIN_STABLE_AMOUNT} ${cls.symbol}. Sending ${amount} of ${total} leaves ${(total - amount).toFixed(decimals)}. Send ${total} (everything) or at most ${(total - GASLESS_MIN_STABLE_AMOUNT).toFixed(decimals)}.`,
|
|
1309
|
+
{ available: total, required: amount }
|
|
1310
|
+
);
|
|
1311
|
+
}
|
|
1309
1312
|
tx.moveCall({
|
|
1310
1313
|
target: "0x2::balance::send_funds",
|
|
1311
|
-
typeArguments: [coinType],
|
|
1314
|
+
typeArguments: [cls.coinType],
|
|
1312
1315
|
arguments: [
|
|
1313
|
-
tx.balance({ type: coinType, balance: rawAmount }),
|
|
1316
|
+
tx.balance({ type: cls.coinType, balance: rawAmount }),
|
|
1314
1317
|
tx.pure.address(recipient)
|
|
1315
1318
|
]
|
|
1316
1319
|
});
|
|
@@ -1625,6 +1628,6 @@ async function getJobSpec(base, hash) {
|
|
|
1625
1628
|
// src/browser.ts
|
|
1626
1629
|
init_token_registry();
|
|
1627
1630
|
|
|
1628
|
-
export { A2A_ESCROW_FEE_CONFIG_ID, A2A_ESCROW_PACKAGE_ID, CLOCK_ID, COIN_REGISTRY, DEFAULT_ACTIVITY_REPORT_URL, DEFAULT_COMMERCE_API_BASE, DEFAULT_NETWORK, ETH_TYPE, GAS_RESERVE_MIN, IKA_TYPE, JOB_STATES, KNOWN_TARGETS, KeypairSigner, LABEL_PATTERNS, LOFI_TYPE, MANIFEST_TYPE, MAX_DELIVER_HORIZON_MS, MAX_JOB_USDC, MAX_REVIEW_WINDOW_MS, MIST_PER_SUI, NAVX_TYPE, OVERLAY_FEE_RATE, PREFLIGHT_MAX_AMOUNT, PREFLIGHT_OK, STABLE_ASSETS, SUI_DECIMALS, SUI_TYPE, SUPPORTED_ASSETS, T2000Error, T2000_OVERLAY_FEE_WALLET, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, WAL_TYPE, WBTC_TYPE, ZkLoginSigner, buildCreateJobTx, buildDeliverJobTx, buildRefundJobTx, buildRejectJobTx, buildReleaseJobTx, buildSendTx, buildSwapTx, checkPositiveAmount, checkSuiAddress, classifyAction, classifyLabel, classifyTransaction, executeTx, extractAllUserLegs, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchService, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fromBase642 as fromBase64, getDecimals, getDecimalsForCoinType, getJob, getJobSpec, jobActionsFor, listServices, mapMoveAbortCode, mapWalletError, mistToSui, parseSuiRpcTx, payWithX402, preflightCreateJob, preflightFail, preflightPay, preflightSend, preflightSwap, putJobSpec, rawToStable, rawToUsdc, refineLendingLabel, reportX402Activity, resolveSymbol, resolveTokenType, stableToRaw, suiToMist, toBase64, truncateAddress, usdcToRaw, validateAddress, verifyJobForSeller };
|
|
1631
|
+
export { A2A_ESCROW_FEE_CONFIG_ID, A2A_ESCROW_PACKAGE_ID, CLOCK_ID, COIN_REGISTRY, DEFAULT_ACTIVITY_REPORT_URL, DEFAULT_COMMERCE_API_BASE, DEFAULT_NETWORK, ETH_TYPE, GAS_RESERVE_MIN, IKA_TYPE, JOB_STATES, KNOWN_TARGETS, KeypairSigner, LABEL_PATTERNS, LOFI_TYPE, MANIFEST_TYPE, MAX_DELIVER_HORIZON_MS, MAX_JOB_USDC, MAX_REVIEW_WINDOW_MS, MIST_PER_SUI, NAVX_TYPE, OVERLAY_FEE_RATE, PREFLIGHT_MAX_AMOUNT, PREFLIGHT_OK, STABLE_ASSETS, SUI_DECIMALS, SUI_TYPE, SUPPORTED_ASSETS, T2000Error, T2000_OVERLAY_FEE_WALLET, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, WAL_TYPE, WBTC_TYPE, ZkLoginSigner, buildCreateJobTx, buildDeliverJobTx, buildRefundJobTx, buildRejectJobTx, buildReleaseJobTx, buildSendTx, buildSwapTx, checkPositiveAmount, checkSuiAddress, classifyAction, classifyLabel, classifySendAsset, classifyTransaction, executeTx, extractAllUserLegs, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchService, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fromBase642 as fromBase64, getDecimals, getDecimalsForCoinType, getJob, getJobSpec, invalidSendAssetMessage, jobActionsFor, listServices, mapMoveAbortCode, mapWalletError, mistToSui, parseSuiRpcTx, payWithX402, preflightCreateJob, preflightFail, preflightPay, preflightSend, preflightSwap, putJobSpec, rawToStable, rawToUsdc, refineLendingLabel, reportX402Activity, resolveSymbol, resolveTokenType, stableToRaw, suiToMist, toBase64, truncateAddress, usdcToRaw, validateAddress, verifyJobForSeller };
|
|
1629
1632
|
//# sourceMappingURL=browser.js.map
|
|
1630
1633
|
//# sourceMappingURL=browser.js.map
|