tollkit-wallet 0.2.2 → 0.3.1
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 +13 -0
- package/dist/actions.d.ts +131 -35
- package/dist/ai.d.ts +13 -1
- package/dist/ai.js +2 -2
- package/dist/ai.js.map +1 -1
- package/dist/autopilot.d.ts +7 -0
- package/dist/autopilot.js +118 -3
- package/dist/autopilot.js.map +1 -1
- package/dist/bots.d.ts +92 -0
- package/dist/bots.js +183 -0
- package/dist/bots.js.map +1 -0
- package/dist/bridge.js +7 -5
- package/dist/bridge.js.map +1 -1
- package/dist/dapp.d.ts +11 -0
- package/dist/dapp.js +82 -14
- package/dist/dapp.js.map +1 -1
- package/dist/dashboard.d.ts +12 -0
- package/dist/dashboard.js +136 -14
- package/dist/dashboard.js.map +1 -1
- package/dist/data/token-list.d.ts +12 -0
- package/dist/data/token-list.js +13 -0
- package/dist/data/token-list.js.map +1 -0
- package/dist/evmsend.d.ts +30 -0
- package/dist/evmsend.js +47 -0
- package/dist/evmsend.js.map +1 -0
- package/dist/holdings.d.ts +6 -0
- package/dist/holdings.js +41 -8
- package/dist/holdings.js.map +1 -1
- package/dist/ledger.d.ts +1 -0
- package/dist/ledger.js.map +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/pay.js +1 -1
- package/dist/pay.js.map +1 -1
- package/dist/policy.d.ts +2 -2
- package/dist/rules.d.ts +57 -6
- package/dist/rules.js +46 -4
- package/dist/rules.js.map +1 -1
- package/dist/seller.js +15 -4
- package/dist/seller.js.map +1 -1
- package/dist/send.js +3 -2
- package/dist/send.js.map +1 -1
- package/dist/solconfirm.d.ts +13 -0
- package/dist/solconfirm.js +21 -0
- package/dist/solconfirm.js.map +1 -0
- package/dist/stake.js +3 -2
- package/dist/stake.js.map +1 -1
- package/dist/swap.d.ts +58 -5
- package/dist/swap.js +327 -21
- package/dist/swap.js.map +1 -1
- package/dist/tokenlist.d.ts +70 -0
- package/dist/tokenlist.js +259 -0
- package/dist/tokenlist.js.map +1 -0
- package/dist/trademode.d.ts +3 -0
- package/dist/trademode.js +23 -0
- package/dist/trademode.js.map +1 -0
- package/dist/ui.js +202 -19
- package/dist/ui.js.map +1 -1
- package/dist/wallet.d.ts +13 -1
- package/dist/wallet.js +85 -5
- package/dist/wallet.js.map +1 -1
- package/extension/background.js +1 -1
- package/extension/popup.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -100,6 +100,19 @@ const w = await TollkitWallet.open(process.env.TOLLKIT_WALLET_PASSWORD!);
|
|
|
100
100
|
const r = await w.pay("https://api.example.com/paid-endpoint");
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
## Use from Python
|
|
104
|
+
|
|
105
|
+
The [`tollkit-wallet` Python package](https://github.com/UltraStarz/tollkit-python) runs your own trading bots against this wallet, with paper trading, backtests and four starter strategies. It starts `tollkit-wallet mcp` for you, so run `npx tollkit-wallet password-file` once first.
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
pip install tollkit-wallet
|
|
109
|
+
tollkit-bot check
|
|
110
|
+
tollkit-bot backtest dip-buyer
|
|
111
|
+
tollkit-bot run dip-buyer # paper trading; add --live for real money
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Bots stay inside your limits and approvals like any other agent.
|
|
115
|
+
|
|
103
116
|
## Backup and recovery
|
|
104
117
|
|
|
105
118
|
New wallets (0.2.2 and later) are made from a 12-word recovery phrase. It's shown once when you create the wallet, and you can see it again with `tollkit-wallet backup` or **Back up** in the dashboard (password needed). The dashboard asks you to confirm three of the words before it counts as backed up.
|
package/dist/actions.d.ts
CHANGED
|
@@ -16,14 +16,14 @@ export declare const SwapArgs: z.ZodObject<{
|
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
17
|
chain: "base" | "ethereum" | "solana";
|
|
18
18
|
amount: string;
|
|
19
|
-
sell: string;
|
|
20
19
|
buy: string;
|
|
20
|
+
sell: string;
|
|
21
21
|
slippage_bps?: number | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
chain: "base" | "ethereum" | "solana";
|
|
24
24
|
amount: string;
|
|
25
|
-
sell: string;
|
|
26
25
|
buy: string;
|
|
26
|
+
sell: string;
|
|
27
27
|
slippage_bps?: number | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export declare const PayArgs: z.ZodObject<{
|
|
@@ -66,7 +66,7 @@ export declare const NoArgs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
|
66
66
|
export declare const ProposeArgs: z.ZodObject<{
|
|
67
67
|
text: z.ZodOptional<z.ZodString>;
|
|
68
68
|
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
-
kind: z.ZodEnum<["limit_buy", "limit_sell", "stop_loss", "take_profit", "trailing_stop", "dca"]>;
|
|
69
|
+
kind: z.ZodEnum<["limit_buy", "limit_sell", "stop_loss", "take_profit", "trailing_stop", "dca", "grid"]>;
|
|
70
70
|
chain: z.ZodEnum<["base", "ethereum", "solana"]>;
|
|
71
71
|
token: z.ZodString;
|
|
72
72
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -83,14 +83,22 @@ export declare const ProposeArgs: z.ZodObject<{
|
|
|
83
83
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
84
84
|
reason: z.ZodOptional<z.ZodString>;
|
|
85
85
|
replaces: z.ZodOptional<z.ZodString>;
|
|
86
|
+
lower_price: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
upper_price: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
levels: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
after: z.ZodOptional<z.ZodString>;
|
|
90
|
+
sell_from: z.ZodOptional<z.ZodString>;
|
|
91
|
+
bot: z.ZodOptional<z.ZodString>;
|
|
92
|
+
bot_name: z.ZodOptional<z.ZodString>;
|
|
93
|
+
template: z.ZodOptional<z.ZodString>;
|
|
86
94
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
95
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
88
96
|
chain: "base" | "ethereum" | "solana";
|
|
89
97
|
token: string;
|
|
90
98
|
every?: "hour" | "day" | "week" | undefined;
|
|
99
|
+
sell_amount?: string | undefined;
|
|
91
100
|
name?: string | undefined;
|
|
92
101
|
reason?: string | undefined;
|
|
93
|
-
sell_amount?: string | undefined;
|
|
94
102
|
amount_usd?: number | undefined;
|
|
95
103
|
sell_percent?: number | undefined;
|
|
96
104
|
trigger_price?: number | undefined;
|
|
@@ -101,14 +109,22 @@ export declare const ProposeArgs: z.ZodObject<{
|
|
|
101
109
|
group?: string | undefined;
|
|
102
110
|
expires_at?: string | undefined;
|
|
103
111
|
replaces?: string | undefined;
|
|
112
|
+
lower_price?: number | undefined;
|
|
113
|
+
upper_price?: number | undefined;
|
|
114
|
+
levels?: number | undefined;
|
|
115
|
+
after?: string | undefined;
|
|
116
|
+
sell_from?: string | undefined;
|
|
117
|
+
bot?: string | undefined;
|
|
118
|
+
bot_name?: string | undefined;
|
|
119
|
+
template?: string | undefined;
|
|
104
120
|
}, {
|
|
105
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
121
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
106
122
|
chain: "base" | "ethereum" | "solana";
|
|
107
123
|
token: string;
|
|
108
124
|
every?: "hour" | "day" | "week" | undefined;
|
|
125
|
+
sell_amount?: string | undefined;
|
|
109
126
|
name?: string | undefined;
|
|
110
127
|
reason?: string | undefined;
|
|
111
|
-
sell_amount?: string | undefined;
|
|
112
128
|
amount_usd?: number | undefined;
|
|
113
129
|
sell_percent?: number | undefined;
|
|
114
130
|
trigger_price?: number | undefined;
|
|
@@ -119,16 +135,24 @@ export declare const ProposeArgs: z.ZodObject<{
|
|
|
119
135
|
group?: string | undefined;
|
|
120
136
|
expires_at?: string | undefined;
|
|
121
137
|
replaces?: string | undefined;
|
|
138
|
+
lower_price?: number | undefined;
|
|
139
|
+
upper_price?: number | undefined;
|
|
140
|
+
levels?: number | undefined;
|
|
141
|
+
after?: string | undefined;
|
|
142
|
+
sell_from?: string | undefined;
|
|
143
|
+
bot?: string | undefined;
|
|
144
|
+
bot_name?: string | undefined;
|
|
145
|
+
template?: string | undefined;
|
|
122
146
|
}>, "many">>;
|
|
123
147
|
}, "strip", z.ZodTypeAny, {
|
|
124
148
|
rules?: {
|
|
125
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
149
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
126
150
|
chain: "base" | "ethereum" | "solana";
|
|
127
151
|
token: string;
|
|
128
152
|
every?: "hour" | "day" | "week" | undefined;
|
|
153
|
+
sell_amount?: string | undefined;
|
|
129
154
|
name?: string | undefined;
|
|
130
155
|
reason?: string | undefined;
|
|
131
|
-
sell_amount?: string | undefined;
|
|
132
156
|
amount_usd?: number | undefined;
|
|
133
157
|
sell_percent?: number | undefined;
|
|
134
158
|
trigger_price?: number | undefined;
|
|
@@ -139,17 +163,25 @@ export declare const ProposeArgs: z.ZodObject<{
|
|
|
139
163
|
group?: string | undefined;
|
|
140
164
|
expires_at?: string | undefined;
|
|
141
165
|
replaces?: string | undefined;
|
|
166
|
+
lower_price?: number | undefined;
|
|
167
|
+
upper_price?: number | undefined;
|
|
168
|
+
levels?: number | undefined;
|
|
169
|
+
after?: string | undefined;
|
|
170
|
+
sell_from?: string | undefined;
|
|
171
|
+
bot?: string | undefined;
|
|
172
|
+
bot_name?: string | undefined;
|
|
173
|
+
template?: string | undefined;
|
|
142
174
|
}[] | undefined;
|
|
143
175
|
text?: string | undefined;
|
|
144
176
|
}, {
|
|
145
177
|
rules?: {
|
|
146
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
178
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
147
179
|
chain: "base" | "ethereum" | "solana";
|
|
148
180
|
token: string;
|
|
149
181
|
every?: "hour" | "day" | "week" | undefined;
|
|
182
|
+
sell_amount?: string | undefined;
|
|
150
183
|
name?: string | undefined;
|
|
151
184
|
reason?: string | undefined;
|
|
152
|
-
sell_amount?: string | undefined;
|
|
153
185
|
amount_usd?: number | undefined;
|
|
154
186
|
sell_percent?: number | undefined;
|
|
155
187
|
trigger_price?: number | undefined;
|
|
@@ -160,6 +192,14 @@ export declare const ProposeArgs: z.ZodObject<{
|
|
|
160
192
|
group?: string | undefined;
|
|
161
193
|
expires_at?: string | undefined;
|
|
162
194
|
replaces?: string | undefined;
|
|
195
|
+
lower_price?: number | undefined;
|
|
196
|
+
upper_price?: number | undefined;
|
|
197
|
+
levels?: number | undefined;
|
|
198
|
+
after?: string | undefined;
|
|
199
|
+
sell_from?: string | undefined;
|
|
200
|
+
bot?: string | undefined;
|
|
201
|
+
bot_name?: string | undefined;
|
|
202
|
+
template?: string | undefined;
|
|
163
203
|
}[] | undefined;
|
|
164
204
|
text?: string | undefined;
|
|
165
205
|
}>;
|
|
@@ -182,11 +222,11 @@ export declare const HistoryArgs: z.ZodObject<{
|
|
|
182
222
|
interval: z.ZodOptional<z.ZodEnum<["15m", "1h", "6h", "1d"]>>;
|
|
183
223
|
points: z.ZodOptional<z.ZodNumber>;
|
|
184
224
|
}, "strip", z.ZodTypeAny, {
|
|
185
|
-
token: "ETH" | "
|
|
225
|
+
token: "ETH" | "SOL" | "WETH";
|
|
186
226
|
points?: number | undefined;
|
|
187
227
|
interval?: "1h" | "1d" | "15m" | "6h" | undefined;
|
|
188
228
|
}, {
|
|
189
|
-
token: "ETH" | "
|
|
229
|
+
token: "ETH" | "SOL" | "WETH";
|
|
190
230
|
points?: number | undefined;
|
|
191
231
|
interval?: "1h" | "1d" | "15m" | "6h" | undefined;
|
|
192
232
|
}>;
|
|
@@ -210,7 +250,7 @@ export declare function priceHistory(a: z.infer<typeof HistoryArgs>, f?: typeof
|
|
|
210
250
|
candles?: undefined;
|
|
211
251
|
} | {
|
|
212
252
|
ok: boolean;
|
|
213
|
-
token: "ETH" | "
|
|
253
|
+
token: "ETH" | "SOL" | "WETH";
|
|
214
254
|
interval: "1h" | "1d" | "15m" | "6h";
|
|
215
255
|
source: string;
|
|
216
256
|
from: string;
|
|
@@ -245,14 +285,14 @@ export declare const ACTIONS: readonly [WalletAction<z.ZodObject<{}, "strip", z.
|
|
|
245
285
|
}, "strip", z.ZodTypeAny, {
|
|
246
286
|
chain: "base" | "ethereum" | "solana";
|
|
247
287
|
amount: string;
|
|
248
|
-
sell: string;
|
|
249
288
|
buy: string;
|
|
289
|
+
sell: string;
|
|
250
290
|
slippage_bps?: number | undefined;
|
|
251
291
|
}, {
|
|
252
292
|
chain: "base" | "ethereum" | "solana";
|
|
253
293
|
amount: string;
|
|
254
|
-
sell: string;
|
|
255
294
|
buy: string;
|
|
295
|
+
sell: string;
|
|
256
296
|
slippage_bps?: number | undefined;
|
|
257
297
|
}>>, WalletAction<z.ZodObject<{
|
|
258
298
|
chain: z.ZodEnum<["base", "ethereum", "solana"]>;
|
|
@@ -263,14 +303,14 @@ export declare const ACTIONS: readonly [WalletAction<z.ZodObject<{}, "strip", z.
|
|
|
263
303
|
}, "strip", z.ZodTypeAny, {
|
|
264
304
|
chain: "base" | "ethereum" | "solana";
|
|
265
305
|
amount: string;
|
|
266
|
-
sell: string;
|
|
267
306
|
buy: string;
|
|
307
|
+
sell: string;
|
|
268
308
|
slippage_bps?: number | undefined;
|
|
269
309
|
}, {
|
|
270
310
|
chain: "base" | "ethereum" | "solana";
|
|
271
311
|
amount: string;
|
|
272
|
-
sell: string;
|
|
273
312
|
buy: string;
|
|
313
|
+
sell: string;
|
|
274
314
|
slippage_bps?: number | undefined;
|
|
275
315
|
}>>, WalletAction<z.ZodObject<{
|
|
276
316
|
url: z.ZodString;
|
|
@@ -310,17 +350,17 @@ export declare const ACTIONS: readonly [WalletAction<z.ZodObject<{}, "strip", z.
|
|
|
310
350
|
interval: z.ZodOptional<z.ZodEnum<["15m", "1h", "6h", "1d"]>>;
|
|
311
351
|
points: z.ZodOptional<z.ZodNumber>;
|
|
312
352
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
token: "ETH" | "
|
|
353
|
+
token: "ETH" | "SOL" | "WETH";
|
|
314
354
|
points?: number | undefined;
|
|
315
355
|
interval?: "1h" | "1d" | "15m" | "6h" | undefined;
|
|
316
356
|
}, {
|
|
317
|
-
token: "ETH" | "
|
|
357
|
+
token: "ETH" | "SOL" | "WETH";
|
|
318
358
|
points?: number | undefined;
|
|
319
359
|
interval?: "1h" | "1d" | "15m" | "6h" | undefined;
|
|
320
360
|
}>>, WalletAction<z.ZodObject<{
|
|
321
361
|
text: z.ZodOptional<z.ZodString>;
|
|
322
362
|
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
323
|
-
kind: z.ZodEnum<["limit_buy", "limit_sell", "stop_loss", "take_profit", "trailing_stop", "dca"]>;
|
|
363
|
+
kind: z.ZodEnum<["limit_buy", "limit_sell", "stop_loss", "take_profit", "trailing_stop", "dca", "grid"]>;
|
|
324
364
|
chain: z.ZodEnum<["base", "ethereum", "solana"]>;
|
|
325
365
|
token: z.ZodString;
|
|
326
366
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -337,14 +377,22 @@ export declare const ACTIONS: readonly [WalletAction<z.ZodObject<{}, "strip", z.
|
|
|
337
377
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
338
378
|
reason: z.ZodOptional<z.ZodString>;
|
|
339
379
|
replaces: z.ZodOptional<z.ZodString>;
|
|
380
|
+
lower_price: z.ZodOptional<z.ZodNumber>;
|
|
381
|
+
upper_price: z.ZodOptional<z.ZodNumber>;
|
|
382
|
+
levels: z.ZodOptional<z.ZodNumber>;
|
|
383
|
+
after: z.ZodOptional<z.ZodString>;
|
|
384
|
+
sell_from: z.ZodOptional<z.ZodString>;
|
|
385
|
+
bot: z.ZodOptional<z.ZodString>;
|
|
386
|
+
bot_name: z.ZodOptional<z.ZodString>;
|
|
387
|
+
template: z.ZodOptional<z.ZodString>;
|
|
340
388
|
}, "strip", z.ZodTypeAny, {
|
|
341
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
389
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
342
390
|
chain: "base" | "ethereum" | "solana";
|
|
343
391
|
token: string;
|
|
344
392
|
every?: "hour" | "day" | "week" | undefined;
|
|
393
|
+
sell_amount?: string | undefined;
|
|
345
394
|
name?: string | undefined;
|
|
346
395
|
reason?: string | undefined;
|
|
347
|
-
sell_amount?: string | undefined;
|
|
348
396
|
amount_usd?: number | undefined;
|
|
349
397
|
sell_percent?: number | undefined;
|
|
350
398
|
trigger_price?: number | undefined;
|
|
@@ -355,14 +403,22 @@ export declare const ACTIONS: readonly [WalletAction<z.ZodObject<{}, "strip", z.
|
|
|
355
403
|
group?: string | undefined;
|
|
356
404
|
expires_at?: string | undefined;
|
|
357
405
|
replaces?: string | undefined;
|
|
406
|
+
lower_price?: number | undefined;
|
|
407
|
+
upper_price?: number | undefined;
|
|
408
|
+
levels?: number | undefined;
|
|
409
|
+
after?: string | undefined;
|
|
410
|
+
sell_from?: string | undefined;
|
|
411
|
+
bot?: string | undefined;
|
|
412
|
+
bot_name?: string | undefined;
|
|
413
|
+
template?: string | undefined;
|
|
358
414
|
}, {
|
|
359
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
415
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
360
416
|
chain: "base" | "ethereum" | "solana";
|
|
361
417
|
token: string;
|
|
362
418
|
every?: "hour" | "day" | "week" | undefined;
|
|
419
|
+
sell_amount?: string | undefined;
|
|
363
420
|
name?: string | undefined;
|
|
364
421
|
reason?: string | undefined;
|
|
365
|
-
sell_amount?: string | undefined;
|
|
366
422
|
amount_usd?: number | undefined;
|
|
367
423
|
sell_percent?: number | undefined;
|
|
368
424
|
trigger_price?: number | undefined;
|
|
@@ -373,16 +429,24 @@ export declare const ACTIONS: readonly [WalletAction<z.ZodObject<{}, "strip", z.
|
|
|
373
429
|
group?: string | undefined;
|
|
374
430
|
expires_at?: string | undefined;
|
|
375
431
|
replaces?: string | undefined;
|
|
432
|
+
lower_price?: number | undefined;
|
|
433
|
+
upper_price?: number | undefined;
|
|
434
|
+
levels?: number | undefined;
|
|
435
|
+
after?: string | undefined;
|
|
436
|
+
sell_from?: string | undefined;
|
|
437
|
+
bot?: string | undefined;
|
|
438
|
+
bot_name?: string | undefined;
|
|
439
|
+
template?: string | undefined;
|
|
376
440
|
}>, "many">>;
|
|
377
441
|
}, "strip", z.ZodTypeAny, {
|
|
378
442
|
rules?: {
|
|
379
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
443
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
380
444
|
chain: "base" | "ethereum" | "solana";
|
|
381
445
|
token: string;
|
|
382
446
|
every?: "hour" | "day" | "week" | undefined;
|
|
447
|
+
sell_amount?: string | undefined;
|
|
383
448
|
name?: string | undefined;
|
|
384
449
|
reason?: string | undefined;
|
|
385
|
-
sell_amount?: string | undefined;
|
|
386
450
|
amount_usd?: number | undefined;
|
|
387
451
|
sell_percent?: number | undefined;
|
|
388
452
|
trigger_price?: number | undefined;
|
|
@@ -393,17 +457,25 @@ export declare const ACTIONS: readonly [WalletAction<z.ZodObject<{}, "strip", z.
|
|
|
393
457
|
group?: string | undefined;
|
|
394
458
|
expires_at?: string | undefined;
|
|
395
459
|
replaces?: string | undefined;
|
|
460
|
+
lower_price?: number | undefined;
|
|
461
|
+
upper_price?: number | undefined;
|
|
462
|
+
levels?: number | undefined;
|
|
463
|
+
after?: string | undefined;
|
|
464
|
+
sell_from?: string | undefined;
|
|
465
|
+
bot?: string | undefined;
|
|
466
|
+
bot_name?: string | undefined;
|
|
467
|
+
template?: string | undefined;
|
|
396
468
|
}[] | undefined;
|
|
397
469
|
text?: string | undefined;
|
|
398
470
|
}, {
|
|
399
471
|
rules?: {
|
|
400
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
472
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
401
473
|
chain: "base" | "ethereum" | "solana";
|
|
402
474
|
token: string;
|
|
403
475
|
every?: "hour" | "day" | "week" | undefined;
|
|
476
|
+
sell_amount?: string | undefined;
|
|
404
477
|
name?: string | undefined;
|
|
405
478
|
reason?: string | undefined;
|
|
406
|
-
sell_amount?: string | undefined;
|
|
407
479
|
amount_usd?: number | undefined;
|
|
408
480
|
sell_percent?: number | undefined;
|
|
409
481
|
trigger_price?: number | undefined;
|
|
@@ -414,6 +486,14 @@ export declare const ACTIONS: readonly [WalletAction<z.ZodObject<{}, "strip", z.
|
|
|
414
486
|
group?: string | undefined;
|
|
415
487
|
expires_at?: string | undefined;
|
|
416
488
|
replaces?: string | undefined;
|
|
489
|
+
lower_price?: number | undefined;
|
|
490
|
+
upper_price?: number | undefined;
|
|
491
|
+
levels?: number | undefined;
|
|
492
|
+
after?: string | undefined;
|
|
493
|
+
sell_from?: string | undefined;
|
|
494
|
+
bot?: string | undefined;
|
|
495
|
+
bot_name?: string | undefined;
|
|
496
|
+
template?: string | undefined;
|
|
417
497
|
}[] | undefined;
|
|
418
498
|
text?: string | undefined;
|
|
419
499
|
}>>, WalletAction<z.ZodObject<{
|
|
@@ -437,14 +517,14 @@ export declare const ACTIONS: readonly [WalletAction<z.ZodObject<{}, "strip", z.
|
|
|
437
517
|
}, "strip", z.ZodTypeAny, {
|
|
438
518
|
chain: "base" | "ethereum" | "solana";
|
|
439
519
|
amount: string;
|
|
440
|
-
sell: string;
|
|
441
520
|
buy: string;
|
|
521
|
+
sell: string;
|
|
442
522
|
slippage_bps?: number | undefined;
|
|
443
523
|
}, {
|
|
444
524
|
chain: "base" | "ethereum" | "solana";
|
|
445
525
|
amount: string;
|
|
446
|
-
sell: string;
|
|
447
526
|
buy: string;
|
|
527
|
+
sell: string;
|
|
448
528
|
slippage_bps?: number | undefined;
|
|
449
529
|
}>>, WalletAction<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>];
|
|
450
530
|
export declare function proposeRules(w: TollkitWallet, a: z.infer<typeof ProposeArgs>, o?: {
|
|
@@ -480,13 +560,13 @@ export declare function proposeRules(w: TollkitWallet, a: z.infer<typeof Propose
|
|
|
480
560
|
created_by: "owner" | "agent";
|
|
481
561
|
created_at: string;
|
|
482
562
|
activated_at?: string;
|
|
483
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
563
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
484
564
|
chain: "base" | "ethereum" | "solana";
|
|
485
565
|
token: string;
|
|
486
566
|
every?: "hour" | "day" | "week" | undefined;
|
|
567
|
+
sell_amount?: string | undefined;
|
|
487
568
|
name?: string | undefined;
|
|
488
569
|
reason?: string | undefined;
|
|
489
|
-
sell_amount?: string | undefined;
|
|
490
570
|
amount_usd?: number | undefined;
|
|
491
571
|
sell_percent?: number | undefined;
|
|
492
572
|
trigger_price?: number | undefined;
|
|
@@ -497,6 +577,14 @@ export declare function proposeRules(w: TollkitWallet, a: z.infer<typeof Propose
|
|
|
497
577
|
group?: string | undefined;
|
|
498
578
|
expires_at?: string | undefined;
|
|
499
579
|
replaces?: string | undefined;
|
|
580
|
+
lower_price?: number | undefined;
|
|
581
|
+
upper_price?: number | undefined;
|
|
582
|
+
levels?: number | undefined;
|
|
583
|
+
after?: string | undefined;
|
|
584
|
+
sell_from?: string | undefined;
|
|
585
|
+
bot?: string | undefined;
|
|
586
|
+
bot_name?: string | undefined;
|
|
587
|
+
template?: string | undefined;
|
|
500
588
|
};
|
|
501
589
|
}[];
|
|
502
590
|
unparsed: string[];
|
|
@@ -519,13 +607,13 @@ export declare function proposeRules(w: TollkitWallet, a: z.infer<typeof Propose
|
|
|
519
607
|
created_by: "owner" | "agent";
|
|
520
608
|
created_at: string;
|
|
521
609
|
activated_at?: string;
|
|
522
|
-
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca";
|
|
610
|
+
kind: "limit_buy" | "limit_sell" | "stop_loss" | "take_profit" | "trailing_stop" | "dca" | "grid";
|
|
523
611
|
chain: "base" | "ethereum" | "solana";
|
|
524
612
|
token: string;
|
|
525
613
|
every?: "hour" | "day" | "week" | undefined;
|
|
614
|
+
sell_amount?: string | undefined;
|
|
526
615
|
name?: string | undefined;
|
|
527
616
|
reason?: string | undefined;
|
|
528
|
-
sell_amount?: string | undefined;
|
|
529
617
|
amount_usd?: number | undefined;
|
|
530
618
|
sell_percent?: number | undefined;
|
|
531
619
|
trigger_price?: number | undefined;
|
|
@@ -536,6 +624,14 @@ export declare function proposeRules(w: TollkitWallet, a: z.infer<typeof Propose
|
|
|
536
624
|
group?: string | undefined;
|
|
537
625
|
expires_at?: string | undefined;
|
|
538
626
|
replaces?: string | undefined;
|
|
627
|
+
lower_price?: number | undefined;
|
|
628
|
+
upper_price?: number | undefined;
|
|
629
|
+
levels?: number | undefined;
|
|
630
|
+
after?: string | undefined;
|
|
631
|
+
sell_from?: string | undefined;
|
|
632
|
+
bot?: string | undefined;
|
|
633
|
+
bot_name?: string | undefined;
|
|
634
|
+
template?: string | undefined;
|
|
539
635
|
};
|
|
540
636
|
}[];
|
|
541
637
|
unparsed: string[];
|
package/dist/ai.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type Runner = (prompt: string, o: RunOpts) => Promise<{
|
|
|
20
20
|
sessionId?: string;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const CHECKIN_HOURS: number[];
|
|
23
|
-
export declare const SYSTEM = "You are the AI inside the owner's Tollkit Wallet, on the Autopilot tab. The owner talks to you to set up and adjust autopilot rules for their own money.\n\nWhat you can do, through the tollkit-wallet tools:\n- read their balances, limits and recent trades (wallet_balances, wallet_status, receipts)\n- check prices and price history (market_prices, price_history; ETH and SOL)\n- see their rules (autopilot_rules) and suggest new ones (autopilot_propose)\nYou cannot trade, pay, withdraw or change limits, and you can't turn rules on. Every rule you suggest waits on a card under your message for the owner to tap \"Turn on\". Never say a rule is on or that you placed a trade.\n\nRule kinds: limit_buy, limit_sell, stop_loss, take_profit, trailing_stop, dca (recurring buy). Assets trade against USDC on Base or Solana (Ethereum only if the owner enabled it). Use exact `rules` in autopilot_propose, not text. Give every rule a one- or two-sentence plain `reason`. To change an existing rule, propose the new one with `replaces: <old rule id>`; turning it on cancels the old one. A take-profit and stop-loss for the same position should share a `group` so one cancels the other.\n\nBefore suggesting: check balances (don't plan to sell what they don't hold or spend more USDC than they have), keep each buy within their per-trade limit, and use recent prices to pick sensible triggers. If what they ask is unclear or risky (all-in, no stop), say so briefly and suggest a safer version; they decide.\n\nStyle: short, plain English, like a careful friend who knows markets. No hype, no emojis, no guarantees or predictions presented as fact. Quote real numbers from the tools. When you suggest rules, end with one line saying they're waiting below to turn on.";
|
|
23
|
+
export declare const SYSTEM = "You are the AI inside the owner's Tollkit Wallet, on the Autopilot tab. The owner talks to you to set up and adjust autopilot rules for their own money.\n\nWhat you can do, through the tollkit-wallet tools:\n- read their balances, limits and recent trades (wallet_balances, wallet_status, receipts)\n- check prices and price history (market_prices, price_history; ETH and SOL)\n- see their rules (autopilot_rules) and suggest new ones (autopilot_propose)\nYou cannot trade, pay, withdraw or change limits, and you can't turn rules on. Every rule you suggest waits on a card under your message for the owner to tap \"Turn on\". Never say a rule is on or that you placed a trade.\n\nRule kinds: limit_buy, limit_sell, stop_loss, take_profit, trailing_stop, dca (recurring buy), grid (buys amount_usd at each of `levels` prices from lower_price to upper_price and sells each a level higher). Assets trade against USDC on Base or Solana (Ethereum only if the owner enabled it). Use exact `rules` in autopilot_propose, not text. Give every rule a one- or two-sentence plain `reason`. To change an existing rule, propose the new one with `replaces: <old rule id>`; turning it on cancels the old one. A take-profit and stop-loss for the same position should share a `group` so one cancels the other.\n\nBefore suggesting: check balances (don't plan to sell what they don't hold or spend more USDC than they have), keep each buy within their per-trade limit, and use recent prices to pick sensible triggers. If what they ask is unclear or risky (all-in, no stop), say so briefly and suggest a safer version; they decide.\n\nStyle: short, plain English, like a careful friend who knows markets. No hype, no emojis, no guarantees or predictions presented as fact. Quote real numbers from the tools. When you suggest rules, end with one line saying they're waiting below to turn on.";
|
|
24
24
|
/** Claude Code, headless, locked to the wallet's advisor tools. */
|
|
25
25
|
export declare function claudeRunner(exe: string, timeoutMs?: number): Runner;
|
|
26
26
|
export declare class AiAssistant {
|
|
@@ -38,6 +38,13 @@ export declare class AiAssistant {
|
|
|
38
38
|
exe?: string | null;
|
|
39
39
|
now?: () => number;
|
|
40
40
|
fetch?: typeof fetch;
|
|
41
|
+
/** Who answers, when it isn't Claude Code on this computer (the browser extension uses Claude through Tollkit's server). */
|
|
42
|
+
provider?: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
note: string;
|
|
46
|
+
setup?: string;
|
|
47
|
+
};
|
|
41
48
|
});
|
|
42
49
|
private now;
|
|
43
50
|
private exe;
|
|
@@ -48,6 +55,11 @@ export declare class AiAssistant {
|
|
|
48
55
|
provider: {
|
|
49
56
|
id: string;
|
|
50
57
|
name: string;
|
|
58
|
+
note: string;
|
|
59
|
+
setup?: string;
|
|
60
|
+
} | {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
51
63
|
} | null;
|
|
52
64
|
ready: boolean;
|
|
53
65
|
busy: {
|
package/dist/ai.js
CHANGED
|
@@ -35,7 +35,7 @@ What you can do, through the tollkit-wallet tools:
|
|
|
35
35
|
- see their rules (autopilot_rules) and suggest new ones (autopilot_propose)
|
|
36
36
|
You cannot trade, pay, withdraw or change limits, and you can't turn rules on. Every rule you suggest waits on a card under your message for the owner to tap "Turn on". Never say a rule is on or that you placed a trade.
|
|
37
37
|
|
|
38
|
-
Rule kinds: limit_buy, limit_sell, stop_loss, take_profit, trailing_stop, dca (recurring buy). Assets trade against USDC on Base or Solana (Ethereum only if the owner enabled it). Use exact \`rules\` in autopilot_propose, not text. Give every rule a one- or two-sentence plain \`reason\`. To change an existing rule, propose the new one with \`replaces: <old rule id>\`; turning it on cancels the old one. A take-profit and stop-loss for the same position should share a \`group\` so one cancels the other.
|
|
38
|
+
Rule kinds: limit_buy, limit_sell, stop_loss, take_profit, trailing_stop, dca (recurring buy), grid (buys amount_usd at each of \`levels\` prices from lower_price to upper_price and sells each a level higher). Assets trade against USDC on Base or Solana (Ethereum only if the owner enabled it). Use exact \`rules\` in autopilot_propose, not text. Give every rule a one- or two-sentence plain \`reason\`. To change an existing rule, propose the new one with \`replaces: <old rule id>\`; turning it on cancels the old one. A take-profit and stop-loss for the same position should share a \`group\` so one cancels the other.
|
|
39
39
|
|
|
40
40
|
Before suggesting: check balances (don't plan to sell what they don't hold or spend more USDC than they have), keep each buy within their per-trade limit, and use recent prices to pick sensible triggers. If what they ask is unclear or risky (all-in, no stop), say so briefly and suggest a safer version; they decide.
|
|
41
41
|
|
|
@@ -105,7 +105,7 @@ export class AiAssistant {
|
|
|
105
105
|
const c = this.load(), every = c.checkin.every_hours;
|
|
106
106
|
const next = every && c.checkin.last ? new Date(Date.parse(c.checkin.last) + every * 3600_000).toISOString() : every ? new Date(this.now()).toISOString() : null;
|
|
107
107
|
return {
|
|
108
|
-
provider: this.runner() ? { id: "claude-code", name: "Claude" } : null,
|
|
108
|
+
provider: this.runner() ? (this.o.provider ?? { id: "claude-code", name: "Claude" }) : null,
|
|
109
109
|
ready: existsSync(passwordFile(this.o.dir)),
|
|
110
110
|
busy: this.busy, messages: c.messages.slice(-60), checkin: { every_hours: every, last: c.checkin.last ?? null, next },
|
|
111
111
|
};
|
package/dist/ai.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.js","sourceRoot":"","sources":["../src/ai.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAO1C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC/C,MAAM,QAAQ,GAAG,GAAG,CAAC;AAErB,MAAM,CAAC,MAAM,MAAM,GAAG;;;;;;;;;;;;gQAY0O,CAAC;AAEjQ,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,6BAA6B,KAAK,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,4eAA4e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
63
|
private consider;
|
|
64
64
|
private fire;
|
|
65
|
+
/**
|
|
66
|
+
* Grid: levels L0 < L1 < ... from lower_price to upper_price. Slot i buys amount_usd at L(i) and sells those
|
|
67
|
+
* units at L(i+1), then can buy again. One trade per check: sells first (a filled slot whose sell level is
|
|
68
|
+
* reached), then the level the price has just come down to. Below the range it doesn't buy.
|
|
69
|
+
*/
|
|
70
|
+
private grid;
|
|
65
71
|
/** Back off after a failure. Stops retry fast; anything else slows down and stops after 5 tries. */
|
|
66
72
|
private fail;
|
|
73
|
+
private finishAs;
|
|
67
74
|
private finish;
|
|
68
75
|
private record;
|
|
69
76
|
}
|