@t2000/cli 0.26.2 → 0.28.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 +1 -0
- package/dist/{ccip-XP27NGI7.js → ccip-JEEJV65M.js} +3 -3
- package/dist/{chunk-KLHAR3XK.js → chunk-2JUMTEBB.js} +295 -8
- package/dist/chunk-2JUMTEBB.js.map +1 -0
- package/dist/chunk-77SWBATH.js +204 -0
- package/dist/chunk-77SWBATH.js.map +1 -0
- package/dist/{chunk-3I6VJOM6.js → chunk-A5X4KG7U.js} +970 -210
- package/dist/chunk-A5X4KG7U.js.map +1 -0
- package/dist/{chunk-TYYJRUQI.js → chunk-HGA6AHN5.js} +644 -70
- package/dist/chunk-HGA6AHN5.js.map +1 -0
- package/dist/{client-YNWQPUC5.js → client-2MUO6VAJ.js} +4 -4
- package/dist/{client-YNWQPUC5.js.map → client-2MUO6VAJ.js.map} +1 -1
- package/dist/{client-IXUBQ3HM.js → client-KQCHOXLV.js} +197 -197
- package/dist/client-KQCHOXLV.js.map +1 -0
- package/dist/{dist-KWDZR46D.js → dist-F462ZUVT.js} +32 -2
- package/dist/{dist-KAYOSIOG.js → dist-UDCEDQVB.js} +20 -2
- package/dist/{dist-KAYOSIOG.js.map → dist-UDCEDQVB.js.map} +1 -1
- package/dist/index.js +54 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-3I6VJOM6.js.map +0 -1
- package/dist/chunk-EI3GHTKX.js +0 -968
- package/dist/chunk-EI3GHTKX.js.map +0 -1
- package/dist/chunk-KLHAR3XK.js.map +0 -1
- package/dist/chunk-TYYJRUQI.js.map +0 -1
- package/dist/client-IXUBQ3HM.js.map +0 -1
- /package/dist/{ccip-XP27NGI7.js.map → ccip-JEEJV65M.js.map} +0 -0
- /package/dist/{dist-KWDZR46D.js.map → dist-F462ZUVT.js.map} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'module'; import { fileURLToPath as __fileURLToPath } from 'url'; import { dirname as __pathDirname } from 'path'; const require = __createRequire(import.meta.url); const __filename = __fileURLToPath(import.meta.url); const __dirname = __pathDirname(__filename);
|
|
2
2
|
import {
|
|
3
|
+
ALLOWANCE_FEATURES,
|
|
3
4
|
ALL_NAVI_ASSETS,
|
|
4
5
|
BPS_DENOMINATOR,
|
|
5
6
|
CETUS_USDC_SUI_POOL,
|
|
@@ -10,6 +11,8 @@ import {
|
|
|
10
11
|
DEFAULT_SAFEGUARD_CONFIG,
|
|
11
12
|
ETH_TYPE,
|
|
12
13
|
GAS_RESERVE_MIN,
|
|
14
|
+
HF_CRITICAL_THRESHOLD,
|
|
15
|
+
HF_WARN_THRESHOLD,
|
|
13
16
|
IKA_TYPE,
|
|
14
17
|
KeypairSigner,
|
|
15
18
|
LOFI_TYPE,
|
|
@@ -42,11 +45,19 @@ import {
|
|
|
42
45
|
WBTC_TYPE,
|
|
43
46
|
ZkLoginSigner,
|
|
44
47
|
addCollectFeeToTx,
|
|
48
|
+
addDepositAllowanceTx,
|
|
45
49
|
allDescriptors,
|
|
46
50
|
assertAllowedAsset,
|
|
51
|
+
buildAdminDepositAllowanceTx,
|
|
52
|
+
buildCreateAllowanceTx,
|
|
53
|
+
buildDeductAllowanceTx,
|
|
54
|
+
buildDepositAllowanceTx,
|
|
55
|
+
buildScopedIntent,
|
|
47
56
|
buildStakeVSuiTx,
|
|
48
57
|
buildSwapTx,
|
|
49
58
|
buildUnstakeVSuiTx,
|
|
59
|
+
buildWithdrawAllowanceTx,
|
|
60
|
+
buildWithdrawAmountAllowanceTx,
|
|
50
61
|
calculateFee,
|
|
51
62
|
executeAutoTopUp,
|
|
52
63
|
executeWithGas,
|
|
@@ -57,8 +68,11 @@ import {
|
|
|
57
68
|
formatUsd,
|
|
58
69
|
generateKeypair,
|
|
59
70
|
getAddress,
|
|
71
|
+
getAllowance,
|
|
72
|
+
getAllowanceBalance,
|
|
60
73
|
getDecimals,
|
|
61
74
|
getDecimalsForCoinType,
|
|
75
|
+
getFinancialSummary,
|
|
62
76
|
getGasStatus,
|
|
63
77
|
getRates,
|
|
64
78
|
getSwapQuote,
|
|
@@ -88,13 +102,15 @@ import {
|
|
|
88
102
|
truncateAddress,
|
|
89
103
|
usdcToRaw,
|
|
90
104
|
validateAddress,
|
|
105
|
+
verifyScopedIntent,
|
|
91
106
|
walletExists
|
|
92
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-2JUMTEBB.js";
|
|
93
108
|
import "./chunk-V7PXDEKG.js";
|
|
94
109
|
import "./chunk-Q2LY5BHK.js";
|
|
95
110
|
import "./chunk-3XUF7GM3.js";
|
|
96
111
|
import "./chunk-YPWSCLE3.js";
|
|
97
112
|
export {
|
|
113
|
+
ALLOWANCE_FEATURES,
|
|
98
114
|
ALL_NAVI_ASSETS,
|
|
99
115
|
BPS_DENOMINATOR,
|
|
100
116
|
CETUS_USDC_SUI_POOL,
|
|
@@ -105,6 +121,8 @@ export {
|
|
|
105
121
|
DEFAULT_SAFEGUARD_CONFIG,
|
|
106
122
|
ETH_TYPE,
|
|
107
123
|
GAS_RESERVE_MIN,
|
|
124
|
+
HF_CRITICAL_THRESHOLD,
|
|
125
|
+
HF_WARN_THRESHOLD,
|
|
108
126
|
IKA_TYPE,
|
|
109
127
|
KeypairSigner,
|
|
110
128
|
LOFI_TYPE,
|
|
@@ -137,11 +155,19 @@ export {
|
|
|
137
155
|
WBTC_TYPE,
|
|
138
156
|
ZkLoginSigner,
|
|
139
157
|
addCollectFeeToTx,
|
|
158
|
+
addDepositAllowanceTx,
|
|
140
159
|
allDescriptors,
|
|
141
160
|
assertAllowedAsset,
|
|
161
|
+
buildAdminDepositAllowanceTx,
|
|
162
|
+
buildCreateAllowanceTx,
|
|
163
|
+
buildDeductAllowanceTx,
|
|
164
|
+
buildDepositAllowanceTx,
|
|
165
|
+
buildScopedIntent,
|
|
142
166
|
buildStakeVSuiTx,
|
|
143
167
|
buildSwapTx,
|
|
144
168
|
buildUnstakeVSuiTx,
|
|
169
|
+
buildWithdrawAllowanceTx,
|
|
170
|
+
buildWithdrawAmountAllowanceTx,
|
|
145
171
|
calculateFee,
|
|
146
172
|
executeAutoTopUp,
|
|
147
173
|
executeWithGas,
|
|
@@ -152,8 +178,11 @@ export {
|
|
|
152
178
|
formatUsd,
|
|
153
179
|
generateKeypair,
|
|
154
180
|
getAddress,
|
|
181
|
+
getAllowance,
|
|
182
|
+
getAllowanceBalance,
|
|
155
183
|
getDecimals,
|
|
156
184
|
getDecimalsForCoinType,
|
|
185
|
+
getFinancialSummary,
|
|
157
186
|
getGasStatus,
|
|
158
187
|
getRates,
|
|
159
188
|
getSwapQuote,
|
|
@@ -183,6 +212,7 @@ export {
|
|
|
183
212
|
truncateAddress,
|
|
184
213
|
usdcToRaw,
|
|
185
214
|
validateAddress,
|
|
215
|
+
verifyScopedIntent,
|
|
186
216
|
walletExists
|
|
187
217
|
};
|
|
188
|
-
//# sourceMappingURL=dist-
|
|
218
|
+
//# sourceMappingURL=dist-F462ZUVT.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ZodOptional,
|
|
8
8
|
external_exports,
|
|
9
9
|
objectType
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2JUMTEBB.js";
|
|
11
11
|
import "./chunk-V7PXDEKG.js";
|
|
12
12
|
import "./chunk-Q2LY5BHK.js";
|
|
13
13
|
import "./chunk-3XUF7GM3.js";
|
|
@@ -17153,6 +17153,24 @@ function registerReadTools(server, agent) {
|
|
|
17153
17153
|
}
|
|
17154
17154
|
}
|
|
17155
17155
|
);
|
|
17156
|
+
server.tool(
|
|
17157
|
+
"t2000_receive",
|
|
17158
|
+
"Generate a payment request \u2014 returns wallet address, QR-ready URI, and optional amount/memo. Use when the user wants to receive a payment, create a payment request, or share their address for receiving funds.",
|
|
17159
|
+
{
|
|
17160
|
+
amount: external_exports.number().optional().describe("Amount to request (omit for open amount)"),
|
|
17161
|
+
currency: external_exports.string().optional().describe("Currency symbol (default: USDC)"),
|
|
17162
|
+
memo: external_exports.string().optional().describe("Payment note"),
|
|
17163
|
+
label: external_exports.string().optional().describe("Description for the request")
|
|
17164
|
+
},
|
|
17165
|
+
async ({ amount, currency, memo, label }) => {
|
|
17166
|
+
try {
|
|
17167
|
+
const result = agent.receive({ amount, currency, memo, label });
|
|
17168
|
+
return { content: [{ type: "text", text: JSON.stringify(result) }] };
|
|
17169
|
+
} catch (err) {
|
|
17170
|
+
return errorResult(err);
|
|
17171
|
+
}
|
|
17172
|
+
}
|
|
17173
|
+
);
|
|
17156
17174
|
server.tool(
|
|
17157
17175
|
"t2000_all_rates",
|
|
17158
17176
|
'Compare USDC (and other) interest rates across all protocols side-by-side. Use when the user asks "am I getting the best rate?" or wants to compare protocols. NOTE: Deposits are USDC-only \u2014 t2000_save always saves USDC at the best USDC rate. This tool is for informational comparisons.',
|
|
@@ -18312,4 +18330,4 @@ async function startMcpServer(opts) {
|
|
|
18312
18330
|
export {
|
|
18313
18331
|
startMcpServer
|
|
18314
18332
|
};
|
|
18315
|
-
//# sourceMappingURL=dist-
|
|
18333
|
+
//# sourceMappingURL=dist-UDCEDQVB.js.map
|