@t2000/sdk 10.31.1 → 10.32.1
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 +3 -2
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +3 -2
- package/dist/{commerce-D5P8lZWN.d.cts → commerce-DCLIDCx5.d.cts} +18 -2
- package/dist/{commerce-D5P8lZWN.d.ts → commerce-DCLIDCx5.d.ts} +18 -2
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/package.json +5 -2
- package/dist/browser.cjs.map +0 -1
- package/dist/browser.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/browser.cjs
CHANGED
|
@@ -1578,6 +1578,9 @@ async function listServices(base, filter = {}) {
|
|
|
1578
1578
|
const params = new URLSearchParams();
|
|
1579
1579
|
if (filter.agent) params.set("agent", filter.agent);
|
|
1580
1580
|
if (filter.query) params.set("q", filter.query);
|
|
1581
|
+
if (filter.category) params.set("category", filter.category);
|
|
1582
|
+
if (filter.limit !== void 0) params.set("limit", String(filter.limit));
|
|
1583
|
+
if (filter.offset !== void 0) params.set("offset", String(filter.offset));
|
|
1581
1584
|
const qs = params.size > 0 ? `?${params.toString()}` : "";
|
|
1582
1585
|
const json = await commerceFetchJson(`${base}/services${qs}`);
|
|
1583
1586
|
const services = json.services ?? [];
|
|
@@ -1717,5 +1720,3 @@ exports.truncateAddress = truncateAddress;
|
|
|
1717
1720
|
exports.usdcToRaw = usdcToRaw;
|
|
1718
1721
|
exports.validateAddress = validateAddress;
|
|
1719
1722
|
exports.verifyJobForSeller = verifyJobForSeller;
|
|
1720
|
-
//# sourceMappingURL=browser.cjs.map
|
|
1721
|
-
//# sourceMappingURL=browser.cjs.map
|
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 MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, v as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, x as PayOptions, y as PayResult, z as PreflightResult, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, R as SendAssetClass, T as SendResult, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, Z as SupportedAsset, _ as SwapRouteResult, $ as T2000Error, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a5 as TransactionRecord, a6 as TransactionSigner, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ag as ZkLoginProof, ah as ZkLoginSigner, ai as buildCreateJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, aK as invalidSendAssetMessage, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, aX as putJobSpec, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, b2 as stableToRaw, b3 as suiToMist, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, b7 as verifyJobForSeller } from './commerce-
|
|
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 MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, v as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, x as PayOptions, y as PayResult, z as PreflightResult, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, R as SendAssetClass, T as SendResult, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, Z as SupportedAsset, _ as SwapRouteResult, $ as T2000Error, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a5 as TransactionRecord, a6 as TransactionSigner, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ag as ZkLoginProof, ah as ZkLoginSigner, ai as buildCreateJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, aK as invalidSendAssetMessage, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, aX as putJobSpec, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, b2 as stableToRaw, b3 as suiToMist, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, b7 as verifyJobForSeller } from './commerce-DCLIDCx5.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 MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, v as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, x as PayOptions, y as PayResult, z as PreflightResult, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, R as SendAssetClass, T as SendResult, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, Z as SupportedAsset, _ as SwapRouteResult, $ as T2000Error, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a5 as TransactionRecord, a6 as TransactionSigner, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ag as ZkLoginProof, ah as ZkLoginSigner, ai as buildCreateJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, aK as invalidSendAssetMessage, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, aX as putJobSpec, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, b2 as stableToRaw, b3 as suiToMist, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, b7 as verifyJobForSeller } from './commerce-
|
|
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 MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, O as OVERLAY_FEE_RATE, v as OverlayFeeConfig, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, x as PayOptions, y as PayResult, z as PreflightResult, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, R as SendAssetClass, T as SendResult, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, Z as SupportedAsset, _ as SwapRouteResult, $ as T2000Error, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a5 as TransactionRecord, a6 as TransactionSigner, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ag as ZkLoginProof, ah as ZkLoginSigner, ai as buildCreateJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, aK as invalidSendAssetMessage, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, aX as putJobSpec, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, b2 as stableToRaw, b3 as suiToMist, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, b7 as verifyJobForSeller } from './commerce-DCLIDCx5.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
|
@@ -1576,6 +1576,9 @@ async function listServices(base, filter = {}) {
|
|
|
1576
1576
|
const params = new URLSearchParams();
|
|
1577
1577
|
if (filter.agent) params.set("agent", filter.agent);
|
|
1578
1578
|
if (filter.query) params.set("q", filter.query);
|
|
1579
|
+
if (filter.category) params.set("category", filter.category);
|
|
1580
|
+
if (filter.limit !== void 0) params.set("limit", String(filter.limit));
|
|
1581
|
+
if (filter.offset !== void 0) params.set("offset", String(filter.offset));
|
|
1579
1582
|
const qs = params.size > 0 ? `?${params.toString()}` : "";
|
|
1580
1583
|
const json = await commerceFetchJson(`${base}/services${qs}`);
|
|
1581
1584
|
const services = json.services ?? [];
|
|
@@ -1635,5 +1638,3 @@ async function getJobSpec(base, hash) {
|
|
|
1635
1638
|
init_token_registry();
|
|
1636
1639
|
|
|
1637
1640
|
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, MIN_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, 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 };
|
|
1638
|
-
//# sourceMappingURL=browser.js.map
|
|
1639
|
-
//# sourceMappingURL=browser.js.map
|
|
@@ -1614,12 +1614,28 @@ interface ServiceListing {
|
|
|
1614
1614
|
requirements: unknown;
|
|
1615
1615
|
deliverable: string;
|
|
1616
1616
|
retired: boolean;
|
|
1617
|
+
/** The seller's directory category (AGENT_CATEGORIES slug), or null. */
|
|
1618
|
+
category: string | null;
|
|
1619
|
+
/** Live Featured pin — paid placement, sorts first on market browse. */
|
|
1620
|
+
featured: boolean;
|
|
1621
|
+
/** Avg receipt-bound review stars for the seller; null = no reviews yet. */
|
|
1622
|
+
reviewScore: number | null;
|
|
1623
|
+
reviewCount: number;
|
|
1624
|
+
/** Seller lifetime settled (released-escrow) USDC — the organic rank key. */
|
|
1625
|
+
settledUsdc: number;
|
|
1617
1626
|
}
|
|
1618
|
-
/** Browse / list agent services
|
|
1619
|
-
*
|
|
1627
|
+
/** Browse / list agent services. Market browse (no `agent`) is RANKED
|
|
1628
|
+
* Featured → seller settled USDC → newest — not newest-first; `agent`
|
|
1629
|
+
* returns that seller's full catalog (retired included, newest-first).
|
|
1630
|
+
* `query` is free text; `category` is the seller's directory bucket
|
|
1631
|
+
* (AGENT_CATEGORIES slug — the API 400s off-enum values with the
|
|
1632
|
+
* allow-list); they AND. */
|
|
1620
1633
|
declare function listServices(base: string, filter?: {
|
|
1621
1634
|
agent?: string;
|
|
1622
1635
|
query?: string;
|
|
1636
|
+
category?: string;
|
|
1637
|
+
limit?: number;
|
|
1638
|
+
offset?: number;
|
|
1623
1639
|
}): Promise<{
|
|
1624
1640
|
total: number;
|
|
1625
1641
|
services: ServiceListing[];
|
|
@@ -1614,12 +1614,28 @@ interface ServiceListing {
|
|
|
1614
1614
|
requirements: unknown;
|
|
1615
1615
|
deliverable: string;
|
|
1616
1616
|
retired: boolean;
|
|
1617
|
+
/** The seller's directory category (AGENT_CATEGORIES slug), or null. */
|
|
1618
|
+
category: string | null;
|
|
1619
|
+
/** Live Featured pin — paid placement, sorts first on market browse. */
|
|
1620
|
+
featured: boolean;
|
|
1621
|
+
/** Avg receipt-bound review stars for the seller; null = no reviews yet. */
|
|
1622
|
+
reviewScore: number | null;
|
|
1623
|
+
reviewCount: number;
|
|
1624
|
+
/** Seller lifetime settled (released-escrow) USDC — the organic rank key. */
|
|
1625
|
+
settledUsdc: number;
|
|
1617
1626
|
}
|
|
1618
|
-
/** Browse / list agent services
|
|
1619
|
-
*
|
|
1627
|
+
/** Browse / list agent services. Market browse (no `agent`) is RANKED
|
|
1628
|
+
* Featured → seller settled USDC → newest — not newest-first; `agent`
|
|
1629
|
+
* returns that seller's full catalog (retired included, newest-first).
|
|
1630
|
+
* `query` is free text; `category` is the seller's directory bucket
|
|
1631
|
+
* (AGENT_CATEGORIES slug — the API 400s off-enum values with the
|
|
1632
|
+
* allow-list); they AND. */
|
|
1620
1633
|
declare function listServices(base: string, filter?: {
|
|
1621
1634
|
agent?: string;
|
|
1622
1635
|
query?: string;
|
|
1636
|
+
category?: string;
|
|
1637
|
+
limit?: number;
|
|
1638
|
+
offset?: number;
|
|
1623
1639
|
}): Promise<{
|
|
1624
1640
|
total: number;
|
|
1625
1641
|
services: ServiceListing[];
|
package/dist/index.cjs
CHANGED
|
@@ -3733,6 +3733,9 @@ async function listServices(base, filter = {}) {
|
|
|
3733
3733
|
const params = new URLSearchParams();
|
|
3734
3734
|
if (filter.agent) params.set("agent", filter.agent);
|
|
3735
3735
|
if (filter.query) params.set("q", filter.query);
|
|
3736
|
+
if (filter.category) params.set("category", filter.category);
|
|
3737
|
+
if (filter.limit !== void 0) params.set("limit", String(filter.limit));
|
|
3738
|
+
if (filter.offset !== void 0) params.set("offset", String(filter.offset));
|
|
3736
3739
|
const qs = params.size > 0 ? `?${params.toString()}` : "";
|
|
3737
3740
|
const json = await commerceFetchJson(`${base}/services${qs}`);
|
|
3738
3741
|
const services = json.services ?? [];
|
|
@@ -4577,5 +4580,3 @@ exports.verifyJobForSeller = verifyJobForSeller;
|
|
|
4577
4580
|
exports.verifyReceipt = verifyReceipt;
|
|
4578
4581
|
exports.walletExists = walletExists;
|
|
4579
4582
|
exports.writeLimitsFile = writeLimitsFile;
|
|
4580
|
-
//# sourceMappingURL=index.cjs.map
|
|
4581
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
2
|
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
3
3
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
4
|
-
import { $ as T2000Error, b8 as T2000Options, a6 as TransactionSigner, x as PayOptions, b9 as X402Probe, y as PayResult, ba as SerializedCetusRoute, bb as SwapResult, bc as SwapQuoteResult, T as SendResult, B as BalanceResponse, a5 as TransactionRecord, i as DepositInfo, bd as PaymentRequest, ag as ZkLoginProof, be as SuiCoreClient, v as OverlayFeeConfig, bf as SponsoredCoinMergeCache, Z as SupportedAsset, _ as SwapRouteResult, bg as SendableAsset } from './commerce-
|
|
5
|
-
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, bh as CETUS_USDC_SUI_POOL, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, bi as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, bj as DEFAULT_GRPC_URL, h as DEFAULT_NETWORK, E as ETH_TYPE, j as ExtractedTransfer, bk as GASLESS_MIN_STABLE_AMOUNT, bl as GASLESS_STABLE_TYPES, 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, bm as MAINNET_A2A_ESCROW_PACKAGE_ID, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, bn as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, bo as Operation, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, z as PreflightResult, bp as SENDABLE_ASSETS, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, bq as SelectAndSplitResult, R as SendAssetClass, br as SerializedCetusRoutePath, bs as SerializedRouterDataV3, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ah as ZkLoginSigner, bt as addSendToTx, bu as addSwapToTx, bv as assertAllowedAsset, bw as assertBuyerRequirements, ai as buildCreateJobTx, bx as buildDeclineJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, by as deserializeCetusRoute, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, bz as fetchAllCoins, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, bA as getCoinMeta, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, bB as getSuiClient, bC as getSuiGrpcClient, aK as invalidSendAssetMessage, bD as isAllowedAsset, bE as isCetusRouteFresh, bF as isInRegistry, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, bG as normalizeAsset, bH as normalizeCoinType, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, bI as probeX402, aX as putJobSpec, bJ as queryHistory, bK as queryTransaction, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, bL as selectAndSplitCoin, bM as selectSuiCoin, bN as serializeCetusRoute, bO as simulateTransaction, b2 as stableToRaw, b3 as suiToMist, bP as throwIfSimulationFailed, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, bQ as verifyCetusRouteCoinMatch, b7 as verifyJobForSeller } from './commerce-
|
|
4
|
+
import { $ as T2000Error, b8 as T2000Options, a6 as TransactionSigner, x as PayOptions, b9 as X402Probe, y as PayResult, ba as SerializedCetusRoute, bb as SwapResult, bc as SwapQuoteResult, T as SendResult, B as BalanceResponse, a5 as TransactionRecord, i as DepositInfo, bd as PaymentRequest, ag as ZkLoginProof, be as SuiCoreClient, v as OverlayFeeConfig, bf as SponsoredCoinMergeCache, Z as SupportedAsset, _ as SwapRouteResult, bg as SendableAsset } from './commerce-DCLIDCx5.cjs';
|
|
5
|
+
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, bh as CETUS_USDC_SUI_POOL, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, bi as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, bj as DEFAULT_GRPC_URL, h as DEFAULT_NETWORK, E as ETH_TYPE, j as ExtractedTransfer, bk as GASLESS_MIN_STABLE_AMOUNT, bl as GASLESS_STABLE_TYPES, 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, bm as MAINNET_A2A_ESCROW_PACKAGE_ID, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, bn as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, bo as Operation, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, z as PreflightResult, bp as SENDABLE_ASSETS, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, bq as SelectAndSplitResult, R as SendAssetClass, br as SerializedCetusRoutePath, bs as SerializedRouterDataV3, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ah as ZkLoginSigner, bt as addSendToTx, bu as addSwapToTx, bv as assertAllowedAsset, bw as assertBuyerRequirements, ai as buildCreateJobTx, bx as buildDeclineJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, by as deserializeCetusRoute, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, bz as fetchAllCoins, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, bA as getCoinMeta, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, bB as getSuiClient, bC as getSuiGrpcClient, aK as invalidSendAssetMessage, bD as isAllowedAsset, bE as isCetusRouteFresh, bF as isInRegistry, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, bG as normalizeAsset, bH as normalizeCoinType, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, bI as probeX402, aX as putJobSpec, bJ as queryHistory, bK as queryTransaction, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, bL as selectAndSplitCoin, bM as selectSuiCoin, bN as serializeCetusRoute, bO as simulateTransaction, b2 as stableToRaw, b3 as suiToMist, bP as throwIfSimulationFailed, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, bQ as verifyCetusRouteCoinMatch, b7 as verifyJobForSeller } from './commerce-DCLIDCx5.cjs';
|
|
6
6
|
import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
7
7
|
import { SuinsClient } from '@mysten/suins';
|
|
8
8
|
import '@mysten/sui/client';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
2
|
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
3
3
|
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
|
|
4
|
-
import { $ as T2000Error, b8 as T2000Options, a6 as TransactionSigner, x as PayOptions, b9 as X402Probe, y as PayResult, ba as SerializedCetusRoute, bb as SwapResult, bc as SwapQuoteResult, T as SendResult, B as BalanceResponse, a5 as TransactionRecord, i as DepositInfo, bd as PaymentRequest, ag as ZkLoginProof, be as SuiCoreClient, v as OverlayFeeConfig, bf as SponsoredCoinMergeCache, Z as SupportedAsset, _ as SwapRouteResult, bg as SendableAsset } from './commerce-
|
|
5
|
-
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, bh as CETUS_USDC_SUI_POOL, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, bi as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, bj as DEFAULT_GRPC_URL, h as DEFAULT_NETWORK, E as ETH_TYPE, j as ExtractedTransfer, bk as GASLESS_MIN_STABLE_AMOUNT, bl as GASLESS_STABLE_TYPES, 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, bm as MAINNET_A2A_ESCROW_PACKAGE_ID, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, bn as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, bo as Operation, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, z as PreflightResult, bp as SENDABLE_ASSETS, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, bq as SelectAndSplitResult, R as SendAssetClass, br as SerializedCetusRoutePath, bs as SerializedRouterDataV3, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ah as ZkLoginSigner, bt as addSendToTx, bu as addSwapToTx, bv as assertAllowedAsset, bw as assertBuyerRequirements, ai as buildCreateJobTx, bx as buildDeclineJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, by as deserializeCetusRoute, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, bz as fetchAllCoins, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, bA as getCoinMeta, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, bB as getSuiClient, bC as getSuiGrpcClient, aK as invalidSendAssetMessage, bD as isAllowedAsset, bE as isCetusRouteFresh, bF as isInRegistry, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, bG as normalizeAsset, bH as normalizeCoinType, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, bI as probeX402, aX as putJobSpec, bJ as queryHistory, bK as queryTransaction, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, bL as selectAndSplitCoin, bM as selectSuiCoin, bN as serializeCetusRoute, bO as simulateTransaction, b2 as stableToRaw, b3 as suiToMist, bP as throwIfSimulationFailed, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, bQ as verifyCetusRouteCoinMatch, b7 as verifyJobForSeller } from './commerce-
|
|
4
|
+
import { $ as T2000Error, b8 as T2000Options, a6 as TransactionSigner, x as PayOptions, b9 as X402Probe, y as PayResult, ba as SerializedCetusRoute, bb as SwapResult, bc as SwapQuoteResult, T as SendResult, B as BalanceResponse, a5 as TransactionRecord, i as DepositInfo, bd as PaymentRequest, ag as ZkLoginProof, be as SuiCoreClient, v as OverlayFeeConfig, bf as SponsoredCoinMergeCache, Z as SupportedAsset, _ as SwapRouteResult, bg as SendableAsset } from './commerce-DCLIDCx5.js';
|
|
5
|
+
export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b as ActivityReportConfig, bh as CETUS_USDC_SUI_POOL, C as CLOCK_ID, c as COIN_REGISTRY, d as ClassifyBalanceChange, e as ClassifyResult, f as CoinMeta, bi as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, g as DEFAULT_COMMERCE_API_BASE, bj as DEFAULT_GRPC_URL, h as DEFAULT_NETWORK, E as ETH_TYPE, j as ExtractedTransfer, bk as GASLESS_MIN_STABLE_AMOUNT, bl as GASLESS_STABLE_TYPES, 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, bm as MAINNET_A2A_ESCROW_PACKAGE_ID, M as MANIFEST_TYPE, q as MAX_DELIVER_HORIZON_MS, r as MAX_JOB_USDC, s as MAX_REVIEW_WINDOW_MS, t as MIN_JOB_USDC, u as MIST_PER_SUI, N as NAVX_TYPE, bn as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, bo as Operation, P as PREFLIGHT_MAX_AMOUNT, w as PREFLIGHT_OK, z as PreflightResult, bp as SENDABLE_ASSETS, S as STABLE_ASSETS, F as SUI_DECIMALS, H as SUI_TYPE, Q as SUPPORTED_ASSETS, bq as SelectAndSplitResult, R as SendAssetClass, br as SerializedCetusRoutePath, bs as SerializedRouterDataV3, U as ServiceListing, V as SimulationResult, W as StableAsset, X as SuiHolding, Y as SuiRpcTxBlock, a0 as T2000ErrorCode, a1 as T2000ErrorData, a2 as T2000_OVERLAY_FEE_WALLET, a3 as TOKEN_MAP, a4 as TransactionLeg, a7 as TxDirection, a8 as USDC_DECIMALS, a9 as USDC_TYPE, aa as USDE_TYPE, ab as USDSUI_TYPE, ac as USDT_TYPE, ad as WAL_TYPE, ae as WBTC_TYPE, af as X402ActivityPayload, ah as ZkLoginSigner, bt as addSendToTx, bu as addSwapToTx, bv as assertAllowedAsset, bw as assertBuyerRequirements, ai as buildCreateJobTx, bx as buildDeclineJobTx, aj as buildDeliverJobTx, ak as buildRefundJobTx, al as buildRejectJobTx, am as buildReleaseJobTx, an as buildSendTx, ao as buildSwapTx, ap as checkPositiveAmount, aq as checkSuiAddress, ar as classifyAction, as as classifyLabel, at as classifySendAsset, au as classifyTransaction, by as deserializeCetusRoute, av as executeTx, aw as extractAllUserLegs, ax as extractTransferDetails, ay as extractTxCommands, az as extractTxSender, aA as fallbackLabel, bz as fetchAllCoins, aB as fetchService, aC as findSwapRoute, aD as formatAssetAmount, aE as formatSui, aF as formatUsd, bA as getCoinMeta, aG as getDecimals, aH as getDecimalsForCoinType, aI as getJob, aJ as getJobSpec, bB as getSuiClient, bC as getSuiGrpcClient, aK as invalidSendAssetMessage, bD as isAllowedAsset, bE as isCetusRouteFresh, bF as isInRegistry, aL as jobActionsFor, aM as listServices, aN as mapMoveAbortCode, aO as mapWalletError, aP as mistToSui, bG as normalizeAsset, bH as normalizeCoinType, aQ as parseSuiRpcTx, aR as payWithX402, aS as preflightCreateJob, aT as preflightFail, aU as preflightPay, aV as preflightSend, aW as preflightSwap, bI as probeX402, aX as putJobSpec, bJ as queryHistory, bK as queryTransaction, aY as rawToStable, aZ as rawToUsdc, a_ as refineLendingLabel, a$ as reportX402Activity, b0 as resolveSymbol, b1 as resolveTokenType, bL as selectAndSplitCoin, bM as selectSuiCoin, bN as serializeCetusRoute, bO as simulateTransaction, b2 as stableToRaw, b3 as suiToMist, bP as throwIfSimulationFailed, b4 as truncateAddress, b5 as usdcToRaw, b6 as validateAddress, bQ as verifyCetusRouteCoinMatch, b7 as verifyJobForSeller } from './commerce-DCLIDCx5.js';
|
|
6
6
|
import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
7
7
|
import { SuinsClient } from '@mysten/suins';
|
|
8
8
|
import '@mysten/sui/client';
|
package/dist/index.js
CHANGED
|
@@ -3727,6 +3727,9 @@ async function listServices(base, filter = {}) {
|
|
|
3727
3727
|
const params = new URLSearchParams();
|
|
3728
3728
|
if (filter.agent) params.set("agent", filter.agent);
|
|
3729
3729
|
if (filter.query) params.set("q", filter.query);
|
|
3730
|
+
if (filter.category) params.set("category", filter.category);
|
|
3731
|
+
if (filter.limit !== void 0) params.set("limit", String(filter.limit));
|
|
3732
|
+
if (filter.offset !== void 0) params.set("offset", String(filter.offset));
|
|
3730
3733
|
const qs = params.size > 0 ? `?${params.toString()}` : "";
|
|
3731
3734
|
const json = await commerceFetchJson(`${base}/services${qs}`);
|
|
3732
3735
|
const services = json.services ?? [];
|
|
@@ -4387,5 +4390,3 @@ function displayHandle(label, parentName = AUDRIC_PARENT_NAME) {
|
|
|
4387
4390
|
init_preflight();
|
|
4388
4391
|
|
|
4389
4392
|
export { A2A_ESCROW_FEE_CONFIG_ID, A2A_ESCROW_LATEST_PACKAGE_ID, A2A_ESCROW_OPENING_PACKAGE_ID, A2A_ESCROW_PACKAGE_ID, A2A_ESCROW_PACKAGE_V2_ID, A2A_ESCROW_PACKAGE_V3_ID, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, CETUS_USDC_SUI_POOL, CLOCK_ID, COIN_REGISTRY, DEFAULT_ACTIVITY_REPORT_URL, DEFAULT_API_BASE, DEFAULT_COMMERCE_API_BASE, DEFAULT_GRPC_URL, DEFAULT_NETWORK, ESCROW_JOB_TYPE_MARKER, ETH_TYPE, GASLESS_MIN_STABLE_AMOUNT, GASLESS_STABLE_TYPES, GAS_RESERVE_MIN, IKA_TYPE, InvalidAddressError, JOB_STATES, KNOWN_TARGETS, KeypairSigner, LABEL_PATTERNS, LOFI_TYPE, LimitEnforcer, LimitExceededError, MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID, MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID, MAINNET_A2A_ESCROW_PACKAGE_ID, MANIFEST_TYPE, MAX_DELIVER_HORIZON_MS, MAX_JOB_USDC, MAX_OPEN_WINDOW_MS, MAX_REVIEW_WINDOW_MS, MIN_JOB_USDC, MIST_PER_SUI, NAVX_TYPE, OPENING_CLAIM_POLICY_ANY_ACTIVE, OPENING_TYPE_MARKER, OPERATION_ASSETS, OVERLAY_FEE_RATE, PREFLIGHT_MAX_AMOUNT, PREFLIGHT_OK, SENDABLE_ASSETS, SPONSORED_PYTH_DEPENDENT_PROVIDERS, STABLE_ASSETS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SUI_DECIMALS, SUI_TYPE, SUPPORTED_ASSETS, SuinsNotRegisteredError, SuinsRpcError, T2000, T2000Error, T2000_OVERLAY_FEE_WALLET, TOKEN_MAP, USDC_DECIMALS, USDC_TYPE, USDE_TYPE, USDSUI_TYPE, USDT_TYPE, WAL_TYPE, WBTC_TYPE, WRITE_APPENDER_REGISTRY, ZkLoginSigner, addSendToTx, addSwapToTx, approxUsdValue, assertAllowedAsset, assertBuyerRequirements, assertLimitConfig, buildAddLeafTx, buildCancelOpeningTx, buildClaimOpeningTx, buildCreateJobTx, buildCreateOpeningTx, buildDeclineJobTx, buildDeliverJobTx, buildRefundJobTx, buildRefundUnclaimedTx, buildRejectJobTx, buildReleaseJobTx, buildRevokeLeafTx, buildSendTx, buildSwapTx, cancelOpenJob, canonicalizeRecipientInput, chatCompletion, chatCompletionStream, checkPositiveAmount, checkSuiAddress, claimOpenJob, classifyAction, classifyLabel, classifySendAsset, classifyTransaction, clearLimits, composeTx, customHireEnvelope, dailySpentToday, deriveAllowedAddressesFromPtb, deserializeCetusRoute, displayHandle, executeTx, exportPrivateKey, extractAllUserLegs, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchAllCoins, fetchService, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fullHandle, generateKeypair, getAddress, getCoinMeta, getDecimals, getDecimalsForCoinType, getJob, getJobSpec, getLimits, getOpenJob, getOpening, getSponsoredSwapProviders, getSuiClient, getSuiGrpcClient, getSwapQuote, hasLimits, invalidSendAssetMessage, isAllowedAsset, isCetusRouteFresh, isCustomHireEnvelope, isInRegistry, jobActionsFor, keypairFromPrivateKey, listModels, listOpenJobs, listServices, loadKey, looksLikeSuiNs, mapMoveAbortCode, mapWalletError, mistToSui, normalizeAddressInput, normalizeAsset, normalizeCoinType, parseSuiRpcTx, payWithX402, postOpenJob, preflightCreateJob, preflightCreateOpening, preflightFail, preflightPay, preflightSend, preflightSwap, probeX402, putJobSpec, queryBalance, queryHistory, queryTransaction, rawToStable, rawToUsdc, readLimitsFile, recordDailySpend, refineLendingLabel, refundOpenJob, reportX402Activity, resolveAddressToSuinsViaRpc, resolveCreatedObjectId, resolveSuinsViaRpc, resolveSymbol, resolveTokenType, saveBech32, saveKey, selectAndSplitCoin, selectSuiCoin, serializeCetusRoute, setLimits, setSponsoredTxGuard, simulateTransaction, stableToRaw, suiToMist, throwIfSimulationFailed, truncateAddress, usdcToRaw, validateAddress, validateLabel, verifyCetusRouteCoinMatch, verifyJobForSeller, verifyReceipt, walletExists, writeLimitsFile };
|
|
4390
|
-
//# sourceMappingURL=index.js.map
|
|
4391
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t2000/sdk",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.32.1",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": ">=20"
|
|
6
|
+
},
|
|
4
7
|
"description": "TypeScript SDK for Agent Wallets on Sui — gasless USDC + USDsui transfers, Cetus swap routing, NAVI lending (programmatic), MPP paid API access, zkLogin compatible.",
|
|
5
8
|
"type": "module",
|
|
6
9
|
"main": "./dist/index.cjs",
|
|
@@ -52,7 +55,7 @@
|
|
|
52
55
|
"@phala/dcap-qvl": "^0.5.2",
|
|
53
56
|
"bn.js": "^5.2.1",
|
|
54
57
|
"eventemitter3": "^5",
|
|
55
|
-
"@t2000/sui-x402": "10.
|
|
58
|
+
"@t2000/sui-x402": "10.32.1"
|
|
56
59
|
},
|
|
57
60
|
"devDependencies": {
|
|
58
61
|
"@types/bn.js": "^5.1.5",
|