@vultisig/cli 0.4.0 → 0.7.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.
Files changed (4) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +39 -0
  3. package/dist/index.js +3371 -215
  4. package/package.json +18 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,66 @@
1
1
  # @vultisig/cli
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#113](https://github.com/vultisig/vultisig-sdk/pull/113) [`da68dda`](https://github.com/vultisig/vultisig-sdk/commit/da68dda0622a024af35666bb7b7088dea4cf3cfd) Thanks [@bornslippynuxx](https://github.com/bornslippynuxx)! - Add `agent` command for AI agent chat sessions with NDJSON pipe mode (`--via-agent`) for programmatic interaction
8
+
9
+ - [#113](https://github.com/vultisig/vultisig-sdk/pull/113) [`da68dda`](https://github.com/vultisig/vultisig-sdk/commit/da68dda0622a024af35666bb7b7088dea4cf3cfd) Thanks [@bornslippynuxx](https://github.com/bornslippynuxx)! - Add `--two-step` flag for fast vault creation with persistent pending vault state and cross-session verification
10
+
11
+ ### Patch Changes
12
+
13
+ - [#113](https://github.com/vultisig/vultisig-sdk/pull/113) [`da68dda`](https://github.com/vultisig/vultisig-sdk/commit/da68dda0622a024af35666bb7b7088dea4cf3cfd) Thanks [@bornslippynuxx](https://github.com/bornslippynuxx)! - Add User-Agent header to all CLI HTTP requests
14
+
15
+ - Updated dependencies [[`da68dda`](https://github.com/vultisig/vultisig-sdk/commit/da68dda0622a024af35666bb7b7088dea4cf3cfd)]:
16
+ - @vultisig/sdk@0.7.0
17
+ - @vultisig/rujira@3.0.0
18
+
19
+ ## 0.6.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [#100](https://github.com/vultisig/vultisig-sdk/pull/100) [`2dfc9f6`](https://github.com/vultisig/vultisig-sdk/commit/2dfc9f62f6f53d2b709e9adfc57b17273b5ea109) Thanks [@bornslippynuxx](https://github.com/bornslippynuxx)! - Add `tx-status` command to check transaction confirmation status
24
+
25
+ Polls every 5 seconds until the transaction reaches a final state (success/error). Use `--no-wait` to return the current status immediately. Supports all output modes (table, JSON, silent) and the interactive shell.
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [[`355c700`](https://github.com/vultisig/vultisig-sdk/commit/355c700e7caca812199fafceb3767b8b3c5fd236), [`78f8bd2`](https://github.com/vultisig/vultisig-sdk/commit/78f8bd237dc3ca6f42dd268d069ed8f7902e733b), [`117cd70`](https://github.com/vultisig/vultisig-sdk/commit/117cd705271305269acce5436a2845decd98dc90), [`26d3cae`](https://github.com/vultisig/vultisig-sdk/commit/26d3cae3066a316d1e9429a2664a6b4ea18dd8a2), [`2ed545f`](https://github.com/vultisig/vultisig-sdk/commit/2ed545fb20f5920cb70d096076d55756cea222aa), [`a2d545b`](https://github.com/vultisig/vultisig-sdk/commit/a2d545b96794cce087eb4ea8ce955db20212c926), [`f5176ba`](https://github.com/vultisig/vultisig-sdk/commit/f5176ba4a9fda2c82b6264a958d61d5170e3d2cd)]:
30
+ - @vultisig/sdk@0.6.0
31
+ - @vultisig/rujira@2.0.0
32
+
33
+ ## 0.5.0
34
+
35
+ ### Minor Changes
36
+
37
+ - [#97](https://github.com/vultisig/vultisig-sdk/pull/97) [`cd57d64`](https://github.com/vultisig/vultisig-sdk/commit/cd57d6482e08bd6172550ec4eea0e0233abd7f76) Thanks [@bornslippynuxx](https://github.com/bornslippynuxx)! - Add max send/swap support across SDK, CLI, and example apps
38
+ - Add `vault.getMaxSendAmount()` returning `{ balance, fee, maxSendable }` for fee-accurate max sends
39
+ - Add `vault.estimateSendFee()` for gas estimation without max calculation
40
+ - Enrich `getSwapQuote()` with `balance` and `maxSwapable` fields
41
+ - CLI: Add `--max` flag to `send`, `swap`, and `swap-quote` commands
42
+ - Browser/Electron examples: Add "Max" button to Send and Swap screens
43
+ - Fix native token ticker resolution in example swap UI (was using chain name instead of ticker)
44
+
45
+ - [#97](https://github.com/vultisig/vultisig-sdk/pull/97) [`75f441c`](https://github.com/vultisig/vultisig-sdk/commit/75f441cdf711e6ba04eed412dcf34002c5705144) Thanks [@bornslippynuxx](https://github.com/bornslippynuxx)! - Add Rujira DEX integration with FIN order book swaps, secured asset deposits/withdrawals, and CLI commands. New package: @vultisig/rujira for THORChain DEX operations (includes asset registry).
46
+
47
+ ### Patch Changes
48
+
49
+ - [#97](https://github.com/vultisig/vultisig-sdk/pull/97) [`e172aff`](https://github.com/vultisig/vultisig-sdk/commit/e172aff35aff86d182646a521dc1e3ac9e381f60) Thanks [@bornslippynuxx](https://github.com/bornslippynuxx)! - fix: address PR review bugs and safety issues
50
+ - Fix missing ChromeExtensionPolyfills import causing build failure
51
+ - Fix floating-point precision loss in CLI amount parsing for high-decimal tokens
52
+ - Fix BigInt crash on non-integer amount strings in swap validation
53
+ - Fix Number exponentiation precision loss in VaultSend formatAmount
54
+ - Use VaultError with error codes in chain validation instead of generic Error
55
+ - Add chainId mismatch validation in signAndBroadcast
56
+ - Add hex string input validation in hexDecode
57
+ - Guard against empty accounts array in client getAddress
58
+ - Use stricter bech32 THORChain address validator in deposit module
59
+
60
+ - Updated dependencies [[`bd543af`](https://github.com/vultisig/vultisig-sdk/commit/bd543af73a50a4ce431f38e3ed77511c4ef65ea7), [`74516fa`](https://github.com/vultisig/vultisig-sdk/commit/74516fae8dabd844c9e0793b932f6284ce9aa009), [`7ceab79`](https://github.com/vultisig/vultisig-sdk/commit/7ceab79e53986bfefa3f5d4cb5d25855572fbd3f), [`cd57d64`](https://github.com/vultisig/vultisig-sdk/commit/cd57d6482e08bd6172550ec4eea0e0233abd7f76), [`e172aff`](https://github.com/vultisig/vultisig-sdk/commit/e172aff35aff86d182646a521dc1e3ac9e381f60), [`75f441c`](https://github.com/vultisig/vultisig-sdk/commit/75f441cdf711e6ba04eed412dcf34002c5705144), [`ea1e8d5`](https://github.com/vultisig/vultisig-sdk/commit/ea1e8d5dd14a7273021577471e44719609f983ca), [`3f5fdcb`](https://github.com/vultisig/vultisig-sdk/commit/3f5fdcbfbe23aa287dfbcb38e9be6c904af9caf0), [`6c5c77c`](https://github.com/vultisig/vultisig-sdk/commit/6c5c77ceb49620f711285effee98b052e6aab1f8)]:
61
+ - @vultisig/sdk@0.5.0
62
+ - @vultisig/rujira@1.0.0
63
+
3
64
  ## 0.4.0
4
65
 
5
66
  ### Minor Changes
package/README.md CHANGED
@@ -353,6 +353,45 @@ Swap quotes and previews show your VULT discount tier when affiliate fees are ap
353
353
  |---------|-------------|
354
354
  | `sign` | Sign pre-hashed bytes for custom transactions |
355
355
  | `broadcast` | Broadcast a pre-signed raw transaction |
356
+ | `tx-status <chain> <txHash>` | Check transaction confirmation status |
357
+
358
+ #### Transaction Status
359
+
360
+ Check whether a transaction has confirmed on-chain. By default, polls every 5 seconds until the transaction reaches a final state (success or error):
361
+
362
+ ```bash
363
+ # Poll until confirmed (default)
364
+ vultisig tx-status ethereum 0x9f8e7d6c...
365
+
366
+ # Check current status without polling
367
+ vultisig tx-status ethereum 0x9f8e7d6c... --no-wait
368
+
369
+ # JSON output
370
+ vultisig tx-status ethereum 0x9f8e7d6c... -o json
371
+ ```
372
+
373
+ **Output:**
374
+ ```
375
+ ✓ Transaction status: success
376
+ Status: success
377
+ Fee: 0.00042 ETH
378
+ Explorer: https://etherscan.io/tx/0x9f8e7d6c...
379
+ ```
380
+
381
+ **JSON output:**
382
+ ```json
383
+ {
384
+ "chain": "ethereum",
385
+ "txHash": "0x9f8e7d6c...",
386
+ "status": "success",
387
+ "receipt": {
388
+ "feeAmount": "420000000000000",
389
+ "feeDecimals": 18,
390
+ "feeTicker": "ETH"
391
+ },
392
+ "explorerUrl": "https://etherscan.io/tx/0x9f8e7d6c..."
393
+ }
394
+ ```
356
395
 
357
396
  #### Signing Arbitrary Bytes
358
397