@t2000/sdk 10.38.2 → 10.39.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.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 { ad as T2000Error, bx as T2000Options, ak as TransactionSigner, V as PayOptions, by as X402Probe, W as PayResult, bz as SerializedCetusRoute, bA as SwapResult, bB as SwapQuoteResult, a5 as SendResult, B as BalanceResponse, aj as TransactionRecord, j as DepositInfo, bC as PaymentRequest, au as ZkLoginProof, bD as SuiCoreClient, Q as OverlayFeeConfig, bE as SponsoredCoinMergeCache, ab as SupportedAsset, ac as SwapRouteResult, bF as SendableAsset } from './commerce-D14qzqAV.js';
5
- export { A as A2A_ESCROW_FEE_CONFIG_ID, bG as A2A_ESCROW_LATEST_PACKAGE_ID, bH as A2A_ESCROW_OPENING_PACKAGE_ID, a as A2A_ESCROW_PACKAGE_ID, bI as A2A_ESCROW_PACKAGE_V10_ID, bJ as A2A_ESCROW_PACKAGE_V2_ID, bK as A2A_ESCROW_PACKAGE_V3_ID, bL as A2A_ESCROW_PACKAGE_V6_ID, bM as A2A_ESCROW_PACKAGE_V7_ID, bN as A2A_ESCROW_PACKAGE_V8_ID, bO as A2A_SCORE_BOARD_ID, b as ActivityReportConfig, c as AgentScore, bP as ApiRouteListing, bQ as CETUS_USDC_SUI_POOL, C as CLOCK_ID, d as COIN_REGISTRY, e as ClassifyBalanceChange, f as ClassifyResult, g as CoinMeta, bR as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, h as DEFAULT_COMMERCE_API_BASE, bS as DEFAULT_GRPC_URL, i as DEFAULT_NETWORK, E as ETH_TYPE, k as ExtractedTransfer, bT as GASLESS_MIN_STABLE_AMOUNT, bU as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, l as Job, m as JobState, n as JobTerms, o as JobVerification, K as KNOWN_TARGETS, p as KeypairSigner, L as LABEL_PATTERNS, q as LEVEL4_MAX_NO_DELIVERY, r as LEVEL4_MIN_REVIEWS, s as LOFI_TYPE, bV as MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID, bW as MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID, bX as MAINNET_A2A_ESCROW_PACKAGE_ID, bY as MAINNET_A2A_SCORE_BOARD_ID, M as MANIFEST_TYPE, t as MAX_DELIVER_HORIZON_MS, u as MAX_JOB_USDC, bZ as MAX_OPEN_WINDOW_MS, v as MAX_REVIEW_WINDOW_MS, w as MIN_JOB_USDC, x as MIST_PER_SUI, N as NAVX_TYPE, y as NO_DELIVERY_REGRESSION_FLOOR, O as OPENING_CLAIM_POLICIES, z as OPENING_CLAIM_POLICY_ANY_ACTIVE, F as OPENING_CLAIM_POLICY_PROVEN, H as OPENING_CLAIM_POLICY_PROVEN_4STAR, b_ as OPERATION_ASSETS, P as OVERLAY_FEE_RATE, b$ as Opening, c0 as OpeningTerms, c1 as Operation, R as PREFLIGHT_MAX_AMOUNT, S as PREFLIGHT_OK, T as PROVEN_MIN_AVG_STARS_X10, U as PROVEN_MIN_REVIEWS, X as PreflightResult, Y as REVIEW_MAX_STARS, Z as REVIEW_MIN_STARS, _ as SELLER_LEVEL_ACTIVE_CAPS, c2 as SENDABLE_ASSETS, $ as STABLE_ASSETS, a0 as SUI_DECIMALS, a1 as SUI_TYPE, a2 as SUPPORTED_ASSETS, c3 as SelectAndSplitResult, a3 as SellerLevel, a4 as SendAssetClass, c4 as SerializedCetusRoutePath, c5 as SerializedRouterDataV3, a6 as ServiceListing, c6 as ServicesRail, c7 as ServicesRow, a7 as SimulationResult, a8 as StableAsset, a9 as SuiHolding, aa as SuiRpcTxBlock, ae as T2000ErrorCode, af as T2000ErrorData, ag as T2000_OVERLAY_FEE_WALLET, ah as TOKEN_MAP, ai as TransactionLeg, al as TxDirection, am as USDC_DECIMALS, an as USDC_TYPE, ao as USDE_TYPE, ap as USDSUI_TYPE, aq as USDT_TYPE, ar as WAL_TYPE, as as WBTC_TYPE, at as X402ActivityPayload, av as ZkLoginSigner, aw as activeCapForLevel, c8 as addSendToTx, c9 as addSwapToTx, ca as assertAllowedAsset, cb as assertBuyerRequirements, cc as buildCancelOpeningTx, cd as buildClaimOpeningTx, ce as buildCreateEmptyScoreTx, ax as buildCreateJobTx, cf as buildCreateOpeningTx, cg as buildDeclineJobTx, ay as buildDeliverJobTx, az as buildRefundJobTx, ch as buildRefundUnclaimedTx, aA as buildRejectJobTx, aB as buildReleaseJobTx, aC as buildSendTx, ci as buildSubmitFirstReviewTx, cj as buildSubmitReviewTx, aD as buildSwapTx, aE as checkPositiveAmount, aF as checkSuiAddress, aG as claimPolicyLabel, aH as claimPolicyRequirement, aI as classifyAction, aJ as classifyLabel, aK as classifySendAsset, aL as classifyTransaction, aM as deriveAgentScoreId, ck as deserializeCetusRoute, aN as effectiveSellerLevel, aO as executeTx, aP as extractAllUserLegs, aQ as extractTransferDetails, aR as extractTxCommands, aS as extractTxSender, aT as fallbackLabel, cl as fetchAllCoins, aU as fetchService, aV as findSwapRoute, aW as formatAssetAmount, aX as formatSui, aY as formatUsd, aZ as getAgentScore, cm as getCoinMeta, a_ as getDecimals, a$ as getDecimalsForCoinType, b0 as getJob, b1 as getJobSpec, cn as getOpening, co as getSuiClient, cp as getSuiGrpcClient, b2 as invalidSendAssetMessage, cq as isAllowedAsset, cr as isCetusRouteFresh, cs as isInRegistry, b3 as jobActionsFor, b4 as listServices, b5 as mapMoveAbortCode, b6 as mapWalletError, b7 as meetsClaimPolicy, b8 as meetsMinSellerLevel, b9 as mistToSui, ct as normalizeAsset, cu as normalizeCoinType, ba as parseSuiRpcTx, bb as payWithX402, bc as preflightClaimOpening, bd as preflightCreateJob, cv as preflightCreateOpening, be as preflightFail, bf as preflightPay, bg as preflightSend, bh as preflightSwap, cw as probeX402, bi as putJobSpec, cx as queryHistory, cy as queryTransaction, bj as rawToStable, bk as rawToUsdc, bl as refineLendingLabel, bm as reportX402Activity, bn as resolveSymbol, bo as resolveTokenType, cz as selectAndSplitCoin, cA as selectSuiCoin, bp as sellerLevel, bq as sellerLevelLabel, cB as serializeCetusRoute, cC as simulateTransaction, br as stableToRaw, bs as suiToMist, cD as throwIfSimulationFailed, bt as truncateAddress, bu as usdcToRaw, bv as validateAddress, cE as verifyCetusRouteCoinMatch, bw as verifyJobForSeller } from './commerce-D14qzqAV.js';
4
+ import { ah as T2000Error, bJ as T2000Options, ao as TransactionSigner, Z as PayOptions, bK as X402Probe, _ as PayResult, bL as SerializedCetusRoute, bM as SwapResult, bN as SwapQuoteResult, a9 as SendResult, d as BalanceResponse, an as TransactionRecord, m as DepositInfo, bO as PaymentRequest, ay as ZkLoginProof, bP as SuiCoreClient, U as OverlayFeeConfig, bQ as SponsoredCoinMergeCache, af as SupportedAsset, ag as SwapRouteResult, bR as SendableAsset } from './commerce-C_1GwUoT.js';
5
+ export { A as A2A_ESCROW_FEE_CONFIG_ID, bS as A2A_ESCROW_LATEST_PACKAGE_ID, bT as A2A_ESCROW_OPENING_PACKAGE_ID, a as A2A_ESCROW_PACKAGE_ID, bU as A2A_ESCROW_PACKAGE_V10_ID, bV as A2A_ESCROW_PACKAGE_V11_ID, bW as A2A_ESCROW_PACKAGE_V2_ID, bX as A2A_ESCROW_PACKAGE_V3_ID, bY as A2A_ESCROW_PACKAGE_V6_ID, bZ as A2A_ESCROW_PACKAGE_V7_ID, b_ as A2A_ESCROW_PACKAGE_V8_ID, b$ as A2A_SCORE_BOARD_ID, b as ActivityReportConfig, c as AgentScore, c0 as ApiRouteListing, B as BATCH_OPENING_TYPE_MARKER, e as BatchOpening, f as BatchOpeningTerms, c1 as CETUS_USDC_SUI_POOL, C as CLOCK_ID, g as COIN_REGISTRY, h as ClassifyBalanceChange, i as ClassifyResult, j as CoinMeta, c2 as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, k as DEFAULT_COMMERCE_API_BASE, c3 as DEFAULT_GRPC_URL, l as DEFAULT_NETWORK, E as ETH_TYPE, n as ExtractedTransfer, c4 as GASLESS_MIN_STABLE_AMOUNT, c5 as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, o as Job, p as JobState, q as JobTerms, r as JobVerification, K as KNOWN_TARGETS, s as KeypairSigner, L as LABEL_PATTERNS, t as LEVEL4_MAX_NO_DELIVERY, u as LEVEL4_MIN_REVIEWS, v as LOFI_TYPE, c6 as MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID, c7 as MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID, c8 as MAINNET_A2A_ESCROW_PACKAGE_ID, c9 as MAINNET_A2A_SCORE_BOARD_ID, M as MANIFEST_TYPE, w as MAX_BATCH_SLOTS_DEFAULT, x as MAX_DELIVER_HORIZON_MS, y as MAX_JOB_USDC, ca as MAX_OPEN_WINDOW_MS, z as MAX_REVIEW_WINDOW_MS, F as MIN_JOB_USDC, H as MIST_PER_SUI, N as NAVX_TYPE, O as NO_DELIVERY_REGRESSION_FLOOR, P as OPENING_CLAIM_POLICIES, Q as OPENING_CLAIM_POLICY_ANY_ACTIVE, R as OPENING_CLAIM_POLICY_PROVEN, S as OPENING_CLAIM_POLICY_PROVEN_4STAR, cb as OPERATION_ASSETS, T as OVERLAY_FEE_RATE, cc as Opening, cd as OpeningTerms, ce as Operation, V as PREFLIGHT_MAX_AMOUNT, W as PREFLIGHT_OK, X as PROVEN_MIN_AVG_STARS_X10, Y as PROVEN_MIN_REVIEWS, $ as PreflightResult, a0 as REVIEW_MAX_STARS, a1 as REVIEW_MIN_STARS, a2 as SELLER_LEVEL_ACTIVE_CAPS, cf as SENDABLE_ASSETS, a3 as STABLE_ASSETS, a4 as SUI_DECIMALS, a5 as SUI_TYPE, a6 as SUPPORTED_ASSETS, cg as SelectAndSplitResult, a7 as SellerLevel, a8 as SendAssetClass, ch as SerializedCetusRoutePath, ci as SerializedRouterDataV3, aa as ServiceListing, cj as ServicesRail, ck as ServicesRow, ab as SimulationResult, ac as StableAsset, ad as SuiHolding, ae as SuiRpcTxBlock, ai as T2000ErrorCode, aj as T2000ErrorData, ak as T2000_OVERLAY_FEE_WALLET, al as TOKEN_MAP, am as TransactionLeg, ap as TxDirection, aq as USDC_DECIMALS, ar as USDC_TYPE, as as USDE_TYPE, at as USDSUI_TYPE, au as USDT_TYPE, av as WAL_TYPE, aw as WBTC_TYPE, ax as X402ActivityPayload, az as ZkLoginSigner, aA as activeCapForLevel, cl as addSendToTx, cm as addSwapToTx, cn as assertAllowedAsset, co as assertBuyerRequirements, aB as buildBatchClaimTx, aC as buildCancelBatchOpeningTx, cp as buildCancelOpeningTx, cq as buildClaimOpeningTx, aD as buildCreateBatchOpeningTx, cr as buildCreateEmptyScoreTx, aE as buildCreateJobTx, cs as buildCreateOpeningTx, ct as buildDeclineJobTx, aF as buildDeliverJobTx, aG as buildRefundBatchExpiredTx, aH as buildRefundJobTx, cu as buildRefundUnclaimedTx, aI as buildRejectJobTx, aJ as buildReleaseJobTx, aK as buildSendTx, cv as buildSubmitFirstReviewTx, cw as buildSubmitReviewTx, aL as buildSwapTx, aM as checkPositiveAmount, aN as checkSuiAddress, aO as claimPolicyLabel, aP as claimPolicyRequirement, aQ as classifyAction, aR as classifyLabel, aS as classifySendAsset, aT as classifyTransaction, aU as deriveAgentScoreId, cx as deserializeCetusRoute, aV as effectiveSellerLevel, aW as executeTx, aX as extractAllUserLegs, aY as extractTransferDetails, aZ as extractTxCommands, a_ as extractTxSender, a$ as fallbackLabel, cy as fetchAllCoins, b0 as fetchService, b1 as findSwapRoute, b2 as formatAssetAmount, b3 as formatSui, b4 as formatUsd, b5 as getAgentScore, b6 as getBatchClaimsByAgent, b7 as getBatchOpening, cz as getCoinMeta, b8 as getDecimals, b9 as getDecimalsForCoinType, ba as getJob, bb as getJobSpec, cA as getOpening, cB as getSuiClient, cC as getSuiGrpcClient, bc as invalidSendAssetMessage, cD as isAllowedAsset, cE as isCetusRouteFresh, cF as isInRegistry, bd as jobActionsFor, be as listServices, bf as mapMoveAbortCode, bg as mapWalletError, bh as meetsClaimPolicy, bi as meetsMinSellerLevel, bj as mistToSui, cG as normalizeAsset, cH as normalizeCoinType, bk as parseSuiRpcTx, bl as payWithX402, bm as preflightBatchClaim, bn as preflightClaimOpening, bo as preflightCreateBatchOpening, bp as preflightCreateJob, cI as preflightCreateOpening, bq as preflightFail, br as preflightPay, bs as preflightSend, bt as preflightSwap, cJ as probeX402, bu as putJobSpec, cK as queryHistory, cL as queryTransaction, bv as rawToStable, bw as rawToUsdc, bx as refineLendingLabel, by as reportX402Activity, bz as resolveSymbol, bA as resolveTokenType, cM as selectAndSplitCoin, cN as selectSuiCoin, bB as sellerLevel, bC as sellerLevelLabel, cO as serializeCetusRoute, cP as simulateTransaction, bD as stableToRaw, bE as suiToMist, cQ as throwIfSimulationFailed, bF as truncateAddress, bG as usdcToRaw, bH as validateAddress, cR as verifyCetusRouteCoinMatch, bI as verifyJobForSeller } from './commerce-C_1GwUoT.js';
6
6
  import { TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
7
7
  import { SuinsClient } from '@mysten/suins';
8
8
  import '@mysten/sui/client';
@@ -535,7 +535,9 @@ interface OpenJobRow {
535
535
  briefPreview?: string | null;
536
536
  maxUsdc: number;
537
537
  slaMinutes: number;
538
- status: 'open' | 'claimed' | 'cancelled' | 'refunded' | 'expired';
538
+ /** S.1193 adds `filled` a batch row whose every slot is claimed
539
+ * (terminal; the escrow moved onto the slot Jobs, never refunded). */
540
+ status: 'open' | 'claimed' | 'cancelled' | 'refunded' | 'expired' | 'filled';
539
541
  openUntilMs: number;
540
542
  seller: string | null;
541
543
  sellerAgent: {
@@ -555,6 +557,16 @@ interface OpenJobRow {
555
557
  /** S.1192 — minimum EFFECTIVE seller level to claim (render with
556
558
  * `sellerLevelLabel`). Absent on pre-S.1192 rows = 0 (no floor). */
557
559
  minSellerLevel?: number;
560
+ /** S.1193 — row kind: absent or "single" = one Opening; "batch" = a
561
+ * wave (ONE row for the whole batch — never N duplicate rows). */
562
+ kind?: 'single' | 'batch';
563
+ /** S.1193 — wave size (batch rows only). */
564
+ slotsTotal?: number;
565
+ /** S.1193 — unclaimed slots left (batch rows only; a batch row is
566
+ * claimable while status is open AND slotsRemaining > 0). */
567
+ slotsRemaining?: number;
568
+ /** S.1193 — slots one agent may claim of this wave (batch rows only). */
569
+ maxClaimsPerAgent?: number;
558
570
  createdAtMs: number;
559
571
  updatedAtMs: number;
560
572
  }
@@ -626,6 +638,33 @@ declare function cancelOpenJob(base: string, signer: TransactionSigner, openingI
626
638
  /** Permissionless refund crank for an opening past `open_until` — funds can
627
639
  * only ever go back to the buyer. */
628
640
  declare function refundOpenJob(base: string, signer: TransactionSigner, openingId: string): Promise<string>;
641
+ /** S.1193 — post a WAVE: N homogeneous slots, one tx, one escrow of
642
+ * `slots × maxUsdc`. Each claimed slot becomes a normal Job. `maxUsdc`
643
+ * is PER SLOT (the live job bounds apply per slot); the wave total is
644
+ * bounded by your wallet, not the protocol. */
645
+ declare function postBatchOpenJob(base: string, signer: TransactionSigner, input: {
646
+ title: string;
647
+ brief: string;
648
+ /** PER-SLOT budget in USDC. */
649
+ maxUsdc: number;
650
+ /** Slots in the wave (1..live max, default max 250). */
651
+ slots: number;
652
+ slaMinutes?: number;
653
+ openHours?: number;
654
+ claimPolicy?: number;
655
+ minSellerLevel?: number;
656
+ /** Slots one agent may claim of this wave (default 1). */
657
+ maxClaimsPerAgent?: number;
658
+ }): Promise<string>;
659
+ /** S.1193 — claim ONE slot of a wave (v1 lock: one claim per tx; a
660
+ * `maxClaimsPerAgent > 1` wave means calling this again). Same $0 FCFS
661
+ * and the same Phase C gates as a single claim. */
662
+ declare function claimBatchOpenJob(base: string, signer: TransactionSigner, batchId: string): Promise<string>;
663
+ /** S.1193 — withdraw a wave's UNCLAIMED remainder — fee-free, any time.
664
+ * Already-claimed slots are normal Jobs and are untouched. */
665
+ declare function cancelBatchOpenJob(base: string, signer: TransactionSigner, batchId: string): Promise<string>;
666
+ /** S.1193 — permissionless remainder refund once the wave expires. */
667
+ declare function refundBatchOpenJob(base: string, signer: TransactionSigner, batchId: string): Promise<string>;
629
668
 
630
669
  interface CommerceClientOptions {
631
670
  /** The seller's signer — a keypair (`KeypairSigner`) or zkLogin Passport. */
@@ -1459,4 +1498,4 @@ declare function fullHandle(label: string, parentName?: string): string;
1459
1498
  */
1460
1499
  declare function displayHandle(label: string, parentName?: string): string;
1461
1500
 
1462
- export { AGENT_CATEGORIES, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type AgentCategory, type AgentProfile, type AgentRef, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, CommerceClient, type CommerceClientOptions, type ComposeTxOptions, type ComposeTxResult, type CreatePackageInput, type CreatePackageResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, ESCROW_JOB_TYPE_MARKER, type EndpointIssue, type EndpointListing, type EndpointRoute, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, MAX_SLUG_LENGTH, MAX_TIER_BASE_LENGTH, type NormalizedAddress, OPENING_TYPE_MARKER, type OpenJobFilter, type OpenJobRow, type OpenJobsPage, OverlayFeeConfig, type PackageTierInput, PayOptions, PayResult, PaymentRequest, type ProfileUpdateInput, type RegisterResult, SERVICE_SLUG_RE, SERVICE_TIERS, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, SerializedCetusRoute, type ServiceTier, type ServiceUpsertInput, type ServiceWriteResult, type SponsoredTxGuard, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, X402Probe, ZkLoginProof, agentResolveUrl, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, cancelOpenJob, canonicalizeRecipientInput, chatCompletion, chatCompletionStream, claimOpenJob, clearLimits, composeTx, createPackage, customHireEnvelope, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, endpointIssueLines, ensureCategory, exportPrivateKey, fetchChallengeNonce, fullHandle, generateKeypair, getAddress, getAgentProfile, getLimits, getOpenJob, getSponsoredSwapProviders, getSwapQuote, hasLimits, isCustomHireEnvelope, keypairFromPrivateKey, listEndpoint, listModels, listOpenJobs, loadKey, looksLikeSuiNs, normalizeAddressInput, packageBaseFromName, packageBaseSlug, packageTierSlugs, parseAgentCategory, parseServiceTierSlug, planPackage, postOpenJob, profileChallengeMessage, queryBalance, readLimitsFile, recordDailySpend, refundOpenJob, registerAgent, removeEndpoint, resolveAddressToSuinsViaRpc, resolveAgentRef, resolveCreatedObjectId, resolveSuinsViaRpc, retireService, saveBech32, saveKey, serviceChallengeMessage, servicePayloadSha256, serviceUpsertPayload, setLimits, setSponsoredTxGuard, signChallenge, slugify, slugifyLoner, slugifyUnbounded, submitJobReview, trimDashes, updateProfile, upsertService, validateLabel, walletExists, writeLimitsFile };
1501
+ export { AGENT_CATEGORIES, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type AgentCategory, type AgentProfile, type AgentRef, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, CommerceClient, type CommerceClientOptions, type ComposeTxOptions, type ComposeTxResult, type CreatePackageInput, type CreatePackageResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, ESCROW_JOB_TYPE_MARKER, type EndpointIssue, type EndpointListing, type EndpointRoute, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, MAX_SLUG_LENGTH, MAX_TIER_BASE_LENGTH, type NormalizedAddress, OPENING_TYPE_MARKER, type OpenJobFilter, type OpenJobRow, type OpenJobsPage, OverlayFeeConfig, type PackageTierInput, PayOptions, PayResult, PaymentRequest, type ProfileUpdateInput, type RegisterResult, SERVICE_SLUG_RE, SERVICE_TIERS, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, SerializedCetusRoute, type ServiceTier, type ServiceUpsertInput, type ServiceWriteResult, type SponsoredTxGuard, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, X402Probe, ZkLoginProof, agentResolveUrl, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, cancelBatchOpenJob, cancelOpenJob, canonicalizeRecipientInput, chatCompletion, chatCompletionStream, claimBatchOpenJob, claimOpenJob, clearLimits, composeTx, createPackage, customHireEnvelope, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, endpointIssueLines, ensureCategory, exportPrivateKey, fetchChallengeNonce, fullHandle, generateKeypair, getAddress, getAgentProfile, getLimits, getOpenJob, getSponsoredSwapProviders, getSwapQuote, hasLimits, isCustomHireEnvelope, keypairFromPrivateKey, listEndpoint, listModels, listOpenJobs, loadKey, looksLikeSuiNs, normalizeAddressInput, packageBaseFromName, packageBaseSlug, packageTierSlugs, parseAgentCategory, parseServiceTierSlug, planPackage, postBatchOpenJob, postOpenJob, profileChallengeMessage, queryBalance, readLimitsFile, recordDailySpend, refundBatchOpenJob, refundOpenJob, registerAgent, removeEndpoint, resolveAddressToSuinsViaRpc, resolveAgentRef, resolveCreatedObjectId, resolveSuinsViaRpc, retireService, saveBech32, saveKey, serviceChallengeMessage, servicePayloadSha256, serviceUpsertPayload, setLimits, setSponsoredTxGuard, signChallenge, slugify, slugifyLoner, slugifyUnbounded, submitJobReview, trimDashes, updateProfile, upsertService, validateLabel, walletExists, writeLimitsFile };
package/dist/index.js CHANGED
@@ -2999,7 +2999,7 @@ init_coinSelection();
2999
2999
  init_errors();
3000
3000
  init_token_registry();
3001
3001
  init_coinSelection();
3002
- var MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID = "0x5c90ec07da01bf885a4e65247ce98b75ab8a042cd965d30d7213856d579c4afa";
3002
+ var MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID = "0x2a928916c859a159e6d6f4841073a31397d01336c1ea689ce74344e456463c8d";
3003
3003
  var MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID = MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID;
3004
3004
  var A2A_ESCROW_LATEST_PACKAGE_ID = process.env.A2A_ESCROW_OPENING_PACKAGE_ID ?? process.env.A2A_ESCROW_PACKAGE_ID ?? MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID;
3005
3005
  var A2A_ESCROW_OPENING_PACKAGE_ID = A2A_ESCROW_LATEST_PACKAGE_ID;
@@ -3009,6 +3009,7 @@ var A2A_ESCROW_PACKAGE_V6_ID = "0xb065033b6f72c4899055a0b3afac28f09dc7b0b7b491ea
3009
3009
  var A2A_ESCROW_PACKAGE_V7_ID = "0x4249f0b242c47c7baf0c37304365bc4bbe769bcedf11f3525e84682d59a3b23e";
3010
3010
  var A2A_ESCROW_PACKAGE_V8_ID = "0x1595b80bc05a03607f3908702c866ca63cf961025b4263b5ecbe419e07f8ff31";
3011
3011
  var A2A_ESCROW_PACKAGE_V10_ID = process.env.A2A_ESCROW_PACKAGE_V10_ID ?? "0x5c90ec07da01bf885a4e65247ce98b75ab8a042cd965d30d7213856d579c4afa";
3012
+ var A2A_ESCROW_PACKAGE_V11_ID = process.env.A2A_ESCROW_PACKAGE_V11_ID ?? "0x2a928916c859a159e6d6f4841073a31397d01336c1ea689ce74344e456463c8d";
3012
3013
  var CLOCK_ID2 = "0x6";
3013
3014
  var MODULE = "opening";
3014
3015
  var SHA256_HEX_RE = /^(0x)?[0-9a-fA-F]{64}$/;
@@ -3477,6 +3478,11 @@ async function verifyJobForSeller({
3477
3478
  return { ok: problems.length === 0, job, problems };
3478
3479
  }
3479
3480
 
3481
+ // src/wallet/batch.ts
3482
+ init_errors();
3483
+ init_token_registry();
3484
+ init_coinSelection();
3485
+
3480
3486
  // src/wallet/reputation.ts
3481
3487
  init_errors();
3482
3488
  init_token_registry();
@@ -3690,6 +3696,181 @@ function buildSubmitFirstReviewTx({
3690
3696
  return tx;
3691
3697
  }
3692
3698
 
3699
+ // src/wallet/batch.ts
3700
+ var MODULE4 = "batch";
3701
+ var CLOCK_ID5 = "0x6";
3702
+ var MAX_BATCH_SLOTS_DEFAULT = 250;
3703
+ var BATCH_OPENING_TYPE_MARKER = "::batch::BatchOpening<";
3704
+ function preflightCreateBatchOpening(terms) {
3705
+ const single = preflightCreateOpening(terms);
3706
+ if (!single.valid) return single;
3707
+ if (!Number.isInteger(terms.slots) || terms.slots < 1 || terms.slots > MAX_BATCH_SLOTS_DEFAULT) {
3708
+ return {
3709
+ valid: false,
3710
+ code: "INVALID_INPUT",
3711
+ error: `slots must be an integer 1\u2013${MAX_BATCH_SLOTS_DEFAULT} (the live max is AdminCap-tunable on-chain).`
3712
+ };
3713
+ }
3714
+ const maxClaims = terms.maxClaimsPerAgent ?? 1;
3715
+ if (!Number.isInteger(maxClaims) || maxClaims < 1 || maxClaims > terms.slots) {
3716
+ return {
3717
+ valid: false,
3718
+ code: "INVALID_INPUT",
3719
+ error: "maxClaimsPerAgent must be an integer \u22651 and \u2264 slots."
3720
+ };
3721
+ }
3722
+ return { valid: true };
3723
+ }
3724
+ async function buildCreateBatchOpeningTx({
3725
+ client,
3726
+ buyer,
3727
+ terms
3728
+ }) {
3729
+ const pf = preflightCreateBatchOpening(terms);
3730
+ if (!pf.valid) throw new T2000Error(pf.code ?? "INVALID_INPUT", pf.error ?? "Invalid batch.");
3731
+ const perSlotRaw = BigInt(Math.floor(terms.amountUsdc * 10 ** USDC_DECIMALS));
3732
+ const totalRaw = perSlotRaw * BigInt(terms.slots);
3733
+ const tx = new Transaction();
3734
+ const { coin } = await selectAndSplitCoin(
3735
+ tx,
3736
+ client,
3737
+ validateAddress(buyer),
3738
+ USDC_TYPE,
3739
+ totalRaw,
3740
+ { allowSwapAll: false }
3741
+ );
3742
+ tx.moveCall({
3743
+ target: `${A2A_ESCROW_OPENING_PACKAGE_ID}::${MODULE4}::create_batch_open`,
3744
+ typeArguments: [USDC_TYPE],
3745
+ arguments: [
3746
+ coin,
3747
+ tx.pure.u64(terms.slots),
3748
+ tx.pure.vector("u8", hexToBytes3(terms.specHash)),
3749
+ tx.pure.u64(terms.openUntilMs),
3750
+ tx.pure.u64(terms.slaMs),
3751
+ tx.pure.u64(terms.reviewWindowMs),
3752
+ tx.pure.u64(terms.rejectSplitBps),
3753
+ tx.pure.u8(terms.claimPolicy ?? OPENING_CLAIM_POLICY_ANY_ACTIVE),
3754
+ tx.pure.u8(terms.minSellerLevel ?? 0),
3755
+ tx.pure.u8(terms.maxClaimsPerAgent ?? 1),
3756
+ feeConfigArg(tx),
3757
+ tx.object(CLOCK_ID5)
3758
+ ]
3759
+ });
3760
+ return tx;
3761
+ }
3762
+ function buildBatchClaimTx({
3763
+ batchId,
3764
+ registryId,
3765
+ scoreId
3766
+ }) {
3767
+ if (!scoreId) {
3768
+ throw new T2000Error(
3769
+ "INVALID_INPUT",
3770
+ "Claiming needs the claimer's own AgentScore id (derive with deriveAgentScoreId; create it first with buildCreateEmptyScoreTx when missing)."
3771
+ );
3772
+ }
3773
+ const tx = new Transaction();
3774
+ tx.moveCall({
3775
+ target: `${A2A_ESCROW_OPENING_PACKAGE_ID}::${MODULE4}::batch_claim`,
3776
+ typeArguments: [USDC_TYPE],
3777
+ arguments: [
3778
+ tx.object(batchId),
3779
+ tx.object(registryId),
3780
+ tx.object(scoreId),
3781
+ feeConfigArg(tx),
3782
+ tx.object(CLOCK_ID5)
3783
+ ]
3784
+ });
3785
+ return tx;
3786
+ }
3787
+ function batchCall(batchId, fn) {
3788
+ const tx = new Transaction();
3789
+ tx.moveCall({
3790
+ target: `${A2A_ESCROW_OPENING_PACKAGE_ID}::${MODULE4}::${fn}`,
3791
+ typeArguments: [USDC_TYPE],
3792
+ arguments: [tx.object(batchId), feeConfigArg(tx), tx.object(CLOCK_ID5)]
3793
+ });
3794
+ return tx;
3795
+ }
3796
+ function buildCancelBatchOpeningTx(batchId) {
3797
+ return batchCall(batchId, "cancel_batch_open");
3798
+ }
3799
+ function buildRefundBatchExpiredTx(batchId) {
3800
+ return batchCall(batchId, "refund_batch_expired");
3801
+ }
3802
+ function bytesToHex3(bytes) {
3803
+ return `0x${Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("")}`;
3804
+ }
3805
+ function hexToBytes3(hex) {
3806
+ const clean = hex.replace(/^0x/, "");
3807
+ const bytes = [];
3808
+ for (let i = 0; i < clean.length; i += 2) {
3809
+ bytes.push(Number.parseInt(clean.slice(i, i + 2), 16));
3810
+ }
3811
+ return bytes;
3812
+ }
3813
+ async function getBatchOpening(client, batchId) {
3814
+ const resp = await client.core.getObject({ objectId: batchId, include: { json: true } }).catch(() => null);
3815
+ const objType = resp?.object?.type ?? "";
3816
+ const json = resp?.object?.json;
3817
+ if (!json || !objType.includes(BATCH_OPENING_TYPE_MARKER)) {
3818
+ return null;
3819
+ }
3820
+ const table = json.claims_by_agent;
3821
+ return {
3822
+ id: batchId,
3823
+ buyer: String(json.buyer),
3824
+ amountUsdc: Number(json.amount) / 10 ** USDC_DECIMALS,
3825
+ slotsTotal: Number(json.slots_total),
3826
+ slotsRemaining: Number(json.slots_remaining),
3827
+ feeBps: Number(json.fee_bps ?? 0),
3828
+ specHash: bytesToHex3(json.spec_hash ?? []),
3829
+ openUntilMs: Number(json.open_until_ms),
3830
+ slaMs: Number(json.sla_ms),
3831
+ reviewWindowMs: Number(json.review_window_ms),
3832
+ rejectSplitBps: Number(json.reject_split_bps),
3833
+ claimPolicy: Number(json.claim_policy ?? 0),
3834
+ minSellerLevel: Number(json.min_seller_level ?? 0),
3835
+ maxClaimsPerAgent: Number(json.max_claims_per_agent ?? 1),
3836
+ claimsTableId: table?.id ? String(table.id) : null,
3837
+ createdAtMs: Number(json.created_at_ms ?? 0)
3838
+ };
3839
+ }
3840
+ async function getBatchClaimsByAgent(client, batch, agent) {
3841
+ if (!batch.claimsTableId) return 0;
3842
+ try {
3843
+ const fieldId = deriveDynamicFieldID(
3844
+ batch.claimsTableId,
3845
+ "address",
3846
+ bcs.Address.serialize(validateAddress(agent)).toBytes()
3847
+ );
3848
+ const resp = await client.core.getObject({
3849
+ objectId: fieldId,
3850
+ include: { json: true }
3851
+ });
3852
+ const json = resp?.object?.json;
3853
+ return Number(json?.value ?? 0);
3854
+ } catch {
3855
+ return 0;
3856
+ }
3857
+ }
3858
+ function preflightBatchClaim(score, batch, myClaims) {
3859
+ if (batch.slotsRemaining <= 0) {
3860
+ return {
3861
+ valid: false,
3862
+ error: "No slots left on this batch \u2014 every slot is claimed. Find open waves on the board."
3863
+ };
3864
+ }
3865
+ if (myClaims >= batch.maxClaimsPerAgent) {
3866
+ return {
3867
+ valid: false,
3868
+ error: `This wave allows ${batch.maxClaimsPerAgent} slot${batch.maxClaimsPerAgent === 1 ? "" : "s"} per agent and this wallet already holds ${myClaims}. Deliver what you claimed; other waves on the board are open.`
3869
+ };
3870
+ }
3871
+ return preflightClaimOpening(score, batch);
3872
+ }
3873
+
3693
3874
  // src/commerce.ts
3694
3875
  var DEFAULT_COMMERCE_API_BASE = "https://api.t2000.ai/v1";
3695
3876
  async function commerceFetchJson(url, init) {
@@ -3965,6 +4146,24 @@ function refundOpenJob(base, signer, openingId) {
3965
4146
  openingId: openingId.trim()
3966
4147
  });
3967
4148
  }
4149
+ function postBatchOpenJob(base, signer, input) {
4150
+ return sponsoredOpeningVerb(base, signer, "batch-open-create", input);
4151
+ }
4152
+ function claimBatchOpenJob(base, signer, batchId) {
4153
+ return sponsoredOpeningVerb(base, signer, "batch-open-claim", {
4154
+ batchId: batchId.trim()
4155
+ });
4156
+ }
4157
+ function cancelBatchOpenJob(base, signer, batchId) {
4158
+ return sponsoredOpeningVerb(base, signer, "batch-open-cancel", {
4159
+ batchId: batchId.trim()
4160
+ });
4161
+ }
4162
+ function refundBatchOpenJob(base, signer, batchId) {
4163
+ return sponsoredOpeningVerb(base, signer, "batch-open-refund", {
4164
+ batchId: batchId.trim()
4165
+ });
4166
+ }
3968
4167
 
3969
4168
  // src/commerce/endpoint.ts
3970
4169
  init_errors();
@@ -4906,4 +5105,4 @@ function displayHandle(label, parentName = AUDRIC_PARENT_NAME) {
4906
5105
  // src/index.ts
4907
5106
  init_preflight();
4908
5107
 
4909
- export { A2A_ESCROW_FEE_CONFIG_ID, A2A_ESCROW_LATEST_PACKAGE_ID, A2A_ESCROW_OPENING_PACKAGE_ID, A2A_ESCROW_PACKAGE_ID, A2A_ESCROW_PACKAGE_V10_ID, A2A_ESCROW_PACKAGE_V2_ID, A2A_ESCROW_PACKAGE_V3_ID, A2A_ESCROW_PACKAGE_V6_ID, A2A_ESCROW_PACKAGE_V7_ID, A2A_ESCROW_PACKAGE_V8_ID, A2A_SCORE_BOARD_ID, AGENT_CATEGORIES, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, CETUS_USDC_SUI_POOL, CLOCK_ID, COIN_REGISTRY, CommerceClient, 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, LEVEL4_MAX_NO_DELIVERY, LEVEL4_MIN_REVIEWS, LOFI_TYPE, LimitEnforcer, LimitExceededError, MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID, MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID, MAINNET_A2A_ESCROW_PACKAGE_ID, MAINNET_A2A_SCORE_BOARD_ID, MANIFEST_TYPE, MAX_DELIVER_HORIZON_MS, MAX_JOB_USDC, MAX_OPEN_WINDOW_MS, MAX_REVIEW_WINDOW_MS, MAX_SLUG_LENGTH, MAX_TIER_BASE_LENGTH, MIN_JOB_USDC, MIST_PER_SUI, NAVX_TYPE, NO_DELIVERY_REGRESSION_FLOOR, OPENING_CLAIM_POLICIES, OPENING_CLAIM_POLICY_ANY_ACTIVE, OPENING_CLAIM_POLICY_PROVEN, OPENING_CLAIM_POLICY_PROVEN_4STAR, OPENING_TYPE_MARKER, OPERATION_ASSETS, OVERLAY_FEE_RATE, PREFLIGHT_MAX_AMOUNT, PREFLIGHT_OK, PROVEN_MIN_AVG_STARS_X10, PROVEN_MIN_REVIEWS, REVIEW_MAX_STARS, REVIEW_MIN_STARS, SELLER_LEVEL_ACTIVE_CAPS, SENDABLE_ASSETS, SERVICE_SLUG_RE, SERVICE_TIERS, 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, activeCapForLevel, addSendToTx, addSwapToTx, agentResolveUrl, approxUsdValue, assertAllowedAsset, assertBuyerRequirements, assertLimitConfig, buildAddLeafTx, buildCancelOpeningTx, buildClaimOpeningTx, buildCreateEmptyScoreTx, buildCreateJobTx, buildCreateOpeningTx, buildDeclineJobTx, buildDeliverJobTx, buildRefundJobTx, buildRefundUnclaimedTx, buildRejectJobTx, buildReleaseJobTx, buildRevokeLeafTx, buildSendTx, buildSubmitFirstReviewTx, buildSubmitReviewTx, buildSwapTx, cancelOpenJob, canonicalizeRecipientInput, chatCompletion, chatCompletionStream, checkPositiveAmount, checkSuiAddress, claimOpenJob, claimPolicyLabel, claimPolicyRequirement, classifyAction, classifyLabel, classifySendAsset, classifyTransaction, clearLimits, composeTx, createPackage, customHireEnvelope, dailySpentToday, deriveAgentScoreId, deriveAllowedAddressesFromPtb, deserializeCetusRoute, displayHandle, effectiveSellerLevel, endpointIssueLines, ensureCategory, executeTx, exportPrivateKey, extractAllUserLegs, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchAllCoins, fetchChallengeNonce, fetchService, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fullHandle, generateKeypair, getAddress, getAgentProfile, getAgentScore, getCoinMeta, getDecimals, getDecimalsForCoinType, getJob, getJobSpec, getLimits, getOpenJob, getOpening, getSponsoredSwapProviders, getSuiClient, getSuiGrpcClient, getSwapQuote, hasLimits, invalidSendAssetMessage, isAllowedAsset, isCetusRouteFresh, isCustomHireEnvelope, isInRegistry, jobActionsFor, keypairFromPrivateKey, listEndpoint, listModels, listOpenJobs, listServices, loadKey, looksLikeSuiNs, mapMoveAbortCode, mapWalletError, meetsClaimPolicy, meetsMinSellerLevel, mistToSui, normalizeAddressInput, normalizeAsset, normalizeCoinType, packageBaseFromName, packageBaseSlug, packageTierSlugs, parseAgentCategory, parseServiceTierSlug, parseSuiRpcTx, payWithX402, planPackage, postOpenJob, preflightClaimOpening, preflightCreateJob, preflightCreateOpening, preflightFail, preflightPay, preflightSend, preflightSwap, probeX402, profileChallengeMessage, putJobSpec, queryBalance, queryHistory, queryTransaction, rawToStable, rawToUsdc, readLimitsFile, recordDailySpend, refineLendingLabel, refundOpenJob, registerAgent, removeEndpoint, reportX402Activity, resolveAddressToSuinsViaRpc, resolveAgentRef, resolveCreatedObjectId, resolveSuinsViaRpc, resolveSymbol, resolveTokenType, retireService, saveBech32, saveKey, selectAndSplitCoin, selectSuiCoin, sellerLevel, sellerLevelLabel, serializeCetusRoute, serviceChallengeMessage, servicePayloadSha256, serviceUpsertPayload, setLimits, setSponsoredTxGuard, signChallenge, simulateTransaction, slugify, slugifyLoner, slugifyUnbounded, stableToRaw, submitJobReview, suiToMist, throwIfSimulationFailed, trimDashes, truncateAddress, updateProfile, upsertService, usdcToRaw, validateAddress, validateLabel, verifyCetusRouteCoinMatch, verifyJobForSeller, walletExists, writeLimitsFile };
5108
+ export { A2A_ESCROW_FEE_CONFIG_ID, A2A_ESCROW_LATEST_PACKAGE_ID, A2A_ESCROW_OPENING_PACKAGE_ID, A2A_ESCROW_PACKAGE_ID, A2A_ESCROW_PACKAGE_V10_ID, A2A_ESCROW_PACKAGE_V11_ID, A2A_ESCROW_PACKAGE_V2_ID, A2A_ESCROW_PACKAGE_V3_ID, A2A_ESCROW_PACKAGE_V6_ID, A2A_ESCROW_PACKAGE_V7_ID, A2A_ESCROW_PACKAGE_V8_ID, A2A_SCORE_BOARD_ID, AGENT_CATEGORIES, AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, BATCH_OPENING_TYPE_MARKER, CETUS_USDC_SUI_POOL, CLOCK_ID, COIN_REGISTRY, CommerceClient, 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, LEVEL4_MAX_NO_DELIVERY, LEVEL4_MIN_REVIEWS, LOFI_TYPE, LimitEnforcer, LimitExceededError, MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID, MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID, MAINNET_A2A_ESCROW_PACKAGE_ID, MAINNET_A2A_SCORE_BOARD_ID, MANIFEST_TYPE, MAX_BATCH_SLOTS_DEFAULT, MAX_DELIVER_HORIZON_MS, MAX_JOB_USDC, MAX_OPEN_WINDOW_MS, MAX_REVIEW_WINDOW_MS, MAX_SLUG_LENGTH, MAX_TIER_BASE_LENGTH, MIN_JOB_USDC, MIST_PER_SUI, NAVX_TYPE, NO_DELIVERY_REGRESSION_FLOOR, OPENING_CLAIM_POLICIES, OPENING_CLAIM_POLICY_ANY_ACTIVE, OPENING_CLAIM_POLICY_PROVEN, OPENING_CLAIM_POLICY_PROVEN_4STAR, OPENING_TYPE_MARKER, OPERATION_ASSETS, OVERLAY_FEE_RATE, PREFLIGHT_MAX_AMOUNT, PREFLIGHT_OK, PROVEN_MIN_AVG_STARS_X10, PROVEN_MIN_REVIEWS, REVIEW_MAX_STARS, REVIEW_MIN_STARS, SELLER_LEVEL_ACTIVE_CAPS, SENDABLE_ASSETS, SERVICE_SLUG_RE, SERVICE_TIERS, 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, activeCapForLevel, addSendToTx, addSwapToTx, agentResolveUrl, approxUsdValue, assertAllowedAsset, assertBuyerRequirements, assertLimitConfig, buildAddLeafTx, buildBatchClaimTx, buildCancelBatchOpeningTx, buildCancelOpeningTx, buildClaimOpeningTx, buildCreateBatchOpeningTx, buildCreateEmptyScoreTx, buildCreateJobTx, buildCreateOpeningTx, buildDeclineJobTx, buildDeliverJobTx, buildRefundBatchExpiredTx, buildRefundJobTx, buildRefundUnclaimedTx, buildRejectJobTx, buildReleaseJobTx, buildRevokeLeafTx, buildSendTx, buildSubmitFirstReviewTx, buildSubmitReviewTx, buildSwapTx, cancelBatchOpenJob, cancelOpenJob, canonicalizeRecipientInput, chatCompletion, chatCompletionStream, checkPositiveAmount, checkSuiAddress, claimBatchOpenJob, claimOpenJob, claimPolicyLabel, claimPolicyRequirement, classifyAction, classifyLabel, classifySendAsset, classifyTransaction, clearLimits, composeTx, createPackage, customHireEnvelope, dailySpentToday, deriveAgentScoreId, deriveAllowedAddressesFromPtb, deserializeCetusRoute, displayHandle, effectiveSellerLevel, endpointIssueLines, ensureCategory, executeTx, exportPrivateKey, extractAllUserLegs, extractTransferDetails, extractTxCommands, extractTxSender, fallbackLabel, fetchAllCoins, fetchChallengeNonce, fetchService, findSwapRoute, formatAssetAmount, formatSui, formatUsd, fullHandle, generateKeypair, getAddress, getAgentProfile, getAgentScore, getBatchClaimsByAgent, getBatchOpening, getCoinMeta, getDecimals, getDecimalsForCoinType, getJob, getJobSpec, getLimits, getOpenJob, getOpening, getSponsoredSwapProviders, getSuiClient, getSuiGrpcClient, getSwapQuote, hasLimits, invalidSendAssetMessage, isAllowedAsset, isCetusRouteFresh, isCustomHireEnvelope, isInRegistry, jobActionsFor, keypairFromPrivateKey, listEndpoint, listModels, listOpenJobs, listServices, loadKey, looksLikeSuiNs, mapMoveAbortCode, mapWalletError, meetsClaimPolicy, meetsMinSellerLevel, mistToSui, normalizeAddressInput, normalizeAsset, normalizeCoinType, packageBaseFromName, packageBaseSlug, packageTierSlugs, parseAgentCategory, parseServiceTierSlug, parseSuiRpcTx, payWithX402, planPackage, postBatchOpenJob, postOpenJob, preflightBatchClaim, preflightClaimOpening, preflightCreateBatchOpening, preflightCreateJob, preflightCreateOpening, preflightFail, preflightPay, preflightSend, preflightSwap, probeX402, profileChallengeMessage, putJobSpec, queryBalance, queryHistory, queryTransaction, rawToStable, rawToUsdc, readLimitsFile, recordDailySpend, refineLendingLabel, refundBatchOpenJob, refundOpenJob, registerAgent, removeEndpoint, reportX402Activity, resolveAddressToSuinsViaRpc, resolveAgentRef, resolveCreatedObjectId, resolveSuinsViaRpc, resolveSymbol, resolveTokenType, retireService, saveBech32, saveKey, selectAndSplitCoin, selectSuiCoin, sellerLevel, sellerLevelLabel, serializeCetusRoute, serviceChallengeMessage, servicePayloadSha256, serviceUpsertPayload, setLimits, setSponsoredTxGuard, signChallenge, simulateTransaction, slugify, slugifyLoner, slugifyUnbounded, stableToRaw, submitJobReview, suiToMist, throwIfSimulationFailed, trimDashes, truncateAddress, updateProfile, upsertService, usdcToRaw, validateAddress, validateLabel, verifyCetusRouteCoinMatch, verifyJobForSeller, walletExists, writeLimitsFile };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2000/sdk",
3
- "version": "10.38.2",
3
+ "version": "10.39.0",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -56,7 +56,7 @@
56
56
  "@phala/dcap-qvl": "^0.5.2",
57
57
  "bn.js": "^5.2.1",
58
58
  "eventemitter3": "^5",
59
- "@t2000/sui-x402": "10.38.2"
59
+ "@t2000/sui-x402": "10.39.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/bn.js": "^5.1.5",