@vultisig/cli 6.0.0 → 6.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @vultisig/cli
2
2
 
3
+ ## 6.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1389](https://github.com/vultisig/vultisig-sdk/pull/1389) [`e1e73cb`](https://github.com/vultisig/vultisig-sdk/commit/e1e73cb5a67de6c77731b2d58ed7b2cb547e1228) Thanks [@gomesalexandre](https://github.com/gomesalexandre)! - Export the RN-safe `prepareIbcTransfer` and `prepareSuiTokenTransferFromKeys` helpers from `@vultisig/sdk/react-native`, along with their public support types/constants so React Native consumers no longer need deep imports for IBC and Sui token transfer prep.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#2225](https://github.com/vultisig/vultisig-sdk/pull/2225) [`95edf12`](https://github.com/vultisig/vultisig-sdk/commit/95edf1264827d0a63baa9d0580817caf2dffdc9e) Thanks [@rcoderdev](https://github.com/rcoderdev)! - Add a canonical raw EVM transaction-envelope keysign helper and use it in the CLI signing path.
12
+
13
+ - Updated dependencies [[`8a98b44`](https://github.com/vultisig/vultisig-sdk/commit/8a98b44e1f4438212e6deb7cca8491e23940118c), [`95edf12`](https://github.com/vultisig/vultisig-sdk/commit/95edf1264827d0a63baa9d0580817caf2dffdc9e), [`e1e73cb`](https://github.com/vultisig/vultisig-sdk/commit/e1e73cb5a67de6c77731b2d58ed7b2cb547e1228), [`3fff7cf`](https://github.com/vultisig/vultisig-sdk/commit/3fff7cfdfe23d2d5622f7caa87a6f1525329f07e), [`0697060`](https://github.com/vultisig/vultisig-sdk/commit/0697060107c7fe1c8ec818d3e0eae01557d9d96f)]:
14
+ - @vultisig/sdk@6.2.0
15
+ - @vultisig/core-chain@4.1.0
16
+
3
17
  ## 6.0.0
4
18
 
5
19
  ### Major Changes
package/dist/index.js CHANGED
@@ -15382,9 +15382,8 @@ var AgentExecutor = class {
15382
15382
  }
15383
15383
  /**
15384
15384
  * Sign and broadcast a server-built EVM transaction (raw EVM tx from
15385
- * tx_ready SSE). Uses vault.prepareSendTx with memo field to carry the
15386
- * calldata, plus EVM-specific nonce/lock plumbing that Phase B's
15387
- * `signMultiLeg` depends on for back-to-back approve+main broadcasts.
15385
+ * tx_ready SSE). The SDK raw-envelope helper owns zero-value calldata,
15386
+ * gas-limit, and fee mapping; the CLI reconciles its nonce with local state.
15388
15387
  */
15389
15388
  async signEvmServerTx(serverTxData, defaultChain, params) {
15390
15389
  const swapTx = extractNestedTx(serverTxData);
@@ -15401,14 +15400,6 @@ var AgentExecutor = class {
15401
15400
  }
15402
15401
  await this.acquireEvmLockIfNeeded(chain);
15403
15402
  try {
15404
- const address = await this.vault.address(chain);
15405
- const balance = await this.vault.balance(chain);
15406
- const coin = {
15407
- chain,
15408
- address,
15409
- decimals: balance.decimals || 18,
15410
- ticker: balance.symbol || chain.toString()
15411
- };
15412
15403
  const amount = BigInt(swapTx.value || "0");
15413
15404
  const hasCalldata = !!(swapTx.data && swapTx.data !== "0x");
15414
15405
  if (this.verbose)
@@ -15421,30 +15412,19 @@ var AgentExecutor = class {
15421
15412
  await this.vault.unlock?.(this.password);
15422
15413
  }
15423
15414
  }
15424
- const buildAmount = amount === 0n && hasCalldata ? 1n : amount;
15425
- const keysignPayload = await this.vault.prepareSendTx({
15426
- coin,
15427
- receiver: swapTx.to,
15428
- amount: buildAmount,
15429
- memo: swapTx.data
15415
+ const keysignPayload = await this.vault.prepareRawEvmTx({
15416
+ chain,
15417
+ tx: {
15418
+ to: swapTx.to,
15419
+ value: swapTx.value ?? 0n,
15420
+ data: swapTx.data ?? "0x",
15421
+ gasLimit: swapTx.gasLimit ?? swapTx.gas_limit,
15422
+ maxFeePerGas: swapTx.maxFeePerGas ?? swapTx.max_fee_per_gas,
15423
+ maxPriorityFeePerGas: swapTx.maxPriorityFeePerGas ?? swapTx.max_priority_fee_per_gas,
15424
+ nonce: swapTx.nonce
15425
+ }
15430
15426
  });
15431
- if (amount === 0n && hasCalldata) {
15432
- ;
15433
- keysignPayload.toAmount = "0";
15434
- }
15435
15427
  await this.patchEvmNonce(chain, keysignPayload);
15436
- if (swapTx.gas_limit) {
15437
- const bs = keysignPayload.blockchainSpecific;
15438
- if (bs?.case === "ethereumSpecific" && bs.value?.gasLimit) {
15439
- const serverGas = swapTx.gas_limit.toString();
15440
- const currentGas = bs.value.gasLimit.toString();
15441
- if (BigInt(serverGas) > BigInt(currentGas)) {
15442
- bs.value.gasLimit = serverGas;
15443
- if (this.verbose) process.stderr.write(`[gas] Using server gas_limit: ${serverGas} (was ${currentGas})
15444
- `);
15445
- }
15446
- }
15447
- }
15448
15428
  await this.patchEvmGas(chain, keysignPayload);
15449
15429
  const messageHashes = await this.vault.extractMessageHashes(keysignPayload);
15450
15430
  const signature = await this.vault.sign(
@@ -19500,7 +19480,7 @@ var cachedVersion = null;
19500
19480
  function getVersion() {
19501
19481
  if (cachedVersion) return cachedVersion;
19502
19482
  if (true) {
19503
- cachedVersion = "6.0.0";
19483
+ cachedVersion = "6.2.0";
19504
19484
  return cachedVersion;
19505
19485
  }
19506
19486
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vultisig/cli",
3
- "version": "6.0.0",
3
+ "version": "6.2.0",
4
4
  "description": "The self-custody MPC wallet CLI for AI coding agents (Claude Code, Cursor, OpenCode). Natural-language agent mode, 36+ chains, DKLS23 threshold signatures. Seedless.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -74,9 +74,9 @@
74
74
  "@napi-rs/keyring": "^1.3.0",
75
75
  "@noble/hashes": "^2.2.0",
76
76
  "@vultisig/client-shared": "^0.3.5",
77
- "@vultisig/core-chain": "^4.0.0",
77
+ "@vultisig/core-chain": "^4.1.0",
78
78
  "@vultisig/rujira": "^70.0.0",
79
- "@vultisig/sdk": "^6.0.0",
79
+ "@vultisig/sdk": "^6.2.0",
80
80
  "chalk": "^5.6.2",
81
81
  "cli-table3": "^0.6.5",
82
82
  "commander": "^15.0.0",
@@ -94,7 +94,7 @@
94
94
  "@types/node": "^26.1.1",
95
95
  "@types/tabtab": "^3.0.4",
96
96
  "@types/ws": "^8.18.1",
97
- "@vultisig/core-mpc": "^2.0.0",
97
+ "@vultisig/core-mpc": "^2.1.0",
98
98
  "esbuild": "^0.28.1",
99
99
  "ethers": "^6.17.0",
100
100
  "node-pty": "^1.1.0",