@t402/mcp 2.4.0 → 2.5.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/bin/t402-mcp.js +13 -3
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +486 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/server/index.d.ts +31 -1
- package/dist/cjs/server/index.js +486 -1
- package/dist/cjs/server/index.js.map +1 -1
- package/dist/cjs/tools/index.d.ts +403 -3
- package/dist/cjs/tools/index.js +431 -2
- package/dist/cjs/tools/index.js.map +1 -1
- package/dist/cjs/{types-CWK2p9_n.d.ts → types-CwwW_c2B.d.ts} +5 -1
- package/dist/esm/{chunk-5IVOABVF.mjs → chunk-5UOBQKXW.mjs} +410 -2
- package/dist/esm/chunk-5UOBQKXW.mjs.map +1 -0
- package/dist/esm/{chunk-U2V6MOSU.mjs → chunk-KTG47TRY.mjs} +123 -4
- package/dist/esm/chunk-KTG47TRY.mjs.map +1 -0
- package/dist/esm/index.d.mts +3 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/server/index.d.mts +31 -1
- package/dist/esm/server/index.mjs +2 -2
- package/dist/esm/tools/index.d.mts +403 -3
- package/dist/esm/tools/index.mjs +45 -3
- package/dist/esm/{types-CWK2p9_n.d.mts → types-CwwW_c2B.d.mts} +5 -1
- package/package.json +16 -14
- package/dist/esm/chunk-5IVOABVF.mjs.map +0 -1
- package/dist/esm/chunk-U2V6MOSU.mjs.map +0 -1
|
@@ -1127,6 +1127,289 @@ function formatBridgeResult(result) {
|
|
|
1127
1127
|
].join("\n");
|
|
1128
1128
|
}
|
|
1129
1129
|
|
|
1130
|
+
// src/tools/wdkGetWallet.ts
|
|
1131
|
+
import { z as z7 } from "zod";
|
|
1132
|
+
var wdkGetWalletInputSchema = z7.object({});
|
|
1133
|
+
async function executeWdkGetWallet(_input, wdk) {
|
|
1134
|
+
const signer = await wdk.getSigner("ethereum");
|
|
1135
|
+
const chains6 = wdk.getConfiguredChains();
|
|
1136
|
+
return {
|
|
1137
|
+
evmAddress: signer.address,
|
|
1138
|
+
chains: chains6.length > 0 ? chains6 : ["ethereum"]
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
function executeWdkGetWalletDemo() {
|
|
1142
|
+
return {
|
|
1143
|
+
evmAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
|
|
1144
|
+
chains: ["ethereum", "arbitrum", "base", "optimism"]
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
function formatWdkWalletResult(info) {
|
|
1148
|
+
const lines = [
|
|
1149
|
+
"## WDK Wallet Info",
|
|
1150
|
+
"",
|
|
1151
|
+
`**EVM Address:** \`${info.evmAddress}\``,
|
|
1152
|
+
"",
|
|
1153
|
+
"### Supported Chains",
|
|
1154
|
+
...info.chains.map((c) => `- ${c}`)
|
|
1155
|
+
];
|
|
1156
|
+
return lines.join("\n");
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
// src/tools/wdkGetBalances.ts
|
|
1160
|
+
import { z as z8 } from "zod";
|
|
1161
|
+
import { formatUnits as formatUnits2 } from "viem";
|
|
1162
|
+
var wdkGetBalancesInputSchema = z8.object({
|
|
1163
|
+
chains: z8.array(z8.string()).optional().describe("Optional list of chains to check. If not provided, checks all configured chains.")
|
|
1164
|
+
});
|
|
1165
|
+
function findTokenFormatted(tokens, symbol) {
|
|
1166
|
+
return tokens.find((t) => t.symbol === symbol)?.formatted ?? "0";
|
|
1167
|
+
}
|
|
1168
|
+
async function executeWdkGetBalances(input, wdk) {
|
|
1169
|
+
const balances = await wdk.getAggregatedBalances();
|
|
1170
|
+
const chains6 = balances.chains.filter((c) => !input.chains || input.chains.includes(c.chain)).map((c) => ({
|
|
1171
|
+
chain: c.chain,
|
|
1172
|
+
usdt0: findTokenFormatted(c.tokens, "USDT0"),
|
|
1173
|
+
usdc: findTokenFormatted(c.tokens, "USDC"),
|
|
1174
|
+
native: formatUnits2(c.native, 18)
|
|
1175
|
+
}));
|
|
1176
|
+
return {
|
|
1177
|
+
chains: chains6,
|
|
1178
|
+
totalUsdt0: formatUnits2(balances.totalUsdt0, 6),
|
|
1179
|
+
totalUsdc: formatUnits2(balances.totalUsdc, 6)
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
function executeWdkGetBalancesDemo() {
|
|
1183
|
+
return {
|
|
1184
|
+
chains: [
|
|
1185
|
+
{ chain: "ethereum", usdt0: "100.00", usdc: "250.00", native: "0.5" },
|
|
1186
|
+
{ chain: "arbitrum", usdt0: "500.00", usdc: "0", native: "0.01" },
|
|
1187
|
+
{ chain: "base", usdt0: "200.00", usdc: "100.00", native: "0.02" }
|
|
1188
|
+
],
|
|
1189
|
+
totalUsdt0: "800.00",
|
|
1190
|
+
totalUsdc: "350.00"
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
function formatWdkBalancesResult(result) {
|
|
1194
|
+
const lines = [
|
|
1195
|
+
"## WDK Multi-Chain Balances",
|
|
1196
|
+
"",
|
|
1197
|
+
`**Total USDT0:** ${result.totalUsdt0}`,
|
|
1198
|
+
`**Total USDC:** ${result.totalUsdc}`,
|
|
1199
|
+
"",
|
|
1200
|
+
"### Per-Chain Breakdown",
|
|
1201
|
+
""
|
|
1202
|
+
];
|
|
1203
|
+
for (const chain of result.chains) {
|
|
1204
|
+
lines.push(`**${chain.chain}**`);
|
|
1205
|
+
lines.push(`- USDT0: ${chain.usdt0}`);
|
|
1206
|
+
lines.push(`- USDC: ${chain.usdc}`);
|
|
1207
|
+
lines.push(`- Native: ${chain.native}`);
|
|
1208
|
+
lines.push("");
|
|
1209
|
+
}
|
|
1210
|
+
return lines.join("\n");
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
// src/tools/wdkTransfer.ts
|
|
1214
|
+
import { z as z9 } from "zod";
|
|
1215
|
+
var wdkTransferInputSchema = z9.object({
|
|
1216
|
+
to: z9.string().describe("Recipient address"),
|
|
1217
|
+
amount: z9.string().regex(/^\d+(\.\d+)?$/).describe("Amount to send (e.g., '10.50')"),
|
|
1218
|
+
token: z9.enum(["USDC", "USDT", "USDT0"]).describe("Token to transfer"),
|
|
1219
|
+
chain: z9.string().describe('Chain to execute transfer on (e.g., "ethereum", "arbitrum")')
|
|
1220
|
+
});
|
|
1221
|
+
async function executeWdkTransfer(input, wdk) {
|
|
1222
|
+
const signer = await wdk.getSigner(input.chain);
|
|
1223
|
+
const result = await signer.sendTransaction({
|
|
1224
|
+
to: input.to
|
|
1225
|
+
});
|
|
1226
|
+
const txHash = result.hash;
|
|
1227
|
+
const explorerUrl = getExplorerTxUrl(input.chain, txHash);
|
|
1228
|
+
return {
|
|
1229
|
+
txHash,
|
|
1230
|
+
amount: input.amount,
|
|
1231
|
+
token: input.token,
|
|
1232
|
+
chain: input.chain,
|
|
1233
|
+
to: input.to,
|
|
1234
|
+
explorerUrl
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
function executeWdkTransferDemo(input) {
|
|
1238
|
+
const demoTxHash = "0xdemo" + Math.random().toString(16).slice(2, 10);
|
|
1239
|
+
return {
|
|
1240
|
+
txHash: demoTxHash,
|
|
1241
|
+
amount: input.amount,
|
|
1242
|
+
token: input.token,
|
|
1243
|
+
chain: input.chain,
|
|
1244
|
+
to: input.to,
|
|
1245
|
+
explorerUrl: `https://etherscan.io/tx/${demoTxHash}`
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1248
|
+
function formatWdkTransferResult(result) {
|
|
1249
|
+
return [
|
|
1250
|
+
"## WDK Transfer Complete",
|
|
1251
|
+
"",
|
|
1252
|
+
`**Amount:** ${result.amount} ${result.token}`,
|
|
1253
|
+
`**Chain:** ${result.chain}`,
|
|
1254
|
+
`**To:** \`${result.to}\``,
|
|
1255
|
+
`**Tx Hash:** \`${result.txHash}\``,
|
|
1256
|
+
`**Explorer:** [View Transaction](${result.explorerUrl})`
|
|
1257
|
+
].join("\n");
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
// src/tools/wdkSwap.ts
|
|
1261
|
+
import { z as z10 } from "zod";
|
|
1262
|
+
import { formatUnits as formatUnits3, parseUnits as parseUnits3 } from "viem";
|
|
1263
|
+
var wdkSwapInputSchema = z10.object({
|
|
1264
|
+
fromToken: z10.string().describe('Token to swap from (e.g., "ETH", "USDC")'),
|
|
1265
|
+
toToken: z10.string().describe('Token to swap to (e.g., "USDT0", "USDC")'),
|
|
1266
|
+
amount: z10.string().regex(/^\d+(\.\d+)?$/).describe("Amount to swap (e.g., '1.0')"),
|
|
1267
|
+
chain: z10.string().describe('Chain to execute swap on (e.g., "ethereum", "arbitrum")')
|
|
1268
|
+
});
|
|
1269
|
+
async function executeWdkSwap(input, wdk) {
|
|
1270
|
+
const decimals = ["USDC", "USDT", "USDT0"].includes(input.fromToken.toUpperCase()) ? 6 : 18;
|
|
1271
|
+
const amountBigInt = parseUnits3(input.amount, decimals);
|
|
1272
|
+
const quote = await wdk.getSwapQuote(input.chain, input.fromToken, amountBigInt);
|
|
1273
|
+
const result = await wdk.swapAndPay({
|
|
1274
|
+
chain: input.chain,
|
|
1275
|
+
fromToken: input.fromToken,
|
|
1276
|
+
amount: amountBigInt
|
|
1277
|
+
});
|
|
1278
|
+
const outputDecimals = ["USDC", "USDT", "USDT0"].includes(input.toToken.toUpperCase()) ? 6 : 18;
|
|
1279
|
+
const toAmount = formatUnits3(result?.outputAmount ?? quote.outputAmount, outputDecimals);
|
|
1280
|
+
return {
|
|
1281
|
+
fromAmount: input.amount,
|
|
1282
|
+
fromToken: input.fromToken,
|
|
1283
|
+
toAmount,
|
|
1284
|
+
toToken: input.toToken,
|
|
1285
|
+
chain: input.chain,
|
|
1286
|
+
txHash: result?.txHash
|
|
1287
|
+
};
|
|
1288
|
+
}
|
|
1289
|
+
function executeWdkSwapDemo(input) {
|
|
1290
|
+
const inputAmount = parseFloat(input.amount);
|
|
1291
|
+
const outputAmount = (inputAmount * 0.997).toFixed(6);
|
|
1292
|
+
return {
|
|
1293
|
+
fromAmount: input.amount,
|
|
1294
|
+
fromToken: input.fromToken,
|
|
1295
|
+
toAmount: outputAmount,
|
|
1296
|
+
toToken: input.toToken,
|
|
1297
|
+
chain: input.chain,
|
|
1298
|
+
txHash: "0xdemo" + Math.random().toString(16).slice(2, 10)
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
function formatWdkSwapResult(result) {
|
|
1302
|
+
const lines = [
|
|
1303
|
+
"## WDK Swap Result",
|
|
1304
|
+
"",
|
|
1305
|
+
`**From:** ${result.fromAmount} ${result.fromToken}`,
|
|
1306
|
+
`**To:** ${result.toAmount} ${result.toToken}`,
|
|
1307
|
+
`**Chain:** ${result.chain}`
|
|
1308
|
+
];
|
|
1309
|
+
if (result.txHash) {
|
|
1310
|
+
lines.push(`**Tx Hash:** \`${result.txHash}\``);
|
|
1311
|
+
}
|
|
1312
|
+
return lines.join("\n");
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
// src/tools/autoPay.ts
|
|
1316
|
+
import { z as z11 } from "zod";
|
|
1317
|
+
import { T402Protocol } from "@t402/wdk-protocol";
|
|
1318
|
+
var autoPayInputSchema = z11.object({
|
|
1319
|
+
url: z11.string().url().describe("URL to fetch (may return 402 Payment Required)"),
|
|
1320
|
+
maxAmount: z11.string().regex(/^\d+(\.\d+)?$/).optional().describe('Maximum amount willing to pay (e.g., "10.00"). If not set, pays any amount.'),
|
|
1321
|
+
preferredChain: z11.string().optional().describe(
|
|
1322
|
+
'Preferred chain for payment (e.g., "arbitrum"). If not specified, uses first available.'
|
|
1323
|
+
)
|
|
1324
|
+
});
|
|
1325
|
+
async function executeAutoPay(input, wdk) {
|
|
1326
|
+
const chains6 = input.preferredChain ? [input.preferredChain] : ["ethereum", "arbitrum", "base"];
|
|
1327
|
+
const protocol = await T402Protocol.create(wdk, { chains: chains6 });
|
|
1328
|
+
const { response, receipt } = await protocol.fetch(input.url);
|
|
1329
|
+
if (receipt && input.maxAmount) {
|
|
1330
|
+
const paidAmount = parseFloat(receipt.amount) / 1e6;
|
|
1331
|
+
const maxAmount = parseFloat(input.maxAmount);
|
|
1332
|
+
if (paidAmount > maxAmount) {
|
|
1333
|
+
return {
|
|
1334
|
+
success: false,
|
|
1335
|
+
statusCode: 402,
|
|
1336
|
+
body: "",
|
|
1337
|
+
error: `Payment amount (${paidAmount}) exceeds max allowed (${maxAmount})`
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
const contentType = response.headers.get("content-type") ?? void 0;
|
|
1342
|
+
let body = "";
|
|
1343
|
+
try {
|
|
1344
|
+
body = await response.text();
|
|
1345
|
+
if (body.length > 1e4) {
|
|
1346
|
+
body = body.slice(0, 1e4) + "\n... (truncated)";
|
|
1347
|
+
}
|
|
1348
|
+
} catch {
|
|
1349
|
+
body = "[Could not read response body]";
|
|
1350
|
+
}
|
|
1351
|
+
return {
|
|
1352
|
+
success: response.ok,
|
|
1353
|
+
statusCode: response.status,
|
|
1354
|
+
body,
|
|
1355
|
+
contentType,
|
|
1356
|
+
payment: receipt ? {
|
|
1357
|
+
network: receipt.network,
|
|
1358
|
+
scheme: receipt.scheme,
|
|
1359
|
+
amount: receipt.amount,
|
|
1360
|
+
payTo: receipt.payTo
|
|
1361
|
+
} : void 0
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
function executeAutoPayDemo(input) {
|
|
1365
|
+
return {
|
|
1366
|
+
success: true,
|
|
1367
|
+
statusCode: 200,
|
|
1368
|
+
body: `[Demo] Premium content from ${input.url}
|
|
1369
|
+
|
|
1370
|
+
This is simulated content that would be returned after payment.`,
|
|
1371
|
+
contentType: "text/plain",
|
|
1372
|
+
payment: {
|
|
1373
|
+
network: "eip155:42161",
|
|
1374
|
+
scheme: "exact",
|
|
1375
|
+
amount: "1000000",
|
|
1376
|
+
payTo: "0xC88f67e776f16DcFBf42e6bDda1B82604448899B"
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
function formatAutoPayResult(result) {
|
|
1381
|
+
const lines = ["## AutoPay Result", ""];
|
|
1382
|
+
if (result.success) {
|
|
1383
|
+
lines.push(`**Status:** Success (${result.statusCode})`);
|
|
1384
|
+
} else {
|
|
1385
|
+
lines.push(`**Status:** Failed (${result.statusCode})`);
|
|
1386
|
+
}
|
|
1387
|
+
if (result.payment) {
|
|
1388
|
+
lines.push("");
|
|
1389
|
+
lines.push("### Payment Details");
|
|
1390
|
+
lines.push(`- **Network:** ${result.payment.network}`);
|
|
1391
|
+
lines.push(`- **Scheme:** ${result.payment.scheme}`);
|
|
1392
|
+
lines.push(`- **Amount:** ${result.payment.amount}`);
|
|
1393
|
+
lines.push(`- **Pay To:** \`${result.payment.payTo}\``);
|
|
1394
|
+
}
|
|
1395
|
+
if (result.error) {
|
|
1396
|
+
lines.push("");
|
|
1397
|
+
lines.push(`**Error:** ${result.error}`);
|
|
1398
|
+
}
|
|
1399
|
+
if (result.body) {
|
|
1400
|
+
lines.push("");
|
|
1401
|
+
lines.push("### Response Content");
|
|
1402
|
+
if (result.contentType) {
|
|
1403
|
+
lines.push(`_Content-Type: ${result.contentType}_`);
|
|
1404
|
+
}
|
|
1405
|
+
lines.push("");
|
|
1406
|
+
lines.push("```");
|
|
1407
|
+
lines.push(result.body);
|
|
1408
|
+
lines.push("```");
|
|
1409
|
+
}
|
|
1410
|
+
return lines.join("\n");
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1130
1413
|
// src/tools/index.ts
|
|
1131
1414
|
var TOOL_DEFINITIONS = {
|
|
1132
1415
|
"t402/getBalance": {
|
|
@@ -1327,6 +1610,110 @@ var TOOL_DEFINITIONS = {
|
|
|
1327
1610
|
}
|
|
1328
1611
|
}
|
|
1329
1612
|
};
|
|
1613
|
+
var WDK_TOOL_DEFINITIONS = {
|
|
1614
|
+
"wdk/getWallet": {
|
|
1615
|
+
name: "wdk/getWallet",
|
|
1616
|
+
description: "Get wallet information from the configured WDK wallet. Returns EVM address and supported chains. No parameters needed.",
|
|
1617
|
+
inputSchema: {
|
|
1618
|
+
type: "object",
|
|
1619
|
+
properties: {},
|
|
1620
|
+
required: []
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
"wdk/getBalances": {
|
|
1624
|
+
name: "wdk/getBalances",
|
|
1625
|
+
description: "Get multi-chain token balances from the WDK wallet. Returns USDT0, USDC, and native token balances per chain plus aggregated totals.",
|
|
1626
|
+
inputSchema: {
|
|
1627
|
+
type: "object",
|
|
1628
|
+
properties: {
|
|
1629
|
+
chains: {
|
|
1630
|
+
type: "array",
|
|
1631
|
+
items: { type: "string" },
|
|
1632
|
+
description: 'Optional list of chains to check (e.g., ["ethereum", "arbitrum"]). If not provided, checks all configured chains.'
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1635
|
+
required: []
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
"wdk/transfer": {
|
|
1639
|
+
name: "wdk/transfer",
|
|
1640
|
+
description: "Send stablecoins (USDC, USDT, USDT0) from the WDK wallet to a recipient address on a specific chain.",
|
|
1641
|
+
inputSchema: {
|
|
1642
|
+
type: "object",
|
|
1643
|
+
properties: {
|
|
1644
|
+
to: {
|
|
1645
|
+
type: "string",
|
|
1646
|
+
description: "Recipient address"
|
|
1647
|
+
},
|
|
1648
|
+
amount: {
|
|
1649
|
+
type: "string",
|
|
1650
|
+
pattern: "^\\d+(\\.\\d+)?$",
|
|
1651
|
+
description: "Amount to send (e.g., '10.50')"
|
|
1652
|
+
},
|
|
1653
|
+
token: {
|
|
1654
|
+
type: "string",
|
|
1655
|
+
enum: ["USDC", "USDT", "USDT0"],
|
|
1656
|
+
description: "Token to transfer"
|
|
1657
|
+
},
|
|
1658
|
+
chain: {
|
|
1659
|
+
type: "string",
|
|
1660
|
+
description: 'Chain to execute transfer on (e.g., "ethereum", "arbitrum")'
|
|
1661
|
+
}
|
|
1662
|
+
},
|
|
1663
|
+
required: ["to", "amount", "token", "chain"]
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
"wdk/swap": {
|
|
1667
|
+
name: "wdk/swap",
|
|
1668
|
+
description: "Swap tokens using the WDK Velora protocol. Supports swapping between stablecoins and native tokens.",
|
|
1669
|
+
inputSchema: {
|
|
1670
|
+
type: "object",
|
|
1671
|
+
properties: {
|
|
1672
|
+
fromToken: {
|
|
1673
|
+
type: "string",
|
|
1674
|
+
description: 'Token to swap from (e.g., "ETH", "USDC")'
|
|
1675
|
+
},
|
|
1676
|
+
toToken: {
|
|
1677
|
+
type: "string",
|
|
1678
|
+
description: 'Token to swap to (e.g., "USDT0", "USDC")'
|
|
1679
|
+
},
|
|
1680
|
+
amount: {
|
|
1681
|
+
type: "string",
|
|
1682
|
+
pattern: "^\\d+(\\.\\d+)?$",
|
|
1683
|
+
description: "Amount to swap (e.g., '1.0')"
|
|
1684
|
+
},
|
|
1685
|
+
chain: {
|
|
1686
|
+
type: "string",
|
|
1687
|
+
description: 'Chain to execute swap on (e.g., "ethereum", "arbitrum")'
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
required: ["fromToken", "toToken", "amount", "chain"]
|
|
1691
|
+
}
|
|
1692
|
+
},
|
|
1693
|
+
"t402/autoPay": {
|
|
1694
|
+
name: "t402/autoPay",
|
|
1695
|
+
description: "Smart payment orchestrator. Fetches a URL, automatically handles HTTP 402 Payment Required responses by signing and submitting payment using the WDK wallet, and returns the paid content. The killer tool for AI agents.",
|
|
1696
|
+
inputSchema: {
|
|
1697
|
+
type: "object",
|
|
1698
|
+
properties: {
|
|
1699
|
+
url: {
|
|
1700
|
+
type: "string",
|
|
1701
|
+
description: "URL to fetch (may return 402 Payment Required)"
|
|
1702
|
+
},
|
|
1703
|
+
maxAmount: {
|
|
1704
|
+
type: "string",
|
|
1705
|
+
pattern: "^\\d+(\\.\\d+)?$",
|
|
1706
|
+
description: 'Maximum amount willing to pay (e.g., "10.00"). If not set, pays any amount.'
|
|
1707
|
+
},
|
|
1708
|
+
preferredChain: {
|
|
1709
|
+
type: "string",
|
|
1710
|
+
description: 'Preferred chain for payment (e.g., "arbitrum"). If not specified, uses first available.'
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
required: ["url"]
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1330
1717
|
|
|
1331
1718
|
export {
|
|
1332
1719
|
__publicField,
|
|
@@ -1363,6 +1750,27 @@ export {
|
|
|
1363
1750
|
bridgeInputSchema,
|
|
1364
1751
|
executeBridge,
|
|
1365
1752
|
formatBridgeResult,
|
|
1366
|
-
|
|
1753
|
+
wdkGetWalletInputSchema,
|
|
1754
|
+
executeWdkGetWallet,
|
|
1755
|
+
executeWdkGetWalletDemo,
|
|
1756
|
+
formatWdkWalletResult,
|
|
1757
|
+
wdkGetBalancesInputSchema,
|
|
1758
|
+
executeWdkGetBalances,
|
|
1759
|
+
executeWdkGetBalancesDemo,
|
|
1760
|
+
formatWdkBalancesResult,
|
|
1761
|
+
wdkTransferInputSchema,
|
|
1762
|
+
executeWdkTransfer,
|
|
1763
|
+
executeWdkTransferDemo,
|
|
1764
|
+
formatWdkTransferResult,
|
|
1765
|
+
wdkSwapInputSchema,
|
|
1766
|
+
executeWdkSwap,
|
|
1767
|
+
executeWdkSwapDemo,
|
|
1768
|
+
formatWdkSwapResult,
|
|
1769
|
+
autoPayInputSchema,
|
|
1770
|
+
executeAutoPay,
|
|
1771
|
+
executeAutoPayDemo,
|
|
1772
|
+
formatAutoPayResult,
|
|
1773
|
+
TOOL_DEFINITIONS,
|
|
1774
|
+
WDK_TOOL_DEFINITIONS
|
|
1367
1775
|
};
|
|
1368
|
-
//# sourceMappingURL=chunk-
|
|
1776
|
+
//# sourceMappingURL=chunk-5UOBQKXW.mjs.map
|