@t2000/sdk 10.21.2 → 10.22.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.
@@ -932,13 +932,13 @@ interface PayResult {
932
932
  * the target URL shape and the `maxPrice` ceiling when present — the cheap
933
933
  * checks the v3 host runs before dispatching the paid tool / showing the
934
934
  * tap-to-confirm card. Returns a `PreflightResult`; never throws. The probe +
935
- * 402 handshake + balance migration stay in `payWithMpp` (network).
935
+ * 402 handshake + balance migration stay in `payWithX402` (network).
936
936
  */
937
937
  declare function preflightPay(input: {
938
938
  url: string;
939
939
  maxPrice?: number;
940
940
  }): PreflightResult;
941
- declare function payWithMpp(args: {
941
+ declare function payWithX402(args: {
942
942
  signer: TransactionSigner;
943
943
  client: SuiGrpcClient;
944
944
  options: PayOptions;
@@ -1556,4 +1556,4 @@ declare function putJobSpec(base: string, content: string): Promise<string>;
1556
1556
  * the store is untrusted; the chain hash is the authority). */
1557
1557
  declare function getJobSpec(base: string, hash: string): Promise<string>;
1558
1558
 
1559
- export { type T2000ErrorData as $, A2A_ESCROW_FEE_CONFIG_ID as A, type BalanceResponse as B, CLOCK_ID as C, DEFAULT_ACTIVITY_REPORT_URL as D, ETH_TYPE as E, SUI_TYPE as F, GAS_RESERVE_MIN as G, SUPPORTED_ASSETS as H, IKA_TYPE as I, JOB_STATES as J, KNOWN_TARGETS as K, LABEL_PATTERNS as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OVERLAY_FEE_RATE as O, PREFLIGHT_MAX_AMOUNT as P, type SendResult as Q, type ServiceListing as R, STABLE_ASSETS as S, type SimulationResult as T, type StableAsset as U, type SuiHolding as V, type SuiRpcTxBlock as W, type SupportedAsset as X, type SwapRouteResult as Y, T2000Error as Z, type T2000ErrorCode as _, A2A_ESCROW_PACKAGE_ID as a, suiToMist as a$, T2000_OVERLAY_FEE_WALLET as a0, TOKEN_MAP as a1, type TransactionLeg as a2, type TransactionRecord as a3, type TransactionSigner as a4, type TxDirection as a5, USDC_DECIMALS as a6, USDC_TYPE as a7, USDE_TYPE as a8, USDSUI_TYPE as a9, formatAssetAmount as aA, formatSui as aB, formatUsd as aC, getDecimals as aD, getDecimalsForCoinType as aE, getJob as aF, getJobSpec as aG, jobActionsFor as aH, listServices as aI, mapMoveAbortCode as aJ, mapWalletError as aK, mistToSui as aL, parseSuiRpcTx as aM, payWithMpp as aN, preflightCreateJob as aO, preflightFail as aP, preflightPay as aQ, preflightSend as aR, preflightSwap as aS, putJobSpec as aT, rawToStable as aU, rawToUsdc as aV, refineLendingLabel as aW, reportX402Activity as aX, resolveSymbol as aY, resolveTokenType as aZ, stableToRaw as a_, USDT_TYPE as aa, WAL_TYPE as ab, WBTC_TYPE as ac, type X402ActivityPayload as ad, type ZkLoginProof as ae, ZkLoginSigner as af, buildCreateJobTx as ag, buildDeliverJobTx as ah, buildRefundJobTx as ai, buildRejectJobTx as aj, buildReleaseJobTx as ak, buildSendTx as al, buildSwapTx as am, checkPositiveAmount as an, checkSuiAddress as ao, classifyAction as ap, classifyLabel as aq, classifyTransaction as ar, executeTx as as, extractAllUserLegs as at, extractTransferDetails as au, extractTxCommands as av, extractTxSender as aw, fallbackLabel as ax, fetchService as ay, findSwapRoute as az, type ActivityReportConfig as b, truncateAddress as b0, usdcToRaw as b1, validateAddress as b2, verifyJobForSeller as b3, type T2000Options as b4, type SwapResult as b5, type SwapQuoteResult as b6, type PaymentRequest as b7, type SuiCoreClient as b8, type SponsoredCoinMergeCache as b9, normalizeAsset as bA, normalizeCoinType as bB, queryHistory as bC, queryTransaction as bD, selectAndSplitCoin as bE, selectSuiCoin as bF, serializeCetusRoute as bG, simulateTransaction as bH, throwIfSimulationFailed as bI, verifyCetusRouteCoinMatch as bJ, type SendableAsset as ba, CETUS_USDC_SUI_POOL as bb, type CoinPage as bc, DEFAULT_GRPC_URL as bd, GASLESS_MIN_STABLE_AMOUNT as be, GASLESS_STABLE_TYPES as bf, OPERATION_ASSETS as bg, type Operation as bh, SENDABLE_ASSETS as bi, type SelectAndSplitResult as bj, type SerializedCetusRoute as bk, type SerializedCetusRoutePath as bl, type SerializedRouterDataV3 as bm, addSendToTx as bn, addSwapToTx as bo, assertAllowedAsset as bp, assertBuyerRequirements as bq, buildDeclineJobTx as br, deserializeCetusRoute as bs, fetchAllCoins as bt, getCoinMeta as bu, getSuiClient as bv, getSuiGrpcClient as bw, isAllowedAsset as bx, isCetusRouteFresh as by, isInRegistry as bz, COIN_REGISTRY as c, type ClassifyBalanceChange as d, type ClassifyResult as e, type CoinMeta as f, DEFAULT_COMMERCE_API_BASE as g, DEFAULT_NETWORK as h, type DepositInfo as i, type ExtractedTransfer as j, type Job as k, type JobState as l, type JobTerms as m, type JobVerification as n, KeypairSigner as o, LOFI_TYPE as p, MAX_DELIVER_HORIZON_MS as q, MAX_JOB_USDC as r, MAX_REVIEW_WINDOW_MS as s, MIST_PER_SUI as t, type OverlayFeeConfig as u, PREFLIGHT_OK as v, type PayOptions as w, type PayResult as x, type PreflightResult as y, SUI_DECIMALS as z };
1559
+ export { type T2000ErrorData as $, A2A_ESCROW_FEE_CONFIG_ID as A, type BalanceResponse as B, CLOCK_ID as C, DEFAULT_ACTIVITY_REPORT_URL as D, ETH_TYPE as E, SUI_TYPE as F, GAS_RESERVE_MIN as G, SUPPORTED_ASSETS as H, IKA_TYPE as I, JOB_STATES as J, KNOWN_TARGETS as K, LABEL_PATTERNS as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OVERLAY_FEE_RATE as O, PREFLIGHT_MAX_AMOUNT as P, type SendResult as Q, type ServiceListing as R, STABLE_ASSETS as S, type SimulationResult as T, type StableAsset as U, type SuiHolding as V, type SuiRpcTxBlock as W, type SupportedAsset as X, type SwapRouteResult as Y, T2000Error as Z, type T2000ErrorCode as _, A2A_ESCROW_PACKAGE_ID as a, suiToMist as a$, T2000_OVERLAY_FEE_WALLET as a0, TOKEN_MAP as a1, type TransactionLeg as a2, type TransactionRecord as a3, type TransactionSigner as a4, type TxDirection as a5, USDC_DECIMALS as a6, USDC_TYPE as a7, USDE_TYPE as a8, USDSUI_TYPE as a9, formatAssetAmount as aA, formatSui as aB, formatUsd as aC, getDecimals as aD, getDecimalsForCoinType as aE, getJob as aF, getJobSpec as aG, jobActionsFor as aH, listServices as aI, mapMoveAbortCode as aJ, mapWalletError as aK, mistToSui as aL, parseSuiRpcTx as aM, payWithX402 as aN, preflightCreateJob as aO, preflightFail as aP, preflightPay as aQ, preflightSend as aR, preflightSwap as aS, putJobSpec as aT, rawToStable as aU, rawToUsdc as aV, refineLendingLabel as aW, reportX402Activity as aX, resolveSymbol as aY, resolveTokenType as aZ, stableToRaw as a_, USDT_TYPE as aa, WAL_TYPE as ab, WBTC_TYPE as ac, type X402ActivityPayload as ad, type ZkLoginProof as ae, ZkLoginSigner as af, buildCreateJobTx as ag, buildDeliverJobTx as ah, buildRefundJobTx as ai, buildRejectJobTx as aj, buildReleaseJobTx as ak, buildSendTx as al, buildSwapTx as am, checkPositiveAmount as an, checkSuiAddress as ao, classifyAction as ap, classifyLabel as aq, classifyTransaction as ar, executeTx as as, extractAllUserLegs as at, extractTransferDetails as au, extractTxCommands as av, extractTxSender as aw, fallbackLabel as ax, fetchService as ay, findSwapRoute as az, type ActivityReportConfig as b, truncateAddress as b0, usdcToRaw as b1, validateAddress as b2, verifyJobForSeller as b3, type T2000Options as b4, type SwapResult as b5, type SwapQuoteResult as b6, type PaymentRequest as b7, type SuiCoreClient as b8, type SponsoredCoinMergeCache as b9, normalizeAsset as bA, normalizeCoinType as bB, queryHistory as bC, queryTransaction as bD, selectAndSplitCoin as bE, selectSuiCoin as bF, serializeCetusRoute as bG, simulateTransaction as bH, throwIfSimulationFailed as bI, verifyCetusRouteCoinMatch as bJ, type SendableAsset as ba, CETUS_USDC_SUI_POOL as bb, type CoinPage as bc, DEFAULT_GRPC_URL as bd, GASLESS_MIN_STABLE_AMOUNT as be, GASLESS_STABLE_TYPES as bf, OPERATION_ASSETS as bg, type Operation as bh, SENDABLE_ASSETS as bi, type SelectAndSplitResult as bj, type SerializedCetusRoute as bk, type SerializedCetusRoutePath as bl, type SerializedRouterDataV3 as bm, addSendToTx as bn, addSwapToTx as bo, assertAllowedAsset as bp, assertBuyerRequirements as bq, buildDeclineJobTx as br, deserializeCetusRoute as bs, fetchAllCoins as bt, getCoinMeta as bu, getSuiClient as bv, getSuiGrpcClient as bw, isAllowedAsset as bx, isCetusRouteFresh as by, isInRegistry as bz, COIN_REGISTRY as c, type ClassifyBalanceChange as d, type ClassifyResult as e, type CoinMeta as f, DEFAULT_COMMERCE_API_BASE as g, DEFAULT_NETWORK as h, type DepositInfo as i, type ExtractedTransfer as j, type Job as k, type JobState as l, type JobTerms as m, type JobVerification as n, KeypairSigner as o, LOFI_TYPE as p, MAX_DELIVER_HORIZON_MS as q, MAX_JOB_USDC as r, MAX_REVIEW_WINDOW_MS as s, MIST_PER_SUI as t, type OverlayFeeConfig as u, PREFLIGHT_OK as v, type PayOptions as w, type PayResult as x, type PreflightResult as y, SUI_DECIMALS as z };
@@ -932,13 +932,13 @@ interface PayResult {
932
932
  * the target URL shape and the `maxPrice` ceiling when present — the cheap
933
933
  * checks the v3 host runs before dispatching the paid tool / showing the
934
934
  * tap-to-confirm card. Returns a `PreflightResult`; never throws. The probe +
935
- * 402 handshake + balance migration stay in `payWithMpp` (network).
935
+ * 402 handshake + balance migration stay in `payWithX402` (network).
936
936
  */
937
937
  declare function preflightPay(input: {
938
938
  url: string;
939
939
  maxPrice?: number;
940
940
  }): PreflightResult;
941
- declare function payWithMpp(args: {
941
+ declare function payWithX402(args: {
942
942
  signer: TransactionSigner;
943
943
  client: SuiGrpcClient;
944
944
  options: PayOptions;
@@ -1556,4 +1556,4 @@ declare function putJobSpec(base: string, content: string): Promise<string>;
1556
1556
  * the store is untrusted; the chain hash is the authority). */
1557
1557
  declare function getJobSpec(base: string, hash: string): Promise<string>;
1558
1558
 
1559
- export { type T2000ErrorData as $, A2A_ESCROW_FEE_CONFIG_ID as A, type BalanceResponse as B, CLOCK_ID as C, DEFAULT_ACTIVITY_REPORT_URL as D, ETH_TYPE as E, SUI_TYPE as F, GAS_RESERVE_MIN as G, SUPPORTED_ASSETS as H, IKA_TYPE as I, JOB_STATES as J, KNOWN_TARGETS as K, LABEL_PATTERNS as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OVERLAY_FEE_RATE as O, PREFLIGHT_MAX_AMOUNT as P, type SendResult as Q, type ServiceListing as R, STABLE_ASSETS as S, type SimulationResult as T, type StableAsset as U, type SuiHolding as V, type SuiRpcTxBlock as W, type SupportedAsset as X, type SwapRouteResult as Y, T2000Error as Z, type T2000ErrorCode as _, A2A_ESCROW_PACKAGE_ID as a, suiToMist as a$, T2000_OVERLAY_FEE_WALLET as a0, TOKEN_MAP as a1, type TransactionLeg as a2, type TransactionRecord as a3, type TransactionSigner as a4, type TxDirection as a5, USDC_DECIMALS as a6, USDC_TYPE as a7, USDE_TYPE as a8, USDSUI_TYPE as a9, formatAssetAmount as aA, formatSui as aB, formatUsd as aC, getDecimals as aD, getDecimalsForCoinType as aE, getJob as aF, getJobSpec as aG, jobActionsFor as aH, listServices as aI, mapMoveAbortCode as aJ, mapWalletError as aK, mistToSui as aL, parseSuiRpcTx as aM, payWithMpp as aN, preflightCreateJob as aO, preflightFail as aP, preflightPay as aQ, preflightSend as aR, preflightSwap as aS, putJobSpec as aT, rawToStable as aU, rawToUsdc as aV, refineLendingLabel as aW, reportX402Activity as aX, resolveSymbol as aY, resolveTokenType as aZ, stableToRaw as a_, USDT_TYPE as aa, WAL_TYPE as ab, WBTC_TYPE as ac, type X402ActivityPayload as ad, type ZkLoginProof as ae, ZkLoginSigner as af, buildCreateJobTx as ag, buildDeliverJobTx as ah, buildRefundJobTx as ai, buildRejectJobTx as aj, buildReleaseJobTx as ak, buildSendTx as al, buildSwapTx as am, checkPositiveAmount as an, checkSuiAddress as ao, classifyAction as ap, classifyLabel as aq, classifyTransaction as ar, executeTx as as, extractAllUserLegs as at, extractTransferDetails as au, extractTxCommands as av, extractTxSender as aw, fallbackLabel as ax, fetchService as ay, findSwapRoute as az, type ActivityReportConfig as b, truncateAddress as b0, usdcToRaw as b1, validateAddress as b2, verifyJobForSeller as b3, type T2000Options as b4, type SwapResult as b5, type SwapQuoteResult as b6, type PaymentRequest as b7, type SuiCoreClient as b8, type SponsoredCoinMergeCache as b9, normalizeAsset as bA, normalizeCoinType as bB, queryHistory as bC, queryTransaction as bD, selectAndSplitCoin as bE, selectSuiCoin as bF, serializeCetusRoute as bG, simulateTransaction as bH, throwIfSimulationFailed as bI, verifyCetusRouteCoinMatch as bJ, type SendableAsset as ba, CETUS_USDC_SUI_POOL as bb, type CoinPage as bc, DEFAULT_GRPC_URL as bd, GASLESS_MIN_STABLE_AMOUNT as be, GASLESS_STABLE_TYPES as bf, OPERATION_ASSETS as bg, type Operation as bh, SENDABLE_ASSETS as bi, type SelectAndSplitResult as bj, type SerializedCetusRoute as bk, type SerializedCetusRoutePath as bl, type SerializedRouterDataV3 as bm, addSendToTx as bn, addSwapToTx as bo, assertAllowedAsset as bp, assertBuyerRequirements as bq, buildDeclineJobTx as br, deserializeCetusRoute as bs, fetchAllCoins as bt, getCoinMeta as bu, getSuiClient as bv, getSuiGrpcClient as bw, isAllowedAsset as bx, isCetusRouteFresh as by, isInRegistry as bz, COIN_REGISTRY as c, type ClassifyBalanceChange as d, type ClassifyResult as e, type CoinMeta as f, DEFAULT_COMMERCE_API_BASE as g, DEFAULT_NETWORK as h, type DepositInfo as i, type ExtractedTransfer as j, type Job as k, type JobState as l, type JobTerms as m, type JobVerification as n, KeypairSigner as o, LOFI_TYPE as p, MAX_DELIVER_HORIZON_MS as q, MAX_JOB_USDC as r, MAX_REVIEW_WINDOW_MS as s, MIST_PER_SUI as t, type OverlayFeeConfig as u, PREFLIGHT_OK as v, type PayOptions as w, type PayResult as x, type PreflightResult as y, SUI_DECIMALS as z };
1559
+ export { type T2000ErrorData as $, A2A_ESCROW_FEE_CONFIG_ID as A, type BalanceResponse as B, CLOCK_ID as C, DEFAULT_ACTIVITY_REPORT_URL as D, ETH_TYPE as E, SUI_TYPE as F, GAS_RESERVE_MIN as G, SUPPORTED_ASSETS as H, IKA_TYPE as I, JOB_STATES as J, KNOWN_TARGETS as K, LABEL_PATTERNS as L, MANIFEST_TYPE as M, NAVX_TYPE as N, OVERLAY_FEE_RATE as O, PREFLIGHT_MAX_AMOUNT as P, type SendResult as Q, type ServiceListing as R, STABLE_ASSETS as S, type SimulationResult as T, type StableAsset as U, type SuiHolding as V, type SuiRpcTxBlock as W, type SupportedAsset as X, type SwapRouteResult as Y, T2000Error as Z, type T2000ErrorCode as _, A2A_ESCROW_PACKAGE_ID as a, suiToMist as a$, T2000_OVERLAY_FEE_WALLET as a0, TOKEN_MAP as a1, type TransactionLeg as a2, type TransactionRecord as a3, type TransactionSigner as a4, type TxDirection as a5, USDC_DECIMALS as a6, USDC_TYPE as a7, USDE_TYPE as a8, USDSUI_TYPE as a9, formatAssetAmount as aA, formatSui as aB, formatUsd as aC, getDecimals as aD, getDecimalsForCoinType as aE, getJob as aF, getJobSpec as aG, jobActionsFor as aH, listServices as aI, mapMoveAbortCode as aJ, mapWalletError as aK, mistToSui as aL, parseSuiRpcTx as aM, payWithX402 as aN, preflightCreateJob as aO, preflightFail as aP, preflightPay as aQ, preflightSend as aR, preflightSwap as aS, putJobSpec as aT, rawToStable as aU, rawToUsdc as aV, refineLendingLabel as aW, reportX402Activity as aX, resolveSymbol as aY, resolveTokenType as aZ, stableToRaw as a_, USDT_TYPE as aa, WAL_TYPE as ab, WBTC_TYPE as ac, type X402ActivityPayload as ad, type ZkLoginProof as ae, ZkLoginSigner as af, buildCreateJobTx as ag, buildDeliverJobTx as ah, buildRefundJobTx as ai, buildRejectJobTx as aj, buildReleaseJobTx as ak, buildSendTx as al, buildSwapTx as am, checkPositiveAmount as an, checkSuiAddress as ao, classifyAction as ap, classifyLabel as aq, classifyTransaction as ar, executeTx as as, extractAllUserLegs as at, extractTransferDetails as au, extractTxCommands as av, extractTxSender as aw, fallbackLabel as ax, fetchService as ay, findSwapRoute as az, type ActivityReportConfig as b, truncateAddress as b0, usdcToRaw as b1, validateAddress as b2, verifyJobForSeller as b3, type T2000Options as b4, type SwapResult as b5, type SwapQuoteResult as b6, type PaymentRequest as b7, type SuiCoreClient as b8, type SponsoredCoinMergeCache as b9, normalizeAsset as bA, normalizeCoinType as bB, queryHistory as bC, queryTransaction as bD, selectAndSplitCoin as bE, selectSuiCoin as bF, serializeCetusRoute as bG, simulateTransaction as bH, throwIfSimulationFailed as bI, verifyCetusRouteCoinMatch as bJ, type SendableAsset as ba, CETUS_USDC_SUI_POOL as bb, type CoinPage as bc, DEFAULT_GRPC_URL as bd, GASLESS_MIN_STABLE_AMOUNT as be, GASLESS_STABLE_TYPES as bf, OPERATION_ASSETS as bg, type Operation as bh, SENDABLE_ASSETS as bi, type SelectAndSplitResult as bj, type SerializedCetusRoute as bk, type SerializedCetusRoutePath as bl, type SerializedRouterDataV3 as bm, addSendToTx as bn, addSwapToTx as bo, assertAllowedAsset as bp, assertBuyerRequirements as bq, buildDeclineJobTx as br, deserializeCetusRoute as bs, fetchAllCoins as bt, getCoinMeta as bu, getSuiClient as bv, getSuiGrpcClient as bw, isAllowedAsset as bx, isCetusRouteFresh as by, isInRegistry as bz, COIN_REGISTRY as c, type ClassifyBalanceChange as d, type ClassifyResult as e, type CoinMeta as f, DEFAULT_COMMERCE_API_BASE as g, DEFAULT_NETWORK as h, type DepositInfo as i, type ExtractedTransfer as j, type Job as k, type JobState as l, type JobTerms as m, type JobVerification as n, KeypairSigner as o, LOFI_TYPE as p, MAX_DELIVER_HORIZON_MS as q, MAX_JOB_USDC as r, MAX_REVIEW_WINDOW_MS as s, MIST_PER_SUI as t, type OverlayFeeConfig as u, PREFLIGHT_OK as v, type PayOptions as w, type PayResult as x, type PreflightResult as y, SUI_DECIMALS as z };
package/dist/index.cjs CHANGED
@@ -19,7 +19,6 @@ var sha256 = require('@noble/hashes/sha256');
19
19
  var utils$1 = require('@noble/hashes/utils');
20
20
  var fs = require('fs');
21
21
  var suins = require('@mysten/suins');
22
- var bcs = require('@mysten/sui/bcs');
23
22
 
24
23
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
25
24
 
@@ -1141,7 +1140,7 @@ function preflightPay(input) {
1141
1140
  }
1142
1141
  return exports.PREFLIGHT_OK;
1143
1142
  }
1144
- async function payWithMpp(args) {
1143
+ async function payWithX402(args) {
1145
1144
  const { signer, client } = args;
1146
1145
  let options = args.options;
1147
1146
  const pf = preflightPay({ url: options.url, maxPrice: options.maxPrice });
@@ -2793,7 +2792,7 @@ var T2000 = class _T2000 extends eventemitter3.EventEmitter {
2793
2792
  // -- MPP Payments --
2794
2793
  async pay(options) {
2795
2794
  this.limits.assert({ operation: "pay", amountUsd: options.maxPrice ?? 0, force: options.force });
2796
- const result = await payWithMpp({ signer: this._signer, client: this.client, options });
2795
+ const result = await payWithX402({ signer: this._signer, client: this.client, options });
2797
2796
  if (result.paid) {
2798
2797
  this.limits.record(result.cost ?? options.maxPrice ?? 0);
2799
2798
  }
@@ -4164,411 +4163,17 @@ function displayHandle(label, parentName = AUDRIC_PARENT_NAME) {
4164
4163
  // src/index.ts
4165
4164
  init_preflight();
4166
4165
 
4167
- // src/capital/launch.ts
4168
- init_errors();
4169
- init_token_registry();
4170
- init_coinSelection();
4171
-
4172
- // src/protocols/cetus-clmm.ts
4173
- var CETUS_CLMM_PACKAGE_ID = process.env.CETUS_CLMM_PACKAGE_ID ?? "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb";
4174
- var CETUS_CLMM_PUBLISHED_AT = process.env.CETUS_CLMM_PUBLISHED_AT ?? "0x25ebb9a7c50eb17b3fa9c5a30fb8b5ad8f97caaf4928943acbcff7153dfee5e3";
4175
- var CETUS_GLOBAL_CONFIG_ID = process.env.CETUS_GLOBAL_CONFIG_ID ?? "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f";
4176
- var CETUS_POOLS_ID = process.env.CETUS_POOLS_ID ?? "0xf699e7f2276f5c9a75944b37a0c5b5d9ddfd2471bf6242483b03ab2887d198d0";
4177
- var CETUS_POSITION_TYPE = `${CETUS_CLMM_PACKAGE_ID}::position::Position`;
4178
- var AGENT_POOL_TICK_SPACING = 200;
4179
- function sqrtPriceX64FromAmounts(rawA, rawB) {
4180
- if (rawA <= 0n || rawB <= 0n) {
4181
- throw new Error("sqrtPriceX64FromAmounts: amounts must be positive");
4182
- }
4183
- return bigintSqrt((rawB << 128n) / rawA);
4184
- }
4185
- function bigintSqrt(n) {
4186
- if (n < 0n) throw new Error("bigintSqrt: negative input");
4187
- if (n < 2n) return n;
4188
- let x = 1n << BigInt(n.toString(2).length + 1) / 2n;
4189
- let prev = x + 1n;
4190
- while (x < prev) {
4191
- prev = x;
4192
- x = (x + n / x) / 2n;
4193
- }
4194
- return prev;
4195
- }
4196
- function createPoolV3(tx, args) {
4197
- const [tickLower, tickUpper] = fullRangeTickRange(tx);
4198
- return tx.moveCall({
4199
- target: `${CETUS_CLMM_PUBLISHED_AT}::pool_creator::create_pool_v3`,
4200
- typeArguments: [args.coinTypeA, args.coinTypeB],
4201
- arguments: [
4202
- tx.object(CETUS_GLOBAL_CONFIG_ID),
4203
- tx.object(CETUS_POOLS_ID),
4204
- tx.pure.u32(AGENT_POOL_TICK_SPACING),
4205
- tx.pure.u128(args.sqrtPriceX64),
4206
- tx.pure.string(args.url ?? ""),
4207
- tickLower,
4208
- tickUpper,
4209
- args.coinA,
4210
- args.coinB,
4211
- tx.pure.bool(args.fixAmountA),
4212
- tx.object.clock()
4213
- ]
4214
- });
4215
- }
4216
- function fullRangeTickRange(tx) {
4217
- const result = tx.moveCall({
4218
- target: `${CETUS_CLMM_PUBLISHED_AT}::pool_creator::full_range_tick_range`,
4219
- arguments: [tx.pure.u32(AGENT_POOL_TICK_SPACING)]
4220
- });
4221
- return [result[0], result[1]];
4222
- }
4223
- function positionPoolId(tx, position) {
4224
- return tx.moveCall({
4225
- target: `${CETUS_CLMM_PUBLISHED_AT}::position::pool_id`,
4226
- arguments: [position]
4227
- });
4228
- }
4229
-
4230
- // src/capital/template.ts
4231
- init_errors();
4232
-
4233
- // src/capital/template-bytecode.json
4234
- var template_bytecode_default = {
4235
- modules: [
4236
- "oRzrCwcAAAUKAQAMAgwkAzAoBFgMBWRoB8wBzwEImwNgBvsDiQEKhAUFDIkFNAARAQ0CBwISAhMCFAADAgABAgcBAAACAAwBAAECAQwBAAECBAwBAAEEBQIABQYHAAAKAAEAARAFBgEAAggICQECAgsKCwEAAw4FAQEMAw8NAQEMBQwDBAABBAIHAwcFDAQOBA8CCAAHCAUAAgsDAQgACwQBCAABCgIBCAYBCQABCwEBCQABCAAHCQACCgIKAgoCCwEBCAYHCAUCCwQBCQALAwEJAAMHCwQBCQADBwgFAQsCAQkAAQsCAQgAAgkABQELAwEIAAELBAEIAARDb2luDENvaW5NZXRhZGF0YQZPcHRpb24IVEVNUExBVEULVHJlYXN1cnlDYXAJVHhDb250ZXh0A1VybARjb2luD2NyZWF0ZV9jdXJyZW5jeQtkdW1teV9maWVsZARpbml0BG1pbnQVbmV3X3Vuc2FmZV9mcm9tX2J5dGVzBm9wdGlvbhRwdWJsaWNfZnJlZXplX29iamVjdA9wdWJsaWNfdHJhbnNmZXIEc29tZQh0ZW1wbGF0ZQh0cmFuc2Zlcgp0eF9jb250ZXh0A3VybAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgIBBgoCBQRUTVBMCgIODVRlbXBsYXRlIENvaW4KAh4dYnl0ZWNvZGUgdGVtcGxhdGUgcGxhY2Vob2xkZXIKAh0caHR0cHM6Ly9leGFtcGxlLmNvbS9pY29uLnN2ZwMIAIDGpH6NAwAFIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMr+AAIBCQEAAAAAAhcLAAcABwEHAgcDBwQRBjgACgE4AQwCDAMNAwcFCwE4AgcGOAMLAjgECwM4BQIAAA=="
4237
- ],
4238
- dependencies: [
4239
- "0x0000000000000000000000000000000000000000000000000000000000000001",
4240
- "0x0000000000000000000000000000000000000000000000000000000000000002"
4241
- ]};
4242
-
4243
- // src/capital/template.ts
4244
- var TEMPLATE = {
4245
- module: "template",
4246
- otw: "TEMPLATE",
4247
- symbol: "TMPL",
4248
- name: "Template Coin",
4249
- description: "bytecode template placeholder",
4250
- iconUrl: "https://example.com/icon.svg",
4251
- totalSupply: 1000000000000000n,
4252
- recipient: utils.normalizeSuiAddress("0xCAFE")
4253
- };
4254
- var AGENT_TOKEN_DECIMALS = 6;
4255
- var AGENT_TOKEN_TOTAL_SUPPLY = 1000000000000000n;
4256
- var AGENT_TOKEN_LP_ALLOCATION = AGENT_TOKEN_TOTAL_SUPPLY / 2n;
4257
- var AGENT_TOKEN_TREASURY_ALLOCATION = AGENT_TOKEN_TOTAL_SUPPLY - AGENT_TOKEN_LP_ALLOCATION;
4258
- var SYMBOL_BLOCKLIST = /* @__PURE__ */ new Set([
4259
- "SUI",
4260
- "USDC",
4261
- "USDT",
4262
- "USDSUI",
4263
- "WAL",
4264
- "CETUS",
4265
- "DEEP",
4266
- "NS",
4267
- "NAVX",
4268
- "SCA",
4269
- "AFSUI",
4270
- "HASUI",
4271
- "VSUI",
4272
- "BUCK",
4273
- "FUD",
4274
- "BLUB",
4275
- "HIPPO",
4276
- "BTC",
4277
- "WBTC",
4278
- "ETH",
4279
- "WETH",
4280
- "SOL",
4281
- "BNB",
4282
- "XRP",
4283
- "ADA",
4284
- "DOGE",
4285
- "AVAX",
4286
- "LINK",
4287
- "TRX",
4288
- "TON",
4289
- "SHIB",
4290
- "PEPE",
4291
- "USDE",
4292
- "DAI",
4293
- "GOLD",
4294
- "XAUM",
4295
- "T2000",
4296
- "T2K",
4297
- "AUDRIC"
4298
- ]);
4299
- var SYMBOL_RE = /^[A-Z][A-Z0-9]{1,7}$/;
4300
- function validateAgentCoinParams(params) {
4301
- const symbol = params.symbol.toUpperCase();
4302
- if (!SYMBOL_RE.test(symbol)) {
4303
- throw new exports.T2000Error(
4304
- "INVALID_INPUT",
4305
- `symbol must be 2-8 chars, A-Z then A-Z0-9 (got "${params.symbol}")`
4306
- );
4307
- }
4308
- if (SYMBOL_BLOCKLIST.has(symbol)) {
4309
- throw new exports.T2000Error(
4310
- "INVALID_INPUT",
4311
- `symbol ${symbol} impersonates an existing ticker`
4312
- );
4313
- }
4314
- if (!params.name.trim() || params.name.length > 64) {
4315
- throw new exports.T2000Error("INVALID_INPUT", "name must be 1-64 chars");
4316
- }
4317
- if (params.description.length > 256) {
4318
- throw new exports.T2000Error("INVALID_INPUT", "description must be \u2264256 chars");
4319
- }
4320
- if (!/^https:\/\/.+/.test(params.iconUrl) || params.iconUrl.length > 256) {
4321
- throw new exports.T2000Error("INVALID_INPUT", "iconUrl must be https and \u2264256 chars");
4322
- }
4323
- if (!utils.isValidSuiAddress(params.recipient)) {
4324
- throw new exports.T2000Error("INVALID_ADDRESS", `bad recipient: ${params.recipient}`);
4325
- }
4326
- }
4327
- async function buildAgentCoinModule(params) {
4328
- const { deserialize, serialize, update_constants, update_identifiers } = await import('@mysten/move-bytecode-template');
4329
- validateAgentCoinParams(params);
4330
- const symbol = params.symbol.toUpperCase();
4331
- const moduleName = symbol.toLowerCase();
4332
- const recipient = utils.normalizeSuiAddress(params.recipient);
4333
- let bytes = Uint8Array.from(
4334
- Buffer.from(template_bytecode_default.modules[0], "base64")
4335
- );
4336
- deserialize(bytes);
4337
- bytes = update_identifiers(bytes, {
4338
- [TEMPLATE.module]: moduleName,
4339
- [TEMPLATE.otw]: symbol
4340
- });
4341
- const str = (s) => bcs.bcs.string().serialize(s).toBytes();
4342
- const rewrites = [
4343
- [str(symbol), str(TEMPLATE.symbol), "Vector(U8)"],
4344
- [str(params.name), str(TEMPLATE.name), "Vector(U8)"],
4345
- [str(params.description), str(TEMPLATE.description), "Vector(U8)"],
4346
- [str(params.iconUrl), str(TEMPLATE.iconUrl), "Vector(U8)"],
4347
- [
4348
- bcs.bcs.Address.serialize(recipient).toBytes(),
4349
- bcs.bcs.Address.serialize(TEMPLATE.recipient).toBytes(),
4350
- "Address"
4351
- ],
4352
- // Supply + decimals are LOCKED v1 constants — not caller-parameterized —
4353
- // but rewritten anyway so a drifted template recompile can't silently
4354
- // change the economics out from under this module's exported constants.
4355
- [
4356
- bcs.bcs.u64().serialize(AGENT_TOKEN_TOTAL_SUPPLY).toBytes(),
4357
- bcs.bcs.u64().serialize(TEMPLATE.totalSupply).toBytes(),
4358
- "U64"
4359
- ]
4360
- ];
4361
- for (const [next, prev, type] of rewrites) {
4362
- bytes = update_constants(bytes, next, prev, type);
4363
- }
4364
- serialize(deserialize(bytes));
4365
- return {
4366
- modules: [Array.from(bytes)],
4367
- dependencies: template_bytecode_default.dependencies,
4368
- moduleName,
4369
- otw: symbol
4370
- };
4371
- }
4372
-
4373
- // src/capital/launch.ts
4374
- var AGENT_CAPITAL_PACKAGE_ID = process.env.AGENT_CAPITAL_PACKAGE_ID ?? "0xa83ecc4e530594f8e184faf6a4c3da6791267f6791a653644d59e2e603c055b8";
4375
- var AGENT_CAPITAL_PUBLISHED_AT = process.env.AGENT_CAPITAL_PUBLISHED_AT ?? "0x2974c16bda8f148ef5f8c3177d3d63eec060b1048648ae3b6c1fb495c2a602dd";
4376
- var CAPITAL_REGISTRY_ID = process.env.CAPITAL_REGISTRY_ID ?? "0xef4057baac856d65b47f14a1ba14211299637955ea5bc15d7708f6eef27ee0df";
4377
- var CAPITAL_REGISTRY_VERSION = Number(
4378
- process.env.CAPITAL_REGISTRY_VERSION ?? 931861908
4379
- );
4380
- function assertDeployed() {
4381
- if (!AGENT_CAPITAL_PACKAGE_ID || !CAPITAL_REGISTRY_ID) {
4382
- throw new exports.T2000Error(
4383
- "PROTOCOL_UNAVAILABLE",
4384
- "agent_capital is not deployed on this network (set AGENT_CAPITAL_PACKAGE_ID + CAPITAL_REGISTRY_ID)"
4385
- );
4386
- }
4387
- }
4388
- var MIN_LP_USDC = 5000000n;
4389
- var REGISTRY_MODULE = "registry";
4390
- var LP_LOCK_MODULE = "lp_lock";
4391
- var VESTING_MODULE = "vesting";
4392
- async function buildPublishAgentCoinTx(args) {
4393
- if (!utils.isValidSuiAddress(args.launcher)) {
4394
- throw new exports.T2000Error("INVALID_ADDRESS", `bad launcher: ${args.launcher}`);
4395
- }
4396
- if (args.coin.recipient !== args.launcher) {
4397
- throw new exports.T2000Error(
4398
- "INVALID_INPUT",
4399
- "coin.recipient must equal launcher \u2014 the full supply lands with the launch signer, never a third party"
4400
- );
4401
- }
4402
- const mod = await buildAgentCoinModule(args.coin);
4403
- const tx = new transactions.Transaction();
4404
- tx.setSender(args.launcher);
4405
- const [upgradeCap] = tx.publish({
4406
- modules: mod.modules,
4407
- dependencies: mod.dependencies
4408
- });
4409
- tx.moveCall({
4410
- target: "0x2::package::make_immutable",
4411
- arguments: [upgradeCap]
4412
- });
4413
- return { tx, moduleName: mod.moduleName, otw: mod.otw };
4414
- }
4415
- async function buildTokenizeTx(args) {
4416
- assertDeployed();
4417
- if (!utils.isValidSuiAddress(args.agent)) {
4418
- throw new exports.T2000Error("INVALID_ADDRESS", `bad agent: ${args.agent}`);
4419
- }
4420
- if (!utils.isValidSuiAddress(args.launcher)) {
4421
- throw new exports.T2000Error("INVALID_ADDRESS", `bad launcher: ${args.launcher}`);
4422
- }
4423
- if (args.lpUsdcAmount < MIN_LP_USDC) {
4424
- throw new exports.T2000Error(
4425
- "INVALID_AMOUNT",
4426
- `lpUsdcAmount ${args.lpUsdcAmount} < minimum ${MIN_LP_USDC} raw (5 USDC)`
4427
- );
4428
- }
4429
- const tx = new transactions.Transaction();
4430
- tx.setSender(args.launcher);
4431
- const registryArg = () => tx.sharedObjectRef({
4432
- objectId: CAPITAL_REGISTRY_ID,
4433
- initialSharedVersion: CAPITAL_REGISTRY_VERSION,
4434
- mutable: true
4435
- });
4436
- tx.moveCall({
4437
- target: `${AGENT_CAPITAL_PUBLISHED_AT}::${REGISTRY_MODULE}::bind`,
4438
- typeArguments: [args.coinType],
4439
- arguments: [
4440
- registryArg(),
4441
- tx.object(args.agentRegistryId),
4442
- tx.pure.address(args.agent),
4443
- tx.object.clock()
4444
- ]
4445
- });
4446
- const supplyCoin = tx.object(args.supplyCoinId);
4447
- const [lpCoin] = tx.splitCoins(supplyCoin, [
4448
- tx.pure.u64(AGENT_TOKEN_LP_ALLOCATION)
4449
- ]);
4450
- const { coin: lpUsdc } = await selectAndSplitCoin(
4451
- tx,
4452
- args.client,
4453
- args.launcher,
4454
- exports.USDC_TYPE,
4455
- args.lpUsdcAmount
4456
- );
4457
- const usdcFirst = args.usdcFirst ?? false;
4458
- const sqrtPrice = usdcFirst ? sqrtPriceX64FromAmounts(args.lpUsdcAmount, AGENT_TOKEN_LP_ALLOCATION) : sqrtPriceX64FromAmounts(AGENT_TOKEN_LP_ALLOCATION, args.lpUsdcAmount);
4459
- const poolResult = createPoolV3(tx, {
4460
- coinTypeA: usdcFirst ? exports.USDC_TYPE : args.coinType,
4461
- coinTypeB: usdcFirst ? args.coinType : exports.USDC_TYPE,
4462
- coinA: usdcFirst ? lpUsdc : lpCoin,
4463
- coinB: usdcFirst ? lpCoin : lpUsdc,
4464
- sqrtPriceX64: sqrtPrice,
4465
- fixAmountA: !usdcFirst,
4466
- // always fix the AGENT side
4467
- url: args.poolUrl
4468
- });
4469
- const position = poolResult[0];
4470
- const refundA = poolResult[1];
4471
- const refundB = poolResult[2];
4472
- const poolId = positionPoolId(tx, position);
4473
- const [lockId] = tx.moveCall({
4474
- target: `${AGENT_CAPITAL_PUBLISHED_AT}::${LP_LOCK_MODULE}::lock`,
4475
- typeArguments: [CETUS_POSITION_TYPE],
4476
- arguments: [position, tx.pure.address(args.agent), tx.object.clock()]
4477
- });
4478
- tx.moveCall({
4479
- target: `${AGENT_CAPITAL_PUBLISHED_AT}::${REGISTRY_MODULE}::finalize`,
4480
- typeArguments: [args.coinType],
4481
- arguments: [
4482
- registryArg(),
4483
- tx.object(args.agentRegistryId),
4484
- tx.pure.address(args.agent),
4485
- poolId,
4486
- lockId,
4487
- tx.object.clock()
4488
- ]
4489
- });
4490
- const agentRefund = usdcFirst ? refundB : refundA;
4491
- const usdcRefund = usdcFirst ? refundA : refundB;
4492
- tx.mergeCoins(supplyCoin, [agentRefund]);
4493
- tx.moveCall({
4494
- target: `${AGENT_CAPITAL_PUBLISHED_AT}::${VESTING_MODULE}::lock`,
4495
- typeArguments: [args.coinType],
4496
- arguments: [supplyCoin, tx.pure.address(args.agent), tx.object.clock()]
4497
- });
4498
- tx.transferObjects([usdcRefund], tx.pure.address(args.launcher));
4499
- return tx;
4500
- }
4501
-
4502
- // src/capital/swap.ts
4503
- init_errors();
4504
- init_token_registry();
4505
- var CETUS_INTEGRATE_PUBLISHED_AT = process.env.CETUS_INTEGRATE_PUBLISHED_AT ?? "0xfbb32ac0fa89a3cb0c56c745b688c6d2a53ac8e43447119ad822763997ffb9c3";
4506
- var MIN_SQRT_PRICE = 4295048016n;
4507
- var MAX_SQRT_PRICE = 79226673515401279992447579055n;
4508
- async function buildDirectPoolSwapTx(args) {
4509
- if (args.amountIn <= 0n) {
4510
- throw new exports.T2000Error("INVALID_AMOUNT", "amountIn must be positive");
4511
- }
4512
- const pool = await args.client.core.getObject({ objectId: args.poolId }).catch(() => null);
4513
- const m = pool?.object?.type?.match(/Pool<(.+),\s*(.+)>$/);
4514
- if (!m) {
4515
- throw new exports.T2000Error("PROTOCOL_UNAVAILABLE", `not a Cetus pool: ${args.poolId}`);
4516
- }
4517
- const [typeA, typeB] = [m[1].trim(), m[2].trim()];
4518
- const aIsUsdc = typeA === exports.USDC_TYPE;
4519
- if (!aIsUsdc && typeB !== exports.USDC_TYPE) {
4520
- throw new exports.T2000Error("INVALID_ASSET", "pool is not USDC-quoted");
4521
- }
4522
- const a2b = args.direction === "buy" ? aIsUsdc : !aIsUsdc;
4523
- const inputType = args.direction === "buy" ? exports.USDC_TYPE : a2b ? typeA : typeB;
4524
- const tx = new transactions.Transaction();
4525
- tx.setSender(args.sender);
4526
- const input = transactions.coinWithBalance({ type: inputType, balance: args.amountIn });
4527
- const vec = tx.makeMoveVec({ elements: [input] });
4528
- tx.moveCall({
4529
- target: `${CETUS_INTEGRATE_PUBLISHED_AT}::pool_script::${a2b ? "swap_a2b" : "swap_b2a"}`,
4530
- typeArguments: [typeA, typeB],
4531
- arguments: [
4532
- tx.object(CETUS_GLOBAL_CONFIG_ID),
4533
- tx.object(args.poolId),
4534
- vec,
4535
- tx.pure.bool(true),
4536
- // by_amount_in
4537
- tx.pure.u64(args.amountIn),
4538
- tx.pure.u64(args.minOut),
4539
- // amount_limit = the slippage floor
4540
- tx.pure.u128(a2b ? MIN_SQRT_PRICE : MAX_SQRT_PRICE),
4541
- tx.object.clock()
4542
- ]
4543
- });
4544
- return tx;
4545
- }
4546
-
4547
4166
  exports.A2A_ESCROW_FEE_CONFIG_ID = A2A_ESCROW_FEE_CONFIG_ID;
4548
4167
  exports.A2A_ESCROW_OPENING_PACKAGE_ID = A2A_ESCROW_OPENING_PACKAGE_ID;
4549
4168
  exports.A2A_ESCROW_PACKAGE_ID = A2A_ESCROW_PACKAGE_ID;
4550
4169
  exports.A2A_ESCROW_PACKAGE_V2_ID = A2A_ESCROW_PACKAGE_V2_ID;
4551
4170
  exports.A2A_ESCROW_PACKAGE_V3_ID = A2A_ESCROW_PACKAGE_V3_ID;
4552
- exports.AGENT_CAPITAL_PACKAGE_ID = AGENT_CAPITAL_PACKAGE_ID;
4553
- exports.AGENT_CAPITAL_PUBLISHED_AT = AGENT_CAPITAL_PUBLISHED_AT;
4554
4171
  exports.AGENT_ID_PARENT = AGENT_ID_PARENT;
4555
4172
  exports.AGENT_ID_PARENT_NAME = AGENT_ID_PARENT_NAME;
4556
4173
  exports.AGENT_ID_PARENT_NFT_ID = AGENT_ID_PARENT_NFT_ID;
4557
- exports.AGENT_POOL_TICK_SPACING = AGENT_POOL_TICK_SPACING;
4558
- exports.AGENT_TOKEN_DECIMALS = AGENT_TOKEN_DECIMALS;
4559
- exports.AGENT_TOKEN_LP_ALLOCATION = AGENT_TOKEN_LP_ALLOCATION;
4560
- exports.AGENT_TOKEN_TOTAL_SUPPLY = AGENT_TOKEN_TOTAL_SUPPLY;
4561
- exports.AGENT_TOKEN_TREASURY_ALLOCATION = AGENT_TOKEN_TREASURY_ALLOCATION;
4562
4174
  exports.AUDRIC_PARENT = AUDRIC_PARENT;
4563
4175
  exports.AUDRIC_PARENT_NAME = AUDRIC_PARENT_NAME;
4564
4176
  exports.AUDRIC_PARENT_NFT_ID = AUDRIC_PARENT_NFT_ID;
4565
- exports.CAPITAL_REGISTRY_ID = CAPITAL_REGISTRY_ID;
4566
- exports.CAPITAL_REGISTRY_VERSION = CAPITAL_REGISTRY_VERSION;
4567
- exports.CETUS_CLMM_PACKAGE_ID = CETUS_CLMM_PACKAGE_ID;
4568
- exports.CETUS_GLOBAL_CONFIG_ID = CETUS_GLOBAL_CONFIG_ID;
4569
- exports.CETUS_INTEGRATE_PUBLISHED_AT = CETUS_INTEGRATE_PUBLISHED_AT;
4570
- exports.CETUS_POOLS_ID = CETUS_POOLS_ID;
4571
- exports.CETUS_POSITION_TYPE = CETUS_POSITION_TYPE;
4572
4177
  exports.CETUS_USDC_SUI_POOL = CETUS_USDC_SUI_POOL;
4573
4178
  exports.CLOCK_ID = CLOCK_ID;
4574
4179
  exports.DEFAULT_ACTIVITY_REPORT_URL = DEFAULT_ACTIVITY_REPORT_URL;
@@ -4590,7 +4195,6 @@ exports.MAX_DELIVER_HORIZON_MS = MAX_DELIVER_HORIZON_MS;
4590
4195
  exports.MAX_JOB_USDC = MAX_JOB_USDC;
4591
4196
  exports.MAX_OPEN_WINDOW_MS = MAX_OPEN_WINDOW_MS;
4592
4197
  exports.MAX_REVIEW_WINDOW_MS = MAX_REVIEW_WINDOW_MS;
4593
- exports.MIN_LP_USDC = MIN_LP_USDC;
4594
4198
  exports.MIST_PER_SUI = MIST_PER_SUI;
4595
4199
  exports.OPENING_CLAIM_POLICY_ANY_ACTIVE = OPENING_CLAIM_POLICY_ANY_ACTIVE;
4596
4200
  exports.OPERATION_ASSETS = OPERATION_ASSETS;
@@ -4602,7 +4206,6 @@ exports.SUI_ADDRESS_REGEX = SUI_ADDRESS_REGEX;
4602
4206
  exports.SUI_ADDRESS_STRICT_REGEX = SUI_ADDRESS_STRICT_REGEX;
4603
4207
  exports.SUI_DECIMALS = SUI_DECIMALS;
4604
4208
  exports.SUPPORTED_ASSETS = SUPPORTED_ASSETS;
4605
- exports.SYMBOL_BLOCKLIST = SYMBOL_BLOCKLIST;
4606
4209
  exports.SuinsNotRegisteredError = SuinsNotRegisteredError;
4607
4210
  exports.SuinsRpcError = SuinsRpcError;
4608
4211
  exports.T2000 = T2000;
@@ -4617,15 +4220,12 @@ exports.assertAllowedAsset = assertAllowedAsset;
4617
4220
  exports.assertBuyerRequirements = assertBuyerRequirements;
4618
4221
  exports.assertLimitConfig = assertLimitConfig;
4619
4222
  exports.buildAddLeafTx = buildAddLeafTx;
4620
- exports.buildAgentCoinModule = buildAgentCoinModule;
4621
4223
  exports.buildCancelOpeningTx = buildCancelOpeningTx;
4622
4224
  exports.buildClaimOpeningTx = buildClaimOpeningTx;
4623
4225
  exports.buildCreateJobTx = buildCreateJobTx;
4624
4226
  exports.buildCreateOpeningTx = buildCreateOpeningTx;
4625
4227
  exports.buildDeclineJobTx = buildDeclineJobTx;
4626
4228
  exports.buildDeliverJobTx = buildDeliverJobTx;
4627
- exports.buildDirectPoolSwapTx = buildDirectPoolSwapTx;
4628
- exports.buildPublishAgentCoinTx = buildPublishAgentCoinTx;
4629
4229
  exports.buildRefundJobTx = buildRefundJobTx;
4630
4230
  exports.buildRefundUnclaimedTx = buildRefundUnclaimedTx;
4631
4231
  exports.buildRejectJobTx = buildRejectJobTx;
@@ -4633,7 +4233,6 @@ exports.buildReleaseJobTx = buildReleaseJobTx;
4633
4233
  exports.buildRevokeLeafTx = buildRevokeLeafTx;
4634
4234
  exports.buildSendTx = buildSendTx;
4635
4235
  exports.buildSwapTx = buildSwapTx;
4636
- exports.buildTokenizeTx = buildTokenizeTx;
4637
4236
  exports.cancelOpenJob = cancelOpenJob;
4638
4237
  exports.chatCompletion = chatCompletion;
4639
4238
  exports.chatCompletionStream = chatCompletionStream;
@@ -4695,7 +4294,7 @@ exports.normalizeAddressInput = normalizeAddressInput;
4695
4294
  exports.normalizeAsset = normalizeAsset;
4696
4295
  exports.normalizeCoinType = normalizeCoinType;
4697
4296
  exports.parseSuiRpcTx = parseSuiRpcTx;
4698
- exports.payWithMpp = payWithMpp;
4297
+ exports.payWithX402 = payWithX402;
4699
4298
  exports.postOpenJob = postOpenJob;
4700
4299
  exports.preflightCreateJob = preflightCreateJob;
4701
4300
  exports.preflightCreateOpening = preflightCreateOpening;
@@ -4731,7 +4330,6 @@ exports.throwIfSimulationFailed = throwIfSimulationFailed;
4731
4330
  exports.truncateAddress = truncateAddress;
4732
4331
  exports.usdcToRaw = usdcToRaw;
4733
4332
  exports.validateAddress = validateAddress;
4734
- exports.validateAgentCoinParams = validateAgentCoinParams;
4735
4333
  exports.validateLabel = validateLabel;
4736
4334
  exports.verifyCetusRouteCoinMatch = verifyCetusRouteCoinMatch;
4737
4335
  exports.verifyJobForSeller = verifyJobForSeller;