crypto-swap 1.0.10 → 1.1.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 (3) hide show
  1. package/SKILL.md +99 -0
  2. package/package.json +2 -2
  3. package/swap.js +1 -1
package/SKILL.md ADDED
@@ -0,0 +1,99 @@
1
+ ---
2
+ name: crypto-swap
3
+ description: Lightning-fast crypto swaps. 240+ coins, best rates, done in minutes. Chat, CLI, or web — however you prefer.
4
+ metadata:
5
+ requires:
6
+ bins: ["crypto-swap"]
7
+ note: "Requires 'npm install -g crypto-swap'"
8
+ no_credentials: true
9
+ ---
10
+
11
+ # Crypto Swap Skill (LightningEX)
12
+
13
+ A versatile cryptocurrency swap service powered by LightningEX API with three interaction modes:
14
+ - **Chat Mode**: Natural language conversation for swaps and queries
15
+ - **CLI Mode**: Command-line interface for scripting and automation
16
+ - **UI Mode**: Web-based DeFi interface for visual trading
17
+
18
+ ## Quick Start
19
+
20
+ ### Chat Mode (Default)
21
+ Simply talk to perform exchanges:
22
+
23
+ **Exchange & Rates:**
24
+ - "Swap 100 USDT to ETH"
25
+ - "What's the exchange rate for BTC to USDT?"
26
+ - "Exchange rate for 100 USDT (TRC20) to USDT (BEP20)"
27
+
28
+ **Explore:**
29
+ - "Show me supported tokens"
30
+ - "List all currencies"
31
+ - "What networks does USDT support?"
32
+
33
+ **Order Management:**
34
+ - "Check order status I1Y0××××"
35
+ - "Monitor order I1Y0××××"
36
+ - "Where is my order?"
37
+
38
+ **Cross-chain Swaps:**
39
+ - "Swap USDT from Tron to BSC"
40
+ - "Bridge ETH from Ethereum to Arbitrum"
41
+ - "Convert BTC to SOL"
42
+
43
+ ### CLI Mode
44
+
45
+ **Prerequisite:** Install the CLI tool globally:
46
+ ```bash
47
+ npm install -g crypto-swap
48
+ ```
49
+
50
+ **Run the CLI:**
51
+ ```bash
52
+ # Start interactive wizard (default)
53
+ crypto-swap
54
+
55
+ # Show all available commands
56
+ crypto-swap --help
57
+
58
+ # List supported currencies
59
+ crypto-swap currencies
60
+
61
+ # List supported currency-network pairs
62
+ crypto-swap pair-list --send USDT --receive USDT
63
+ crypto-swap pair-list --send USDT --receive USDT --send-network TRX
64
+
65
+ # Get pair info
66
+ crypto-swap pair --send USDT --receive USDT --send-network TRX --receive-network BSC
67
+
68
+ # Check exchange rate
69
+ crypto-swap rate --send USDT --receive USDT --send-network TRX --receive-network BSC --amount 100
70
+
71
+ # Check order status
72
+ crypto-swap status --id I1Y0...
73
+
74
+ # Monitor order until complete
75
+ crypto-swap monitor --id I1Y0...
76
+ ```
77
+
78
+ ### UI Mode
79
+ ```bash
80
+ # Launch web UI (default port 8080, auto-assign if occupied)
81
+ crypto-swap ui
82
+ ```
83
+ Then open http://localhost:8080 (or the displayed port) in your browser for the DeFi-style trading interface.
84
+
85
+ ## Files
86
+
87
+ This skill contains the following files:
88
+
89
+ - `swap.js` - Main CLI script (~1000 lines, open source)
90
+ - `package.json` - Package metadata
91
+ - `SKILL.md` - This documentation
92
+ - `LICENSE` - MIT License
93
+ - `assets/ui/` - Web UI assets (HTML/CSS/JS)
94
+
95
+ ---
96
+
97
+ **Author:** [@yoyoemily](https://github.com/yoyoemily)
98
+ **Repository:** https://github.com/yoyoemily/crypto-swap
99
+ **License:** MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crypto-swap",
3
- "version": "1.0.10",
3
+ "version": "1.1.0",
4
4
  "description": "LightningEX Cryptocurrency Swap CLI",
5
5
  "main": "swap.js",
6
6
  "bin": {
@@ -22,6 +22,6 @@
22
22
  "swap.js",
23
23
  "assets/",
24
24
  "LICENSE",
25
- "README.md"
25
+ "SKILL.md"
26
26
  ]
27
27
  }
package/swap.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * Crypto Exchange CLI - LightningEX API Client (Node.js)
5
- * Usage: node exchange.js [command] [options]
5
+ * Usage: crypto-swap [command] [options]
6
6
  */
7
7
 
8
8
  const https = require('https');