@t2000/cli 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.
@@ -18,7 +18,7 @@ import {
18
18
  __export,
19
19
  __require,
20
20
  __toESM
21
- } from "./chunk-BLLELIG6.js";
21
+ } from "./chunk-YPWSCLE3.js";
22
22
 
23
23
  // ../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js
24
24
  var require_bignumber = __commonJS({
@@ -32559,4 +32559,4 @@ mime-types/index.js:
32559
32559
  *)
32560
32560
  *)
32561
32561
  */
32562
- //# sourceMappingURL=chunk-SKQLFHJJ.js.map
32562
+ //# sourceMappingURL=chunk-PRKQVMED.js.map
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'module'; import { fileURLToPat
2
2
  import {
3
3
  __commonJS,
4
4
  __require
5
- } from "./chunk-BLLELIG6.js";
5
+ } from "./chunk-YPWSCLE3.js";
6
6
 
7
7
  // ../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js
8
8
  var require_bn = __commonJS({
@@ -2968,4 +2968,4 @@ export {
2968
2968
  require_bn,
2969
2969
  require_safer
2970
2970
  };
2971
- //# sourceMappingURL=chunk-ZXXZGTWS.js.map
2971
+ //# sourceMappingURL=chunk-Y4F22BB6.js.map
@@ -29,7 +29,6 @@ var __copyProps = (to, from, except, desc) => {
29
29
  }
30
30
  return to;
31
31
  };
32
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
33
32
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
34
33
  // If the importer is in node compatibility mode or this is not an ESM
35
34
  // file that has been converted to a CommonJS file using a Babel-
@@ -45,8 +44,7 @@ export {
45
44
  __esm,
46
45
  __commonJS,
47
46
  __export,
48
- __reExport,
49
47
  __toESM,
50
48
  __toCommonJS
51
49
  };
52
- //# sourceMappingURL=chunk-BLLELIG6.js.map
50
+ //# sourceMappingURL=chunk-YPWSCLE3.js.map
@@ -171,12 +171,12 @@ import {
171
171
  processEndpoint,
172
172
  processFlattenRoutes,
173
173
  restituteMsafeFastRouterSwapParams
174
- } from "./chunk-SKQLFHJJ.js";
174
+ } from "./chunk-PRKQVMED.js";
175
175
  import "./chunk-R6QER65C.js";
176
176
  import "./chunk-JEIOQF6Q.js";
177
177
  import "./chunk-5MAY6SK7.js";
178
178
  import "./chunk-D3DUYZYR.js";
179
- import "./chunk-BLLELIG6.js";
179
+ import "./chunk-YPWSCLE3.js";
180
180
  export {
181
181
  AFSUI,
182
182
  AFTERMATH,
@@ -350,4 +350,4 @@ export {
350
350
  processFlattenRoutes,
351
351
  restituteMsafeFastRouterSwapParams
352
352
  };
353
- //# sourceMappingURL=dist-MQVAPHMQ.js.map
353
+ //# sourceMappingURL=dist-GMDKEKC4.js.map
@@ -9,7 +9,7 @@ import {
9
9
  toBase64,
10
10
  toHex
11
11
  } from "./chunk-D3DUYZYR.js";
12
- import "./chunk-BLLELIG6.js";
12
+ import "./chunk-YPWSCLE3.js";
13
13
 
14
14
  // ../x402/dist/index.js
15
15
  var SUI_USDC_TYPE = "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC";
@@ -348,4 +348,4 @@ export {
348
348
  withRetry,
349
349
  x402Network
350
350
  };
351
- //# sourceMappingURL=dist-36BJD54E.js.map
351
+ //# sourceMappingURL=dist-VUHPQJYY.js.map
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  __commonJS,
20
20
  __toESM
21
- } from "./chunk-BLLELIG6.js";
21
+ } from "./chunk-YPWSCLE3.js";
22
22
 
