@t2000/sdk 9.5.0 → 9.7.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 +221 -0
- 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 +210 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +224 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +213 -1
- package/dist/index.js.map +1 -1
- package/dist/{send-DEK6aOGe.d.cts → job-CSq0DRsC.d.cts} +121 -2
- package/dist/{send-DEK6aOGe.d.ts → job-CSq0DRsC.d.ts} +121 -2
- package/package.json +1 -1
package/dist/browser.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BalanceResponse, C as CLOCK_ID, a as COIN_REGISTRY, b as ClassifyBalanceChange, c as ClassifyResult, d as CoinMeta, D as DEFAULT_NETWORK, e as DepositInfo, E as ETH_TYPE, f as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, K as KNOWN_TARGETS,
|
|
1
|
+
export { A as A2A_ESCROW_PACKAGE_ID, B as BalanceResponse, C as CLOCK_ID, a as COIN_REGISTRY, b as ClassifyBalanceChange, c as ClassifyResult, d as CoinMeta, D as DEFAULT_NETWORK, e as DepositInfo, E as ETH_TYPE, f as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, g as Job, h as JobState, i as JobTerms, j as JobVerification, K as KNOWN_TARGETS, k as KeypairSigner, L as LABEL_PATTERNS, l as LOFI_TYPE, M as MANIFEST_TYPE, m as MAX_JOB_USDC, n as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, o as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, p as PREFLIGHT_OK, q as PayOptions, r as PayResult, s as PreflightResult, S as STABLE_ASSETS, t as SUI_DECIMALS, u as SUI_TYPE, v as SUPPORTED_ASSETS, w as SendResult, x as SimulationResult, y as StableAsset, z as SuiHolding, F as SuiRpcTxBlock, H as SupportedAsset, Q as SwapRouteResult, T as T2000Error, R as T2000ErrorCode, U as T2000ErrorData, V as T2000_OVERLAY_FEE_WALLET, W as TOKEN_MAP, X as TransactionLeg, Y as TransactionRecord, Z as TransactionSigner, _ as TxDirection, $ as USDC_DECIMALS, a0 as USDC_TYPE, a1 as USDE_TYPE, a2 as USDSUI_TYPE, a3 as USDT_TYPE, a4 as WAL_TYPE, a5 as WBTC_TYPE, a6 as ZkLoginProof, a7 as ZkLoginSigner, a8 as buildCreateJobTx, a9 as buildDeliverJobTx, aa as buildRefundJobTx, ab as buildRejectJobTx, ac as buildReleaseJobTx, ad as buildSendTx, ae as buildSwapTx, af as checkPositiveAmount, ag as checkSuiAddress, ah as classifyAction, ai as classifyLabel, aj as classifyTransaction, ak as executeTx, al as extractAllUserLegs, am as extractTransferDetails, an as extractTxCommands, ao as extractTxSender, ap as fallbackLabel, aq as findSwapRoute, ar as formatAssetAmount, as as formatSui, at as formatUsd, au as getDecimals, av as getDecimalsForCoinType, aw as getJob, ax as jobActionsFor, ay as mapMoveAbortCode, az as mapWalletError, aA as mistToSui, aB as parseMppSuiChallenge, aC as parseSuiRpcTx, aD as payWithMpp, aE as preflightCreateJob, aF as preflightFail, aG as preflightPay, aH as preflightSend, aI as preflightSwap, aJ as rawToStable, aK as rawToUsdc, aL as refineLendingLabel, aM as resolveSymbol, aN as resolveTokenType, aO as stableToRaw, aP as suiToMist, aQ as truncateAddress, aR as usdcToRaw, aS as validateAddress, aT as verifyJobForSeller } from './job-CSq0DRsC.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 { B as BalanceResponse, C as CLOCK_ID, a as COIN_REGISTRY, b as ClassifyBalanceChange, c as ClassifyResult, d as CoinMeta, D as DEFAULT_NETWORK, e as DepositInfo, E as ETH_TYPE, f as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, K as KNOWN_TARGETS,
|
|
1
|
+
export { A as A2A_ESCROW_PACKAGE_ID, B as BalanceResponse, C as CLOCK_ID, a as COIN_REGISTRY, b as ClassifyBalanceChange, c as ClassifyResult, d as CoinMeta, D as DEFAULT_NETWORK, e as DepositInfo, E as ETH_TYPE, f as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, g as Job, h as JobState, i as JobTerms, j as JobVerification, K as KNOWN_TARGETS, k as KeypairSigner, L as LABEL_PATTERNS, l as LOFI_TYPE, M as MANIFEST_TYPE, m as MAX_JOB_USDC, n as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, o as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, p as PREFLIGHT_OK, q as PayOptions, r as PayResult, s as PreflightResult, S as STABLE_ASSETS, t as SUI_DECIMALS, u as SUI_TYPE, v as SUPPORTED_ASSETS, w as SendResult, x as SimulationResult, y as StableAsset, z as SuiHolding, F as SuiRpcTxBlock, H as SupportedAsset, Q as SwapRouteResult, T as T2000Error, R as T2000ErrorCode, U as T2000ErrorData, V as T2000_OVERLAY_FEE_WALLET, W as TOKEN_MAP, X as TransactionLeg, Y as TransactionRecord, Z as TransactionSigner, _ as TxDirection, $ as USDC_DECIMALS, a0 as USDC_TYPE, a1 as USDE_TYPE, a2 as USDSUI_TYPE, a3 as USDT_TYPE, a4 as WAL_TYPE, a5 as WBTC_TYPE, a6 as ZkLoginProof, a7 as ZkLoginSigner, a8 as buildCreateJobTx, a9 as buildDeliverJobTx, aa as buildRefundJobTx, ab as buildRejectJobTx, ac as buildReleaseJobTx, ad as buildSendTx, ae as buildSwapTx, af as checkPositiveAmount, ag as checkSuiAddress, ah as classifyAction, ai as classifyLabel, aj as classifyTransaction, ak as executeTx, al as extractAllUserLegs, am as extractTransferDetails, an as extractTxCommands, ao as extractTxSender, ap as fallbackLabel, aq as findSwapRoute, ar as formatAssetAmount, as as formatSui, at as formatUsd, au as getDecimals, av as getDecimalsForCoinType, aw as getJob, ax as jobActionsFor, ay as mapMoveAbortCode, az as mapWalletError, aA as mistToSui, aB as parseMppSuiChallenge, aC as parseSuiRpcTx, aD as payWithMpp, aE as preflightCreateJob, aF as preflightFail, aG as preflightPay, aH as preflightSend, aI as preflightSwap, aJ as rawToStable, aK as rawToUsdc, aL as refineLendingLabel, aM as resolveSymbol, aN as resolveTokenType, aO as stableToRaw, aP as suiToMist, aQ as truncateAddress, aR as usdcToRaw, aS as validateAddress, aT as verifyJobForSeller } from './job-CSq0DRsC.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
|
@@ -388,6 +388,7 @@ var KeypairSigner = class {
|
|
|
388
388
|
constructor(keypair) {
|
|
389
389
|
this.keypair = keypair;
|
|
390
390
|
}
|
|
391
|
+
kind = "keypair";
|
|
391
392
|
getAddress() {
|
|
392
393
|
return this.keypair.getPublicKey().toSuiAddress();
|
|
393
394
|
}
|
|
@@ -411,6 +412,7 @@ var ZkLoginSigner = class {
|
|
|
411
412
|
this.userAddress = userAddress;
|
|
412
413
|
this.maxEpoch = maxEpoch;
|
|
413
414
|
}
|
|
415
|
+
kind = "zklogin";
|
|
414
416
|
getAddress() {
|
|
415
417
|
return this.userAddress;
|
|
416
418
|
}
|
|
@@ -558,6 +560,13 @@ async function payWithMpp(args) {
|
|
|
558
560
|
}
|
|
559
561
|
const headerChallenge = await parseMppSuiChallenge(probe);
|
|
560
562
|
if (headerChallenge) {
|
|
563
|
+
if (signer.kind === "zklogin") {
|
|
564
|
+
throw new T2000Error(
|
|
565
|
+
"DIALECT_UNSUPPORTED",
|
|
566
|
+
"This seller only offers the MPP header dialect, which zkLogin (Passport) wallets cannot safely pay: the seller cannot verify zkLogin signatures, so the payment would settle on-chain without the service delivering. No payment was made. Use an x402-capable service, or pay from a keypair wallet (t2 CLI / MCP).",
|
|
567
|
+
{ dialect: "mpp-header", signerKind: "zklogin" }
|
|
568
|
+
);
|
|
569
|
+
}
|
|
561
570
|
const result = await payViaMppHeader({ signer, client, options });
|
|
562
571
|
await reportDirectPayment(result, options.url);
|
|
563
572
|
return result;
|
|
@@ -1303,9 +1312,209 @@ async function buildSendTx({
|
|
|
1303
1312
|
return tx;
|
|
1304
1313
|
}
|
|
1305
1314
|
|
|
1315
|
+
// src/wallet/job.ts
|
|
1316
|
+
init_errors();
|
|
1317
|
+
init_token_registry();
|
|
1318
|
+
init_coinSelection();
|
|
1319
|
+
var A2A_ESCROW_PACKAGE_ID = process.env.A2A_ESCROW_PACKAGE_ID ?? "0x9e67c380fb7079d793d6d15ff916b24d82779d7119bfa4631863102ed485c0a0";
|
|
1320
|
+
var CLOCK_ID2 = "0x6";
|
|
1321
|
+
var MODULE = "escrow";
|
|
1322
|
+
var MAX_JOB_USDC = 50;
|
|
1323
|
+
var JOB_STATES = [
|
|
1324
|
+
"funded",
|
|
1325
|
+
"delivered",
|
|
1326
|
+
"released",
|
|
1327
|
+
"refunded",
|
|
1328
|
+
"rejected"
|
|
1329
|
+
];
|
|
1330
|
+
function hexToBytes(hex) {
|
|
1331
|
+
const clean = hex.startsWith("0x") ? hex.slice(2) : hex;
|
|
1332
|
+
if (clean.length === 0 || clean.length % 2 !== 0 || /[^0-9a-fA-F]/.test(clean)) {
|
|
1333
|
+
throw new T2000Error(
|
|
1334
|
+
"INVALID_AMOUNT",
|
|
1335
|
+
`Expected a hex hash (0x\u2026), got "${hex.slice(0, 32)}"`
|
|
1336
|
+
);
|
|
1337
|
+
}
|
|
1338
|
+
const out = [];
|
|
1339
|
+
for (let i = 0; i < clean.length; i += 2) {
|
|
1340
|
+
out.push(Number.parseInt(clean.slice(i, i + 2), 16));
|
|
1341
|
+
}
|
|
1342
|
+
return out;
|
|
1343
|
+
}
|
|
1344
|
+
function bytesToHex(bytes) {
|
|
1345
|
+
let s = "0x";
|
|
1346
|
+
for (const b of bytes) s += b.toString(16).padStart(2, "0");
|
|
1347
|
+
return s;
|
|
1348
|
+
}
|
|
1349
|
+
function preflightCreateJob(terms) {
|
|
1350
|
+
const addressCheck = checkSuiAddress(terms.seller);
|
|
1351
|
+
if (!addressCheck.valid) return addressCheck;
|
|
1352
|
+
if (!Number.isFinite(terms.amountUsdc) || terms.amountUsdc <= 0) {
|
|
1353
|
+
return preflightFail("INVALID_AMOUNT", `Amount must be positive. Got ${terms.amountUsdc}.`);
|
|
1354
|
+
}
|
|
1355
|
+
if (terms.amountUsdc > MAX_JOB_USDC) {
|
|
1356
|
+
return preflightFail(
|
|
1357
|
+
"INVALID_AMOUNT",
|
|
1358
|
+
`v1 caps escrow jobs at ${MAX_JOB_USDC} USDC (no-arbitration split only stays fair at small sizes). Got ${terms.amountUsdc}.`
|
|
1359
|
+
);
|
|
1360
|
+
}
|
|
1361
|
+
if (terms.deliverByMs <= Date.now()) {
|
|
1362
|
+
return preflightFail("INVALID_AMOUNT", "deliverByMs must be in the future.");
|
|
1363
|
+
}
|
|
1364
|
+
if (terms.reviewWindowMs < 0) {
|
|
1365
|
+
return preflightFail("INVALID_AMOUNT", "reviewWindowMs must be \u2265 0.");
|
|
1366
|
+
}
|
|
1367
|
+
if (!Number.isInteger(terms.rejectSplitBps) || terms.rejectSplitBps < 0 || terms.rejectSplitBps > 1e4) {
|
|
1368
|
+
return preflightFail("INVALID_AMOUNT", "rejectSplitBps must be an integer 0\u201310000.");
|
|
1369
|
+
}
|
|
1370
|
+
try {
|
|
1371
|
+
hexToBytes(terms.specHash);
|
|
1372
|
+
} catch (e) {
|
|
1373
|
+
return preflightFail("INVALID_AMOUNT", e.message);
|
|
1374
|
+
}
|
|
1375
|
+
return PREFLIGHT_OK;
|
|
1376
|
+
}
|
|
1377
|
+
async function buildCreateJobTx({
|
|
1378
|
+
client,
|
|
1379
|
+
buyer,
|
|
1380
|
+
terms
|
|
1381
|
+
}) {
|
|
1382
|
+
const pf = preflightCreateJob(terms);
|
|
1383
|
+
if (!pf.valid) throw new T2000Error(pf.code, pf.error);
|
|
1384
|
+
const seller = validateAddress(terms.seller);
|
|
1385
|
+
if (seller === validateAddress(buyer)) {
|
|
1386
|
+
throw new T2000Error("INVALID_ADDRESS", "Buyer and seller must be different wallets.");
|
|
1387
|
+
}
|
|
1388
|
+
const rawAmount = BigInt(Math.floor(terms.amountUsdc * 10 ** USDC_DECIMALS));
|
|
1389
|
+
const tx = new Transaction();
|
|
1390
|
+
const { coin } = await selectAndSplitCoin(tx, client, buyer, USDC_TYPE, rawAmount, {
|
|
1391
|
+
allowSwapAll: false
|
|
1392
|
+
});
|
|
1393
|
+
tx.moveCall({
|
|
1394
|
+
target: `${A2A_ESCROW_PACKAGE_ID}::${MODULE}::create`,
|
|
1395
|
+
typeArguments: [USDC_TYPE],
|
|
1396
|
+
arguments: [
|
|
1397
|
+
tx.pure.address(seller),
|
|
1398
|
+
coin,
|
|
1399
|
+
tx.pure.vector("u8", hexToBytes(terms.specHash)),
|
|
1400
|
+
tx.pure.u64(terms.deliverByMs),
|
|
1401
|
+
tx.pure.u64(terms.reviewWindowMs),
|
|
1402
|
+
tx.pure.u64(terms.rejectSplitBps),
|
|
1403
|
+
tx.object(CLOCK_ID2)
|
|
1404
|
+
]
|
|
1405
|
+
});
|
|
1406
|
+
return tx;
|
|
1407
|
+
}
|
|
1408
|
+
function jobCall(jobId, fn) {
|
|
1409
|
+
const tx = new Transaction();
|
|
1410
|
+
tx.moveCall({
|
|
1411
|
+
target: `${A2A_ESCROW_PACKAGE_ID}::${MODULE}::${fn}`,
|
|
1412
|
+
typeArguments: [USDC_TYPE],
|
|
1413
|
+
arguments: [tx.object(jobId), tx.object(CLOCK_ID2)]
|
|
1414
|
+
});
|
|
1415
|
+
return tx;
|
|
1416
|
+
}
|
|
1417
|
+
function buildDeliverJobTx(jobId, deliveryHash) {
|
|
1418
|
+
const tx = new Transaction();
|
|
1419
|
+
tx.moveCall({
|
|
1420
|
+
target: `${A2A_ESCROW_PACKAGE_ID}::${MODULE}::deliver`,
|
|
1421
|
+
typeArguments: [USDC_TYPE],
|
|
1422
|
+
arguments: [
|
|
1423
|
+
tx.object(jobId),
|
|
1424
|
+
tx.pure.vector("u8", hexToBytes(deliveryHash)),
|
|
1425
|
+
tx.object(CLOCK_ID2)
|
|
1426
|
+
]
|
|
1427
|
+
});
|
|
1428
|
+
return tx;
|
|
1429
|
+
}
|
|
1430
|
+
function buildReleaseJobTx(jobId) {
|
|
1431
|
+
return jobCall(jobId, "release");
|
|
1432
|
+
}
|
|
1433
|
+
function buildRejectJobTx(jobId) {
|
|
1434
|
+
return jobCall(jobId, "reject");
|
|
1435
|
+
}
|
|
1436
|
+
function buildRefundJobTx(jobId) {
|
|
1437
|
+
return jobCall(jobId, "refund");
|
|
1438
|
+
}
|
|
1439
|
+
async function getJob(client, jobId) {
|
|
1440
|
+
const resp = await client.core.getObject({ objectId: jobId, include: { json: true } }).catch((e) => {
|
|
1441
|
+
throw new T2000Error(
|
|
1442
|
+
"RPC_ERROR",
|
|
1443
|
+
`Job ${jobId} not found: ${e instanceof Error ? e.message : String(e)}`
|
|
1444
|
+
);
|
|
1445
|
+
});
|
|
1446
|
+
const objType = resp.object?.type ?? "";
|
|
1447
|
+
const json = resp.object?.json;
|
|
1448
|
+
if (!json || !objType.includes(`::${MODULE}::Job<`)) {
|
|
1449
|
+
throw new T2000Error("RPC_ERROR", `Object ${jobId} is not an a2a_escrow Job.`);
|
|
1450
|
+
}
|
|
1451
|
+
const stateNum = Number(json.state ?? -1);
|
|
1452
|
+
const state = JOB_STATES[stateNum];
|
|
1453
|
+
if (!state) {
|
|
1454
|
+
throw new T2000Error("RPC_ERROR", `Job ${jobId} has unknown state ${stateNum}.`);
|
|
1455
|
+
}
|
|
1456
|
+
const deliveredAtMs = Number(json.delivered_at_ms ?? 0);
|
|
1457
|
+
const deliveryBytes = json.delivery_hash ?? [];
|
|
1458
|
+
const hasDelivery = deliveredAtMs > 0;
|
|
1459
|
+
return {
|
|
1460
|
+
id: jobId,
|
|
1461
|
+
buyer: String(json.buyer),
|
|
1462
|
+
seller: String(json.seller),
|
|
1463
|
+
amountUsdc: Number(json.amount) / 10 ** USDC_DECIMALS,
|
|
1464
|
+
escrowUsdc: Number(json.escrow) / 10 ** USDC_DECIMALS,
|
|
1465
|
+
specHash: bytesToHex(json.spec_hash ?? []),
|
|
1466
|
+
deliverByMs: Number(json.deliver_by_ms),
|
|
1467
|
+
reviewWindowMs: Number(json.review_window_ms),
|
|
1468
|
+
rejectSplitBps: Number(json.reject_split_bps),
|
|
1469
|
+
state,
|
|
1470
|
+
deliveryHash: hasDelivery ? bytesToHex(deliveryBytes) : null,
|
|
1471
|
+
deliveredAtMs: hasDelivery ? deliveredAtMs : null,
|
|
1472
|
+
createdAtMs: Number(json.created_at_ms)
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
function jobActionsFor(job, caller, nowMs = Date.now()) {
|
|
1476
|
+
const me = validateAddress(caller);
|
|
1477
|
+
const isBuyer = me === job.buyer;
|
|
1478
|
+
const isSeller = me === job.seller;
|
|
1479
|
+
const actions = [];
|
|
1480
|
+
if (job.state === "funded") {
|
|
1481
|
+
if (isSeller && nowMs <= job.deliverByMs) actions.push("deliver");
|
|
1482
|
+
if (isBuyer) actions.push("release");
|
|
1483
|
+
if (nowMs > job.deliverByMs) actions.push("refund");
|
|
1484
|
+
} else if (job.state === "delivered") {
|
|
1485
|
+
const windowClosesMs = (job.deliveredAtMs ?? 0) + job.reviewWindowMs;
|
|
1486
|
+
if (isBuyer && nowMs <= windowClosesMs) actions.push("release", "reject");
|
|
1487
|
+
if (nowMs > windowClosesMs) actions.push("release");
|
|
1488
|
+
}
|
|
1489
|
+
return actions;
|
|
1490
|
+
}
|
|
1491
|
+
async function verifyJobForSeller({
|
|
1492
|
+
client,
|
|
1493
|
+
jobId,
|
|
1494
|
+
seller,
|
|
1495
|
+
minAmountUsdc,
|
|
1496
|
+
minRunwayMs = 6e4
|
|
1497
|
+
}) {
|
|
1498
|
+
const job = await getJob(client, jobId);
|
|
1499
|
+
const problems = [];
|
|
1500
|
+
if (job.state !== "funded") {
|
|
1501
|
+
problems.push(`state is "${job.state}", expected "funded"`);
|
|
1502
|
+
}
|
|
1503
|
+
if (job.seller !== validateAddress(seller)) {
|
|
1504
|
+
problems.push(`job pays ${job.seller}, not this seller`);
|
|
1505
|
+
}
|
|
1506
|
+
if (job.escrowUsdc < minAmountUsdc) {
|
|
1507
|
+
problems.push(`escrow holds ${job.escrowUsdc} USDC, price is ${minAmountUsdc}`);
|
|
1508
|
+
}
|
|
1509
|
+
if (job.deliverByMs - Date.now() < minRunwayMs) {
|
|
1510
|
+
problems.push("deadline too close to accept");
|
|
1511
|
+
}
|
|
1512
|
+
return { ok: problems.length === 0, job, problems };
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1306
1515
|
// src/browser.ts
|
|
1307
1516
|
init_token_registry();
|
|
1308
1517
|
|
|
1309
|
-
export { CLOCK_ID, COIN_REGISTRY, DEFAULT_NETWORK, ETH_TYPE, GAS_RESERVE_MIN, IKA_TYPE, KNOWN_TARGETS, KeypairSigner, LABEL_PATTERNS, LOFI_TYPE, MANIFEST_TYPE, 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, buildSendTx, buildSwapTx, checkPositiveAmount, checkSuiAddress, classifyAction, classifyLabel, classifyTransaction, executeTx, extractAllUserLegs, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fromBase642 as fromBase64, getDecimals, getDecimalsForCoinType, mapMoveAbortCode, mapWalletError, mistToSui, parseMppSuiChallenge, parseSuiRpcTx, payWithMpp, preflightFail, preflightPay, preflightSend, preflightSwap, rawToStable, rawToUsdc, refineLendingLabel, resolveSymbol, resolveTokenType, stableToRaw, suiToMist, toBase64, truncateAddress, usdcToRaw, validateAddress };
|
|
1518
|
+
export { A2A_ESCROW_PACKAGE_ID, CLOCK_ID, COIN_REGISTRY, DEFAULT_NETWORK, ETH_TYPE, GAS_RESERVE_MIN, IKA_TYPE, JOB_STATES, KNOWN_TARGETS, KeypairSigner, LABEL_PATTERNS, LOFI_TYPE, MANIFEST_TYPE, MAX_JOB_USDC, 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, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fromBase642 as fromBase64, getDecimals, getDecimalsForCoinType, getJob, jobActionsFor, mapMoveAbortCode, mapWalletError, mistToSui, parseMppSuiChallenge, parseSuiRpcTx, payWithMpp, preflightCreateJob, preflightFail, preflightPay, preflightSend, preflightSwap, rawToStable, rawToUsdc, refineLendingLabel, resolveSymbol, resolveTokenType, stableToRaw, suiToMist, toBase64, truncateAddress, usdcToRaw, validateAddress, verifyJobForSeller };
|
|
1310
1519
|
//# sourceMappingURL=browser.js.map
|
|
1311
1520
|
//# sourceMappingURL=browser.js.map
|