@t2000/sdk 10.20.2 → 10.21.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 +10 -93
- 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 +11 -93
- package/dist/browser.js.map +1 -1
- package/dist/{commerce-BkSSPS1w.d.cts → commerce-sBVg9pVH.d.cts} +11 -29
- package/dist/{commerce-BkSSPS1w.d.ts → commerce-sBVg9pVH.d.ts} +11 -29
- package/dist/index.cjs +10 -95
- 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 +11 -95
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
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 BalanceResponse, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, D as DEFAULT_COMMERCE_API_BASE, f as DEFAULT_NETWORK, g as DepositInfo, E as ETH_TYPE, h as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, i as Job, j as JobState, k as JobTerms, l as JobVerification, K as KNOWN_TARGETS, m as KeypairSigner, L as LABEL_PATTERNS, n as LOFI_TYPE, M as MANIFEST_TYPE, o as MAX_DELIVER_HORIZON_MS, p as MAX_JOB_USDC, q as MAX_REVIEW_WINDOW_MS, r as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, s as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, t as PREFLIGHT_OK, u as PayOptions, v as PayResult, w as PreflightResult, S as STABLE_ASSETS, x as SUI_DECIMALS, y as SUI_TYPE, z as SUPPORTED_ASSETS, F as SendResult, H as ServiceListing, Q as SimulationResult, R as StableAsset, T as SuiHolding, U as SuiRpcTxBlock, V as SupportedAsset, W as SwapRouteResult, X as T2000Error, Y as T2000ErrorCode, Z as T2000ErrorData, _ as T2000_OVERLAY_FEE_WALLET, $ as TOKEN_MAP, a0 as TransactionLeg, a1 as TransactionRecord, a2 as TransactionSigner, a3 as TxDirection, a4 as USDC_DECIMALS, a5 as USDC_TYPE, a6 as USDE_TYPE, a7 as USDSUI_TYPE, a8 as USDT_TYPE, a9 as WAL_TYPE, aa as WBTC_TYPE, ab as ZkLoginProof, ac as ZkLoginSigner, ad as buildCreateJobTx, ae as buildDeliverJobTx, af as buildRefundJobTx, ag as buildRejectJobTx, ah as buildReleaseJobTx, ai as buildSendTx, aj as buildSwapTx, ak as checkPositiveAmount, al as checkSuiAddress, am as classifyAction, an as classifyLabel, ao as classifyTransaction, ap as executeTx, aq as extractAllUserLegs, ar as extractTransferDetails, as as extractTxCommands, at as extractTxSender, au as fallbackLabel, av as fetchService, aw as findSwapRoute, ax as formatAssetAmount, ay as formatSui, az as formatUsd, aA as getDecimals, aB as getDecimalsForCoinType, aC as getJob, aD as getJobSpec, aE as jobActionsFor, aF as listServices, aG as mapMoveAbortCode, aH as mapWalletError, aI as mistToSui, aJ as
|
|
1
|
+
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, B as BalanceResponse, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, D as DEFAULT_COMMERCE_API_BASE, f as DEFAULT_NETWORK, g as DepositInfo, E as ETH_TYPE, h as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, i as Job, j as JobState, k as JobTerms, l as JobVerification, K as KNOWN_TARGETS, m as KeypairSigner, L as LABEL_PATTERNS, n as LOFI_TYPE, M as MANIFEST_TYPE, o as MAX_DELIVER_HORIZON_MS, p as MAX_JOB_USDC, q as MAX_REVIEW_WINDOW_MS, r as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, s as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, t as PREFLIGHT_OK, u as PayOptions, v as PayResult, w as PreflightResult, S as STABLE_ASSETS, x as SUI_DECIMALS, y as SUI_TYPE, z as SUPPORTED_ASSETS, F as SendResult, H as ServiceListing, Q as SimulationResult, R as StableAsset, T as SuiHolding, U as SuiRpcTxBlock, V as SupportedAsset, W as SwapRouteResult, X as T2000Error, Y as T2000ErrorCode, Z as T2000ErrorData, _ as T2000_OVERLAY_FEE_WALLET, $ as TOKEN_MAP, a0 as TransactionLeg, a1 as TransactionRecord, a2 as TransactionSigner, a3 as TxDirection, a4 as USDC_DECIMALS, a5 as USDC_TYPE, a6 as USDE_TYPE, a7 as USDSUI_TYPE, a8 as USDT_TYPE, a9 as WAL_TYPE, aa as WBTC_TYPE, ab as ZkLoginProof, ac as ZkLoginSigner, ad as buildCreateJobTx, ae as buildDeliverJobTx, af as buildRefundJobTx, ag as buildRejectJobTx, ah as buildReleaseJobTx, ai as buildSendTx, aj as buildSwapTx, ak as checkPositiveAmount, al as checkSuiAddress, am as classifyAction, an as classifyLabel, ao as classifyTransaction, ap as executeTx, aq as extractAllUserLegs, ar as extractTransferDetails, as as extractTxCommands, at as extractTxSender, au as fallbackLabel, av as fetchService, aw as findSwapRoute, ax as formatAssetAmount, ay as formatSui, az as formatUsd, aA as getDecimals, aB as getDecimalsForCoinType, aC as getJob, aD as getJobSpec, aE as jobActionsFor, aF as listServices, aG as mapMoveAbortCode, aH as mapWalletError, aI as mistToSui, aJ as parseSuiRpcTx, aK as payWithMpp, aL as preflightCreateJob, aM as preflightFail, aN as preflightPay, aO as preflightSend, aP as preflightSwap, aQ as putJobSpec, aR as rawToStable, aS as rawToUsdc, aT as refineLendingLabel, aU as resolveSymbol, aV as resolveTokenType, aW as stableToRaw, aX as suiToMist, aY as truncateAddress, aZ as usdcToRaw, a_ as validateAddress, a$ as verifyJobForSeller } from './commerce-sBVg9pVH.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 BalanceResponse, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, D as DEFAULT_COMMERCE_API_BASE, f as DEFAULT_NETWORK, g as DepositInfo, E as ETH_TYPE, h as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, i as Job, j as JobState, k as JobTerms, l as JobVerification, K as KNOWN_TARGETS, m as KeypairSigner, L as LABEL_PATTERNS, n as LOFI_TYPE, M as MANIFEST_TYPE, o as MAX_DELIVER_HORIZON_MS, p as MAX_JOB_USDC, q as MAX_REVIEW_WINDOW_MS, r as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, s as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, t as PREFLIGHT_OK, u as PayOptions, v as PayResult, w as PreflightResult, S as STABLE_ASSETS, x as SUI_DECIMALS, y as SUI_TYPE, z as SUPPORTED_ASSETS, F as SendResult, H as ServiceListing, Q as SimulationResult, R as StableAsset, T as SuiHolding, U as SuiRpcTxBlock, V as SupportedAsset, W as SwapRouteResult, X as T2000Error, Y as T2000ErrorCode, Z as T2000ErrorData, _ as T2000_OVERLAY_FEE_WALLET, $ as TOKEN_MAP, a0 as TransactionLeg, a1 as TransactionRecord, a2 as TransactionSigner, a3 as TxDirection, a4 as USDC_DECIMALS, a5 as USDC_TYPE, a6 as USDE_TYPE, a7 as USDSUI_TYPE, a8 as USDT_TYPE, a9 as WAL_TYPE, aa as WBTC_TYPE, ab as ZkLoginProof, ac as ZkLoginSigner, ad as buildCreateJobTx, ae as buildDeliverJobTx, af as buildRefundJobTx, ag as buildRejectJobTx, ah as buildReleaseJobTx, ai as buildSendTx, aj as buildSwapTx, ak as checkPositiveAmount, al as checkSuiAddress, am as classifyAction, an as classifyLabel, ao as classifyTransaction, ap as executeTx, aq as extractAllUserLegs, ar as extractTransferDetails, as as extractTxCommands, at as extractTxSender, au as fallbackLabel, av as fetchService, aw as findSwapRoute, ax as formatAssetAmount, ay as formatSui, az as formatUsd, aA as getDecimals, aB as getDecimalsForCoinType, aC as getJob, aD as getJobSpec, aE as jobActionsFor, aF as listServices, aG as mapMoveAbortCode, aH as mapWalletError, aI as mistToSui, aJ as
|
|
1
|
+
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, B as BalanceResponse, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, D as DEFAULT_COMMERCE_API_BASE, f as DEFAULT_NETWORK, g as DepositInfo, E as ETH_TYPE, h as ExtractedTransfer, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, i as Job, j as JobState, k as JobTerms, l as JobVerification, K as KNOWN_TARGETS, m as KeypairSigner, L as LABEL_PATTERNS, n as LOFI_TYPE, M as MANIFEST_TYPE, o as MAX_DELIVER_HORIZON_MS, p as MAX_JOB_USDC, q as MAX_REVIEW_WINDOW_MS, r as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, s as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, t as PREFLIGHT_OK, u as PayOptions, v as PayResult, w as PreflightResult, S as STABLE_ASSETS, x as SUI_DECIMALS, y as SUI_TYPE, z as SUPPORTED_ASSETS, F as SendResult, H as ServiceListing, Q as SimulationResult, R as StableAsset, T as SuiHolding, U as SuiRpcTxBlock, V as SupportedAsset, W as SwapRouteResult, X as T2000Error, Y as T2000ErrorCode, Z as T2000ErrorData, _ as T2000_OVERLAY_FEE_WALLET, $ as TOKEN_MAP, a0 as TransactionLeg, a1 as TransactionRecord, a2 as TransactionSigner, a3 as TxDirection, a4 as USDC_DECIMALS, a5 as USDC_TYPE, a6 as USDE_TYPE, a7 as USDSUI_TYPE, a8 as USDT_TYPE, a9 as WAL_TYPE, aa as WBTC_TYPE, ab as ZkLoginProof, ac as ZkLoginSigner, ad as buildCreateJobTx, ae as buildDeliverJobTx, af as buildRefundJobTx, ag as buildRejectJobTx, ah as buildReleaseJobTx, ai as buildSendTx, aj as buildSwapTx, ak as checkPositiveAmount, al as checkSuiAddress, am as classifyAction, an as classifyLabel, ao as classifyTransaction, ap as executeTx, aq as extractAllUserLegs, ar as extractTransferDetails, as as extractTxCommands, at as extractTxSender, au as fallbackLabel, av as fetchService, aw as findSwapRoute, ax as formatAssetAmount, ay as formatSui, az as formatUsd, aA as getDecimals, aB as getDecimalsForCoinType, aC as getJob, aD as getJobSpec, aE as jobActionsFor, aF as listServices, aG as mapMoveAbortCode, aH as mapWalletError, aI as mistToSui, aJ as parseSuiRpcTx, aK as payWithMpp, aL as preflightCreateJob, aM as preflightFail, aN as preflightPay, aO as preflightSend, aP as preflightSwap, aQ as putJobSpec, aR as rawToStable, aS as rawToUsdc, aT as refineLendingLabel, aU as resolveSymbol, aV as resolveTokenType, aW as stableToRaw, aX as suiToMist, aY as truncateAddress, aZ as usdcToRaw, a_ as validateAddress, a$ as verifyJobForSeller } from './commerce-sBVg9pVH.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
|
@@ -447,13 +447,6 @@ var ZkLoginSigner = class {
|
|
|
447
447
|
// src/wallet/pay.ts
|
|
448
448
|
init_errors();
|
|
449
449
|
|
|
450
|
-
// src/mpp-cost.ts
|
|
451
|
-
function parseChallengeAmount(challenge) {
|
|
452
|
-
const raw = challenge?.request?.amount;
|
|
453
|
-
const n = typeof raw === "string" ? Number(raw) : typeof raw === "number" ? raw : Number.NaN;
|
|
454
|
-
return Number.isFinite(n) ? n : void 0;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
450
|
// src/wallet/executeTx.ts
|
|
458
451
|
async function executeTx(client, signer, buildTx, options = {}) {
|
|
459
452
|
const tx = await buildTx();
|
|
@@ -572,18 +565,12 @@ async function payWithMpp(args) {
|
|
|
572
565
|
const result = await payViaX402({ signer, client, options, reqInit, requirements });
|
|
573
566
|
return result;
|
|
574
567
|
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
{ dialect: "mpp-header", signerKind: "zklogin" }
|
|
582
|
-
);
|
|
583
|
-
}
|
|
584
|
-
assertNotSelfPayment(signer.getAddress(), headerChallenge.recipient);
|
|
585
|
-
const result = await payViaMppHeader({ signer, client, options });
|
|
586
|
-
return result;
|
|
568
|
+
if (hasPaymentAuthenticateHeader(probe)) {
|
|
569
|
+
throw new T2000Error(
|
|
570
|
+
"DIALECT_UNSUPPORTED",
|
|
571
|
+
"This seller answered a header-only 402 (WWW-Authenticate: Payment) with no payable x402 accepts[] envelope. The MPP header dialect is no longer supported \u2014 it charged before the seller proved it could deliver. No payment was made. The seller must offer x402 (e.g. @t2000/serve emits it).",
|
|
572
|
+
{ dialect: "mpp-header", reason: "header-only-402-unsupported" }
|
|
573
|
+
);
|
|
587
574
|
}
|
|
588
575
|
if (pick.kind === "incomplete") {
|
|
589
576
|
throw new T2000Error(
|
|
@@ -597,24 +584,6 @@ async function payWithMpp(args) {
|
|
|
597
584
|
`Endpoint returned 402 without an x402 'exact' / sui:${client.network} requirement in the body or an MPP 'sui' challenge in WWW-Authenticate. Nothing this SDK can pay.`
|
|
598
585
|
);
|
|
599
586
|
}
|
|
600
|
-
async function parseMppSuiChallenge(response) {
|
|
601
|
-
try {
|
|
602
|
-
const { Challenge } = await import('mppx');
|
|
603
|
-
const challenges = Challenge.fromResponseList(response);
|
|
604
|
-
const suiChallenge = challenges.find((c) => c.method === "sui" && c.intent === "charge");
|
|
605
|
-
if (!suiChallenge) return void 0;
|
|
606
|
-
const req = suiChallenge.request;
|
|
607
|
-
if (typeof req?.amount !== "string" || typeof req?.recipient !== "string") return void 0;
|
|
608
|
-
return {
|
|
609
|
-
amount: req.amount,
|
|
610
|
-
currency: typeof req.currency === "string" ? req.currency : "",
|
|
611
|
-
recipient: req.recipient,
|
|
612
|
-
description: suiChallenge.description
|
|
613
|
-
};
|
|
614
|
-
} catch {
|
|
615
|
-
return void 0;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
587
|
function hasCompleteSuimppChallenge(entry) {
|
|
619
588
|
const s = entry.extra?.suimpp;
|
|
620
589
|
return !!s && typeof s.challengeId === "string" && s.challengeId.length > 0 && typeof s.nonce === "number" && typeof s.chain === "string" && s.chain.length > 0 && typeof s.minEpoch === "string" && typeof s.maxEpoch === "string";
|
|
@@ -681,61 +650,6 @@ async function payViaX402(args) {
|
|
|
681
650
|
receipt: digest ? { reference: digest, timestamp: (/* @__PURE__ */ new Date()).toISOString() } : result.receipt
|
|
682
651
|
};
|
|
683
652
|
}
|
|
684
|
-
async function payViaMppHeader(args) {
|
|
685
|
-
const { signer, client, options } = args;
|
|
686
|
-
const { Mppx } = await import('mppx/client');
|
|
687
|
-
const { sui, USDC, USDC_TESTNET } = await import('@suimpp/mpp/client');
|
|
688
|
-
const signerAddress = signer.getAddress();
|
|
689
|
-
const network = client.network === "testnet" ? "testnet" : "mainnet";
|
|
690
|
-
const grpcClient = await makeGrpcBuildClient(client);
|
|
691
|
-
let paymentDigest;
|
|
692
|
-
let gasCostSui = 0;
|
|
693
|
-
let chargedAmount;
|
|
694
|
-
const mppx = Mppx.create({
|
|
695
|
-
polyfill: false,
|
|
696
|
-
onChallenge: async (challenge) => {
|
|
697
|
-
const parsed = parseChallengeAmount(challenge);
|
|
698
|
-
if (parsed !== void 0) {
|
|
699
|
-
chargedAmount = parsed;
|
|
700
|
-
assertWithinMaxPrice(parsed, options.maxPrice);
|
|
701
|
-
}
|
|
702
|
-
return void 0;
|
|
703
|
-
},
|
|
704
|
-
methods: [
|
|
705
|
-
sui({
|
|
706
|
-
client,
|
|
707
|
-
currency: network === "testnet" ? USDC_TESTNET : USDC,
|
|
708
|
-
signer: {
|
|
709
|
-
toSuiAddress: () => signerAddress,
|
|
710
|
-
signPersonalMessage: (bytes) => signer.signPersonalMessage(bytes)
|
|
711
|
-
},
|
|
712
|
-
execute: async (tx) => {
|
|
713
|
-
const result2 = await executeTx(client, signer, () => tx, { buildClient: grpcClient });
|
|
714
|
-
paymentDigest = result2.digest;
|
|
715
|
-
gasCostSui = result2.gasCostSui;
|
|
716
|
-
return { digest: result2.digest };
|
|
717
|
-
}
|
|
718
|
-
})
|
|
719
|
-
]
|
|
720
|
-
});
|
|
721
|
-
const method = (options.method ?? "GET").toUpperCase();
|
|
722
|
-
const canHaveBody = method !== "GET" && method !== "HEAD";
|
|
723
|
-
const response = await mppx.fetch(options.url, {
|
|
724
|
-
method,
|
|
725
|
-
headers: options.headers,
|
|
726
|
-
body: canHaveBody ? options.body : void 0
|
|
727
|
-
});
|
|
728
|
-
const paid = !!paymentDigest;
|
|
729
|
-
const result = await finalize(response, { paid });
|
|
730
|
-
if (!paid) return { ...result, dialect: "legacy" };
|
|
731
|
-
return {
|
|
732
|
-
...result,
|
|
733
|
-
dialect: "legacy",
|
|
734
|
-
cost: chargedAmount ?? options.maxPrice ?? void 0,
|
|
735
|
-
gasCostSui,
|
|
736
|
-
receipt: paymentDigest ? { reference: paymentDigest, timestamp: (/* @__PURE__ */ new Date()).toISOString() } : void 0
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
653
|
function assertNotSelfPayment(payer, payTo) {
|
|
740
654
|
if (normalizeSuiAddress(payer) === normalizeSuiAddress(payTo)) {
|
|
741
655
|
throw new T2000Error(
|
|
@@ -787,6 +701,10 @@ async function ensureAddressBalanceCovers(args) {
|
|
|
787
701
|
const migration = await executeTx(client, signer, () => tx, { buildClient: grpcClient });
|
|
788
702
|
return migration.gasCostSui;
|
|
789
703
|
}
|
|
704
|
+
function hasPaymentAuthenticateHeader(response) {
|
|
705
|
+
const header = response.headers.get("www-authenticate") ?? "";
|
|
706
|
+
return /(^|,)\s*Payment[\s,]/i.test(`${header},`);
|
|
707
|
+
}
|
|
790
708
|
function isJsonText(text) {
|
|
791
709
|
try {
|
|
792
710
|
JSON.parse(text);
|
|
@@ -1662,6 +1580,6 @@ async function getJobSpec(base, hash) {
|
|
|
1662
1580
|
// src/browser.ts
|
|
1663
1581
|
init_token_registry();
|
|
1664
1582
|
|
|
1665
|
-
export { A2A_ESCROW_FEE_CONFIG_ID, A2A_ESCROW_PACKAGE_ID, CLOCK_ID, COIN_REGISTRY, 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,
|
|
1583
|
+
export { A2A_ESCROW_FEE_CONFIG_ID, A2A_ESCROW_PACKAGE_ID, CLOCK_ID, COIN_REGISTRY, 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, payWithMpp, preflightCreateJob, preflightFail, preflightPay, preflightSend, preflightSwap, putJobSpec, rawToStable, rawToUsdc, refineLendingLabel, resolveSymbol, resolveTokenType, stableToRaw, suiToMist, toBase64, truncateAddress, usdcToRaw, validateAddress, verifyJobForSeller };
|
|
1666
1584
|
//# sourceMappingURL=browser.js.map
|
|
1667
1585
|
//# sourceMappingURL=browser.js.map
|