@t2000/cli 0.22.26 → 0.23.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/README.md +11 -97
- package/dist/{ccip-JEEJV65M.js → ccip-XP27NGI7.js} +3 -3
- package/dist/{chunk-A5X4KG7U.js → chunk-3I6VJOM6.js} +210 -970
- package/dist/chunk-3I6VJOM6.js.map +1 -0
- package/dist/chunk-4N76GQCL.js +35382 -0
- package/dist/chunk-4N76GQCL.js.map +1 -0
- package/dist/{chunk-XOAZJ42V.js → chunk-DWOZSUBE.js} +588 -584
- package/dist/{chunk-XOAZJ42V.js.map → chunk-DWOZSUBE.js.map} +1 -1
- package/dist/chunk-EI3GHTKX.js +968 -0
- package/dist/chunk-EI3GHTKX.js.map +1 -0
- package/dist/{chunk-EEPD7SHV.js → chunk-TYYJRUQI.js} +15755 -15918
- package/dist/chunk-TYYJRUQI.js.map +1 -0
- package/dist/client-5KJQTN5X.js +84 -0
- package/dist/client-5KJQTN5X.js.map +1 -0
- package/dist/{client-R3NRAXMD.js → client-IXUBQ3HM.js} +334 -638
- package/dist/client-IXUBQ3HM.js.map +1 -0
- package/dist/{dist-NBWIWHHS.js → dist-E7HUP73Q.js} +5 -29
- package/dist/{dist-KJM2NT74.js → dist-W4Q4YXD7.js} +4200 -603
- package/dist/dist-W4Q4YXD7.js.map +1 -0
- package/dist/index.js +29 -1016
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/dist/chunk-3WKGZRWT.js +0 -77733
- package/dist/chunk-3WKGZRWT.js.map +0 -1
- package/dist/chunk-77SWBATH.js +0 -204
- package/dist/chunk-77SWBATH.js.map +0 -1
- package/dist/chunk-A5X4KG7U.js.map +0 -1
- package/dist/chunk-EEPD7SHV.js.map +0 -1
- package/dist/client-CK5OR2TP.js +0 -746
- package/dist/client-CK5OR2TP.js.map +0 -1
- package/dist/client-R3NRAXMD.js.map +0 -1
- package/dist/dist-KJM2NT74.js.map +0 -1
- /package/dist/{ccip-JEEJV65M.js.map → ccip-XP27NGI7.js.map} +0 -0
- /package/dist/{dist-NBWIWHHS.js.map → dist-E7HUP73Q.js.map} +0 -0
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @t2000/cli
|
|
2
2
|
|
|
3
|
-
A bank account for AI agents on Sui. Guided setup, MCP integration for Claude Desktop / Cursor / Windsurf, send USDC, earn yield, borrow,
|
|
3
|
+
A bank account for AI agents on Sui. Guided setup, MCP integration for Claude Desktop / Cursor / Windsurf, send USDC, earn yield, borrow, and pay for APIs. USDC in, USDC out.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@t2000/cli)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
|
-
**[Website](https://t2000.ai)** · **[GitHub](https://github.com/mission69b/t2000)** · **[SDK](https://www.npmjs.com/package/@t2000/sdk)** · **[MPP](https://www.npmjs.com/package/@
|
|
8
|
+
**[Website](https://t2000.ai)** · **[GitHub](https://github.com/mission69b/t2000)** · **[SDK](https://www.npmjs.com/package/@t2000/sdk)** · **[MPP](https://www.npmjs.com/package/@suimpp/mpp)** · **[MCP](https://www.npmjs.com/package/@t2000/mcp)**
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -32,7 +32,7 @@ t2000 init
|
|
|
32
32
|
✓ Keypair generated
|
|
33
33
|
✓ Network Sui mainnet
|
|
34
34
|
✓ Gas sponsorship enabled
|
|
35
|
-
✓ Checking ✓ Savings ✓ Credit
|
|
35
|
+
✓ Checking ✓ Savings ✓ Credit
|
|
36
36
|
|
|
37
37
|
🎉 Bank account created
|
|
38
38
|
Address: 0x8b3e...d412
|
|
@@ -96,51 +96,6 @@ t2000 init
|
|
|
96
96
|
Gas: 0.31 SUI (~$0.28)
|
|
97
97
|
──────────────────────────────────────
|
|
98
98
|
Total: $85.28
|
|
99
|
-
❯ t2000 buy 100 SUI
|
|
100
|
-
✓ Bought 105.26 SUI at $0.95
|
|
101
|
-
Invested: $100.00
|
|
102
|
-
Portfolio: 105.26 SUI (avg $0.95)
|
|
103
|
-
Tx: https://suiscan.xyz/mainnet/tx/...
|
|
104
|
-
|
|
105
|
-
❯ t2000 buy 500 BTC
|
|
106
|
-
✓ Bought 0.00512820 BTC at $97,500.00
|
|
107
|
-
Invested: $500.00
|
|
108
|
-
Portfolio: 0.00512820 BTC (avg $97,500.00)
|
|
109
|
-
Tx: https://suiscan.xyz/mainnet/tx/...
|
|
110
|
-
|
|
111
|
-
❯ t2000 buy 200 ETH
|
|
112
|
-
✓ Bought 0.10526316 ETH at $1,900.00
|
|
113
|
-
Invested: $200.00
|
|
114
|
-
Portfolio: 0.10526316 ETH (avg $1,900.00)
|
|
115
|
-
Tx: https://suiscan.xyz/mainnet/tx/...
|
|
116
|
-
|
|
117
|
-
❯ t2000 portfolio
|
|
118
|
-
Investment Portfolio
|
|
119
|
-
─────────────────────────────────────────────────────
|
|
120
|
-
SUI 105.26000000 Avg: $0.95 Now: $0.97 APY: 2.10% +$2.10 (+2.1%)
|
|
121
|
-
BTC 0.00512820 Avg: $97,500 Now: $98,200 — +$3.59 (+0.7%)
|
|
122
|
-
ETH 0.10526316 Avg: $1,900 Now: $1,920 APY: 1.85% +$2.11 (+1.1%)
|
|
123
|
-
─────────────────────────────────────────────────────
|
|
124
|
-
Total invested: $800.00
|
|
125
|
-
Current value: $807.80
|
|
126
|
-
Unrealized P&L: +$7.80 (+1.0%)
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
```
|
|
130
|
-
❯ t2000 invest strategy buy layer1 5
|
|
131
|
-
✓ Invested $5.00 in layer1 strategy (1 atomic transaction)
|
|
132
|
-
──────────────────────────────────────
|
|
133
|
-
ETH: 0.001222 @ $2,045.24
|
|
134
|
-
SUI: 2.5678 @ $0.97
|
|
135
|
-
──────────────────────────────────────
|
|
136
|
-
Total invested: $5.00
|
|
137
|
-
Tx: https://suiscan.xyz/mainnet/tx/BKYu8s...
|
|
138
|
-
|
|
139
|
-
❯ t2000 invest auto setup 50 weekly bluechip
|
|
140
|
-
✓ Auto-invest created
|
|
141
|
-
Strategy: bluechip (Large-cap crypto index)
|
|
142
|
-
Amount: $50.00 per week
|
|
143
|
-
Next run: Feb 24, 2026
|
|
144
99
|
```
|
|
145
100
|
|
|
146
101
|
30 seconds. Send → save → borrow → pay → repay → withdraw.
|
|
@@ -194,14 +149,13 @@ t2000 init
|
|
|
194
149
|
|
|
195
150
|
| Command | Description |
|
|
196
151
|
|---------|-------------|
|
|
197
|
-
| `t2000 save <amount> [--protocol <name>]` | Deposit to savings (earn ~2–8% APY)
|
|
198
|
-
| `t2000 save all` | Deposit all available
|
|
199
|
-
| `t2000 withdraw <amount>` | Withdraw from savings
|
|
152
|
+
| `t2000 save <amount> [--protocol <name>]` | Deposit USDC to savings (earn ~2–8% APY) |
|
|
153
|
+
| `t2000 save all` | Deposit all available USDC (minus gas reserve) |
|
|
154
|
+
| `t2000 withdraw <amount>` | Withdraw USDC from savings |
|
|
200
155
|
| `t2000 borrow <amount>` | Borrow USDC against savings collateral |
|
|
201
|
-
| `t2000 repay <amount>` | Repay outstanding debt
|
|
202
|
-
| `t2000 rebalance [--dry-run]` | Optimize yield — move savings to best rate across protocols and stablecoins internally |
|
|
156
|
+
| `t2000 repay <amount>` | Repay outstanding debt in USDC. Use `repay all` for full repayment. |
|
|
203
157
|
| `t2000 health` | Check savings health factor |
|
|
204
|
-
| `t2000 rates` | Best save/borrow APYs across protocols
|
|
158
|
+
| `t2000 rates` | Best save/borrow APYs across protocols (USDC) |
|
|
205
159
|
| `t2000 positions` | Open savings & borrow positions across all assets |
|
|
206
160
|
| `t2000 claim-rewards` | Claim protocol rewards and auto-convert to USDC |
|
|
207
161
|
| `t2000 earnings` | Yield earned to date |
|
|
@@ -222,7 +176,7 @@ t2000 init
|
|
|
222
176
|
|
|
223
177
|
| Command | Description |
|
|
224
178
|
|---------|-------------|
|
|
225
|
-
| `t2000 earn` | Show all earning opportunities — savings yield
|
|
179
|
+
| `t2000 earn` | Show all earning opportunities — savings yield |
|
|
226
180
|
|
|
227
181
|
### Contacts
|
|
228
182
|
|
|
@@ -232,45 +186,6 @@ t2000 init
|
|
|
232
186
|
| `t2000 contacts add <name> <address>` | Save a named contact |
|
|
233
187
|
| `t2000 contacts remove <name>` | Remove a contact |
|
|
234
188
|
|
|
235
|
-
### Invest
|
|
236
|
-
|
|
237
|
-
| Command | Description |
|
|
238
|
-
|---------|-------------|
|
|
239
|
-
| `t2000 buy <amount> <asset>` | Buy crypto with USDC (e.g. `t2000 buy 500 BTC`) |
|
|
240
|
-
| `t2000 sell <amount\|all> <asset>` | Sell crypto back to USDC (auto-withdraws if earning) |
|
|
241
|
-
| `t2000 swap <amount> <from> <to>` | Swap tokens via Cetus DEX (e.g. `t2000 swap 5 USDC SUI`) |
|
|
242
|
-
| `t2000 invest earn <asset>` | Deposit held asset into best-rate lending for yield |
|
|
243
|
-
| `t2000 invest unearn <asset>` | Withdraw from lending, keep in portfolio |
|
|
244
|
-
| `t2000 invest rebalance` | Move earning positions to better-rate protocols |
|
|
245
|
-
| `t2000 portfolio` | View investment portfolio with cost-basis P&L (strategy grouping) |
|
|
246
|
-
|
|
247
|
-
> **Deprecated:** `t2000 exchange` still works but prints a deprecation notice — use `t2000 swap`. `t2000 invest buy` / `t2000 invest sell` still work but are deprecated — use `t2000 buy` / `t2000 sell`.
|
|
248
|
-
|
|
249
|
-
### Strategies (PTB Atomic)
|
|
250
|
-
|
|
251
|
-
| Command | Description |
|
|
252
|
-
|---------|-------------|
|
|
253
|
-
| `t2000 invest strategy list` | List available strategies with allocations |
|
|
254
|
-
| `t2000 invest strategy buy <name> <amount>` | Buy into a strategy — single atomic transaction. Options: `--dry-run` |
|
|
255
|
-
| `t2000 invest strategy sell <name>` | Sell all positions in a strategy |
|
|
256
|
-
| `t2000 invest strategy status <name>` | Show positions, current weights, and drift |
|
|
257
|
-
| `t2000 invest strategy rebalance <name>` | Rebalance to target weights |
|
|
258
|
-
| `t2000 invest strategy create <name> --alloc "BTC:40,ETH:60"` | Create a custom strategy |
|
|
259
|
-
| `t2000 invest strategy delete <name>` | Delete a custom strategy (must have no positions) |
|
|
260
|
-
|
|
261
|
-
Built-in strategies: `bluechip` (BTC 50%, ETH 30%, SUI 20%), `all-weather` (BTC 30%, ETH 20%, SUI 20%, GOLD 30%), `safe-haven` (BTC 50%, GOLD 50%), `layer1` (ETH 50%, SUI 50%), `sui-heavy` (BTC 20%, ETH 20%, SUI 60%).
|
|
262
|
-
|
|
263
|
-
### Auto-Invest (DCA)
|
|
264
|
-
|
|
265
|
-
| Command | Description |
|
|
266
|
-
|---------|-------------|
|
|
267
|
-
| `t2000 invest auto setup <amount> <frequency> [strategy]` | Set up DCA (daily/weekly/monthly) |
|
|
268
|
-
| `t2000 invest auto status` | Show auto-invest schedules |
|
|
269
|
-
| `t2000 invest auto run` | Execute pending DCA purchases |
|
|
270
|
-
| `t2000 invest auto stop [id]` | Stop one or all schedules |
|
|
271
|
-
|
|
272
|
-
Supported assets: SUI, BTC, ETH, GOLD. Dollar-denominated — `amount` is in USD.
|
|
273
|
-
|
|
274
189
|
### Safeguards
|
|
275
190
|
|
|
276
191
|
| Command | Description |
|
|
@@ -301,7 +216,7 @@ t2000 mcp uninstall
|
|
|
301
216
|
t2000 mcp
|
|
302
217
|
```
|
|
303
218
|
|
|
304
|
-
|
|
219
|
+
Safeguard enforced. See [MCP setup guide](../../docs/mcp-setup.md) for details.
|
|
305
220
|
|
|
306
221
|
### HTTP API Server
|
|
307
222
|
|
|
@@ -363,7 +278,7 @@ Gas is fully automated:
|
|
|
363
278
|
|
|
364
279
|
You never need to manually acquire SUI for gas.
|
|
365
280
|
|
|
366
|
-
|
|
281
|
+
Multi-step operations (for example save or withdraw flows that compose several on-chain steps) execute as single atomic Programmable Transaction Blocks (PTBs). If any step fails, the entire transaction reverts.
|
|
367
282
|
|
|
368
283
|
## Protocol Fees
|
|
369
284
|
|
|
@@ -371,7 +286,6 @@ All multi-step operations (save with auto-convert, withdraw with auto-swap, reba
|
|
|
371
286
|
|-----------|-----|
|
|
372
287
|
| Save | 0.1% |
|
|
373
288
|
| Borrow | 0.05% |
|
|
374
|
-
| Swap | **Free** |
|
|
375
289
|
| Withdraw | Free |
|
|
376
290
|
| Repay | Free |
|
|
377
291
|
| Send | Free |
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
offchainLookup,
|
|
5
5
|
offchainLookupAbiItem,
|
|
6
6
|
offchainLookupSignature
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-3I6VJOM6.js";
|
|
8
|
+
import "./chunk-EI3GHTKX.js";
|
|
9
9
|
import "./chunk-7LGHVVIJ.js";
|
|
10
10
|
import "./chunk-YPWSCLE3.js";
|
|
11
11
|
export {
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
offchainLookupAbiItem,
|
|
15
15
|
offchainLookupSignature
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=ccip-
|
|
17
|
+
//# sourceMappingURL=ccip-XP27NGI7.js.map
|