23
23
  // ../../node_modules/.pnpm/poseidon-lite@0.2.1/node_modules/poseidon-lite/poseidon/index.js
24
24
  var require_poseidon = __commonJS({
@@ -1081,4 +1081,4 @@ export {
1081
1081
  jwtToAddress2 as jwtToAddress,
1082
1082
  poseidonHash
1083
1083
  };
1084
- //# sourceMappingURL=esm-4JYJHL2T.js.map
1084
+ //# sourceMappingURL=esm-ZKAIHFAJ.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-R6QER65C.js";
9
9
  import "./chunk-5MAY6SK7.js";
10
10
  import "./chunk-D3DUYZYR.js";
11
- import "./chunk-BLLELIG6.js";
11
+ import "./chunk-YPWSCLE3.js";
12
12
  export {
13
13
  GrpcCoreClient,
14
14
  types_exports as GrpcTypes,
@@ -16,4 +16,4 @@ export {
16
16
  SuiGrpcClient,
17
17
  isSuiGrpcClient
18
18
  };
19
- //# sourceMappingURL=grpc-SHHHADW4.js.map
19
+ //# sourceMappingURL=grpc-G3RQE2L5.js.map
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'module'; import { fileURLToPat
3
3
  import {
4
4
  AggregatorClient,
5
5
  Env
6
- } from "./chunk-SKQLFHJJ.js";
6
+ } from "./chunk-PRKQVMED.js";
7
7
  import {
8
8
  BalanceChange,
9
9
  BaseClient,
@@ -83,12 +83,12 @@ import {
83
83
  import {
84
84
  require_bn,
85
85
  require_safer
86
- } from "./chunk-ZXXZGTWS.js";
86
+ } from "./chunk-Y4F22BB6.js";
87
87
  import {
88
88
  __commonJS,
89
89
  __require,
90
90
  __toESM
91
- } from "./chunk-BLLELIG6.js";
91
+ } from "./chunk-YPWSCLE3.js";
92
92
 
93
93
  // ../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/error.js
94
94
  var require_error = __commonJS({
@@ -28618,7 +28618,7 @@ function preflightPay(input) {
28618
28618
  }
28619
28619
  return PREFLIGHT_OK;
28620
28620
  }
28621
- async function payWithMpp(args) {
28621
+ async function payWithX402(args) {
28622
28622
  const { signer, client } = args;
28623
28623
  let options = args.options;
28624
28624
  const pf = preflightPay({ url: options.url, maxPrice: options.maxPrice });
@@ -28643,7 +28643,7 @@ async function payWithMpp(args) {
28643
28643
  const pick = await pickSuiExactRequirements(probe, client.network);
28644
28644
  if (pick.kind === "payable") {
28645
28645
  const requirements = pick.requirements;
28646
- const { isX402EscrowRequirements } = await import("./dist-36BJD54E.js");
28646
+ const { isX402EscrowRequirements } = await import("./dist-VUHPQJYY.js");
28647
28647
  if (isX402EscrowRequirements(requirements)) {
28648
28648
  const escrow = requirements.extra.escrow;
28649
28649
  const price = atomicToHuman(
@@ -28689,7 +28689,7 @@ async function pickSuiExactRequirements(response, network) {
28689
28689
  const want = `sui:${network === "testnet" ? "testnet" : "mainnet"}`;
28690
28690
  const entry = body2.accepts?.find((a) => a.scheme === "exact" && a.network === want);
28691
28691
  if (!entry) return { kind: "none" };
28692
- const { isX402EscrowRequirements } = await import("./dist-36BJD54E.js");
28692
+ const { isX402EscrowRequirements } = await import("./dist-VUHPQJYY.js");
28693
28693
  if (hasCompleteSuimppChallenge(entry) || isX402EscrowRequirements(entry)) {
28694
28694
  return { kind: "payable", requirements: entry };
28695
28695
  }
@@ -28707,7 +28707,7 @@ async function payViaX402(args) {
28707
28707
  { reason: "incomplete-x402-accepts" }
28708
28708
  );
28709
28709
  }
28710
- const { buildX402SignedPayment, X402_PAYMENT_HEADER, X402_PAYMENT_RESPONSE_HEADER } = await import("./dist-36BJD54E.js");
28710
+ const { buildX402SignedPayment, X402_PAYMENT_HEADER, X402_PAYMENT_RESPONSE_HEADER } = await import("./dist-VUHPQJYY.js");
28711
28711
  const amountRaw = BigInt(requirements.maxAmountRequired);
28712
28712
  assertWithinMaxPrice(atomicToHuman(amountRaw, await assetDecimals(requirements.asset)), options.maxPrice);
28713
28713
  const migrationGasSui = await ensureAddressBalanceCovers({
@@ -28838,7 +28838,7 @@ async function finalize(response, opts) {
28838
28838
  return { status: response.status, body: body2, paid: opts.paid };
28839
28839
  }
28840
28840
  async function makeGrpcBuildClient(client) {
28841
- const { SuiGrpcClient: SuiGrpcClient3 } = await import("./grpc-SHHHADW4.js");
28841
+ const { SuiGrpcClient: SuiGrpcClient3 } = await import("./grpc-G3RQE2L5.js");
28842
28842
  const network = client.network === "testnet" ? "testnet" : "mainnet";
28843
28843
  const baseUrl = network === "testnet" ? "https://fullnode.testnet.sui.io" : "https://fullnode.mainnet.sui.io";
28844
28844
  return new SuiGrpcClient3({ baseUrl, network });
@@ -28867,7 +28867,7 @@ var ZkLoginSigner = class {
28867
28867
  return this.userAddress;
28868
28868
  }
28869
28869
  async signTransaction(txBytes) {
28870
- const { getZkLoginSignature } = await import("./esm-4JYJHL2T.js");
28870
+ const { getZkLoginSignature } = await import("./esm-ZKAIHFAJ.js");
28871
28871
  const ephSig = await this.ephemeralKeypair.signTransaction(txBytes);
28872
28872
  return {
28873
28873
  signature: getZkLoginSignature({
@@ -28878,7 +28878,7 @@ var ZkLoginSigner = class {
28878
28878
  };
28879
28879
  }
28880
28880
  async signPersonalMessage(messageBytes) {
28881
- const { getZkLoginSignature } = await import("./esm-4JYJHL2T.js");
28881
+ const { getZkLoginSignature } = await import("./esm-ZKAIHFAJ.js");
28882
28882
  const { signature: ephSig, bytes } = await this.ephemeralKeypair.signPersonalMessage(messageBytes);
28883
28883
  return {
28884
28884
  signature: getZkLoginSignature({
@@ -29626,7 +29626,7 @@ async function verifyTdxQuote(base, model, receiptWorkloadId) {
29626
29626
  };
29627
29627
  }
29628
29628
  try {
29629
- const dcap = await import("./src-4VRJNQ2G.js");
29629
+ const dcap = await import("./src-FIYSHJR4.js");
29630
29630
  const getCollateralAndVerify = dcap.getCollateralAndVerify ?? dcap.default?.getCollateralAndVerify;
29631
29631
  if (typeof getCollateralAndVerify !== "function") {
29632
29632
  return {
@@ -30115,7 +30115,7 @@ var T2000 = class _T2000 extends import_index2.default {
30115
30115
  // -- MPP Payments --
30116
30116
  async pay(options) {
30117
30117
  this.limits.assert({ operation: "pay", amountUsd: options.maxPrice ?? 0, force: options.force });
30118
- const result = await payWithMpp({ signer: this._signer, client: this.client, options });
30118
+ const result = await payWithX402({ signer: this._signer, client: this.client, options });
30119
30119
  if (result.paid) {
30120
30120
  this.limits.record(result.cost ?? options.maxPrice ?? 0);
30121
30121
  }
@@ -30790,37 +30790,6 @@ init_cetus_swap();
30790
30790
  init_token_registry();
30791
30791
  var AGENT_ID_PARENT_NFT_ID = process.env.AGENT_ID_PARENT_NFT_ID ?? "0xc8c13f5b5a6d4c47c04877014794f65e67e2745d3bfa089b736eb54b0ebd5d1f";
30792
30792
  init_preflight();
30793
- init_errors();
30794
- init_token_registry();
30795
- init_coinSelection();
30796
- var CETUS_CLMM_PACKAGE_ID = process.env.CETUS_CLMM_PACKAGE_ID ?? "0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb";
30797
- var CETUS_CLMM_PUBLISHED_AT = process.env.CETUS_CLMM_PUBLISHED_AT ?? "0x25ebb9a7c50eb17b3fa9c5a30fb8b5ad8f97caaf4928943acbcff7153dfee5e3";
30798
- var CETUS_GLOBAL_CONFIG_ID = process.env.CETUS_GLOBAL_CONFIG_ID ?? "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f";
30799
- var CETUS_POOLS_ID = process.env.CETUS_POOLS_ID ?? "0xf699e7f2276f5c9a75944b37a0c5b5d9ddfd2471bf6242483b03ab2887d198d0";
30800
- var CETUS_POSITION_TYPE = `${CETUS_CLMM_PACKAGE_ID}::position::Position`;
30801
- init_errors();
30802
- var TEMPLATE = {
30803
- module: "template",
30804
- otw: "TEMPLATE",
30805
- symbol: "TMPL",
30806
- name: "Template Coin",
30807
- description: "bytecode template placeholder",
30808
- iconUrl: "https://example.com/icon.svg",
30809
- totalSupply: 1000000000000000n,
30810
- recipient: normalizeSuiAddress("0xCAFE")
30811
- };
30812
- var AGENT_TOKEN_TOTAL_SUPPLY = 1000000000000000n;
30813
- var AGENT_TOKEN_LP_ALLOCATION = AGENT_TOKEN_TOTAL_SUPPLY / 2n;
30814
- var AGENT_TOKEN_TREASURY_ALLOCATION = AGENT_TOKEN_TOTAL_SUPPLY - AGENT_TOKEN_LP_ALLOCATION;
30815
- var AGENT_CAPITAL_PACKAGE_ID = process.env.AGENT_CAPITAL_PACKAGE_ID ?? "0xa83ecc4e530594f8e184faf6a4c3da6791267f6791a653644d59e2e603c055b8";
30816
- var AGENT_CAPITAL_PUBLISHED_AT = process.env.AGENT_CAPITAL_PUBLISHED_AT ?? "0x2974c16bda8f148ef5f8c3177d3d63eec060b1048648ae3b6c1fb495c2a602dd";
30817
- var CAPITAL_REGISTRY_ID = process.env.CAPITAL_REGISTRY_ID ?? "0xef4057baac856d65b47f14a1ba14211299637955ea5bc15d7708f6eef27ee0df";
30818
- var CAPITAL_REGISTRY_VERSION = Number(
30819
- process.env.CAPITAL_REGISTRY_VERSION ?? 931861908
30820
- );
30821
- init_errors();
30822
- init_token_registry();
30823
- var CETUS_INTEGRATE_PUBLISHED_AT = process.env.CETUS_INTEGRATE_PUBLISHED_AT ?? "0xfbb32ac0fa89a3cb0c56c745b688c6d2a53ac8e43447119ad822763997ffb9c3";
30824
30793
 
30825
30794
  // ../../node_modules/.pnpm/@inquirer+core@10.3.2_@types+node@20.19.37/node_modules/@inquirer/core/dist/esm/lib/key.js
30826
30795
  var isUpKey = (key, keybindings = []) => (