@t2000/sdk 10.3.1 → 10.5.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/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 { X as T2000Error, b1 as T2000Options, a2 as TransactionSigner, u as PayOptions, v as PayResult, b2 as SwapResult, b3 as SwapQuoteResult, V as SupportedAsset, F as SendResult, B as BalanceResponse, a1 as TransactionRecord, g as DepositInfo, b4 as PaymentRequest, ab as ZkLoginProof, b5 as SuiCoreClient, s as OverlayFeeConfig, b6 as SponsoredCoinMergeCache, W as SwapRouteResult, b7 as SendableAsset } from './commerce-CUGyTRcv.cjs';
5
- export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b8 as CETUS_USDC_SUI_POOL, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, b9 as CoinPage, D as DEFAULT_COMMERCE_API_BASE, ba as DEFAULT_GRPC_URL, f as DEFAULT_NETWORK, E as ETH_TYPE, h as ExtractedTransfer, bb as GASLESS_MIN_STABLE_AMOUNT, bc as GASLESS_STABLE_TYPES, 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, bd as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, be as Operation, P as PREFLIGHT_MAX_AMOUNT, t as PREFLIGHT_OK, w as PreflightResult, bf as SENDABLE_ASSETS, S as STABLE_ASSETS, x as SUI_DECIMALS, y as SUI_TYPE, z as SUPPORTED_ASSETS, bg as SelectAndSplitResult, bh as SerializedCetusRoute, bi as SerializedCetusRoutePath, bj as SerializedRouterDataV3, H as ServiceListing, Q as SimulationResult, R as StableAsset, T as SuiHolding, U as SuiRpcTxBlock, Y as T2000ErrorCode, Z as T2000ErrorData, _ as T2000_OVERLAY_FEE_WALLET, $ as TOKEN_MAP, a0 as TransactionLeg, 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, ac as ZkLoginSigner, bk as addSendToTx, bl as addSwapToTx, bm as assertAllowedAsset, 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, bn as deserializeCetusRoute, ap as executeTx, aq as extractAllUserLegs, ar as extractTransferDetails, as as extractTxCommands, at as extractTxSender, au as fallbackLabel, bo as fetchAllCoins, av as fetchService, aw as findSwapRoute, ax as formatAssetAmount, ay as formatSui, az as formatUsd, bp as getCoinMeta, aA as getDecimals, aB as getDecimalsForCoinType, aC as getJob, aD as getJobSpec, bq as getSuiClient, br as getSuiGrpcClient, bs as isAllowedAsset, bt as isCetusRouteFresh, bu as isInRegistry, aE as jobActionsFor, aF as listServices, aG as mapMoveAbortCode, aH as mapWalletError, aI as mistToSui, bv as normalizeAsset, bw as normalizeCoinType, aJ as parseMppSuiChallenge, aK as parseSuiRpcTx, aL as payWithMpp, aM as preflightCreateJob, aN as preflightFail, aO as preflightPay, aP as preflightSend, aQ as preflightSwap, aR as putJobSpec, bx as queryHistory, by as queryTransaction, aS as rawToStable, aT as rawToUsdc, aU as refineLendingLabel, aV as resolveSymbol, aW as resolveTokenType, bz as selectAndSplitCoin, bA as selectSuiCoin, bB as serializeCetusRoute, bC as simulateTransaction, aX as stableToRaw, aY as suiToMist, bD as throwIfSimulationFailed, aZ as truncateAddress, a_ as usdcToRaw, a$ as validateAddress, bE as verifyCetusRouteCoinMatch, b0 as verifyJobForSeller } from './commerce-CUGyTRcv.cjs';
4
+ import { X as T2000Error, b1 as T2000Options, a2 as TransactionSigner, u as PayOptions, v as PayResult, b2 as SwapResult, b3 as SwapQuoteResult, V as SupportedAsset, F as SendResult, B as BalanceResponse, a1 as TransactionRecord, g as DepositInfo, b4 as PaymentRequest, ab as ZkLoginProof, b5 as SuiCoreClient, s as OverlayFeeConfig, b6 as SponsoredCoinMergeCache, W as SwapRouteResult, b7 as SendableAsset } from './commerce-D78r4-MZ.cjs';
5
+ export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b8 as CETUS_USDC_SUI_POOL, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, b9 as CoinPage, D as DEFAULT_COMMERCE_API_BASE, ba as DEFAULT_GRPC_URL, f as DEFAULT_NETWORK, E as ETH_TYPE, h as ExtractedTransfer, bb as GASLESS_MIN_STABLE_AMOUNT, bc as GASLESS_STABLE_TYPES, 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, bd as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, be as Operation, P as PREFLIGHT_MAX_AMOUNT, t as PREFLIGHT_OK, w as PreflightResult, bf as SENDABLE_ASSETS, S as STABLE_ASSETS, x as SUI_DECIMALS, y as SUI_TYPE, z as SUPPORTED_ASSETS, bg as SelectAndSplitResult, bh as SerializedCetusRoute, bi as SerializedCetusRoutePath, bj as SerializedRouterDataV3, H as ServiceListing, Q as SimulationResult, R as StableAsset, T as SuiHolding, U as SuiRpcTxBlock, Y as T2000ErrorCode, Z as T2000ErrorData, _ as T2000_OVERLAY_FEE_WALLET, $ as TOKEN_MAP, a0 as TransactionLeg, 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, ac as ZkLoginSigner, bk as addSendToTx, bl as addSwapToTx, bm as assertAllowedAsset, 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, bn as deserializeCetusRoute, ap as executeTx, aq as extractAllUserLegs, ar as extractTransferDetails, as as extractTxCommands, at as extractTxSender, au as fallbackLabel, bo as fetchAllCoins, av as fetchService, aw as findSwapRoute, ax as formatAssetAmount, ay as formatSui, az as formatUsd, bp as getCoinMeta, aA as getDecimals, aB as getDecimalsForCoinType, aC as getJob, aD as getJobSpec, bq as getSuiClient, br as getSuiGrpcClient, bs as isAllowedAsset, bt as isCetusRouteFresh, bu as isInRegistry, aE as jobActionsFor, aF as listServices, aG as mapMoveAbortCode, aH as mapWalletError, aI as mistToSui, bv as normalizeAsset, bw as normalizeCoinType, aJ as parseMppSuiChallenge, aK as parseSuiRpcTx, aL as payWithMpp, aM as preflightCreateJob, aN as preflightFail, aO as preflightPay, aP as preflightSend, aQ as preflightSwap, aR as putJobSpec, bx as queryHistory, by as queryTransaction, aS as rawToStable, aT as rawToUsdc, aU as refineLendingLabel, aV as resolveSymbol, aW as resolveTokenType, bz as selectAndSplitCoin, bA as selectSuiCoin, bB as serializeCetusRoute, bC as simulateTransaction, aX as stableToRaw, aY as suiToMist, bD as throwIfSimulationFailed, aZ as truncateAddress, a_ as usdcToRaw, a$ as validateAddress, bE as verifyCetusRouteCoinMatch, b0 as verifyJobForSeller } from './commerce-D78r4-MZ.cjs';
6
6
  import { TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
7
7
  import { SuinsClient } from '@mysten/suins';
8
8
  import '@mysten/sui/client';
@@ -409,9 +409,9 @@ declare const SUI_ADDRESS_REGEX: RegExp;
409
409
  */
410
410
  declare const SUI_ADDRESS_STRICT_REGEX: RegExp;
411
411
  /**
412
- * Mirrors the pattern in `audric/apps/web-v2/lib/suins-cache.ts` so the
413
- * host-side send executor and the engine-side read normalizer agree on
414
- * what counts as a SuiNS name. SuiNS allows nested labels (`team.alex.sui`)
412
+ * The single definition of what counts as a SuiNS name, so every caller
413
+ * (CLI send, host send executor, read normalizers) agrees.
414
+ * SuiNS allows nested labels (`team.alex.sui`)
415
415
  * but every label must use only `[a-z0-9-]`.
416
416
  */
417
417
  declare const SUINS_NAME_REGEX: RegExp;
@@ -611,8 +611,8 @@ declare function getAddress(keypair: Ed25519Keypair): string;
611
611
  *
612
612
  * - Spec → `spec/SPEC_7_MULTI_WRITE_PTB.md` § "Layer 0: Canonical
613
613
  * Write Architecture"
614
- * - Read-side companion → `t2000/.cursor/rules/single-source-of-truth.mdc`
615
- * + `audric/.cursor/rules/audric-canonical-portfolio.mdc`
614
+ * - Read-side companion → `audric/.cursor/rules/audric-canonical-portfolio.mdc`
615
+ * (the t2000-side portfolio rule was archived with the engine, 2026-07-24)
616
616
  * - Write-side rule → `audric/.cursor/rules/audric-canonical-write.mdc`
617
617
  */
618
618
 
@@ -1087,4 +1087,164 @@ declare function fullHandle(label: string, parentName?: string): string;
1087
1087
  */
1088
1088
  declare function displayHandle(label: string, parentName?: string): string;
1089
1089
 
1090
- export { AGENT_ID_PARENT, AGENT_ID_PARENT_NAME, AGENT_ID_PARENT_NFT_ID, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type CheckStatus, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, type NormalizedAddress, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, type TrustMode, type UpstreamClaim, type VerifyAnchor, type VerifyCheck, type VerifyOptions, type VerifyResult, type VerifyUpstream, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, chatCompletion, chatCompletionStream, clearLimits, composeTx, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getSponsoredSwapProviders, getSwapQuote, hasLimits, keypairFromPrivateKey, listModels, loadKey, looksLikeSuiNs, normalizeAddressInput, queryBalance, readLimitsFile, recordDailySpend, resolveAddressToSuinsViaRpc, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, validateLabel, verifyReceipt, walletExists, writeLimitsFile };
1090
+ /** The locked v1 economics: 1B whole coins at 6 decimals (D-5 / L2-A). */
1091
+ declare const AGENT_TOKEN_DECIMALS = 6;
1092
+ declare const AGENT_TOKEN_TOTAL_SUPPLY = 1000000000000000n;
1093
+ /** 50% LP / 50% agent treasury. */
1094
+ declare const AGENT_TOKEN_LP_ALLOCATION: bigint;
1095
+ declare const AGENT_TOKEN_TREASURY_ALLOCATION: bigint;
1096
+ interface AgentCoinParams {
1097
+ /** Ticker, 2–8 chars A–Z0–9, becomes module name (lowercased) + OTW. */
1098
+ symbol: string;
1099
+ name: string;
1100
+ description: string;
1101
+ iconUrl: string;
1102
+ /** Receives the full minted supply — the LAUNCHER (who then signs the
1103
+ * split/pool/lock transaction). Never a platform address. */
1104
+ recipient: string;
1105
+ }
1106
+ /**
1107
+ * Impersonation blocklist — top Sui-ecosystem + majors tickers an agent token
1108
+ * must not squat (SPEC_AGENT_CAPITAL guards; kept deliberately short and
1109
+ * high-confidence, console moderation covers the long tail).
1110
+ */
1111
+ declare const SYMBOL_BLOCKLIST: Set<string>;
1112
+ /** Validate launch params; throws `T2000Error('INVALID_AMOUNT'|…)` shapes the
1113
+ * console can surface directly. */
1114
+ declare function validateAgentCoinParams(params: AgentCoinParams): void;
1115
+ interface AgentCoinModule {
1116
+ /** Rewritten module bytecode, ready for `tx.publish`. */
1117
+ modules: number[][];
1118
+ dependencies: string[];
1119
+ /** Lowercased module name — the published coin type is
1120
+ * `<pkg>::<moduleName>::<otw>`. */
1121
+ moduleName: string;
1122
+ otw: string;
1123
+ }
1124
+ /**
1125
+ * Rewrite the compiled template for one agent's launch. Deterministic — same
1126
+ * params, same bytes. Async because `@mysten/move-bytecode-template` (WASM)
1127
+ * is loaded lazily HERE, not at module top level: a top-level import makes
1128
+ * every SDK consumer's bundler ship/locate the .wasm at startup, which broke
1129
+ * the CLI bundle in CI — only the launch path may pay that cost.
1130
+ */
1131
+ declare function buildAgentCoinModule(params: AgentCoinParams): Promise<AgentCoinModule>;
1132
+
1133
+ /**
1134
+ * Agent Capital launch orchestrator (SPEC_ACP_SUI §6, decisions D-5 + L2-A).
1135
+ *
1136
+ * A launch is TWO launcher-signed transactions:
1137
+ *
1138
+ * PTB 1 — `buildPublishAgentCoinTx`: publish the rewritten coin package +
1139
+ * burn its UpgradeCap. `init` mints the full 1B supply to the launcher and
1140
+ * freezes CoinMetadata + TreasuryCap (the can't-rug set).
1141
+ *
1142
+ * PTB 2 — `buildTokenizeTx`: bind the coin type to the Agent ID → split the
1143
+ * supply 50/50 → create the Cetus AGENT/SUI pool seeded with the LP half +
1144
+ * launcher-supplied SUI → wrap the position in a 10-year `LpLock` whose sole
1145
+ * beneficiary is the agent wallet → finalize the registry record. Atomic:
1146
+ * either the agent ends tokenized-with-locked-LP or nothing is recorded.
1147
+ *
1148
+ * Bind CANNOT live in PTB 1 — a type argument can't name a package being
1149
+ * published in the same transaction — so a crashed launch between the PTBs
1150
+ * leaves a published-but-unbound coin (launcher's gas, nobody's harm) and
1151
+ * PTB 2 is simply retried.
1152
+ *
1153
+ * NO GAS SPONSORSHIP on either PTB: PTB 2 seeds SUI liquidity from `tx.gas`,
1154
+ * and under Enoki sponsorship `tx.gas` is the SPONSOR's coin — t2000 must
1155
+ * never seed LP (SPEC_AGENT_CAPITAL guards). The launcher holds SUI by
1156
+ * construction (they're supplying the liquidity).
1157
+ *
1158
+ * These builders construct UNSIGNED transactions; auth lives in the Move
1159
+ * layer (`registry::bind/finalize` re-check agent-or-confirmed-owner on
1160
+ * `ctx.sender()` every call).
1161
+ */
1162
+ /** The published `agent_capital` package id (mainnet, deployed 2026-07-24,
1163
+ * tx `J1dxR72oFhoiZtnwZng9jnDtBev58K9Z8PdPBtMp5eBb`). Env-overridable for
1164
+ * testnet/dev (same pattern as `A2A_ESCROW_PACKAGE_ID`). */
1165
+ declare const AGENT_CAPITAL_PACKAGE_ID: string;
1166
+ /** The shared `CapitalRegistry` object id (mainnet). */
1167
+ declare const CAPITAL_REGISTRY_ID: string;
1168
+ /** `initial_shared_version` of the CapitalRegistry — lets builders reference
1169
+ * the shared object without a resolution round-trip. */
1170
+ declare const CAPITAL_REGISTRY_VERSION: number;
1171
+ /** Minimum SUI the launcher must seed the pool with — enough that the pool
1172
+ * opens with real two-sided liquidity rather than dust. Floor, no rounding. */
1173
+ declare const MIN_LP_SUI = 1000000000n;
1174
+ interface PublishAgentCoinArgs {
1175
+ /** Coin branding; `recipient` MUST be the launcher (checked). */
1176
+ coin: AgentCoinParams;
1177
+ /** The wallet signing + funding this launch. */
1178
+ launcher: string;
1179
+ }
1180
+ interface PublishAgentCoinResult {
1181
+ tx: Transaction;
1182
+ /** Module + OTW the published coin type will use:
1183
+ * `<newPkg>::<moduleName>::<otw>`. */
1184
+ moduleName: string;
1185
+ otw: string;
1186
+ }
1187
+ /** PTB 1 — publish the agent coin package, burn upgradability in-tx.
1188
+ * Async: the bytecode-template WASM loads lazily on first use. */
1189
+ declare function buildPublishAgentCoinTx(args: PublishAgentCoinArgs): Promise<PublishAgentCoinResult>;
1190
+ interface TokenizeArgs {
1191
+ /** The agent being tokenized (Agent ID key — its wallet address). */
1192
+ agent: string;
1193
+ /** Signer: the agent itself or its CONFIRMED owner. */
1194
+ launcher: string;
1195
+ /** Published coin type from PTB 1: `<pkg>::<module>::<OTW>`. */
1196
+ coinType: string;
1197
+ /** The launcher-owned Coin object holding the full 1B supply (from PTB 1). */
1198
+ supplyCoinId: string;
1199
+ /** The published coin's CoinMetadata object id (frozen, from PTB 1). */
1200
+ coinMetadataId: string;
1201
+ /** SUI CoinMetadata object id (constant on mainnet, arg for testnet). */
1202
+ suiMetadataId?: string;
1203
+ /** Raw MIST the launcher seeds the pool with (≥ MIN_LP_SUI). Split from
1204
+ * gas — the launcher's own SUI, definitionally. */
1205
+ lpSuiAmount: bigint;
1206
+ /** Pool display url — the agent icon; optional. */
1207
+ poolUrl?: string;
1208
+ /** Pair orientation — from `simulate`-then-flip (see cetus-clmm.ts note). */
1209
+ suiFirst?: boolean;
1210
+ /** The `agent_id::registry` shared object id. */
1211
+ agentRegistryId: string;
1212
+ }
1213
+ /** SUI CoinMetadata on mainnet (immutable, well-known). */
1214
+ declare const SUI_COIN_METADATA_ID = "0x9258181f5ceac8dbffb7030890243caed69a9599d2886d957a9cb7656af3bdb3";
1215
+ /**
1216
+ * PTB 2 — bind + split 50/50 + pool + 10y lock + finalize, atomically.
1217
+ */
1218
+ declare function buildTokenizeTx(args: TokenizeArgs): Transaction;
1219
+
1220
+ /**
1221
+ * Cetus CLMM — pool creation + position plumbing for Agent Capital launches
1222
+ * (SPEC_ACP_SUI §6). ISOLATED like `cetus-swap.ts`: this is the only file that
1223
+ * may reference the Cetus CLMM surface.
1224
+ *
1225
+ * Deliberately NOT the Cetus CLMM TS SDK — pool creation is three moveCalls
1226
+ * against the on-chain package (`pool_creator::create_pool_v2`,
1227
+ * `position::pool_id`, `pool_creator::full_range_tick_range`), which is
1228
+ * exactly the "thin `@mysten/sui` tx builders" shape Critical Rule 2 asks
1229
+ * for. The aggregator SDK exception stays scoped to swaps.
1230
+ *
1231
+ * Signatures pinned against `cetus-clmm-interface` tag `mainnet-v1.52.3`
1232
+ * (same tag the Move package depends on).
1233
+ */
1234
+ /** Cetus CLMM original package id (mainnet) — TYPE references (Position, …)
1235
+ * and moveCall targets resolve through it; the runtime routes to the latest
1236
+ * upgraded version recorded on-chain. */
1237
+ declare const CETUS_CLMM_PACKAGE_ID: string;
1238
+ /** Shared `GlobalConfig` (mainnet). */
1239
+ declare const CETUS_GLOBAL_CONFIG_ID: string;
1240
+ /** Shared `factory::Pools` (mainnet). */
1241
+ declare const CETUS_POOLS_ID: string;
1242
+ /** The canonical Position type tag (original package id, per Sui type rules). */
1243
+ declare const CETUS_POSITION_TYPE: string;
1244
+ /**
1245
+ * Tick spacing 200 = the 1% fee tier — the Virtuals-shape choice for agent
1246
+ * tokens: maximum fee flow to the agent wallet on a volatile new pair.
1247
+ */
1248
+ declare const AGENT_POOL_TICK_SPACING = 200;
1249
+
1250
+ export { AGENT_CAPITAL_PACKAGE_ID, AGENT_ID_PARENT, AGENT_ID_PARENT_NAME, AGENT_ID_PARENT_NFT_ID, AGENT_POOL_TICK_SPACING, AGENT_TOKEN_DECIMALS, AGENT_TOKEN_LP_ALLOCATION, AGENT_TOKEN_TOTAL_SUPPLY, AGENT_TOKEN_TREASURY_ALLOCATION, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type AgentCoinModule, type AgentCoinParams, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, CAPITAL_REGISTRY_ID, CAPITAL_REGISTRY_VERSION, CETUS_CLMM_PACKAGE_ID, CETUS_GLOBAL_CONFIG_ID, CETUS_POOLS_ID, CETUS_POSITION_TYPE, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type CheckStatus, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, MIN_LP_SUI, type NormalizedAddress, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, type PublishAgentCoinArgs, type PublishAgentCoinResult, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SUI_COIN_METADATA_ID, SYMBOL_BLOCKLIST, SendResult, type SendTransferInput, SendableAsset, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, type TokenizeArgs, TransactionRecord, TransactionSigner, type TrustMode, type UpstreamClaim, type VerifyAnchor, type VerifyCheck, type VerifyOptions, type VerifyResult, type VerifyUpstream, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildAgentCoinModule, buildPublishAgentCoinTx, buildRevokeLeafTx, buildTokenizeTx, chatCompletion, chatCompletionStream, clearLimits, composeTx, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getSponsoredSwapProviders, getSwapQuote, hasLimits, keypairFromPrivateKey, listModels, loadKey, looksLikeSuiNs, normalizeAddressInput, queryBalance, readLimitsFile, recordDailySpend, resolveAddressToSuinsViaRpc, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, validateAgentCoinParams, validateLabel, verifyReceipt, walletExists, writeLimitsFile };
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 { X as T2000Error, b1 as T2000Options, a2 as TransactionSigner, u as PayOptions, v as PayResult, b2 as SwapResult, b3 as SwapQuoteResult, V as SupportedAsset, F as SendResult, B as BalanceResponse, a1 as TransactionRecord, g as DepositInfo, b4 as PaymentRequest, ab as ZkLoginProof, b5 as SuiCoreClient, s as OverlayFeeConfig, b6 as SponsoredCoinMergeCache, W as SwapRouteResult, b7 as SendableAsset } from './commerce-CUGyTRcv.js';
5
- export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b8 as CETUS_USDC_SUI_POOL, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, b9 as CoinPage, D as DEFAULT_COMMERCE_API_BASE, ba as DEFAULT_GRPC_URL, f as DEFAULT_NETWORK, E as ETH_TYPE, h as ExtractedTransfer, bb as GASLESS_MIN_STABLE_AMOUNT, bc as GASLESS_STABLE_TYPES, 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, bd as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, be as Operation, P as PREFLIGHT_MAX_AMOUNT, t as PREFLIGHT_OK, w as PreflightResult, bf as SENDABLE_ASSETS, S as STABLE_ASSETS, x as SUI_DECIMALS, y as SUI_TYPE, z as SUPPORTED_ASSETS, bg as SelectAndSplitResult, bh as SerializedCetusRoute, bi as SerializedCetusRoutePath, bj as SerializedRouterDataV3, H as ServiceListing, Q as SimulationResult, R as StableAsset, T as SuiHolding, U as SuiRpcTxBlock, Y as T2000ErrorCode, Z as T2000ErrorData, _ as T2000_OVERLAY_FEE_WALLET, $ as TOKEN_MAP, a0 as TransactionLeg, 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, ac as ZkLoginSigner, bk as addSendToTx, bl as addSwapToTx, bm as assertAllowedAsset, 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, bn as deserializeCetusRoute, ap as executeTx, aq as extractAllUserLegs, ar as extractTransferDetails, as as extractTxCommands, at as extractTxSender, au as fallbackLabel, bo as fetchAllCoins, av as fetchService, aw as findSwapRoute, ax as formatAssetAmount, ay as formatSui, az as formatUsd, bp as getCoinMeta, aA as getDecimals, aB as getDecimalsForCoinType, aC as getJob, aD as getJobSpec, bq as getSuiClient, br as getSuiGrpcClient, bs as isAllowedAsset, bt as isCetusRouteFresh, bu as isInRegistry, aE as jobActionsFor, aF as listServices, aG as mapMoveAbortCode, aH as mapWalletError, aI as mistToSui, bv as normalizeAsset, bw as normalizeCoinType, aJ as parseMppSuiChallenge, aK as parseSuiRpcTx, aL as payWithMpp, aM as preflightCreateJob, aN as preflightFail, aO as preflightPay, aP as preflightSend, aQ as preflightSwap, aR as putJobSpec, bx as queryHistory, by as queryTransaction, aS as rawToStable, aT as rawToUsdc, aU as refineLendingLabel, aV as resolveSymbol, aW as resolveTokenType, bz as selectAndSplitCoin, bA as selectSuiCoin, bB as serializeCetusRoute, bC as simulateTransaction, aX as stableToRaw, aY as suiToMist, bD as throwIfSimulationFailed, aZ as truncateAddress, a_ as usdcToRaw, a$ as validateAddress, bE as verifyCetusRouteCoinMatch, b0 as verifyJobForSeller } from './commerce-CUGyTRcv.js';
4
+ import { X as T2000Error, b1 as T2000Options, a2 as TransactionSigner, u as PayOptions, v as PayResult, b2 as SwapResult, b3 as SwapQuoteResult, V as SupportedAsset, F as SendResult, B as BalanceResponse, a1 as TransactionRecord, g as DepositInfo, b4 as PaymentRequest, ab as ZkLoginProof, b5 as SuiCoreClient, s as OverlayFeeConfig, b6 as SponsoredCoinMergeCache, W as SwapRouteResult, b7 as SendableAsset } from './commerce-D78r4-MZ.js';
5
+ export { A as A2A_ESCROW_FEE_CONFIG_ID, a as A2A_ESCROW_PACKAGE_ID, b8 as CETUS_USDC_SUI_POOL, C as CLOCK_ID, b as COIN_REGISTRY, c as ClassifyBalanceChange, d as ClassifyResult, e as CoinMeta, b9 as CoinPage, D as DEFAULT_COMMERCE_API_BASE, ba as DEFAULT_GRPC_URL, f as DEFAULT_NETWORK, E as ETH_TYPE, h as ExtractedTransfer, bb as GASLESS_MIN_STABLE_AMOUNT, bc as GASLESS_STABLE_TYPES, 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, bd as OPERATION_ASSETS, O as OVERLAY_FEE_RATE, be as Operation, P as PREFLIGHT_MAX_AMOUNT, t as PREFLIGHT_OK, w as PreflightResult, bf as SENDABLE_ASSETS, S as STABLE_ASSETS, x as SUI_DECIMALS, y as SUI_TYPE, z as SUPPORTED_ASSETS, bg as SelectAndSplitResult, bh as SerializedCetusRoute, bi as SerializedCetusRoutePath, bj as SerializedRouterDataV3, H as ServiceListing, Q as SimulationResult, R as StableAsset, T as SuiHolding, U as SuiRpcTxBlock, Y as T2000ErrorCode, Z as T2000ErrorData, _ as T2000_OVERLAY_FEE_WALLET, $ as TOKEN_MAP, a0 as TransactionLeg, 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, ac as ZkLoginSigner, bk as addSendToTx, bl as addSwapToTx, bm as assertAllowedAsset, 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, bn as deserializeCetusRoute, ap as executeTx, aq as extractAllUserLegs, ar as extractTransferDetails, as as extractTxCommands, at as extractTxSender, au as fallbackLabel, bo as fetchAllCoins, av as fetchService, aw as findSwapRoute, ax as formatAssetAmount, ay as formatSui, az as formatUsd, bp as getCoinMeta, aA as getDecimals, aB as getDecimalsForCoinType, aC as getJob, aD as getJobSpec, bq as getSuiClient, br as getSuiGrpcClient, bs as isAllowedAsset, bt as isCetusRouteFresh, bu as isInRegistry, aE as jobActionsFor, aF as listServices, aG as mapMoveAbortCode, aH as mapWalletError, aI as mistToSui, bv as normalizeAsset, bw as normalizeCoinType, aJ as parseMppSuiChallenge, aK as parseSuiRpcTx, aL as payWithMpp, aM as preflightCreateJob, aN as preflightFail, aO as preflightPay, aP as preflightSend, aQ as preflightSwap, aR as putJobSpec, bx as queryHistory, by as queryTransaction, aS as rawToStable, aT as rawToUsdc, aU as refineLendingLabel, aV as resolveSymbol, aW as resolveTokenType, bz as selectAndSplitCoin, bA as selectSuiCoin, bB as serializeCetusRoute, bC as simulateTransaction, aX as stableToRaw, aY as suiToMist, bD as throwIfSimulationFailed, aZ as truncateAddress, a_ as usdcToRaw, a$ as validateAddress, bE as verifyCetusRouteCoinMatch, b0 as verifyJobForSeller } from './commerce-D78r4-MZ.js';
6
6
  import { TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
7
7
  import { SuinsClient } from '@mysten/suins';
8
8
  import '@mysten/sui/client';
@@ -409,9 +409,9 @@ declare const SUI_ADDRESS_REGEX: RegExp;
409
409
  */
410
410
  declare const SUI_ADDRESS_STRICT_REGEX: RegExp;
411
411
  /**
412
- * Mirrors the pattern in `audric/apps/web-v2/lib/suins-cache.ts` so the
413
- * host-side send executor and the engine-side read normalizer agree on
414
- * what counts as a SuiNS name. SuiNS allows nested labels (`team.alex.sui`)
412
+ * The single definition of what counts as a SuiNS name, so every caller
413
+ * (CLI send, host send executor, read normalizers) agrees.
414
+ * SuiNS allows nested labels (`team.alex.sui`)
415
415
  * but every label must use only `[a-z0-9-]`.
416
416
  */
417
417
  declare const SUINS_NAME_REGEX: RegExp;
@@ -611,8 +611,8 @@ declare function getAddress(keypair: Ed25519Keypair): string;
611
611
  *
612
612
  * - Spec → `spec/SPEC_7_MULTI_WRITE_PTB.md` § "Layer 0: Canonical
613
613
  * Write Architecture"
614
- * - Read-side companion → `t2000/.cursor/rules/single-source-of-truth.mdc`
615
- * + `audric/.cursor/rules/audric-canonical-portfolio.mdc`
614
+ * - Read-side companion → `audric/.cursor/rules/audric-canonical-portfolio.mdc`
615
+ * (the t2000-side portfolio rule was archived with the engine, 2026-07-24)
616
616
  * - Write-side rule → `audric/.cursor/rules/audric-canonical-write.mdc`
617
617
  */
618
618
 
@@ -1087,4 +1087,164 @@ declare function fullHandle(label: string, parentName?: string): string;
1087
1087
  */
1088
1088
  declare function displayHandle(label: string, parentName?: string): string;
1089
1089
 
1090
- export { AGENT_ID_PARENT, AGENT_ID_PARENT_NAME, AGENT_ID_PARENT_NFT_ID, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type CheckStatus, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, type NormalizedAddress, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, type TrustMode, type UpstreamClaim, type VerifyAnchor, type VerifyCheck, type VerifyOptions, type VerifyResult, type VerifyUpstream, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, chatCompletion, chatCompletionStream, clearLimits, composeTx, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getSponsoredSwapProviders, getSwapQuote, hasLimits, keypairFromPrivateKey, listModels, loadKey, looksLikeSuiNs, normalizeAddressInput, queryBalance, readLimitsFile, recordDailySpend, resolveAddressToSuinsViaRpc, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, validateLabel, verifyReceipt, walletExists, writeLimitsFile };
1090
+ /** The locked v1 economics: 1B whole coins at 6 decimals (D-5 / L2-A). */
1091
+ declare const AGENT_TOKEN_DECIMALS = 6;
1092
+ declare const AGENT_TOKEN_TOTAL_SUPPLY = 1000000000000000n;
1093
+ /** 50% LP / 50% agent treasury. */
1094
+ declare const AGENT_TOKEN_LP_ALLOCATION: bigint;
1095
+ declare const AGENT_TOKEN_TREASURY_ALLOCATION: bigint;
1096
+ interface AgentCoinParams {
1097
+ /** Ticker, 2–8 chars A–Z0–9, becomes module name (lowercased) + OTW. */
1098
+ symbol: string;
1099
+ name: string;
1100
+ description: string;
1101
+ iconUrl: string;
1102
+ /** Receives the full minted supply — the LAUNCHER (who then signs the
1103
+ * split/pool/lock transaction). Never a platform address. */
1104
+ recipient: string;
1105
+ }
1106
+ /**
1107
+ * Impersonation blocklist — top Sui-ecosystem + majors tickers an agent token
1108
+ * must not squat (SPEC_AGENT_CAPITAL guards; kept deliberately short and
1109
+ * high-confidence, console moderation covers the long tail).
1110
+ */
1111
+ declare const SYMBOL_BLOCKLIST: Set<string>;
1112
+ /** Validate launch params; throws `T2000Error('INVALID_AMOUNT'|…)` shapes the
1113
+ * console can surface directly. */
1114
+ declare function validateAgentCoinParams(params: AgentCoinParams): void;
1115
+ interface AgentCoinModule {
1116
+ /** Rewritten module bytecode, ready for `tx.publish`. */
1117
+ modules: number[][];
1118
+ dependencies: string[];
1119
+ /** Lowercased module name — the published coin type is
1120
+ * `<pkg>::<moduleName>::<otw>`. */
1121
+ moduleName: string;
1122
+ otw: string;
1123
+ }
1124
+ /**
1125
+ * Rewrite the compiled template for one agent's launch. Deterministic — same
1126
+ * params, same bytes. Async because `@mysten/move-bytecode-template` (WASM)
1127
+ * is loaded lazily HERE, not at module top level: a top-level import makes
1128
+ * every SDK consumer's bundler ship/locate the .wasm at startup, which broke
1129
+ * the CLI bundle in CI — only the launch path may pay that cost.
1130
+ */
1131
+ declare function buildAgentCoinModule(params: AgentCoinParams): Promise<AgentCoinModule>;
1132
+
1133
+ /**
1134
+ * Agent Capital launch orchestrator (SPEC_ACP_SUI §6, decisions D-5 + L2-A).
1135
+ *
1136
+ * A launch is TWO launcher-signed transactions:
1137
+ *
1138
+ * PTB 1 — `buildPublishAgentCoinTx`: publish the rewritten coin package +
1139
+ * burn its UpgradeCap. `init` mints the full 1B supply to the launcher and
1140
+ * freezes CoinMetadata + TreasuryCap (the can't-rug set).
1141
+ *
1142
+ * PTB 2 — `buildTokenizeTx`: bind the coin type to the Agent ID → split the
1143
+ * supply 50/50 → create the Cetus AGENT/SUI pool seeded with the LP half +
1144
+ * launcher-supplied SUI → wrap the position in a 10-year `LpLock` whose sole
1145
+ * beneficiary is the agent wallet → finalize the registry record. Atomic:
1146
+ * either the agent ends tokenized-with-locked-LP or nothing is recorded.
1147
+ *
1148
+ * Bind CANNOT live in PTB 1 — a type argument can't name a package being
1149
+ * published in the same transaction — so a crashed launch between the PTBs
1150
+ * leaves a published-but-unbound coin (launcher's gas, nobody's harm) and
1151
+ * PTB 2 is simply retried.
1152
+ *
1153
+ * NO GAS SPONSORSHIP on either PTB: PTB 2 seeds SUI liquidity from `tx.gas`,
1154
+ * and under Enoki sponsorship `tx.gas` is the SPONSOR's coin — t2000 must
1155
+ * never seed LP (SPEC_AGENT_CAPITAL guards). The launcher holds SUI by
1156
+ * construction (they're supplying the liquidity).
1157
+ *
1158
+ * These builders construct UNSIGNED transactions; auth lives in the Move
1159
+ * layer (`registry::bind/finalize` re-check agent-or-confirmed-owner on
1160
+ * `ctx.sender()` every call).
1161
+ */
1162
+ /** The published `agent_capital` package id (mainnet, deployed 2026-07-24,
1163
+ * tx `J1dxR72oFhoiZtnwZng9jnDtBev58K9Z8PdPBtMp5eBb`). Env-overridable for
1164
+ * testnet/dev (same pattern as `A2A_ESCROW_PACKAGE_ID`). */
1165
+ declare const AGENT_CAPITAL_PACKAGE_ID: string;
1166
+ /** The shared `CapitalRegistry` object id (mainnet). */
1167
+ declare const CAPITAL_REGISTRY_ID: string;
1168
+ /** `initial_shared_version` of the CapitalRegistry — lets builders reference
1169
+ * the shared object without a resolution round-trip. */
1170
+ declare const CAPITAL_REGISTRY_VERSION: number;
1171
+ /** Minimum SUI the launcher must seed the pool with — enough that the pool
1172
+ * opens with real two-sided liquidity rather than dust. Floor, no rounding. */
1173
+ declare const MIN_LP_SUI = 1000000000n;
1174
+ interface PublishAgentCoinArgs {
1175
+ /** Coin branding; `recipient` MUST be the launcher (checked). */
1176
+ coin: AgentCoinParams;
1177
+ /** The wallet signing + funding this launch. */
1178
+ launcher: string;
1179
+ }
1180
+ interface PublishAgentCoinResult {
1181
+ tx: Transaction;
1182
+ /** Module + OTW the published coin type will use:
1183
+ * `<newPkg>::<moduleName>::<otw>`. */
1184
+ moduleName: string;
1185
+ otw: string;
1186
+ }
1187
+ /** PTB 1 — publish the agent coin package, burn upgradability in-tx.
1188
+ * Async: the bytecode-template WASM loads lazily on first use. */
1189
+ declare function buildPublishAgentCoinTx(args: PublishAgentCoinArgs): Promise<PublishAgentCoinResult>;
1190
+ interface TokenizeArgs {
1191
+ /** The agent being tokenized (Agent ID key — its wallet address). */
1192
+ agent: string;
1193
+ /** Signer: the agent itself or its CONFIRMED owner. */
1194
+ launcher: string;
1195
+ /** Published coin type from PTB 1: `<pkg>::<module>::<OTW>`. */
1196
+ coinType: string;
1197
+ /** The launcher-owned Coin object holding the full 1B supply (from PTB 1). */
1198
+ supplyCoinId: string;
1199
+ /** The published coin's CoinMetadata object id (frozen, from PTB 1). */
1200
+ coinMetadataId: string;
1201
+ /** SUI CoinMetadata object id (constant on mainnet, arg for testnet). */
1202
+ suiMetadataId?: string;
1203
+ /** Raw MIST the launcher seeds the pool with (≥ MIN_LP_SUI). Split from
1204
+ * gas — the launcher's own SUI, definitionally. */
1205
+ lpSuiAmount: bigint;
1206
+ /** Pool display url — the agent icon; optional. */
1207
+ poolUrl?: string;
1208
+ /** Pair orientation — from `simulate`-then-flip (see cetus-clmm.ts note). */
1209
+ suiFirst?: boolean;
1210
+ /** The `agent_id::registry` shared object id. */
1211
+ agentRegistryId: string;
1212
+ }
1213
+ /** SUI CoinMetadata on mainnet (immutable, well-known). */
1214
+ declare const SUI_COIN_METADATA_ID = "0x9258181f5ceac8dbffb7030890243caed69a9599d2886d957a9cb7656af3bdb3";
1215
+ /**
1216
+ * PTB 2 — bind + split 50/50 + pool + 10y lock + finalize, atomically.
1217
+ */
1218
+ declare function buildTokenizeTx(args: TokenizeArgs): Transaction;
1219
+
1220
+ /**
1221
+ * Cetus CLMM — pool creation + position plumbing for Agent Capital launches
1222
+ * (SPEC_ACP_SUI §6). ISOLATED like `cetus-swap.ts`: this is the only file that
1223
+ * may reference the Cetus CLMM surface.
1224
+ *
1225
+ * Deliberately NOT the Cetus CLMM TS SDK — pool creation is three moveCalls
1226
+ * against the on-chain package (`pool_creator::create_pool_v2`,
1227
+ * `position::pool_id`, `pool_creator::full_range_tick_range`), which is
1228
+ * exactly the "thin `@mysten/sui` tx builders" shape Critical Rule 2 asks
1229
+ * for. The aggregator SDK exception stays scoped to swaps.
1230
+ *
1231
+ * Signatures pinned against `cetus-clmm-interface` tag `mainnet-v1.52.3`
1232
+ * (same tag the Move package depends on).
1233
+ */
1234
+ /** Cetus CLMM original package id (mainnet) — TYPE references (Position, …)
1235
+ * and moveCall targets resolve through it; the runtime routes to the latest
1236
+ * upgraded version recorded on-chain. */
1237
+ declare const CETUS_CLMM_PACKAGE_ID: string;
1238
+ /** Shared `GlobalConfig` (mainnet). */
1239
+ declare const CETUS_GLOBAL_CONFIG_ID: string;
1240
+ /** Shared `factory::Pools` (mainnet). */
1241
+ declare const CETUS_POOLS_ID: string;
1242
+ /** The canonical Position type tag (original package id, per Sui type rules). */
1243
+ declare const CETUS_POSITION_TYPE: string;
1244
+ /**
1245
+ * Tick spacing 200 = the 1% fee tier — the Virtuals-shape choice for agent
1246
+ * tokens: maximum fee flow to the agent wallet on a volatile new pair.
1247
+ */
1248
+ declare const AGENT_POOL_TICK_SPACING = 200;
1249
+
1250
+ export { AGENT_CAPITAL_PACKAGE_ID, AGENT_ID_PARENT, AGENT_ID_PARENT_NAME, AGENT_ID_PARENT_NFT_ID, AGENT_POOL_TICK_SPACING, AGENT_TOKEN_DECIMALS, AGENT_TOKEN_LP_ALLOCATION, AGENT_TOKEN_TOTAL_SUPPLY, AGENT_TOKEN_TREASURY_ALLOCATION, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type AgentCoinModule, type AgentCoinParams, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, CAPITAL_REGISTRY_ID, CAPITAL_REGISTRY_VERSION, CETUS_CLMM_PACKAGE_ID, CETUS_GLOBAL_CONFIG_ID, CETUS_POOLS_ID, CETUS_POSITION_TYPE, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type CheckStatus, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, MIN_LP_SUI, type NormalizedAddress, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, type PublishAgentCoinArgs, type PublishAgentCoinResult, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SUI_COIN_METADATA_ID, SYMBOL_BLOCKLIST, SendResult, type SendTransferInput, SendableAsset, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, type TokenizeArgs, TransactionRecord, TransactionSigner, type TrustMode, type UpstreamClaim, type VerifyAnchor, type VerifyCheck, type VerifyOptions, type VerifyResult, type VerifyUpstream, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildAgentCoinModule, buildPublishAgentCoinTx, buildRevokeLeafTx, buildTokenizeTx, chatCompletion, chatCompletionStream, clearLimits, composeTx, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getSponsoredSwapProviders, getSwapQuote, hasLimits, keypairFromPrivateKey, listModels, loadKey, looksLikeSuiNs, normalizeAddressInput, queryBalance, readLimitsFile, recordDailySpend, resolveAddressToSuinsViaRpc, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, validateAgentCoinParams, validateLabel, verifyReceipt, walletExists, writeLimitsFile };