@compass-labs/api-sdk 0.0.28 → 0.0.30
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/FUNCTIONS.md +4 -3
- package/README.md +23 -13
- package/bin/mcp-server.js +1048 -570
- package/bin/mcp-server.js.map +19 -11
- package/dist/commonjs/funcs/aaveV3AvgRate.d.ts +18 -0
- package/dist/commonjs/funcs/aaveV3AvgRate.d.ts.map +1 -0
- package/dist/commonjs/funcs/aaveV3AvgRate.js +122 -0
- package/dist/commonjs/funcs/aaveV3AvgRate.js.map +1 -0
- package/dist/commonjs/funcs/aaveV3StdRate.d.ts +18 -0
- package/dist/commonjs/funcs/aaveV3StdRate.d.ts.map +1 -0
- package/dist/commonjs/funcs/aaveV3StdRate.js +122 -0
- package/dist/commonjs/funcs/aaveV3StdRate.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3AvgRate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/aaveV3AvgRate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3AvgRate.js +64 -0
- package/dist/commonjs/mcp-server/tools/aaveV3AvgRate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.js +64 -0
- package/dist/commonjs/mcp-server/tools/aaveV3StdRate.js.map +1 -0
- package/dist/commonjs/models/components/aaveavgrateresponse.d.ts +57 -0
- package/dist/commonjs/models/components/aaveavgrateresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/aaveavgrateresponse.js +98 -0
- package/dist/commonjs/models/components/aaveavgrateresponse.js.map +1 -0
- package/dist/commonjs/models/components/aavestdrateresponse.d.ts +57 -0
- package/dist/commonjs/models/components/aavestdrateresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavestdrateresponse.js +98 -0
- package/dist/commonjs/models/components/aavestdrateresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/aaveavgrate.d.ts +244 -0
- package/dist/commonjs/models/operations/aaveavgrate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/aaveavgrate.js +165 -0
- package/dist/commonjs/models/operations/aaveavgrate.js.map +1 -0
- package/dist/commonjs/models/operations/aavestdrate.d.ts +244 -0
- package/dist/commonjs/models/operations/aavestdrate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/aavestdrate.js +165 -0
- package/dist/commonjs/models/operations/aavestdrate.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +14 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +20 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/esm/funcs/aaveV3AvgRate.d.ts +18 -0
- package/dist/esm/funcs/aaveV3AvgRate.d.ts.map +1 -0
- package/dist/esm/funcs/aaveV3AvgRate.js +86 -0
- package/dist/esm/funcs/aaveV3AvgRate.js.map +1 -0
- package/dist/esm/funcs/aaveV3StdRate.d.ts +18 -0
- package/dist/esm/funcs/aaveV3StdRate.d.ts.map +1 -0
- package/dist/esm/funcs/aaveV3StdRate.js +86 -0
- package/dist/esm/funcs/aaveV3StdRate.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3AvgRate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/aaveV3AvgRate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3AvgRate.js +28 -0
- package/dist/esm/mcp-server/tools/aaveV3AvgRate.js.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3StdRate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/aaveV3StdRate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3StdRate.js +28 -0
- package/dist/esm/mcp-server/tools/aaveV3StdRate.js.map +1 -0
- package/dist/esm/models/components/aaveavgrateresponse.d.ts +57 -0
- package/dist/esm/models/components/aaveavgrateresponse.d.ts.map +1 -0
- package/dist/esm/models/components/aaveavgrateresponse.js +60 -0
- package/dist/esm/models/components/aaveavgrateresponse.js.map +1 -0
- package/dist/esm/models/components/aavestdrateresponse.d.ts +57 -0
- package/dist/esm/models/components/aavestdrateresponse.d.ts.map +1 -0
- package/dist/esm/models/components/aavestdrateresponse.js +60 -0
- package/dist/esm/models/components/aavestdrateresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/aaveavgrate.d.ts +244 -0
- package/dist/esm/models/operations/aaveavgrate.d.ts.map +1 -0
- package/dist/esm/models/operations/aaveavgrate.js +127 -0
- package/dist/esm/models/operations/aaveavgrate.js.map +1 -0
- package/dist/esm/models/operations/aavestdrate.d.ts +244 -0
- package/dist/esm/models/operations/aavestdrate.d.ts.map +1 -0
- package/dist/esm/models/operations/aavestdrate.js +127 -0
- package/dist/esm/models/operations/aavestdrate.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +14 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +20 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/docs/sdks/aavev3/README.md +164 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3AvgRate.ts +170 -0
- package/src/funcs/aaveV3StdRate.ts +170 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/aaveV3AvgRate.ts +37 -0
- package/src/mcp-server/tools/aaveV3StdRate.ts +37 -0
- package/src/models/components/aaveavgrateresponse.ts +123 -0
- package/src/models/components/aavestdrateresponse.ts +123 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/operations/aaveavgrate.ts +203 -0
- package/src/models/operations/aavestdrate.ts +203 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/aavev3.ts +36 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34185,9 +34185,9 @@ var init_config = __esm(() => {
|
|
|
34185
34185
|
SDK_METADATA = {
|
|
34186
34186
|
language: "typescript",
|
|
34187
34187
|
openapiDocVersion: "0.0.1",
|
|
34188
|
-
sdkVersion: "0.0.
|
|
34188
|
+
sdkVersion: "0.0.30",
|
|
34189
34189
|
genVersion: "2.604.2",
|
|
34190
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
34190
|
+
userAgent: "speakeasy-sdk/typescript 0.0.30 2.604.2 0.0.1 @compass-labs/api-sdk"
|
|
34191
34191
|
};
|
|
34192
34192
|
});
|
|
34193
34193
|
|
|
@@ -35510,6 +35510,51 @@ var init_security = __esm(() => {
|
|
|
35510
35510
|
};
|
|
35511
35511
|
});
|
|
35512
35512
|
|
|
35513
|
+
// src/models/components/aaveavgrateresponse.ts
|
|
35514
|
+
var AaveAvgRateResponse$inboundSchema, AaveAvgRateResponse$outboundSchema, AaveAvgRateResponse$;
|
|
35515
|
+
var init_aaveavgrateresponse = __esm(() => {
|
|
35516
|
+
init_lib();
|
|
35517
|
+
init_primitives();
|
|
35518
|
+
AaveAvgRateResponse$inboundSchema = objectType({
|
|
35519
|
+
supply_apy_variable_rate: numberType(),
|
|
35520
|
+
supply_apr_variable_rate: numberType(),
|
|
35521
|
+
borrow_apy_variable_rate: numberType(),
|
|
35522
|
+
borrow_apr_variable_rate: numberType(),
|
|
35523
|
+
borrow_apy_fixed_rate: numberType(),
|
|
35524
|
+
borrow_apr_fixed_rate: numberType()
|
|
35525
|
+
}).transform((v2) => {
|
|
35526
|
+
return remap(v2, {
|
|
35527
|
+
supply_apy_variable_rate: "supplyApyVariableRate",
|
|
35528
|
+
supply_apr_variable_rate: "supplyAprVariableRate",
|
|
35529
|
+
borrow_apy_variable_rate: "borrowApyVariableRate",
|
|
35530
|
+
borrow_apr_variable_rate: "borrowAprVariableRate",
|
|
35531
|
+
borrow_apy_fixed_rate: "borrowApyFixedRate",
|
|
35532
|
+
borrow_apr_fixed_rate: "borrowAprFixedRate"
|
|
35533
|
+
});
|
|
35534
|
+
});
|
|
35535
|
+
AaveAvgRateResponse$outboundSchema = objectType({
|
|
35536
|
+
supplyApyVariableRate: numberType(),
|
|
35537
|
+
supplyAprVariableRate: numberType(),
|
|
35538
|
+
borrowApyVariableRate: numberType(),
|
|
35539
|
+
borrowAprVariableRate: numberType(),
|
|
35540
|
+
borrowApyFixedRate: numberType(),
|
|
35541
|
+
borrowAprFixedRate: numberType()
|
|
35542
|
+
}).transform((v2) => {
|
|
35543
|
+
return remap(v2, {
|
|
35544
|
+
supplyApyVariableRate: "supply_apy_variable_rate",
|
|
35545
|
+
supplyAprVariableRate: "supply_apr_variable_rate",
|
|
35546
|
+
borrowApyVariableRate: "borrow_apy_variable_rate",
|
|
35547
|
+
borrowAprVariableRate: "borrow_apr_variable_rate",
|
|
35548
|
+
borrowApyFixedRate: "borrow_apy_fixed_rate",
|
|
35549
|
+
borrowAprFixedRate: "borrow_apr_fixed_rate"
|
|
35550
|
+
});
|
|
35551
|
+
});
|
|
35552
|
+
((AaveAvgRateResponse$) => {
|
|
35553
|
+
AaveAvgRateResponse$.inboundSchema = AaveAvgRateResponse$inboundSchema;
|
|
35554
|
+
AaveAvgRateResponse$.outboundSchema = AaveAvgRateResponse$outboundSchema;
|
|
35555
|
+
})(AaveAvgRateResponse$ ||= {});
|
|
35556
|
+
});
|
|
35557
|
+
|
|
35513
35558
|
// src/models/components/interestratemode.ts
|
|
35514
35559
|
var InterestRateMode, InterestRateMode$inboundSchema, InterestRateMode$outboundSchema, InterestRateMode$;
|
|
35515
35560
|
var init_interestratemode = __esm(() => {
|
|
@@ -36373,6 +36418,51 @@ var init_aavereserveoverviewresponse = __esm(() => {
|
|
|
36373
36418
|
})(AaveReserveOverviewResponse$ ||= {});
|
|
36374
36419
|
});
|
|
36375
36420
|
|
|
36421
|
+
// src/models/components/aavestdrateresponse.ts
|
|
36422
|
+
var AaveSTDRateResponse$inboundSchema, AaveSTDRateResponse$outboundSchema, AaveSTDRateResponse$;
|
|
36423
|
+
var init_aavestdrateresponse = __esm(() => {
|
|
36424
|
+
init_lib();
|
|
36425
|
+
init_primitives();
|
|
36426
|
+
AaveSTDRateResponse$inboundSchema = objectType({
|
|
36427
|
+
supply_apy_variable_rate: numberType(),
|
|
36428
|
+
supply_apr_variable_rate: numberType(),
|
|
36429
|
+
borrow_apy_variable_rate: numberType(),
|
|
36430
|
+
borrow_apr_variable_rate: numberType(),
|
|
36431
|
+
borrow_apy_fixed_rate: numberType(),
|
|
36432
|
+
borrow_apr_fixed_rate: numberType()
|
|
36433
|
+
}).transform((v2) => {
|
|
36434
|
+
return remap(v2, {
|
|
36435
|
+
supply_apy_variable_rate: "supplyApyVariableRate",
|
|
36436
|
+
supply_apr_variable_rate: "supplyAprVariableRate",
|
|
36437
|
+
borrow_apy_variable_rate: "borrowApyVariableRate",
|
|
36438
|
+
borrow_apr_variable_rate: "borrowAprVariableRate",
|
|
36439
|
+
borrow_apy_fixed_rate: "borrowApyFixedRate",
|
|
36440
|
+
borrow_apr_fixed_rate: "borrowAprFixedRate"
|
|
36441
|
+
});
|
|
36442
|
+
});
|
|
36443
|
+
AaveSTDRateResponse$outboundSchema = objectType({
|
|
36444
|
+
supplyApyVariableRate: numberType(),
|
|
36445
|
+
supplyAprVariableRate: numberType(),
|
|
36446
|
+
borrowApyVariableRate: numberType(),
|
|
36447
|
+
borrowAprVariableRate: numberType(),
|
|
36448
|
+
borrowApyFixedRate: numberType(),
|
|
36449
|
+
borrowAprFixedRate: numberType()
|
|
36450
|
+
}).transform((v2) => {
|
|
36451
|
+
return remap(v2, {
|
|
36452
|
+
supplyApyVariableRate: "supply_apy_variable_rate",
|
|
36453
|
+
supplyAprVariableRate: "supply_apr_variable_rate",
|
|
36454
|
+
borrowApyVariableRate: "borrow_apy_variable_rate",
|
|
36455
|
+
borrowAprVariableRate: "borrow_apr_variable_rate",
|
|
36456
|
+
borrowApyFixedRate: "borrow_apy_fixed_rate",
|
|
36457
|
+
borrowAprFixedRate: "borrow_apr_fixed_rate"
|
|
36458
|
+
});
|
|
36459
|
+
});
|
|
36460
|
+
((AaveSTDRateResponse$) => {
|
|
36461
|
+
AaveSTDRateResponse$.inboundSchema = AaveSTDRateResponse$inboundSchema;
|
|
36462
|
+
AaveSTDRateResponse$.outboundSchema = AaveSTDRateResponse$outboundSchema;
|
|
36463
|
+
})(AaveSTDRateResponse$ ||= {});
|
|
36464
|
+
});
|
|
36465
|
+
|
|
36376
36466
|
// src/models/components/aavesupplyparams.ts
|
|
36377
36467
|
var AaveSupplyParamsAmount$inboundSchema, AaveSupplyParamsAmount$outboundSchema, AaveSupplyParamsAmount$, AaveSupplyParams$inboundSchema, AaveSupplyParams$outboundSchema, AaveSupplyParams$;
|
|
36378
36468
|
var init_aavesupplyparams = __esm(() => {
|
|
@@ -40364,6 +40454,7 @@ var init_wrapethrequest = __esm(() => {
|
|
|
40364
40454
|
|
|
40365
40455
|
// src/models/components/index.ts
|
|
40366
40456
|
var init_components = __esm(() => {
|
|
40457
|
+
init_aaveavgrateresponse();
|
|
40367
40458
|
init_aaveborrowparams();
|
|
40368
40459
|
init_aaveborrowrequest();
|
|
40369
40460
|
init_aavehistoricaltransactionsresponse();
|
|
@@ -40373,6 +40464,7 @@ var init_components = __esm(() => {
|
|
|
40373
40464
|
init_aaverepayparams();
|
|
40374
40465
|
init_aaverepayrequest();
|
|
40375
40466
|
init_aavereserveoverviewresponse();
|
|
40467
|
+
init_aavestdrateresponse();
|
|
40376
40468
|
init_aavesupplyparams();
|
|
40377
40469
|
init_aavesupplyrequest();
|
|
40378
40470
|
init_aavetokenpriceresponse();
|
|
@@ -40526,134 +40618,87 @@ var init_errors = __esm(() => {
|
|
|
40526
40618
|
init_sdkvalidationerror();
|
|
40527
40619
|
});
|
|
40528
40620
|
|
|
40529
|
-
// src/
|
|
40530
|
-
var
|
|
40531
|
-
var
|
|
40532
|
-
|
|
40533
|
-
|
|
40534
|
-
|
|
40535
|
-
|
|
40536
|
-
|
|
40537
|
-
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
40538
|
-
this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
|
|
40539
|
-
}
|
|
40540
|
-
then(onfulfilled, onrejected) {
|
|
40541
|
-
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
|
|
40542
|
-
}
|
|
40543
|
-
catch(onrejected) {
|
|
40544
|
-
return this.#unwrapped.catch(onrejected);
|
|
40545
|
-
}
|
|
40546
|
-
finally(onfinally) {
|
|
40547
|
-
return this.#unwrapped.finally(onfinally);
|
|
40548
|
-
}
|
|
40549
|
-
$inspect() {
|
|
40550
|
-
return this.#promise;
|
|
40551
|
-
}
|
|
40552
|
-
};
|
|
40553
|
-
});
|
|
40554
|
-
|
|
40555
|
-
// src/funcs/aaveV3Borrow.ts
|
|
40556
|
-
function aaveV3Borrow(client, request, options) {
|
|
40557
|
-
return new APIPromise($do(client, request, options));
|
|
40558
|
-
}
|
|
40559
|
-
async function $do(client, request, options) {
|
|
40560
|
-
const parsed = safeParse(request, (value) => AaveBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
40561
|
-
if (!parsed.ok) {
|
|
40562
|
-
return [parsed, { status: "invalid" }];
|
|
40563
|
-
}
|
|
40564
|
-
const payload = parsed.value;
|
|
40565
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
40566
|
-
const path = pathToFunc("/v0/aave/borrow")();
|
|
40567
|
-
const headers = new Headers(compactMap({
|
|
40568
|
-
"Content-Type": "application/json",
|
|
40569
|
-
Accept: "application/json"
|
|
40570
|
-
}));
|
|
40571
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
40572
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
40573
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
40574
|
-
const context = {
|
|
40575
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
40576
|
-
operationID: "aave_borrow",
|
|
40577
|
-
oAuth2Scopes: [],
|
|
40578
|
-
resolvedSecurity: requestSecurity,
|
|
40579
|
-
securitySource: client._options.apiKeyAuth,
|
|
40580
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
40581
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
40582
|
-
};
|
|
40583
|
-
const requestRes = client._createRequest(context, {
|
|
40584
|
-
security: requestSecurity,
|
|
40585
|
-
method: "POST",
|
|
40586
|
-
baseURL: options?.serverURL,
|
|
40587
|
-
path,
|
|
40588
|
-
headers,
|
|
40589
|
-
body,
|
|
40590
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
40591
|
-
}, options);
|
|
40592
|
-
if (!requestRes.ok) {
|
|
40593
|
-
return [requestRes, { status: "invalid" }];
|
|
40594
|
-
}
|
|
40595
|
-
const req = requestRes.value;
|
|
40596
|
-
const doResult = await client._do(req, {
|
|
40597
|
-
context,
|
|
40598
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
40599
|
-
retryConfig: context.retryConfig,
|
|
40600
|
-
retryCodes: context.retryCodes
|
|
40601
|
-
});
|
|
40602
|
-
if (!doResult.ok) {
|
|
40603
|
-
return [doResult, { status: "request-error", request: req }];
|
|
40604
|
-
}
|
|
40605
|
-
const response = doResult.value;
|
|
40606
|
-
const responseFields = {
|
|
40607
|
-
HttpMeta: { Response: response, Request: req }
|
|
40608
|
-
};
|
|
40609
|
-
const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
40610
|
-
if (!result.ok) {
|
|
40611
|
-
return [result, { status: "complete", request: req, response }];
|
|
40612
|
-
}
|
|
40613
|
-
return [result, { status: "complete", request: req, response }];
|
|
40614
|
-
}
|
|
40615
|
-
var init_aaveV3Borrow = __esm(() => {
|
|
40616
|
-
init_encodings();
|
|
40617
|
-
init_matchers();
|
|
40618
|
-
init_primitives();
|
|
40619
|
-
init_schemas();
|
|
40620
|
-
init_security();
|
|
40621
|
-
init_url();
|
|
40622
|
-
init_components();
|
|
40623
|
-
init_errors();
|
|
40624
|
-
init_async();
|
|
40625
|
-
});
|
|
40626
|
-
|
|
40627
|
-
// src/mcp-server/tools/aaveV3Borrow.ts
|
|
40628
|
-
var args, tool$aaveV3Borrow;
|
|
40629
|
-
var init_aaveV3Borrow2 = __esm(() => {
|
|
40630
|
-
init_aaveV3Borrow();
|
|
40631
|
-
init_components();
|
|
40632
|
-
init_tools();
|
|
40633
|
-
args = {
|
|
40634
|
-
request: AaveBorrowRequest$inboundSchema
|
|
40621
|
+
// src/models/operations/aaveavgrate.ts
|
|
40622
|
+
var AaveAvgRateChain, AaveAvgRateToken, AaveAvgRateChain$inboundSchema, AaveAvgRateChain$outboundSchema, AaveAvgRateChain$, AaveAvgRateToken$inboundSchema, AaveAvgRateToken$outboundSchema, AaveAvgRateToken$, AaveAvgRateRequest$inboundSchema, AaveAvgRateRequest$outboundSchema, AaveAvgRateRequest$;
|
|
40623
|
+
var init_aaveavgrate = __esm(() => {
|
|
40624
|
+
init_lib();
|
|
40625
|
+
AaveAvgRateChain = {
|
|
40626
|
+
BaseMainnet: "base:mainnet",
|
|
40627
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
40628
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40635
40629
|
};
|
|
40636
|
-
|
|
40637
|
-
|
|
40638
|
-
|
|
40639
|
-
|
|
40640
|
-
|
|
40641
|
-
|
|
40642
|
-
|
|
40643
|
-
|
|
40644
|
-
|
|
40645
|
-
|
|
40646
|
-
|
|
40647
|
-
|
|
40648
|
-
|
|
40649
|
-
|
|
40650
|
-
|
|
40651
|
-
|
|
40652
|
-
|
|
40653
|
-
|
|
40654
|
-
|
|
40655
|
-
|
|
40630
|
+
AaveAvgRateToken = {
|
|
40631
|
+
OneINCH: "1INCH",
|
|
40632
|
+
Aave: "AAVE",
|
|
40633
|
+
Bal: "BAL",
|
|
40634
|
+
CbBTC: "cbBTC",
|
|
40635
|
+
CbETH: "cbETH",
|
|
40636
|
+
Crv: "CRV",
|
|
40637
|
+
CrvUSD: "crvUSD",
|
|
40638
|
+
Dai: "DAI",
|
|
40639
|
+
Ens: "ENS",
|
|
40640
|
+
ETHx: "ETHx",
|
|
40641
|
+
Frax: "FRAX",
|
|
40642
|
+
Fxs: "FXS",
|
|
40643
|
+
Gho: "GHO",
|
|
40644
|
+
Knc: "KNC",
|
|
40645
|
+
Ldo: "LDO",
|
|
40646
|
+
Link: "LINK",
|
|
40647
|
+
Lusd: "LUSD",
|
|
40648
|
+
Mkr: "MKR",
|
|
40649
|
+
OsETH: "osETH",
|
|
40650
|
+
Pyusd: "PYUSD",
|
|
40651
|
+
RETH: "rETH",
|
|
40652
|
+
Rpl: "RPL",
|
|
40653
|
+
RsETH: "rsETH",
|
|
40654
|
+
SDAI: "sDAI",
|
|
40655
|
+
Snx: "SNX",
|
|
40656
|
+
Stg: "STG",
|
|
40657
|
+
SUSDe: "sUSDe",
|
|
40658
|
+
TBTC: "tBTC",
|
|
40659
|
+
Uni: "UNI",
|
|
40660
|
+
Usdc: "USDC",
|
|
40661
|
+
USDe: "USDe",
|
|
40662
|
+
Usds: "USDS",
|
|
40663
|
+
Usdt: "USDT",
|
|
40664
|
+
Wbtc: "WBTC",
|
|
40665
|
+
WeETH: "weETH",
|
|
40666
|
+
Weth: "WETH",
|
|
40667
|
+
WstETH: "wstETH",
|
|
40668
|
+
Arb: "ARB",
|
|
40669
|
+
Eurs: "EURS",
|
|
40670
|
+
Mai: "MAI",
|
|
40671
|
+
USDCe: "USDCe",
|
|
40672
|
+
Aero: "AERO",
|
|
40673
|
+
Eur: "EUR",
|
|
40674
|
+
Virtual: "VIRTUAL"
|
|
40656
40675
|
};
|
|
40676
|
+
AaveAvgRateChain$inboundSchema = nativeEnumType(AaveAvgRateChain);
|
|
40677
|
+
AaveAvgRateChain$outboundSchema = AaveAvgRateChain$inboundSchema;
|
|
40678
|
+
((AaveAvgRateChain$) => {
|
|
40679
|
+
AaveAvgRateChain$.inboundSchema = AaveAvgRateChain$inboundSchema;
|
|
40680
|
+
AaveAvgRateChain$.outboundSchema = AaveAvgRateChain$outboundSchema;
|
|
40681
|
+
})(AaveAvgRateChain$ ||= {});
|
|
40682
|
+
AaveAvgRateToken$inboundSchema = nativeEnumType(AaveAvgRateToken);
|
|
40683
|
+
AaveAvgRateToken$outboundSchema = AaveAvgRateToken$inboundSchema;
|
|
40684
|
+
((AaveAvgRateToken$) => {
|
|
40685
|
+
AaveAvgRateToken$.inboundSchema = AaveAvgRateToken$inboundSchema;
|
|
40686
|
+
AaveAvgRateToken$.outboundSchema = AaveAvgRateToken$outboundSchema;
|
|
40687
|
+
})(AaveAvgRateToken$ ||= {});
|
|
40688
|
+
AaveAvgRateRequest$inboundSchema = objectType({
|
|
40689
|
+
chain: AaveAvgRateChain$inboundSchema.default("ethereum:mainnet"),
|
|
40690
|
+
token: AaveAvgRateToken$inboundSchema.default("USDC"),
|
|
40691
|
+
days: numberType().int().default(7)
|
|
40692
|
+
});
|
|
40693
|
+
AaveAvgRateRequest$outboundSchema = objectType({
|
|
40694
|
+
chain: AaveAvgRateChain$outboundSchema.default("ethereum:mainnet"),
|
|
40695
|
+
token: AaveAvgRateToken$outboundSchema.default("USDC"),
|
|
40696
|
+
days: numberType().int().default(7)
|
|
40697
|
+
});
|
|
40698
|
+
((AaveAvgRateRequest$) => {
|
|
40699
|
+
AaveAvgRateRequest$.inboundSchema = AaveAvgRateRequest$inboundSchema;
|
|
40700
|
+
AaveAvgRateRequest$.outboundSchema = AaveAvgRateRequest$outboundSchema;
|
|
40701
|
+
})(AaveAvgRateRequest$ ||= {});
|
|
40657
40702
|
});
|
|
40658
40703
|
|
|
40659
40704
|
// src/models/operations/aavehistoricaltransactions.ts
|
|
@@ -40956,16 +41001,16 @@ var init_aavereserveoverview = __esm(() => {
|
|
|
40956
41001
|
})(AaveReserveOverviewRequest$ ||= {});
|
|
40957
41002
|
});
|
|
40958
41003
|
|
|
40959
|
-
// src/models/operations/
|
|
40960
|
-
var
|
|
40961
|
-
var
|
|
41004
|
+
// src/models/operations/aavestdrate.ts
|
|
41005
|
+
var AaveStdRateChain, AaveStdRateToken, AaveStdRateChain$inboundSchema, AaveStdRateChain$outboundSchema, AaveStdRateChain$, AaveStdRateToken$inboundSchema, AaveStdRateToken$outboundSchema, AaveStdRateToken$, AaveStdRateRequest$inboundSchema, AaveStdRateRequest$outboundSchema, AaveStdRateRequest$;
|
|
41006
|
+
var init_aavestdrate = __esm(() => {
|
|
40962
41007
|
init_lib();
|
|
40963
|
-
|
|
41008
|
+
AaveStdRateChain = {
|
|
40964
41009
|
BaseMainnet: "base:mainnet",
|
|
40965
41010
|
EthereumMainnet: "ethereum:mainnet",
|
|
40966
41011
|
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40967
41012
|
};
|
|
40968
|
-
|
|
41013
|
+
AaveStdRateToken = {
|
|
40969
41014
|
OneINCH: "1INCH",
|
|
40970
41015
|
Aave: "AAVE",
|
|
40971
41016
|
Bal: "BAL",
|
|
@@ -41011,37 +41056,120 @@ var init_aavetokenprice = __esm(() => {
|
|
|
41011
41056
|
Eur: "EUR",
|
|
41012
41057
|
Virtual: "VIRTUAL"
|
|
41013
41058
|
};
|
|
41014
|
-
|
|
41015
|
-
|
|
41016
|
-
((
|
|
41017
|
-
|
|
41018
|
-
|
|
41019
|
-
})(
|
|
41020
|
-
|
|
41021
|
-
|
|
41022
|
-
((
|
|
41023
|
-
|
|
41024
|
-
|
|
41025
|
-
})(
|
|
41026
|
-
|
|
41027
|
-
chain:
|
|
41028
|
-
token:
|
|
41029
|
-
|
|
41030
|
-
|
|
41031
|
-
|
|
41032
|
-
|
|
41033
|
-
|
|
41034
|
-
|
|
41035
|
-
|
|
41036
|
-
|
|
41037
|
-
|
|
41059
|
+
AaveStdRateChain$inboundSchema = nativeEnumType(AaveStdRateChain);
|
|
41060
|
+
AaveStdRateChain$outboundSchema = AaveStdRateChain$inboundSchema;
|
|
41061
|
+
((AaveStdRateChain$) => {
|
|
41062
|
+
AaveStdRateChain$.inboundSchema = AaveStdRateChain$inboundSchema;
|
|
41063
|
+
AaveStdRateChain$.outboundSchema = AaveStdRateChain$outboundSchema;
|
|
41064
|
+
})(AaveStdRateChain$ ||= {});
|
|
41065
|
+
AaveStdRateToken$inboundSchema = nativeEnumType(AaveStdRateToken);
|
|
41066
|
+
AaveStdRateToken$outboundSchema = AaveStdRateToken$inboundSchema;
|
|
41067
|
+
((AaveStdRateToken$) => {
|
|
41068
|
+
AaveStdRateToken$.inboundSchema = AaveStdRateToken$inboundSchema;
|
|
41069
|
+
AaveStdRateToken$.outboundSchema = AaveStdRateToken$outboundSchema;
|
|
41070
|
+
})(AaveStdRateToken$ ||= {});
|
|
41071
|
+
AaveStdRateRequest$inboundSchema = objectType({
|
|
41072
|
+
chain: AaveStdRateChain$inboundSchema.default("ethereum:mainnet"),
|
|
41073
|
+
token: AaveStdRateToken$inboundSchema.default("USDC"),
|
|
41074
|
+
days: numberType().int().default(7)
|
|
41075
|
+
});
|
|
41076
|
+
AaveStdRateRequest$outboundSchema = objectType({
|
|
41077
|
+
chain: AaveStdRateChain$outboundSchema.default("ethereum:mainnet"),
|
|
41078
|
+
token: AaveStdRateToken$outboundSchema.default("USDC"),
|
|
41079
|
+
days: numberType().int().default(7)
|
|
41080
|
+
});
|
|
41081
|
+
((AaveStdRateRequest$) => {
|
|
41082
|
+
AaveStdRateRequest$.inboundSchema = AaveStdRateRequest$inboundSchema;
|
|
41083
|
+
AaveStdRateRequest$.outboundSchema = AaveStdRateRequest$outboundSchema;
|
|
41084
|
+
})(AaveStdRateRequest$ ||= {});
|
|
41038
41085
|
});
|
|
41039
41086
|
|
|
41040
|
-
// src/models/operations/
|
|
41041
|
-
var
|
|
41042
|
-
var
|
|
41087
|
+
// src/models/operations/aavetokenprice.ts
|
|
41088
|
+
var AaveTokenPriceChain, AaveTokenPriceToken, AaveTokenPriceChain$inboundSchema, AaveTokenPriceChain$outboundSchema, AaveTokenPriceChain$, AaveTokenPriceToken$inboundSchema, AaveTokenPriceToken$outboundSchema, AaveTokenPriceToken$, AaveTokenPriceRequest$inboundSchema, AaveTokenPriceRequest$outboundSchema, AaveTokenPriceRequest$;
|
|
41089
|
+
var init_aavetokenprice = __esm(() => {
|
|
41043
41090
|
init_lib();
|
|
41044
|
-
|
|
41091
|
+
AaveTokenPriceChain = {
|
|
41092
|
+
BaseMainnet: "base:mainnet",
|
|
41093
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
41094
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
41095
|
+
};
|
|
41096
|
+
AaveTokenPriceToken = {
|
|
41097
|
+
OneINCH: "1INCH",
|
|
41098
|
+
Aave: "AAVE",
|
|
41099
|
+
Bal: "BAL",
|
|
41100
|
+
CbBTC: "cbBTC",
|
|
41101
|
+
CbETH: "cbETH",
|
|
41102
|
+
Crv: "CRV",
|
|
41103
|
+
CrvUSD: "crvUSD",
|
|
41104
|
+
Dai: "DAI",
|
|
41105
|
+
Ens: "ENS",
|
|
41106
|
+
ETHx: "ETHx",
|
|
41107
|
+
Frax: "FRAX",
|
|
41108
|
+
Fxs: "FXS",
|
|
41109
|
+
Gho: "GHO",
|
|
41110
|
+
Knc: "KNC",
|
|
41111
|
+
Ldo: "LDO",
|
|
41112
|
+
Link: "LINK",
|
|
41113
|
+
Lusd: "LUSD",
|
|
41114
|
+
Mkr: "MKR",
|
|
41115
|
+
OsETH: "osETH",
|
|
41116
|
+
Pyusd: "PYUSD",
|
|
41117
|
+
RETH: "rETH",
|
|
41118
|
+
Rpl: "RPL",
|
|
41119
|
+
RsETH: "rsETH",
|
|
41120
|
+
SDAI: "sDAI",
|
|
41121
|
+
Snx: "SNX",
|
|
41122
|
+
Stg: "STG",
|
|
41123
|
+
SUSDe: "sUSDe",
|
|
41124
|
+
TBTC: "tBTC",
|
|
41125
|
+
Uni: "UNI",
|
|
41126
|
+
Usdc: "USDC",
|
|
41127
|
+
USDe: "USDe",
|
|
41128
|
+
Usds: "USDS",
|
|
41129
|
+
Usdt: "USDT",
|
|
41130
|
+
Wbtc: "WBTC",
|
|
41131
|
+
WeETH: "weETH",
|
|
41132
|
+
Weth: "WETH",
|
|
41133
|
+
WstETH: "wstETH",
|
|
41134
|
+
Arb: "ARB",
|
|
41135
|
+
Eurs: "EURS",
|
|
41136
|
+
Mai: "MAI",
|
|
41137
|
+
USDCe: "USDCe",
|
|
41138
|
+
Aero: "AERO",
|
|
41139
|
+
Eur: "EUR",
|
|
41140
|
+
Virtual: "VIRTUAL"
|
|
41141
|
+
};
|
|
41142
|
+
AaveTokenPriceChain$inboundSchema = nativeEnumType(AaveTokenPriceChain);
|
|
41143
|
+
AaveTokenPriceChain$outboundSchema = AaveTokenPriceChain$inboundSchema;
|
|
41144
|
+
((AaveTokenPriceChain$) => {
|
|
41145
|
+
AaveTokenPriceChain$.inboundSchema = AaveTokenPriceChain$inboundSchema;
|
|
41146
|
+
AaveTokenPriceChain$.outboundSchema = AaveTokenPriceChain$outboundSchema;
|
|
41147
|
+
})(AaveTokenPriceChain$ ||= {});
|
|
41148
|
+
AaveTokenPriceToken$inboundSchema = nativeEnumType(AaveTokenPriceToken);
|
|
41149
|
+
AaveTokenPriceToken$outboundSchema = AaveTokenPriceToken$inboundSchema;
|
|
41150
|
+
((AaveTokenPriceToken$) => {
|
|
41151
|
+
AaveTokenPriceToken$.inboundSchema = AaveTokenPriceToken$inboundSchema;
|
|
41152
|
+
AaveTokenPriceToken$.outboundSchema = AaveTokenPriceToken$outboundSchema;
|
|
41153
|
+
})(AaveTokenPriceToken$ ||= {});
|
|
41154
|
+
AaveTokenPriceRequest$inboundSchema = objectType({
|
|
41155
|
+
chain: AaveTokenPriceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
41156
|
+
token: AaveTokenPriceToken$inboundSchema.default("USDC")
|
|
41157
|
+
});
|
|
41158
|
+
AaveTokenPriceRequest$outboundSchema = objectType({
|
|
41159
|
+
chain: AaveTokenPriceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
41160
|
+
token: AaveTokenPriceToken$outboundSchema.default("USDC")
|
|
41161
|
+
});
|
|
41162
|
+
((AaveTokenPriceRequest$) => {
|
|
41163
|
+
AaveTokenPriceRequest$.inboundSchema = AaveTokenPriceRequest$inboundSchema;
|
|
41164
|
+
AaveTokenPriceRequest$.outboundSchema = AaveTokenPriceRequest$outboundSchema;
|
|
41165
|
+
})(AaveTokenPriceRequest$ ||= {});
|
|
41166
|
+
});
|
|
41167
|
+
|
|
41168
|
+
// src/models/operations/aaveuserpositionpertoken.ts
|
|
41169
|
+
var AaveUserPositionPerTokenChain, AaveUserPositionPerTokenToken, AaveUserPositionPerTokenChain$inboundSchema, AaveUserPositionPerTokenChain$outboundSchema, AaveUserPositionPerTokenChain$, AaveUserPositionPerTokenToken$inboundSchema, AaveUserPositionPerTokenToken$outboundSchema, AaveUserPositionPerTokenToken$, AaveUserPositionPerTokenRequest$inboundSchema, AaveUserPositionPerTokenRequest$outboundSchema, AaveUserPositionPerTokenRequest$;
|
|
41170
|
+
var init_aaveuserpositionpertoken = __esm(() => {
|
|
41171
|
+
init_lib();
|
|
41172
|
+
AaveUserPositionPerTokenChain = {
|
|
41045
41173
|
BaseMainnet: "base:mainnet",
|
|
41046
41174
|
EthereumMainnet: "ethereum:mainnet",
|
|
41047
41175
|
ArbitrumMainnet: "arbitrum:mainnet"
|
|
@@ -42519,10 +42647,12 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
42519
42647
|
|
|
42520
42648
|
// src/models/operations/index.ts
|
|
42521
42649
|
var init_operations = __esm(() => {
|
|
42650
|
+
init_aaveavgrate();
|
|
42522
42651
|
init_aavehistoricaltransactions();
|
|
42523
42652
|
init_aaveliquiditychange();
|
|
42524
42653
|
init_aaverate();
|
|
42525
42654
|
init_aavereserveoverview();
|
|
42655
|
+
init_aavestdrate();
|
|
42526
42656
|
init_aavetokenprice();
|
|
42527
42657
|
init_aaveuserpositionpertoken();
|
|
42528
42658
|
init_aaveuserpositionsummary();
|
|
@@ -42548,11 +42678,248 @@ var init_operations = __esm(() => {
|
|
|
42548
42678
|
init_uniswapquotesellexactly();
|
|
42549
42679
|
});
|
|
42550
42680
|
|
|
42551
|
-
// src/
|
|
42552
|
-
|
|
42681
|
+
// src/types/async.ts
|
|
42682
|
+
var APIPromise;
|
|
42683
|
+
var init_async = __esm(() => {
|
|
42684
|
+
APIPromise = class APIPromise {
|
|
42685
|
+
#promise;
|
|
42686
|
+
#unwrapped;
|
|
42687
|
+
[Symbol.toStringTag] = "APIPromise";
|
|
42688
|
+
constructor(p) {
|
|
42689
|
+
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
42690
|
+
this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
|
|
42691
|
+
}
|
|
42692
|
+
then(onfulfilled, onrejected) {
|
|
42693
|
+
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
|
|
42694
|
+
}
|
|
42695
|
+
catch(onrejected) {
|
|
42696
|
+
return this.#unwrapped.catch(onrejected);
|
|
42697
|
+
}
|
|
42698
|
+
finally(onfinally) {
|
|
42699
|
+
return this.#unwrapped.finally(onfinally);
|
|
42700
|
+
}
|
|
42701
|
+
$inspect() {
|
|
42702
|
+
return this.#promise;
|
|
42703
|
+
}
|
|
42704
|
+
};
|
|
42705
|
+
});
|
|
42706
|
+
|
|
42707
|
+
// src/funcs/aaveV3AvgRate.ts
|
|
42708
|
+
function aaveV3AvgRate(client, request, options) {
|
|
42709
|
+
return new APIPromise($do(client, request, options));
|
|
42710
|
+
}
|
|
42711
|
+
async function $do(client, request, options) {
|
|
42712
|
+
const parsed = safeParse(request, (value) => AaveAvgRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42713
|
+
if (!parsed.ok) {
|
|
42714
|
+
return [parsed, { status: "invalid" }];
|
|
42715
|
+
}
|
|
42716
|
+
const payload = parsed.value;
|
|
42717
|
+
const body = null;
|
|
42718
|
+
const path = pathToFunc("/v0/aave/avg_rate/get")();
|
|
42719
|
+
const query = encodeFormQuery({
|
|
42720
|
+
chain: payload.chain,
|
|
42721
|
+
days: payload.days,
|
|
42722
|
+
token: payload.token
|
|
42723
|
+
});
|
|
42724
|
+
const headers = new Headers(compactMap({
|
|
42725
|
+
Accept: "application/json"
|
|
42726
|
+
}));
|
|
42727
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
42728
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
42729
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42730
|
+
const context = {
|
|
42731
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42732
|
+
operationID: "aave_avg_rate",
|
|
42733
|
+
oAuth2Scopes: [],
|
|
42734
|
+
resolvedSecurity: requestSecurity,
|
|
42735
|
+
securitySource: client._options.apiKeyAuth,
|
|
42736
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42737
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42738
|
+
};
|
|
42739
|
+
const requestRes = client._createRequest(context, {
|
|
42740
|
+
security: requestSecurity,
|
|
42741
|
+
method: "GET",
|
|
42742
|
+
baseURL: options?.serverURL,
|
|
42743
|
+
path,
|
|
42744
|
+
headers,
|
|
42745
|
+
query,
|
|
42746
|
+
body,
|
|
42747
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42748
|
+
}, options);
|
|
42749
|
+
if (!requestRes.ok) {
|
|
42750
|
+
return [requestRes, { status: "invalid" }];
|
|
42751
|
+
}
|
|
42752
|
+
const req = requestRes.value;
|
|
42753
|
+
const doResult = await client._do(req, {
|
|
42754
|
+
context,
|
|
42755
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
42756
|
+
retryConfig: context.retryConfig,
|
|
42757
|
+
retryCodes: context.retryCodes
|
|
42758
|
+
});
|
|
42759
|
+
if (!doResult.ok) {
|
|
42760
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42761
|
+
}
|
|
42762
|
+
const response = doResult.value;
|
|
42763
|
+
const responseFields = {
|
|
42764
|
+
HttpMeta: { Response: response, Request: req }
|
|
42765
|
+
};
|
|
42766
|
+
const [result] = await match(json(200, AaveAvgRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42767
|
+
if (!result.ok) {
|
|
42768
|
+
return [result, { status: "complete", request: req, response }];
|
|
42769
|
+
}
|
|
42770
|
+
return [result, { status: "complete", request: req, response }];
|
|
42771
|
+
}
|
|
42772
|
+
var init_aaveV3AvgRate = __esm(() => {
|
|
42773
|
+
init_encodings();
|
|
42774
|
+
init_matchers();
|
|
42775
|
+
init_primitives();
|
|
42776
|
+
init_schemas();
|
|
42777
|
+
init_security();
|
|
42778
|
+
init_url();
|
|
42779
|
+
init_components();
|
|
42780
|
+
init_errors();
|
|
42781
|
+
init_operations();
|
|
42782
|
+
init_async();
|
|
42783
|
+
});
|
|
42784
|
+
|
|
42785
|
+
// src/mcp-server/tools/aaveV3AvgRate.ts
|
|
42786
|
+
var args, tool$aaveV3AvgRate;
|
|
42787
|
+
var init_aaveV3AvgRate2 = __esm(() => {
|
|
42788
|
+
init_aaveV3AvgRate();
|
|
42789
|
+
init_operations();
|
|
42790
|
+
init_tools();
|
|
42791
|
+
args = {
|
|
42792
|
+
request: AaveAvgRateRequest$inboundSchema
|
|
42793
|
+
};
|
|
42794
|
+
tool$aaveV3AvgRate = {
|
|
42795
|
+
name: "aave-v3-avg-rate",
|
|
42796
|
+
description: `Average interest rates
|
|
42797
|
+
|
|
42798
|
+
Returns time averaged Interest Rates for Aave Reserves:`,
|
|
42799
|
+
args,
|
|
42800
|
+
tool: async (client, args2, ctx) => {
|
|
42801
|
+
const [result, apiCall] = await aaveV3AvgRate(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42802
|
+
if (!result.ok) {
|
|
42803
|
+
return {
|
|
42804
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42805
|
+
isError: true
|
|
42806
|
+
};
|
|
42807
|
+
}
|
|
42808
|
+
const value = result.value;
|
|
42809
|
+
return formatResult(value, apiCall);
|
|
42810
|
+
}
|
|
42811
|
+
};
|
|
42812
|
+
});
|
|
42813
|
+
|
|
42814
|
+
// src/funcs/aaveV3Borrow.ts
|
|
42815
|
+
function aaveV3Borrow(client, request, options) {
|
|
42553
42816
|
return new APIPromise($do2(client, request, options));
|
|
42554
42817
|
}
|
|
42555
42818
|
async function $do2(client, request, options) {
|
|
42819
|
+
const parsed = safeParse(request, (value) => AaveBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42820
|
+
if (!parsed.ok) {
|
|
42821
|
+
return [parsed, { status: "invalid" }];
|
|
42822
|
+
}
|
|
42823
|
+
const payload = parsed.value;
|
|
42824
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
42825
|
+
const path = pathToFunc("/v0/aave/borrow")();
|
|
42826
|
+
const headers = new Headers(compactMap({
|
|
42827
|
+
"Content-Type": "application/json",
|
|
42828
|
+
Accept: "application/json"
|
|
42829
|
+
}));
|
|
42830
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
42831
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
42832
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42833
|
+
const context = {
|
|
42834
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42835
|
+
operationID: "aave_borrow",
|
|
42836
|
+
oAuth2Scopes: [],
|
|
42837
|
+
resolvedSecurity: requestSecurity,
|
|
42838
|
+
securitySource: client._options.apiKeyAuth,
|
|
42839
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42840
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42841
|
+
};
|
|
42842
|
+
const requestRes = client._createRequest(context, {
|
|
42843
|
+
security: requestSecurity,
|
|
42844
|
+
method: "POST",
|
|
42845
|
+
baseURL: options?.serverURL,
|
|
42846
|
+
path,
|
|
42847
|
+
headers,
|
|
42848
|
+
body,
|
|
42849
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42850
|
+
}, options);
|
|
42851
|
+
if (!requestRes.ok) {
|
|
42852
|
+
return [requestRes, { status: "invalid" }];
|
|
42853
|
+
}
|
|
42854
|
+
const req = requestRes.value;
|
|
42855
|
+
const doResult = await client._do(req, {
|
|
42856
|
+
context,
|
|
42857
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
42858
|
+
retryConfig: context.retryConfig,
|
|
42859
|
+
retryCodes: context.retryCodes
|
|
42860
|
+
});
|
|
42861
|
+
if (!doResult.ok) {
|
|
42862
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42863
|
+
}
|
|
42864
|
+
const response = doResult.value;
|
|
42865
|
+
const responseFields = {
|
|
42866
|
+
HttpMeta: { Response: response, Request: req }
|
|
42867
|
+
};
|
|
42868
|
+
const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42869
|
+
if (!result.ok) {
|
|
42870
|
+
return [result, { status: "complete", request: req, response }];
|
|
42871
|
+
}
|
|
42872
|
+
return [result, { status: "complete", request: req, response }];
|
|
42873
|
+
}
|
|
42874
|
+
var init_aaveV3Borrow = __esm(() => {
|
|
42875
|
+
init_encodings();
|
|
42876
|
+
init_matchers();
|
|
42877
|
+
init_primitives();
|
|
42878
|
+
init_schemas();
|
|
42879
|
+
init_security();
|
|
42880
|
+
init_url();
|
|
42881
|
+
init_components();
|
|
42882
|
+
init_errors();
|
|
42883
|
+
init_async();
|
|
42884
|
+
});
|
|
42885
|
+
|
|
42886
|
+
// src/mcp-server/tools/aaveV3Borrow.ts
|
|
42887
|
+
var args2, tool$aaveV3Borrow;
|
|
42888
|
+
var init_aaveV3Borrow2 = __esm(() => {
|
|
42889
|
+
init_aaveV3Borrow();
|
|
42890
|
+
init_components();
|
|
42891
|
+
init_tools();
|
|
42892
|
+
args2 = {
|
|
42893
|
+
request: AaveBorrowRequest$inboundSchema
|
|
42894
|
+
};
|
|
42895
|
+
tool$aaveV3Borrow = {
|
|
42896
|
+
name: "aave-v3-borrow",
|
|
42897
|
+
description: `Borrow
|
|
42898
|
+
|
|
42899
|
+
You will pay interest for your borrows.
|
|
42900
|
+
|
|
42901
|
+
Price changes in the assets may lead to some or all of your collateral being
|
|
42902
|
+
liquidated, if the borrow position becomes unhealthy.`,
|
|
42903
|
+
args: args2,
|
|
42904
|
+
tool: async (client, args3, ctx) => {
|
|
42905
|
+
const [result, apiCall] = await aaveV3Borrow(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42906
|
+
if (!result.ok) {
|
|
42907
|
+
return {
|
|
42908
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42909
|
+
isError: true
|
|
42910
|
+
};
|
|
42911
|
+
}
|
|
42912
|
+
const value = result.value;
|
|
42913
|
+
return formatResult(value, apiCall);
|
|
42914
|
+
}
|
|
42915
|
+
};
|
|
42916
|
+
});
|
|
42917
|
+
|
|
42918
|
+
// src/funcs/aaveV3HistoricalTransactions.ts
|
|
42919
|
+
function aaveV3HistoricalTransactions(client, request, options) {
|
|
42920
|
+
return new APIPromise($do3(client, request, options));
|
|
42921
|
+
}
|
|
42922
|
+
async function $do3(client, request, options) {
|
|
42556
42923
|
const parsed = safeParse(request, (value) => AaveHistoricalTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42557
42924
|
if (!parsed.ok) {
|
|
42558
42925
|
return [parsed, { status: "invalid" }];
|
|
@@ -42628,12 +42995,12 @@ var init_aaveV3HistoricalTransactions = __esm(() => {
|
|
|
42628
42995
|
});
|
|
42629
42996
|
|
|
42630
42997
|
// src/mcp-server/tools/aaveV3HistoricalTransactions.ts
|
|
42631
|
-
var
|
|
42998
|
+
var args3, tool$aaveV3HistoricalTransactions;
|
|
42632
42999
|
var init_aaveV3HistoricalTransactions2 = __esm(() => {
|
|
42633
43000
|
init_aaveV3HistoricalTransactions();
|
|
42634
43001
|
init_operations();
|
|
42635
43002
|
init_tools();
|
|
42636
|
-
|
|
43003
|
+
args3 = {
|
|
42637
43004
|
request: AaveHistoricalTransactionsRequest$inboundSchema
|
|
42638
43005
|
};
|
|
42639
43006
|
tool$aaveV3HistoricalTransactions = {
|
|
@@ -42646,9 +43013,9 @@ It returns a list of transactions including deposits, withdrawals, borrows, and
|
|
|
42646
43013
|
repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
42647
43014
|
and transaction type. This provides a comprehensive view of the user's historical
|
|
42648
43015
|
activity within the AAVE protocol.`,
|
|
42649
|
-
args:
|
|
42650
|
-
tool: async (client,
|
|
42651
|
-
const [result, apiCall] = await aaveV3HistoricalTransactions(client,
|
|
43016
|
+
args: args3,
|
|
43017
|
+
tool: async (client, args4, ctx) => {
|
|
43018
|
+
const [result, apiCall] = await aaveV3HistoricalTransactions(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42652
43019
|
if (!result.ok) {
|
|
42653
43020
|
return {
|
|
42654
43021
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42663,9 +43030,9 @@ activity within the AAVE protocol.`,
|
|
|
42663
43030
|
|
|
42664
43031
|
// src/funcs/aaveV3LiquidityChange.ts
|
|
42665
43032
|
function aaveV3LiquidityChange(client, request, options) {
|
|
42666
|
-
return new APIPromise($
|
|
43033
|
+
return new APIPromise($do4(client, request, options));
|
|
42667
43034
|
}
|
|
42668
|
-
async function $
|
|
43035
|
+
async function $do4(client, request, options) {
|
|
42669
43036
|
const parsed = safeParse(request, (value) => AaveLiquidityChangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42670
43037
|
if (!parsed.ok) {
|
|
42671
43038
|
return [parsed, { status: "invalid" }];
|
|
@@ -42741,12 +43108,12 @@ var init_aaveV3LiquidityChange = __esm(() => {
|
|
|
42741
43108
|
});
|
|
42742
43109
|
|
|
42743
43110
|
// src/mcp-server/tools/aaveV3LiquidityChange.ts
|
|
42744
|
-
var
|
|
43111
|
+
var args4, tool$aaveV3LiquidityChange;
|
|
42745
43112
|
var init_aaveV3LiquidityChange2 = __esm(() => {
|
|
42746
43113
|
init_aaveV3LiquidityChange();
|
|
42747
43114
|
init_operations();
|
|
42748
43115
|
init_tools();
|
|
42749
|
-
|
|
43116
|
+
args4 = {
|
|
42750
43117
|
request: AaveLiquidityChangeRequest$inboundSchema
|
|
42751
43118
|
};
|
|
42752
43119
|
tool$aaveV3LiquidityChange = {
|
|
@@ -42764,9 +43131,9 @@ at the start block, a positive liquidity index change will represent accrued
|
|
|
42764
43131
|
interest and a profit. If tokens were borrowed at the start block, this debt will
|
|
42765
43132
|
increase, compound on itself and represent large debt. The reverse in both cases is
|
|
42766
43133
|
true if the liquidity index is negative.`,
|
|
42767
|
-
args:
|
|
42768
|
-
tool: async (client,
|
|
42769
|
-
const [result, apiCall] = await aaveV3LiquidityChange(client,
|
|
43134
|
+
args: args4,
|
|
43135
|
+
tool: async (client, args5, ctx) => {
|
|
43136
|
+
const [result, apiCall] = await aaveV3LiquidityChange(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42770
43137
|
if (!result.ok) {
|
|
42771
43138
|
return {
|
|
42772
43139
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42781,9 +43148,9 @@ true if the liquidity index is negative.`,
|
|
|
42781
43148
|
|
|
42782
43149
|
// src/funcs/aaveV3Rate.ts
|
|
42783
43150
|
function aaveV3Rate(client, request, options) {
|
|
42784
|
-
return new APIPromise($
|
|
43151
|
+
return new APIPromise($do5(client, request, options));
|
|
42785
43152
|
}
|
|
42786
|
-
async function $
|
|
43153
|
+
async function $do5(client, request, options) {
|
|
42787
43154
|
const parsed = safeParse(request, (value) => AaveRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42788
43155
|
if (!parsed.ok) {
|
|
42789
43156
|
return [parsed, { status: "invalid" }];
|
|
@@ -42857,12 +43224,12 @@ var init_aaveV3Rate = __esm(() => {
|
|
|
42857
43224
|
});
|
|
42858
43225
|
|
|
42859
43226
|
// src/mcp-server/tools/aaveV3Rate.ts
|
|
42860
|
-
var
|
|
43227
|
+
var args5, tool$aaveV3Rate;
|
|
42861
43228
|
var init_aaveV3Rate2 = __esm(() => {
|
|
42862
43229
|
init_aaveV3Rate();
|
|
42863
43230
|
init_operations();
|
|
42864
43231
|
init_tools();
|
|
42865
|
-
|
|
43232
|
+
args5 = {
|
|
42866
43233
|
request: AaveRateRequest$inboundSchema
|
|
42867
43234
|
};
|
|
42868
43235
|
tool$aaveV3Rate = {
|
|
@@ -42883,9 +43250,9 @@ blockchain every time this endpoint is called.
|
|
|
42883
43250
|
compounding).
|
|
42884
43251
|
|
|
42885
43252
|
For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.`,
|
|
42886
|
-
args:
|
|
42887
|
-
tool: async (client,
|
|
42888
|
-
const [result, apiCall] = await aaveV3Rate(client,
|
|
43253
|
+
args: args5,
|
|
43254
|
+
tool: async (client, args6, ctx) => {
|
|
43255
|
+
const [result, apiCall] = await aaveV3Rate(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42889
43256
|
if (!result.ok) {
|
|
42890
43257
|
return {
|
|
42891
43258
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42900,9 +43267,9 @@ For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.`
|
|
|
42900
43267
|
|
|
42901
43268
|
// src/funcs/aaveV3Repay.ts
|
|
42902
43269
|
function aaveV3Repay(client, request, options) {
|
|
42903
|
-
return new APIPromise($
|
|
43270
|
+
return new APIPromise($do6(client, request, options));
|
|
42904
43271
|
}
|
|
42905
|
-
async function $
|
|
43272
|
+
async function $do6(client, request, options) {
|
|
42906
43273
|
const parsed = safeParse(request, (value) => AaveRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42907
43274
|
if (!parsed.ok) {
|
|
42908
43275
|
return [parsed, { status: "invalid" }];
|
|
@@ -42971,12 +43338,12 @@ var init_aaveV3Repay = __esm(() => {
|
|
|
42971
43338
|
});
|
|
42972
43339
|
|
|
42973
43340
|
// src/mcp-server/tools/aaveV3Repay.ts
|
|
42974
|
-
var
|
|
43341
|
+
var args6, tool$aaveV3Repay;
|
|
42975
43342
|
var init_aaveV3Repay2 = __esm(() => {
|
|
42976
43343
|
init_aaveV3Repay();
|
|
42977
43344
|
init_components();
|
|
42978
43345
|
init_tools();
|
|
42979
|
-
|
|
43346
|
+
args6 = {
|
|
42980
43347
|
request: AaveRepayRequest$inboundSchema
|
|
42981
43348
|
};
|
|
42982
43349
|
tool$aaveV3Repay = {
|
|
@@ -42991,9 +43358,9 @@ measure of the safety of their loan position. A higher health factor reduces the
|
|
|
42991
43358
|
risk of liquidation, ensuring a more secure borrowing experience. The endpoint
|
|
42992
43359
|
requires specifying the chain and the details of the repayment transaction,
|
|
42993
43360
|
including the amount and the asset to be repaid.`,
|
|
42994
|
-
args:
|
|
42995
|
-
tool: async (client,
|
|
42996
|
-
const [result, apiCall] = await aaveV3Repay(client,
|
|
43361
|
+
args: args6,
|
|
43362
|
+
tool: async (client, args7, ctx) => {
|
|
43363
|
+
const [result, apiCall] = await aaveV3Repay(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42997
43364
|
if (!result.ok) {
|
|
42998
43365
|
return {
|
|
42999
43366
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43008,9 +43375,9 @@ including the amount and the asset to be repaid.`,
|
|
|
43008
43375
|
|
|
43009
43376
|
// src/funcs/aaveV3ReserveOverview.ts
|
|
43010
43377
|
function aaveV3ReserveOverview(client, request, options) {
|
|
43011
|
-
return new APIPromise($
|
|
43378
|
+
return new APIPromise($do7(client, request, options));
|
|
43012
43379
|
}
|
|
43013
|
-
async function $
|
|
43380
|
+
async function $do7(client, request, options) {
|
|
43014
43381
|
const parsed = safeParse(request, (value) => AaveReserveOverviewRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43015
43382
|
if (!parsed.ok) {
|
|
43016
43383
|
return [parsed, { status: "invalid" }];
|
|
@@ -43084,12 +43451,12 @@ var init_aaveV3ReserveOverview = __esm(() => {
|
|
|
43084
43451
|
});
|
|
43085
43452
|
|
|
43086
43453
|
// src/mcp-server/tools/aaveV3ReserveOverview.ts
|
|
43087
|
-
var
|
|
43454
|
+
var args7, tool$aaveV3ReserveOverview;
|
|
43088
43455
|
var init_aaveV3ReserveOverview2 = __esm(() => {
|
|
43089
43456
|
init_aaveV3ReserveOverview();
|
|
43090
43457
|
init_operations();
|
|
43091
43458
|
init_tools();
|
|
43092
|
-
|
|
43459
|
+
args7 = {
|
|
43093
43460
|
request: AaveReserveOverviewRequest$inboundSchema
|
|
43094
43461
|
};
|
|
43095
43462
|
tool$aaveV3ReserveOverview = {
|
|
@@ -43102,9 +43469,116 @@ Returns key metrics for Aave Reserves:
|
|
|
43102
43469
|
- Utilization Ratio
|
|
43103
43470
|
|
|
43104
43471
|
See below for more info:`,
|
|
43105
|
-
args:
|
|
43106
|
-
tool: async (client,
|
|
43107
|
-
const [result, apiCall] = await aaveV3ReserveOverview(client,
|
|
43472
|
+
args: args7,
|
|
43473
|
+
tool: async (client, args8, ctx) => {
|
|
43474
|
+
const [result, apiCall] = await aaveV3ReserveOverview(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43475
|
+
if (!result.ok) {
|
|
43476
|
+
return {
|
|
43477
|
+
content: [{ type: "text", text: result.error.message }],
|
|
43478
|
+
isError: true
|
|
43479
|
+
};
|
|
43480
|
+
}
|
|
43481
|
+
const value = result.value;
|
|
43482
|
+
return formatResult(value, apiCall);
|
|
43483
|
+
}
|
|
43484
|
+
};
|
|
43485
|
+
});
|
|
43486
|
+
|
|
43487
|
+
// src/funcs/aaveV3StdRate.ts
|
|
43488
|
+
function aaveV3StdRate(client, request, options) {
|
|
43489
|
+
return new APIPromise($do8(client, request, options));
|
|
43490
|
+
}
|
|
43491
|
+
async function $do8(client, request, options) {
|
|
43492
|
+
const parsed = safeParse(request, (value) => AaveStdRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43493
|
+
if (!parsed.ok) {
|
|
43494
|
+
return [parsed, { status: "invalid" }];
|
|
43495
|
+
}
|
|
43496
|
+
const payload = parsed.value;
|
|
43497
|
+
const body = null;
|
|
43498
|
+
const path = pathToFunc("/v0/aave/std_rate/get")();
|
|
43499
|
+
const query = encodeFormQuery({
|
|
43500
|
+
chain: payload.chain,
|
|
43501
|
+
days: payload.days,
|
|
43502
|
+
token: payload.token
|
|
43503
|
+
});
|
|
43504
|
+
const headers = new Headers(compactMap({
|
|
43505
|
+
Accept: "application/json"
|
|
43506
|
+
}));
|
|
43507
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
43508
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
43509
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43510
|
+
const context = {
|
|
43511
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43512
|
+
operationID: "aave_std_rate",
|
|
43513
|
+
oAuth2Scopes: [],
|
|
43514
|
+
resolvedSecurity: requestSecurity,
|
|
43515
|
+
securitySource: client._options.apiKeyAuth,
|
|
43516
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
43517
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
43518
|
+
};
|
|
43519
|
+
const requestRes = client._createRequest(context, {
|
|
43520
|
+
security: requestSecurity,
|
|
43521
|
+
method: "GET",
|
|
43522
|
+
baseURL: options?.serverURL,
|
|
43523
|
+
path,
|
|
43524
|
+
headers,
|
|
43525
|
+
query,
|
|
43526
|
+
body,
|
|
43527
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43528
|
+
}, options);
|
|
43529
|
+
if (!requestRes.ok) {
|
|
43530
|
+
return [requestRes, { status: "invalid" }];
|
|
43531
|
+
}
|
|
43532
|
+
const req = requestRes.value;
|
|
43533
|
+
const doResult = await client._do(req, {
|
|
43534
|
+
context,
|
|
43535
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
43536
|
+
retryConfig: context.retryConfig,
|
|
43537
|
+
retryCodes: context.retryCodes
|
|
43538
|
+
});
|
|
43539
|
+
if (!doResult.ok) {
|
|
43540
|
+
return [doResult, { status: "request-error", request: req }];
|
|
43541
|
+
}
|
|
43542
|
+
const response = doResult.value;
|
|
43543
|
+
const responseFields = {
|
|
43544
|
+
HttpMeta: { Response: response, Request: req }
|
|
43545
|
+
};
|
|
43546
|
+
const [result] = await match(json(200, AaveSTDRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43547
|
+
if (!result.ok) {
|
|
43548
|
+
return [result, { status: "complete", request: req, response }];
|
|
43549
|
+
}
|
|
43550
|
+
return [result, { status: "complete", request: req, response }];
|
|
43551
|
+
}
|
|
43552
|
+
var init_aaveV3StdRate = __esm(() => {
|
|
43553
|
+
init_encodings();
|
|
43554
|
+
init_matchers();
|
|
43555
|
+
init_primitives();
|
|
43556
|
+
init_schemas();
|
|
43557
|
+
init_security();
|
|
43558
|
+
init_url();
|
|
43559
|
+
init_components();
|
|
43560
|
+
init_errors();
|
|
43561
|
+
init_operations();
|
|
43562
|
+
init_async();
|
|
43563
|
+
});
|
|
43564
|
+
|
|
43565
|
+
// src/mcp-server/tools/aaveV3StdRate.ts
|
|
43566
|
+
var args8, tool$aaveV3StdRate;
|
|
43567
|
+
var init_aaveV3StdRate2 = __esm(() => {
|
|
43568
|
+
init_aaveV3StdRate();
|
|
43569
|
+
init_operations();
|
|
43570
|
+
init_tools();
|
|
43571
|
+
args8 = {
|
|
43572
|
+
request: AaveStdRateRequest$inboundSchema
|
|
43573
|
+
};
|
|
43574
|
+
tool$aaveV3StdRate = {
|
|
43575
|
+
name: "aave-v3-std-rate",
|
|
43576
|
+
description: `Standard deviation of interest rates
|
|
43577
|
+
|
|
43578
|
+
Returns the standard deviation of Interest Rates for Aave Reserves over time:`,
|
|
43579
|
+
args: args8,
|
|
43580
|
+
tool: async (client, args9, ctx) => {
|
|
43581
|
+
const [result, apiCall] = await aaveV3StdRate(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43108
43582
|
if (!result.ok) {
|
|
43109
43583
|
return {
|
|
43110
43584
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43119,9 +43593,9 @@ See below for more info:`,
|
|
|
43119
43593
|
|
|
43120
43594
|
// src/funcs/aaveV3Supply.ts
|
|
43121
43595
|
function aaveV3Supply(client, request, options) {
|
|
43122
|
-
return new APIPromise($
|
|
43596
|
+
return new APIPromise($do9(client, request, options));
|
|
43123
43597
|
}
|
|
43124
|
-
async function $
|
|
43598
|
+
async function $do9(client, request, options) {
|
|
43125
43599
|
const parsed = safeParse(request, (value) => AaveSupplyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43126
43600
|
if (!parsed.ok) {
|
|
43127
43601
|
return [parsed, { status: "invalid" }];
|
|
@@ -43190,12 +43664,12 @@ var init_aaveV3Supply = __esm(() => {
|
|
|
43190
43664
|
});
|
|
43191
43665
|
|
|
43192
43666
|
// src/mcp-server/tools/aaveV3Supply.ts
|
|
43193
|
-
var
|
|
43667
|
+
var args9, tool$aaveV3Supply;
|
|
43194
43668
|
var init_aaveV3Supply2 = __esm(() => {
|
|
43195
43669
|
init_aaveV3Supply();
|
|
43196
43670
|
init_components();
|
|
43197
43671
|
init_tools();
|
|
43198
|
-
|
|
43672
|
+
args9 = {
|
|
43199
43673
|
request: AaveSupplyRequest$inboundSchema
|
|
43200
43674
|
};
|
|
43201
43675
|
tool$aaveV3Supply = {
|
|
@@ -43211,9 +43685,9 @@ create leverage.
|
|
|
43211
43685
|
Overall, this endpoint is a critical component for users looking to maximize their
|
|
43212
43686
|
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
43213
43687
|
borrowing flexibility.`,
|
|
43214
|
-
args:
|
|
43215
|
-
tool: async (client,
|
|
43216
|
-
const [result, apiCall] = await aaveV3Supply(client,
|
|
43688
|
+
args: args9,
|
|
43689
|
+
tool: async (client, args10, ctx) => {
|
|
43690
|
+
const [result, apiCall] = await aaveV3Supply(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43217
43691
|
if (!result.ok) {
|
|
43218
43692
|
return {
|
|
43219
43693
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43228,9 +43702,9 @@ borrowing flexibility.`,
|
|
|
43228
43702
|
|
|
43229
43703
|
// src/funcs/aaveV3TokenPrice.ts
|
|
43230
43704
|
function aaveV3TokenPrice(client, request, options) {
|
|
43231
|
-
return new APIPromise($
|
|
43705
|
+
return new APIPromise($do10(client, request, options));
|
|
43232
43706
|
}
|
|
43233
|
-
async function $
|
|
43707
|
+
async function $do10(client, request, options) {
|
|
43234
43708
|
const parsed = safeParse(request, (value) => AaveTokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43235
43709
|
if (!parsed.ok) {
|
|
43236
43710
|
return [parsed, { status: "invalid" }];
|
|
@@ -43304,12 +43778,12 @@ var init_aaveV3TokenPrice = __esm(() => {
|
|
|
43304
43778
|
});
|
|
43305
43779
|
|
|
43306
43780
|
// src/mcp-server/tools/aaveV3TokenPrice.ts
|
|
43307
|
-
var
|
|
43781
|
+
var args10, tool$aaveV3TokenPrice;
|
|
43308
43782
|
var init_aaveV3TokenPrice2 = __esm(() => {
|
|
43309
43783
|
init_aaveV3TokenPrice();
|
|
43310
43784
|
init_operations();
|
|
43311
43785
|
init_tools();
|
|
43312
|
-
|
|
43786
|
+
args10 = {
|
|
43313
43787
|
request: AaveTokenPriceRequest$inboundSchema
|
|
43314
43788
|
};
|
|
43315
43789
|
tool$aaveV3TokenPrice = {
|
|
@@ -43324,9 +43798,9 @@ to-date information. The request requires the token identifier and the blockchai
|
|
|
43324
43798
|
network (chain) on which the token resides. The response provides the token price in
|
|
43325
43799
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
43326
43800
|
Aave.`,
|
|
43327
|
-
args:
|
|
43328
|
-
tool: async (client,
|
|
43329
|
-
const [result, apiCall] = await aaveV3TokenPrice(client,
|
|
43801
|
+
args: args10,
|
|
43802
|
+
tool: async (client, args11, ctx) => {
|
|
43803
|
+
const [result, apiCall] = await aaveV3TokenPrice(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43330
43804
|
if (!result.ok) {
|
|
43331
43805
|
return {
|
|
43332
43806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43341,9 +43815,9 @@ Aave.`,
|
|
|
43341
43815
|
|
|
43342
43816
|
// src/funcs/aaveV3UserPositionPerToken.ts
|
|
43343
43817
|
function aaveV3UserPositionPerToken(client, request, options) {
|
|
43344
|
-
return new APIPromise($
|
|
43818
|
+
return new APIPromise($do11(client, request, options));
|
|
43345
43819
|
}
|
|
43346
|
-
async function $
|
|
43820
|
+
async function $do11(client, request, options) {
|
|
43347
43821
|
const parsed = safeParse(request, (value) => AaveUserPositionPerTokenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43348
43822
|
if (!parsed.ok) {
|
|
43349
43823
|
return [parsed, { status: "invalid" }];
|
|
@@ -43418,12 +43892,12 @@ var init_aaveV3UserPositionPerToken = __esm(() => {
|
|
|
43418
43892
|
});
|
|
43419
43893
|
|
|
43420
43894
|
// src/mcp-server/tools/aaveV3UserPositionPerToken.ts
|
|
43421
|
-
var
|
|
43895
|
+
var args11, tool$aaveV3UserPositionPerToken;
|
|
43422
43896
|
var init_aaveV3UserPositionPerToken2 = __esm(() => {
|
|
43423
43897
|
init_aaveV3UserPositionPerToken();
|
|
43424
43898
|
init_operations();
|
|
43425
43899
|
init_tools();
|
|
43426
|
-
|
|
43900
|
+
args11 = {
|
|
43427
43901
|
request: AaveUserPositionPerTokenRequest$inboundSchema
|
|
43428
43902
|
};
|
|
43429
43903
|
tool$aaveV3UserPositionPerToken = {
|
|
@@ -43439,9 +43913,9 @@ stable borrow rate, stable borrow rate for new loans, variable borrow rate, and
|
|
|
43439
43913
|
liquidity rate. These metrics are calculated by aggregating data across all open
|
|
43440
43914
|
positions held by the user for the specified token, offering a detailed view of
|
|
43441
43915
|
their financial standing within the AAVE ecosystem.`,
|
|
43442
|
-
args:
|
|
43443
|
-
tool: async (client,
|
|
43444
|
-
const [result, apiCall] = await aaveV3UserPositionPerToken(client,
|
|
43916
|
+
args: args11,
|
|
43917
|
+
tool: async (client, args12, ctx) => {
|
|
43918
|
+
const [result, apiCall] = await aaveV3UserPositionPerToken(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43445
43919
|
if (!result.ok) {
|
|
43446
43920
|
return {
|
|
43447
43921
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43456,9 +43930,9 @@ their financial standing within the AAVE ecosystem.`,
|
|
|
43456
43930
|
|
|
43457
43931
|
// src/funcs/aaveV3UserPositionSummary.ts
|
|
43458
43932
|
function aaveV3UserPositionSummary(client, request, options) {
|
|
43459
|
-
return new APIPromise($
|
|
43933
|
+
return new APIPromise($do12(client, request, options));
|
|
43460
43934
|
}
|
|
43461
|
-
async function $
|
|
43935
|
+
async function $do12(client, request, options) {
|
|
43462
43936
|
const parsed = safeParse(request, (value) => AaveUserPositionSummaryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43463
43937
|
if (!parsed.ok) {
|
|
43464
43938
|
return [parsed, { status: "invalid" }];
|
|
@@ -43532,12 +44006,12 @@ var init_aaveV3UserPositionSummary = __esm(() => {
|
|
|
43532
44006
|
});
|
|
43533
44007
|
|
|
43534
44008
|
// src/mcp-server/tools/aaveV3UserPositionSummary.ts
|
|
43535
|
-
var
|
|
44009
|
+
var args12, tool$aaveV3UserPositionSummary;
|
|
43536
44010
|
var init_aaveV3UserPositionSummary2 = __esm(() => {
|
|
43537
44011
|
init_aaveV3UserPositionSummary();
|
|
43538
44012
|
init_operations();
|
|
43539
44013
|
init_tools();
|
|
43540
|
-
|
|
44014
|
+
args12 = {
|
|
43541
44015
|
request: AaveUserPositionSummaryRequest$inboundSchema
|
|
43542
44016
|
};
|
|
43543
44017
|
tool$aaveV3UserPositionSummary = {
|
|
@@ -43552,9 +44026,9 @@ debt accrued, available borrowing capacity, liquidation threshold, maximum loan-
|
|
|
43552
44026
|
value ratio, and the health factor of the user's account. These metrics are
|
|
43553
44027
|
calculated by aggregating data across all open positions held by the user, offering
|
|
43554
44028
|
a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
43555
|
-
args:
|
|
43556
|
-
tool: async (client,
|
|
43557
|
-
const [result, apiCall] = await aaveV3UserPositionSummary(client,
|
|
44029
|
+
args: args12,
|
|
44030
|
+
tool: async (client, args13, ctx) => {
|
|
44031
|
+
const [result, apiCall] = await aaveV3UserPositionSummary(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43558
44032
|
if (!result.ok) {
|
|
43559
44033
|
return {
|
|
43560
44034
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43569,9 +44043,9 @@ a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
|
43569
44043
|
|
|
43570
44044
|
// src/funcs/aaveV3Withdraw.ts
|
|
43571
44045
|
function aaveV3Withdraw(client, request, options) {
|
|
43572
|
-
return new APIPromise($
|
|
44046
|
+
return new APIPromise($do13(client, request, options));
|
|
43573
44047
|
}
|
|
43574
|
-
async function $
|
|
44048
|
+
async function $do13(client, request, options) {
|
|
43575
44049
|
const parsed = safeParse(request, (value) => AaveWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43576
44050
|
if (!parsed.ok) {
|
|
43577
44051
|
return [parsed, { status: "invalid" }];
|
|
@@ -43640,12 +44114,12 @@ var init_aaveV3Withdraw = __esm(() => {
|
|
|
43640
44114
|
});
|
|
43641
44115
|
|
|
43642
44116
|
// src/mcp-server/tools/aaveV3Withdraw.ts
|
|
43643
|
-
var
|
|
44117
|
+
var args13, tool$aaveV3Withdraw;
|
|
43644
44118
|
var init_aaveV3Withdraw2 = __esm(() => {
|
|
43645
44119
|
init_aaveV3Withdraw();
|
|
43646
44120
|
init_components();
|
|
43647
44121
|
init_tools();
|
|
43648
|
-
|
|
44122
|
+
args13 = {
|
|
43649
44123
|
request: AaveWithdrawRequest$inboundSchema
|
|
43650
44124
|
};
|
|
43651
44125
|
tool$aaveV3Withdraw = {
|
|
@@ -43661,9 +44135,9 @@ for users to carefully consider their outstanding debts and the potential impact
|
|
|
43661
44135
|
their liquidation threshold before proceeding with a withdrawal. This endpoint is
|
|
43662
44136
|
designed to provide a seamless and efficient way to manage your collateral within
|
|
43663
44137
|
the Aave ecosystem.`,
|
|
43664
|
-
args:
|
|
43665
|
-
tool: async (client,
|
|
43666
|
-
const [result, apiCall] = await aaveV3Withdraw(client,
|
|
44138
|
+
args: args13,
|
|
44139
|
+
tool: async (client, args14, ctx) => {
|
|
44140
|
+
const [result, apiCall] = await aaveV3Withdraw(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43667
44141
|
if (!result.ok) {
|
|
43668
44142
|
return {
|
|
43669
44143
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43678,9 +44152,9 @@ the Aave ecosystem.`,
|
|
|
43678
44152
|
|
|
43679
44153
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43680
44154
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, request, options) {
|
|
43681
|
-
return new APIPromise($
|
|
44155
|
+
return new APIPromise($do14(client, request, options));
|
|
43682
44156
|
}
|
|
43683
|
-
async function $
|
|
44157
|
+
async function $do14(client, request, options) {
|
|
43684
44158
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43685
44159
|
if (!parsed.ok) {
|
|
43686
44160
|
return [parsed, { status: "invalid" }];
|
|
@@ -43749,12 +44223,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = __esm(() => {
|
|
|
43749
44223
|
});
|
|
43750
44224
|
|
|
43751
44225
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43752
|
-
var
|
|
44226
|
+
var args14, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease;
|
|
43753
44227
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease2 = __esm(() => {
|
|
43754
44228
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease();
|
|
43755
44229
|
init_components();
|
|
43756
44230
|
init_tools();
|
|
43757
|
-
|
|
44231
|
+
args14 = {
|
|
43758
44232
|
request: AerodromeSlipstreamIncreaseLiquidityProvisionRequest$inboundSchema
|
|
43759
44233
|
};
|
|
43760
44234
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = {
|
|
@@ -43772,9 +44246,9 @@ users with updated information about their enhanced position. This functionality
|
|
|
43772
44246
|
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
43773
44247
|
to adapt to market conditions and maximize their returns in decentralized finance
|
|
43774
44248
|
(DeFi) markets.`,
|
|
43775
|
-
args:
|
|
43776
|
-
tool: async (client,
|
|
43777
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client,
|
|
44249
|
+
args: args14,
|
|
44250
|
+
tool: async (client, args15, ctx) => {
|
|
44251
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43778
44252
|
if (!result.ok) {
|
|
43779
44253
|
return {
|
|
43780
44254
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43789,9 +44263,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
43789
44263
|
|
|
43790
44264
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43791
44265
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, request, options) {
|
|
43792
|
-
return new APIPromise($
|
|
44266
|
+
return new APIPromise($do15(client, request, options));
|
|
43793
44267
|
}
|
|
43794
|
-
async function $
|
|
44268
|
+
async function $do15(client, request, options) {
|
|
43795
44269
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43796
44270
|
if (!parsed.ok) {
|
|
43797
44271
|
return [parsed, { status: "invalid" }];
|
|
@@ -43860,12 +44334,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint = __esm(() => {
|
|
|
43860
44334
|
});
|
|
43861
44335
|
|
|
43862
44336
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43863
|
-
var
|
|
44337
|
+
var args15, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint;
|
|
43864
44338
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint2 = __esm(() => {
|
|
43865
44339
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint();
|
|
43866
44340
|
init_components();
|
|
43867
44341
|
init_tools();
|
|
43868
|
-
|
|
44342
|
+
args15 = {
|
|
43869
44343
|
request: AerodromeSlipstreamMintLiquidityProvisionRequest$inboundSchema
|
|
43870
44344
|
};
|
|
43871
44345
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint = {
|
|
@@ -43881,9 +44355,9 @@ confirm the successful creation of the LP position, providing users with the
|
|
|
43881
44355
|
necessary information to manage their newly minted position. This functionality is
|
|
43882
44356
|
crucial for users looking to expand their liquidity provision activities, offering
|
|
43883
44357
|
them the opportunity to engage in decentralized finance (DeFi) markets effectively.`,
|
|
43884
|
-
args:
|
|
43885
|
-
tool: async (client,
|
|
43886
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client,
|
|
44358
|
+
args: args15,
|
|
44359
|
+
tool: async (client, args16, ctx) => {
|
|
44360
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43887
44361
|
if (!result.ok) {
|
|
43888
44362
|
return {
|
|
43889
44363
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43898,9 +44372,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
43898
44372
|
|
|
43899
44373
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43900
44374
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, request, options) {
|
|
43901
|
-
return new APIPromise($
|
|
44375
|
+
return new APIPromise($do16(client, request, options));
|
|
43902
44376
|
}
|
|
43903
|
-
async function $
|
|
44377
|
+
async function $do16(client, request, options) {
|
|
43904
44378
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43905
44379
|
if (!parsed.ok) {
|
|
43906
44380
|
return [parsed, { status: "invalid" }];
|
|
@@ -43974,12 +44448,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = __esm(() =>
|
|
|
43974
44448
|
});
|
|
43975
44449
|
|
|
43976
44450
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43977
|
-
var
|
|
44451
|
+
var args16, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions;
|
|
43978
44452
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions2 = __esm(() => {
|
|
43979
44453
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions();
|
|
43980
44454
|
init_operations();
|
|
43981
44455
|
init_tools();
|
|
43982
|
-
|
|
44456
|
+
args16 = {
|
|
43983
44457
|
request: AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema
|
|
43984
44458
|
};
|
|
43985
44459
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = {
|
|
@@ -43995,9 +44469,9 @@ AerodromeLPPositionsInfo, provides a structured representation of the LP positio
|
|
|
43995
44469
|
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
43996
44470
|
managing their liquidity provision activities, enabling them to make informed
|
|
43997
44471
|
decisions based on their current positions.`,
|
|
43998
|
-
args:
|
|
43999
|
-
tool: async (client,
|
|
44000
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client,
|
|
44472
|
+
args: args16,
|
|
44473
|
+
tool: async (client, args17, ctx) => {
|
|
44474
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44001
44475
|
if (!result.ok) {
|
|
44002
44476
|
return {
|
|
44003
44477
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44012,9 +44486,9 @@ decisions based on their current positions.`,
|
|
|
44012
44486
|
|
|
44013
44487
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
44014
44488
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, request, options) {
|
|
44015
|
-
return new APIPromise($
|
|
44489
|
+
return new APIPromise($do17(client, request, options));
|
|
44016
44490
|
}
|
|
44017
|
-
async function $
|
|
44491
|
+
async function $do17(client, request, options) {
|
|
44018
44492
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44019
44493
|
if (!parsed.ok) {
|
|
44020
44494
|
return [parsed, { status: "invalid" }];
|
|
@@ -44083,12 +44557,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = __esm(() => {
|
|
|
44083
44557
|
});
|
|
44084
44558
|
|
|
44085
44559
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
44086
|
-
var
|
|
44560
|
+
var args17, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw;
|
|
44087
44561
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw2 = __esm(() => {
|
|
44088
44562
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw();
|
|
44089
44563
|
init_components();
|
|
44090
44564
|
init_tools();
|
|
44091
|
-
|
|
44565
|
+
args17 = {
|
|
44092
44566
|
request: AerodromeSlipstreamWithdrawLiquidityProvisionRequest$inboundSchema
|
|
44093
44567
|
};
|
|
44094
44568
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = {
|
|
@@ -44106,9 +44580,9 @@ wish to exit their liquidity provision activities, enabling them to reclaim thei
|
|
|
44106
44580
|
assets and potentially reallocate them to other investment opportunities. The
|
|
44107
44581
|
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
44108
44582
|
strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
44109
|
-
args:
|
|
44110
|
-
tool: async (client,
|
|
44111
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client,
|
|
44583
|
+
args: args17,
|
|
44584
|
+
tool: async (client, args18, ctx) => {
|
|
44585
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44112
44586
|
if (!result.ok) {
|
|
44113
44587
|
return {
|
|
44114
44588
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44123,9 +44597,9 @@ strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
|
44123
44597
|
|
|
44124
44598
|
// src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
44125
44599
|
function aerodromeSlipstreamSlipstreamPoolPrice(client, request, options) {
|
|
44126
|
-
return new APIPromise($
|
|
44600
|
+
return new APIPromise($do18(client, request, options));
|
|
44127
44601
|
}
|
|
44128
|
-
async function $
|
|
44602
|
+
async function $do18(client, request, options) {
|
|
44129
44603
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44130
44604
|
if (!parsed.ok) {
|
|
44131
44605
|
return [parsed, { status: "invalid" }];
|
|
@@ -44201,12 +44675,12 @@ var init_aerodromeSlipstreamSlipstreamPoolPrice = __esm(() => {
|
|
|
44201
44675
|
});
|
|
44202
44676
|
|
|
44203
44677
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
44204
|
-
var
|
|
44678
|
+
var args18, tool$aerodromeSlipstreamSlipstreamPoolPrice;
|
|
44205
44679
|
var init_aerodromeSlipstreamSlipstreamPoolPrice2 = __esm(() => {
|
|
44206
44680
|
init_aerodromeSlipstreamSlipstreamPoolPrice();
|
|
44207
44681
|
init_operations();
|
|
44208
44682
|
init_tools();
|
|
44209
|
-
|
|
44683
|
+
args18 = {
|
|
44210
44684
|
request: AerodromeSlipstreamPoolPriceRequest$inboundSchema
|
|
44211
44685
|
};
|
|
44212
44686
|
tool$aerodromeSlipstreamSlipstreamPoolPrice = {
|
|
@@ -44219,9 +44693,9 @@ you can purchase for 1 token1.
|
|
|
44219
44693
|
Note that this is an instantaneous price and may change during any trade. For a more
|
|
44220
44694
|
accurate representation of the trade ratios between the two assets, consider using
|
|
44221
44695
|
the quote endpoint.`,
|
|
44222
|
-
args:
|
|
44223
|
-
tool: async (client,
|
|
44224
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client,
|
|
44696
|
+
args: args18,
|
|
44697
|
+
tool: async (client, args19, ctx) => {
|
|
44698
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44225
44699
|
if (!result.ok) {
|
|
44226
44700
|
return {
|
|
44227
44701
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44236,9 +44710,9 @@ the quote endpoint.`,
|
|
|
44236
44710
|
|
|
44237
44711
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
44238
44712
|
function aerodromeSlipstreamSlipstreamSwapBuyExactly(client, request, options) {
|
|
44239
|
-
return new APIPromise($
|
|
44713
|
+
return new APIPromise($do19(client, request, options));
|
|
44240
44714
|
}
|
|
44241
|
-
async function $
|
|
44715
|
+
async function $do19(client, request, options) {
|
|
44242
44716
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44243
44717
|
if (!parsed.ok) {
|
|
44244
44718
|
return [parsed, { status: "invalid" }];
|
|
@@ -44307,12 +44781,12 @@ var init_aerodromeSlipstreamSlipstreamSwapBuyExactly = __esm(() => {
|
|
|
44307
44781
|
});
|
|
44308
44782
|
|
|
44309
44783
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
44310
|
-
var
|
|
44784
|
+
var args19, tool$aerodromeSlipstreamSlipstreamSwapBuyExactly;
|
|
44311
44785
|
var init_aerodromeSlipstreamSlipstreamSwapBuyExactly2 = __esm(() => {
|
|
44312
44786
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly();
|
|
44313
44787
|
init_components();
|
|
44314
44788
|
init_tools();
|
|
44315
|
-
|
|
44789
|
+
args19 = {
|
|
44316
44790
|
request: AerodromeSlipstreamBuyExactlyRequest$inboundSchema
|
|
44317
44791
|
};
|
|
44318
44792
|
tool$aerodromeSlipstreamSlipstreamSwapBuyExactly = {
|
|
@@ -44329,9 +44803,9 @@ in mind and are willing to provide the corresponding input token amount. The
|
|
|
44329
44803
|
transaction is executed with consideration of current market conditions, including
|
|
44330
44804
|
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
44331
44805
|
effectively.`,
|
|
44332
|
-
args:
|
|
44333
|
-
tool: async (client,
|
|
44334
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client,
|
|
44806
|
+
args: args19,
|
|
44807
|
+
tool: async (client, args20, ctx) => {
|
|
44808
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44335
44809
|
if (!result.ok) {
|
|
44336
44810
|
return {
|
|
44337
44811
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44346,9 +44820,9 @@ effectively.`,
|
|
|
44346
44820
|
|
|
44347
44821
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
44348
44822
|
function aerodromeSlipstreamSlipstreamSwapSellExactly(client, request, options) {
|
|
44349
|
-
return new APIPromise($
|
|
44823
|
+
return new APIPromise($do20(client, request, options));
|
|
44350
44824
|
}
|
|
44351
|
-
async function $
|
|
44825
|
+
async function $do20(client, request, options) {
|
|
44352
44826
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44353
44827
|
if (!parsed.ok) {
|
|
44354
44828
|
return [parsed, { status: "invalid" }];
|
|
@@ -44417,12 +44891,12 @@ var init_aerodromeSlipstreamSlipstreamSwapSellExactly = __esm(() => {
|
|
|
44417
44891
|
});
|
|
44418
44892
|
|
|
44419
44893
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
44420
|
-
var
|
|
44894
|
+
var args20, tool$aerodromeSlipstreamSlipstreamSwapSellExactly;
|
|
44421
44895
|
var init_aerodromeSlipstreamSlipstreamSwapSellExactly2 = __esm(() => {
|
|
44422
44896
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly();
|
|
44423
44897
|
init_components();
|
|
44424
44898
|
init_tools();
|
|
44425
|
-
|
|
44899
|
+
args20 = {
|
|
44426
44900
|
request: AerodromeSlipstreamSellExactlyRequest$inboundSchema
|
|
44427
44901
|
};
|
|
44428
44902
|
tool$aerodromeSlipstreamSlipstreamSwapSellExactly = {
|
|
@@ -44438,9 +44912,9 @@ received. The operation ensures that the trade is conducted within the constrain
|
|
|
44438
44912
|
of the current market conditions, taking into account the liquidity and price
|
|
44439
44913
|
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
44440
44914
|
token and are willing to accept the resulting amount of the other token.`,
|
|
44441
|
-
args:
|
|
44442
|
-
tool: async (client,
|
|
44443
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client,
|
|
44915
|
+
args: args20,
|
|
44916
|
+
tool: async (client, args21, ctx) => {
|
|
44917
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44444
44918
|
if (!result.ok) {
|
|
44445
44919
|
return {
|
|
44446
44920
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44455,9 +44929,9 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
44455
44929
|
|
|
44456
44930
|
// src/funcs/morphoAllowance.ts
|
|
44457
44931
|
function morphoAllowance(client, request, options) {
|
|
44458
|
-
return new APIPromise($
|
|
44932
|
+
return new APIPromise($do21(client, request, options));
|
|
44459
44933
|
}
|
|
44460
|
-
async function $
|
|
44934
|
+
async function $do21(client, request, options) {
|
|
44461
44935
|
const parsed = safeParse(request, (value) => MorphoSetVaultAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44462
44936
|
if (!parsed.ok) {
|
|
44463
44937
|
return [parsed, { status: "invalid" }];
|
|
@@ -44526,12 +45000,12 @@ var init_morphoAllowance = __esm(() => {
|
|
|
44526
45000
|
});
|
|
44527
45001
|
|
|
44528
45002
|
// src/mcp-server/tools/morphoAllowance.ts
|
|
44529
|
-
var
|
|
45003
|
+
var args21, tool$morphoAllowance;
|
|
44530
45004
|
var init_morphoAllowance2 = __esm(() => {
|
|
44531
45005
|
init_morphoAllowance();
|
|
44532
45006
|
init_components();
|
|
44533
45007
|
init_tools();
|
|
44534
|
-
|
|
45008
|
+
args21 = {
|
|
44535
45009
|
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
44536
45010
|
};
|
|
44537
45011
|
tool$morphoAllowance = {
|
|
@@ -44543,9 +45017,9 @@ Set an allowance for a Morpho vault. You must set this for at least the amount y
|
|
|
44543
45017
|
Each vault has only one associated token that can be deposited.
|
|
44544
45018
|
|
|
44545
45019
|
Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
44546
|
-
args:
|
|
44547
|
-
tool: async (client,
|
|
44548
|
-
const [result, apiCall] = await morphoAllowance(client,
|
|
45020
|
+
args: args21,
|
|
45021
|
+
tool: async (client, args22, ctx) => {
|
|
45022
|
+
const [result, apiCall] = await morphoAllowance(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44549
45023
|
if (!result.ok) {
|
|
44550
45024
|
return {
|
|
44551
45025
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44560,9 +45034,9 @@ Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
|
44560
45034
|
|
|
44561
45035
|
// src/funcs/morphoBorrow.ts
|
|
44562
45036
|
function morphoBorrow(client, request, options) {
|
|
44563
|
-
return new APIPromise($
|
|
45037
|
+
return new APIPromise($do22(client, request, options));
|
|
44564
45038
|
}
|
|
44565
|
-
async function $
|
|
45039
|
+
async function $do22(client, request, options) {
|
|
44566
45040
|
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44567
45041
|
if (!parsed.ok) {
|
|
44568
45042
|
return [parsed, { status: "invalid" }];
|
|
@@ -44631,12 +45105,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
44631
45105
|
});
|
|
44632
45106
|
|
|
44633
45107
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
44634
|
-
var
|
|
45108
|
+
var args22, tool$morphoBorrow;
|
|
44635
45109
|
var init_morphoBorrow2 = __esm(() => {
|
|
44636
45110
|
init_morphoBorrow();
|
|
44637
45111
|
init_components();
|
|
44638
45112
|
init_tools();
|
|
44639
|
-
|
|
45113
|
+
args22 = {
|
|
44640
45114
|
request: MorphoBorrowRequest$inboundSchema
|
|
44641
45115
|
};
|
|
44642
45116
|
tool$morphoBorrow = {
|
|
@@ -44652,9 +45126,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44652
45126
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44653
45127
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44654
45128
|
as long as the blockchain it is deployed on is live.`,
|
|
44655
|
-
args:
|
|
44656
|
-
tool: async (client,
|
|
44657
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
45129
|
+
args: args22,
|
|
45130
|
+
tool: async (client, args23, ctx) => {
|
|
45131
|
+
const [result, apiCall] = await morphoBorrow(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44658
45132
|
if (!result.ok) {
|
|
44659
45133
|
return {
|
|
44660
45134
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44669,9 +45143,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44669
45143
|
|
|
44670
45144
|
// src/funcs/morphoDeposit.ts
|
|
44671
45145
|
function morphoDeposit(client, request, options) {
|
|
44672
|
-
return new APIPromise($
|
|
45146
|
+
return new APIPromise($do23(client, request, options));
|
|
44673
45147
|
}
|
|
44674
|
-
async function $
|
|
45148
|
+
async function $do23(client, request, options) {
|
|
44675
45149
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44676
45150
|
if (!parsed.ok) {
|
|
44677
45151
|
return [parsed, { status: "invalid" }];
|
|
@@ -44740,12 +45214,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
44740
45214
|
});
|
|
44741
45215
|
|
|
44742
45216
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
44743
|
-
var
|
|
45217
|
+
var args23, tool$morphoDeposit;
|
|
44744
45218
|
var init_morphoDeposit2 = __esm(() => {
|
|
44745
45219
|
init_morphoDeposit();
|
|
44746
45220
|
init_components();
|
|
44747
45221
|
init_tools();
|
|
44748
|
-
|
|
45222
|
+
args23 = {
|
|
44749
45223
|
request: MorphoDepositRequest$inboundSchema
|
|
44750
45224
|
};
|
|
44751
45225
|
tool$morphoDeposit = {
|
|
@@ -44763,9 +45237,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
44763
45237
|
exposure for all deposited assets so users don't need to make these decisions
|
|
44764
45238
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
44765
45239
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
44766
|
-
args:
|
|
44767
|
-
tool: async (client,
|
|
44768
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
45240
|
+
args: args23,
|
|
45241
|
+
tool: async (client, args24, ctx) => {
|
|
45242
|
+
const [result, apiCall] = await morphoDeposit(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44769
45243
|
if (!result.ok) {
|
|
44770
45244
|
return {
|
|
44771
45245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44780,9 +45254,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
44780
45254
|
|
|
44781
45255
|
// src/funcs/morphoMarketPosition.ts
|
|
44782
45256
|
function morphoMarketPosition(client, request, options) {
|
|
44783
|
-
return new APIPromise($
|
|
45257
|
+
return new APIPromise($do24(client, request, options));
|
|
44784
45258
|
}
|
|
44785
|
-
async function $
|
|
45259
|
+
async function $do24(client, request, options) {
|
|
44786
45260
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44787
45261
|
if (!parsed.ok) {
|
|
44788
45262
|
return [parsed, { status: "invalid" }];
|
|
@@ -44857,12 +45331,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
44857
45331
|
});
|
|
44858
45332
|
|
|
44859
45333
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
44860
|
-
var
|
|
45334
|
+
var args24, tool$morphoMarketPosition;
|
|
44861
45335
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
44862
45336
|
init_morphoMarketPosition();
|
|
44863
45337
|
init_operations();
|
|
44864
45338
|
init_tools();
|
|
44865
|
-
|
|
45339
|
+
args24 = {
|
|
44866
45340
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
44867
45341
|
};
|
|
44868
45342
|
tool$morphoMarketPosition = {
|
|
@@ -44871,9 +45345,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
44871
45345
|
|
|
44872
45346
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
44873
45347
|
market.`,
|
|
44874
|
-
args:
|
|
44875
|
-
tool: async (client,
|
|
44876
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
45348
|
+
args: args24,
|
|
45349
|
+
tool: async (client, args25, ctx) => {
|
|
45350
|
+
const [result, apiCall] = await morphoMarketPosition(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44877
45351
|
if (!result.ok) {
|
|
44878
45352
|
return {
|
|
44879
45353
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44888,9 +45362,9 @@ market.`,
|
|
|
44888
45362
|
|
|
44889
45363
|
// src/funcs/morphoMarkets.ts
|
|
44890
45364
|
function morphoMarkets(client, request, options) {
|
|
44891
|
-
return new APIPromise($
|
|
45365
|
+
return new APIPromise($do25(client, request, options));
|
|
44892
45366
|
}
|
|
44893
|
-
async function $
|
|
45367
|
+
async function $do25(client, request, options) {
|
|
44894
45368
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44895
45369
|
if (!parsed.ok) {
|
|
44896
45370
|
return [parsed, { status: "invalid" }];
|
|
@@ -44965,12 +45439,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
44965
45439
|
});
|
|
44966
45440
|
|
|
44967
45441
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
44968
|
-
var
|
|
45442
|
+
var args25, tool$morphoMarkets;
|
|
44969
45443
|
var init_morphoMarkets2 = __esm(() => {
|
|
44970
45444
|
init_morphoMarkets();
|
|
44971
45445
|
init_operations();
|
|
44972
45446
|
init_tools();
|
|
44973
|
-
|
|
45447
|
+
args25 = {
|
|
44974
45448
|
request: MorphoMarketsRequest$inboundSchema
|
|
44975
45449
|
};
|
|
44976
45450
|
tool$morphoMarkets = {
|
|
@@ -44981,9 +45455,9 @@ Query a list of markets you can borrow from.
|
|
|
44981
45455
|
|
|
44982
45456
|
Each market has one unique token that can be borrowed against one unique token that
|
|
44983
45457
|
can be used as collateral.`,
|
|
44984
|
-
args:
|
|
44985
|
-
tool: async (client,
|
|
44986
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
45458
|
+
args: args25,
|
|
45459
|
+
tool: async (client, args26, ctx) => {
|
|
45460
|
+
const [result, apiCall] = await morphoMarkets(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44987
45461
|
if (!result.ok) {
|
|
44988
45462
|
return {
|
|
44989
45463
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44998,9 +45472,9 @@ can be used as collateral.`,
|
|
|
44998
45472
|
|
|
44999
45473
|
// src/funcs/morphoRepay.ts
|
|
45000
45474
|
function morphoRepay(client, request, options) {
|
|
45001
|
-
return new APIPromise($
|
|
45475
|
+
return new APIPromise($do26(client, request, options));
|
|
45002
45476
|
}
|
|
45003
|
-
async function $
|
|
45477
|
+
async function $do26(client, request, options) {
|
|
45004
45478
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45005
45479
|
if (!parsed.ok) {
|
|
45006
45480
|
return [parsed, { status: "invalid" }];
|
|
@@ -45069,12 +45543,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
45069
45543
|
});
|
|
45070
45544
|
|
|
45071
45545
|
// src/mcp-server/tools/morphoRepay.ts
|
|
45072
|
-
var
|
|
45546
|
+
var args26, tool$morphoRepay;
|
|
45073
45547
|
var init_morphoRepay2 = __esm(() => {
|
|
45074
45548
|
init_morphoRepay();
|
|
45075
45549
|
init_components();
|
|
45076
45550
|
init_tools();
|
|
45077
|
-
|
|
45551
|
+
args26 = {
|
|
45078
45552
|
request: MorphoRepayRequest$inboundSchema
|
|
45079
45553
|
};
|
|
45080
45554
|
tool$morphoRepay = {
|
|
@@ -45087,9 +45561,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45087
45561
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45088
45562
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45089
45563
|
as long as the blockchain it is deployed on is live.`,
|
|
45090
|
-
args:
|
|
45091
|
-
tool: async (client,
|
|
45092
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
45564
|
+
args: args26,
|
|
45565
|
+
tool: async (client, args27, ctx) => {
|
|
45566
|
+
const [result, apiCall] = await morphoRepay(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45093
45567
|
if (!result.ok) {
|
|
45094
45568
|
return {
|
|
45095
45569
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45104,9 +45578,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45104
45578
|
|
|
45105
45579
|
// src/funcs/morphoSupplyCollateral.ts
|
|
45106
45580
|
function morphoSupplyCollateral(client, request, options) {
|
|
45107
|
-
return new APIPromise($
|
|
45581
|
+
return new APIPromise($do27(client, request, options));
|
|
45108
45582
|
}
|
|
45109
|
-
async function $
|
|
45583
|
+
async function $do27(client, request, options) {
|
|
45110
45584
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45111
45585
|
if (!parsed.ok) {
|
|
45112
45586
|
return [parsed, { status: "invalid" }];
|
|
@@ -45175,12 +45649,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
45175
45649
|
});
|
|
45176
45650
|
|
|
45177
45651
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
45178
|
-
var
|
|
45652
|
+
var args27, tool$morphoSupplyCollateral;
|
|
45179
45653
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
45180
45654
|
init_morphoSupplyCollateral();
|
|
45181
45655
|
init_components();
|
|
45182
45656
|
init_tools();
|
|
45183
|
-
|
|
45657
|
+
args27 = {
|
|
45184
45658
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
45185
45659
|
};
|
|
45186
45660
|
tool$morphoSupplyCollateral = {
|
|
@@ -45193,9 +45667,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45193
45667
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45194
45668
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45195
45669
|
as long as the blockchain it is deployed on is live.`,
|
|
45196
|
-
args:
|
|
45197
|
-
tool: async (client,
|
|
45198
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
45670
|
+
args: args27,
|
|
45671
|
+
tool: async (client, args28, ctx) => {
|
|
45672
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45199
45673
|
if (!result.ok) {
|
|
45200
45674
|
return {
|
|
45201
45675
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45210,9 +45684,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45210
45684
|
|
|
45211
45685
|
// src/funcs/morphoVaultPosition.ts
|
|
45212
45686
|
function morphoVaultPosition(client, request, options) {
|
|
45213
|
-
return new APIPromise($
|
|
45687
|
+
return new APIPromise($do28(client, request, options));
|
|
45214
45688
|
}
|
|
45215
|
-
async function $
|
|
45689
|
+
async function $do28(client, request, options) {
|
|
45216
45690
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45217
45691
|
if (!parsed.ok) {
|
|
45218
45692
|
return [parsed, { status: "invalid" }];
|
|
@@ -45287,12 +45761,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
45287
45761
|
});
|
|
45288
45762
|
|
|
45289
45763
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
45290
|
-
var
|
|
45764
|
+
var args28, tool$morphoVaultPosition;
|
|
45291
45765
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
45292
45766
|
init_morphoVaultPosition();
|
|
45293
45767
|
init_operations();
|
|
45294
45768
|
init_tools();
|
|
45295
|
-
|
|
45769
|
+
args28 = {
|
|
45296
45770
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
45297
45771
|
};
|
|
45298
45772
|
tool$morphoVaultPosition = {
|
|
@@ -45301,9 +45775,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
45301
45775
|
|
|
45302
45776
|
Check how many shares you own and the equivalent token amount of a given
|
|
45303
45777
|
vault.`,
|
|
45304
|
-
args:
|
|
45305
|
-
tool: async (client,
|
|
45306
|
-
const [result, apiCall] = await morphoVaultPosition(client,
|
|
45778
|
+
args: args28,
|
|
45779
|
+
tool: async (client, args29, ctx) => {
|
|
45780
|
+
const [result, apiCall] = await morphoVaultPosition(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45307
45781
|
if (!result.ok) {
|
|
45308
45782
|
return {
|
|
45309
45783
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45318,9 +45792,9 @@ vault.`,
|
|
|
45318
45792
|
|
|
45319
45793
|
// src/funcs/morphoVaults.ts
|
|
45320
45794
|
function morphoVaults(client, request, options) {
|
|
45321
|
-
return new APIPromise($
|
|
45795
|
+
return new APIPromise($do29(client, request, options));
|
|
45322
45796
|
}
|
|
45323
|
-
async function $
|
|
45797
|
+
async function $do29(client, request, options) {
|
|
45324
45798
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45325
45799
|
if (!parsed.ok) {
|
|
45326
45800
|
return [parsed, { status: "invalid" }];
|
|
@@ -45394,12 +45868,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
45394
45868
|
});
|
|
45395
45869
|
|
|
45396
45870
|
// src/mcp-server/tools/morphoVaults.ts
|
|
45397
|
-
var
|
|
45871
|
+
var args29, tool$morphoVaults;
|
|
45398
45872
|
var init_morphoVaults2 = __esm(() => {
|
|
45399
45873
|
init_morphoVaults();
|
|
45400
45874
|
init_operations();
|
|
45401
45875
|
init_tools();
|
|
45402
|
-
|
|
45876
|
+
args29 = {
|
|
45403
45877
|
request: MorphoVaultsRequest$inboundSchema
|
|
45404
45878
|
};
|
|
45405
45879
|
tool$morphoVaults = {
|
|
@@ -45411,9 +45885,9 @@ Query a list of vaults you can deposit into.
|
|
|
45411
45885
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
45412
45886
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
45413
45887
|
exchange value increasing over time.`,
|
|
45414
|
-
args:
|
|
45415
|
-
tool: async (client,
|
|
45416
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
45888
|
+
args: args29,
|
|
45889
|
+
tool: async (client, args30, ctx) => {
|
|
45890
|
+
const [result, apiCall] = await morphoVaults(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45417
45891
|
if (!result.ok) {
|
|
45418
45892
|
return {
|
|
45419
45893
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45428,9 +45902,9 @@ exchange value increasing over time.`,
|
|
|
45428
45902
|
|
|
45429
45903
|
// src/funcs/morphoWithdraw.ts
|
|
45430
45904
|
function morphoWithdraw(client, request, options) {
|
|
45431
|
-
return new APIPromise($
|
|
45905
|
+
return new APIPromise($do30(client, request, options));
|
|
45432
45906
|
}
|
|
45433
|
-
async function $
|
|
45907
|
+
async function $do30(client, request, options) {
|
|
45434
45908
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45435
45909
|
if (!parsed.ok) {
|
|
45436
45910
|
return [parsed, { status: "invalid" }];
|
|
@@ -45499,12 +45973,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
45499
45973
|
});
|
|
45500
45974
|
|
|
45501
45975
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
45502
|
-
var
|
|
45976
|
+
var args30, tool$morphoWithdraw;
|
|
45503
45977
|
var init_morphoWithdraw2 = __esm(() => {
|
|
45504
45978
|
init_morphoWithdraw();
|
|
45505
45979
|
init_components();
|
|
45506
45980
|
init_tools();
|
|
45507
|
-
|
|
45981
|
+
args30 = {
|
|
45508
45982
|
request: MorphoWithdrawRequest$inboundSchema
|
|
45509
45983
|
};
|
|
45510
45984
|
tool$morphoWithdraw = {
|
|
@@ -45522,9 +45996,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
45522
45996
|
exposure for all deposited assets so users don't need to make these decisions
|
|
45523
45997
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
45524
45998
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
45525
|
-
args:
|
|
45526
|
-
tool: async (client,
|
|
45527
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
45999
|
+
args: args30,
|
|
46000
|
+
tool: async (client, args31, ctx) => {
|
|
46001
|
+
const [result, apiCall] = await morphoWithdraw(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45528
46002
|
if (!result.ok) {
|
|
45529
46003
|
return {
|
|
45530
46004
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45539,9 +46013,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
45539
46013
|
|
|
45540
46014
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
45541
46015
|
function morphoWithdrawCollateral(client, request, options) {
|
|
45542
|
-
return new APIPromise($
|
|
46016
|
+
return new APIPromise($do31(client, request, options));
|
|
45543
46017
|
}
|
|
45544
|
-
async function $
|
|
46018
|
+
async function $do31(client, request, options) {
|
|
45545
46019
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45546
46020
|
if (!parsed.ok) {
|
|
45547
46021
|
return [parsed, { status: "invalid" }];
|
|
@@ -45610,12 +46084,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
45610
46084
|
});
|
|
45611
46085
|
|
|
45612
46086
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
45613
|
-
var
|
|
46087
|
+
var args31, tool$morphoWithdrawCollateral;
|
|
45614
46088
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
45615
46089
|
init_morphoWithdrawCollateral();
|
|
45616
46090
|
init_components();
|
|
45617
46091
|
init_tools();
|
|
45618
|
-
|
|
46092
|
+
args31 = {
|
|
45619
46093
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
45620
46094
|
};
|
|
45621
46095
|
tool$morphoWithdrawCollateral = {
|
|
@@ -45628,9 +46102,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45628
46102
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45629
46103
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45630
46104
|
as long as the blockchain it is deployed on is live.`,
|
|
45631
|
-
args:
|
|
45632
|
-
tool: async (client,
|
|
45633
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
46105
|
+
args: args31,
|
|
46106
|
+
tool: async (client, args32, ctx) => {
|
|
46107
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45634
46108
|
if (!result.ok) {
|
|
45635
46109
|
return {
|
|
45636
46110
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45645,9 +46119,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45645
46119
|
|
|
45646
46120
|
// src/funcs/skyBuy.ts
|
|
45647
46121
|
function skyBuy(client, request, options) {
|
|
45648
|
-
return new APIPromise($
|
|
46122
|
+
return new APIPromise($do32(client, request, options));
|
|
45649
46123
|
}
|
|
45650
|
-
async function $
|
|
46124
|
+
async function $do32(client, request, options) {
|
|
45651
46125
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45652
46126
|
if (!parsed.ok) {
|
|
45653
46127
|
return [parsed, { status: "invalid" }];
|
|
@@ -45716,12 +46190,12 @@ var init_skyBuy = __esm(() => {
|
|
|
45716
46190
|
});
|
|
45717
46191
|
|
|
45718
46192
|
// src/mcp-server/tools/skyBuy.ts
|
|
45719
|
-
var
|
|
46193
|
+
var args32, tool$skyBuy;
|
|
45720
46194
|
var init_skyBuy2 = __esm(() => {
|
|
45721
46195
|
init_skyBuy();
|
|
45722
46196
|
init_components();
|
|
45723
46197
|
init_tools();
|
|
45724
|
-
|
|
46198
|
+
args32 = {
|
|
45725
46199
|
request: SkyBuyRequest$inboundSchema
|
|
45726
46200
|
};
|
|
45727
46201
|
tool$skyBuy = {
|
|
@@ -45735,9 +46209,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
45735
46209
|
|
|
45736
46210
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
45737
46211
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
45738
|
-
args:
|
|
45739
|
-
tool: async (client,
|
|
45740
|
-
const [result, apiCall] = await skyBuy(client,
|
|
46212
|
+
args: args32,
|
|
46213
|
+
tool: async (client, args33, ctx) => {
|
|
46214
|
+
const [result, apiCall] = await skyBuy(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45741
46215
|
if (!result.ok) {
|
|
45742
46216
|
return {
|
|
45743
46217
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45752,9 +46226,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
45752
46226
|
|
|
45753
46227
|
// src/funcs/skyDeposit.ts
|
|
45754
46228
|
function skyDeposit(client, request, options) {
|
|
45755
|
-
return new APIPromise($
|
|
46229
|
+
return new APIPromise($do33(client, request, options));
|
|
45756
46230
|
}
|
|
45757
|
-
async function $
|
|
46231
|
+
async function $do33(client, request, options) {
|
|
45758
46232
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45759
46233
|
if (!parsed.ok) {
|
|
45760
46234
|
return [parsed, { status: "invalid" }];
|
|
@@ -45823,12 +46297,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
45823
46297
|
});
|
|
45824
46298
|
|
|
45825
46299
|
// src/mcp-server/tools/skyDeposit.ts
|
|
45826
|
-
var
|
|
46300
|
+
var args33, tool$skyDeposit;
|
|
45827
46301
|
var init_skyDeposit2 = __esm(() => {
|
|
45828
46302
|
init_skyDeposit();
|
|
45829
46303
|
init_components();
|
|
45830
46304
|
init_tools();
|
|
45831
|
-
|
|
46305
|
+
args33 = {
|
|
45832
46306
|
request: SkyDepositRequest$inboundSchema
|
|
45833
46307
|
};
|
|
45834
46308
|
tool$skyDeposit = {
|
|
@@ -45838,9 +46312,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
45838
46312
|
Deposit USDS for sUSDS to earn yield.
|
|
45839
46313
|
|
|
45840
46314
|
There are no fees.`,
|
|
45841
|
-
args:
|
|
45842
|
-
tool: async (client,
|
|
45843
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
46315
|
+
args: args33,
|
|
46316
|
+
tool: async (client, args34, ctx) => {
|
|
46317
|
+
const [result, apiCall] = await skyDeposit(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45844
46318
|
if (!result.ok) {
|
|
45845
46319
|
return {
|
|
45846
46320
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45855,9 +46329,9 @@ There are no fees.`,
|
|
|
45855
46329
|
|
|
45856
46330
|
// src/funcs/skyPosition.ts
|
|
45857
46331
|
function skyPosition(client, request, options) {
|
|
45858
|
-
return new APIPromise($
|
|
46332
|
+
return new APIPromise($do34(client, request, options));
|
|
45859
46333
|
}
|
|
45860
|
-
async function $
|
|
46334
|
+
async function $do34(client, request, options) {
|
|
45861
46335
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45862
46336
|
if (!parsed.ok) {
|
|
45863
46337
|
return [parsed, { status: "invalid" }];
|
|
@@ -45931,12 +46405,12 @@ var init_skyPosition = __esm(() => {
|
|
|
45931
46405
|
});
|
|
45932
46406
|
|
|
45933
46407
|
// src/mcp-server/tools/skyPosition.ts
|
|
45934
|
-
var
|
|
46408
|
+
var args34, tool$skyPosition;
|
|
45935
46409
|
var init_skyPosition2 = __esm(() => {
|
|
45936
46410
|
init_skyPosition();
|
|
45937
46411
|
init_operations();
|
|
45938
46412
|
init_tools();
|
|
45939
|
-
|
|
46413
|
+
args34 = {
|
|
45940
46414
|
request: SkyPositionRequest$inboundSchema
|
|
45941
46415
|
};
|
|
45942
46416
|
tool$skyPosition = {
|
|
@@ -45944,9 +46418,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
45944
46418
|
description: `Check USDS Position
|
|
45945
46419
|
|
|
45946
46420
|
Check the USDS overall position.`,
|
|
45947
|
-
args:
|
|
45948
|
-
tool: async (client,
|
|
45949
|
-
const [result, apiCall] = await skyPosition(client,
|
|
46421
|
+
args: args34,
|
|
46422
|
+
tool: async (client, args35, ctx) => {
|
|
46423
|
+
const [result, apiCall] = await skyPosition(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45950
46424
|
if (!result.ok) {
|
|
45951
46425
|
return {
|
|
45952
46426
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45961,9 +46435,9 @@ Check the USDS overall position.`,
|
|
|
45961
46435
|
|
|
45962
46436
|
// src/funcs/skySell.ts
|
|
45963
46437
|
function skySell(client, request, options) {
|
|
45964
|
-
return new APIPromise($
|
|
46438
|
+
return new APIPromise($do35(client, request, options));
|
|
45965
46439
|
}
|
|
45966
|
-
async function $
|
|
46440
|
+
async function $do35(client, request, options) {
|
|
45967
46441
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45968
46442
|
if (!parsed.ok) {
|
|
45969
46443
|
return [parsed, { status: "invalid" }];
|
|
@@ -46032,12 +46506,12 @@ var init_skySell = __esm(() => {
|
|
|
46032
46506
|
});
|
|
46033
46507
|
|
|
46034
46508
|
// src/mcp-server/tools/skySell.ts
|
|
46035
|
-
var
|
|
46509
|
+
var args35, tool$skySell;
|
|
46036
46510
|
var init_skySell2 = __esm(() => {
|
|
46037
46511
|
init_skySell();
|
|
46038
46512
|
init_components();
|
|
46039
46513
|
init_tools();
|
|
46040
|
-
|
|
46514
|
+
args35 = {
|
|
46041
46515
|
request: SkySellRequest$inboundSchema
|
|
46042
46516
|
};
|
|
46043
46517
|
tool$skySell = {
|
|
@@ -46051,9 +46525,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
46051
46525
|
|
|
46052
46526
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
46053
46527
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
46054
|
-
args:
|
|
46055
|
-
tool: async (client,
|
|
46056
|
-
const [result, apiCall] = await skySell(client,
|
|
46528
|
+
args: args35,
|
|
46529
|
+
tool: async (client, args36, ctx) => {
|
|
46530
|
+
const [result, apiCall] = await skySell(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46057
46531
|
if (!result.ok) {
|
|
46058
46532
|
return {
|
|
46059
46533
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46068,9 +46542,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
46068
46542
|
|
|
46069
46543
|
// src/funcs/skyWithdraw.ts
|
|
46070
46544
|
function skyWithdraw(client, request, options) {
|
|
46071
|
-
return new APIPromise($
|
|
46545
|
+
return new APIPromise($do36(client, request, options));
|
|
46072
46546
|
}
|
|
46073
|
-
async function $
|
|
46547
|
+
async function $do36(client, request, options) {
|
|
46074
46548
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46075
46549
|
if (!parsed.ok) {
|
|
46076
46550
|
return [parsed, { status: "invalid" }];
|
|
@@ -46139,12 +46613,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
46139
46613
|
});
|
|
46140
46614
|
|
|
46141
46615
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
46142
|
-
var
|
|
46616
|
+
var args36, tool$skyWithdraw;
|
|
46143
46617
|
var init_skyWithdraw2 = __esm(() => {
|
|
46144
46618
|
init_skyWithdraw();
|
|
46145
46619
|
init_components();
|
|
46146
46620
|
init_tools();
|
|
46147
|
-
|
|
46621
|
+
args36 = {
|
|
46148
46622
|
request: SkyWithdrawRequest$inboundSchema
|
|
46149
46623
|
};
|
|
46150
46624
|
tool$skyWithdraw = {
|
|
@@ -46154,9 +46628,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
46154
46628
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
46155
46629
|
|
|
46156
46630
|
There are no fees.`,
|
|
46157
|
-
args:
|
|
46158
|
-
tool: async (client,
|
|
46159
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
46631
|
+
args: args36,
|
|
46632
|
+
tool: async (client, args37, ctx) => {
|
|
46633
|
+
const [result, apiCall] = await skyWithdraw(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46160
46634
|
if (!result.ok) {
|
|
46161
46635
|
return {
|
|
46162
46636
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46171,9 +46645,9 @@ There are no fees.`,
|
|
|
46171
46645
|
|
|
46172
46646
|
// src/funcs/tokenAddress.ts
|
|
46173
46647
|
function tokenAddress(client, request, options) {
|
|
46174
|
-
return new APIPromise($
|
|
46648
|
+
return new APIPromise($do37(client, request, options));
|
|
46175
46649
|
}
|
|
46176
|
-
async function $
|
|
46650
|
+
async function $do37(client, request, options) {
|
|
46177
46651
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46178
46652
|
if (!parsed.ok) {
|
|
46179
46653
|
return [parsed, { status: "invalid" }];
|
|
@@ -46247,12 +46721,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
46247
46721
|
});
|
|
46248
46722
|
|
|
46249
46723
|
// src/mcp-server/tools/tokenAddress.ts
|
|
46250
|
-
var
|
|
46724
|
+
var args37, tool$tokenAddress;
|
|
46251
46725
|
var init_tokenAddress2 = __esm(() => {
|
|
46252
46726
|
init_tokenAddress();
|
|
46253
46727
|
init_operations();
|
|
46254
46728
|
init_tools();
|
|
46255
|
-
|
|
46729
|
+
args37 = {
|
|
46256
46730
|
request: TokenAddressRequest$inboundSchema
|
|
46257
46731
|
};
|
|
46258
46732
|
tool$tokenAddress = {
|
|
@@ -46260,9 +46734,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
46260
46734
|
description: `Token Address
|
|
46261
46735
|
|
|
46262
46736
|
This endpoint retrieves the address for a token supported by us.`,
|
|
46263
|
-
args:
|
|
46264
|
-
tool: async (client,
|
|
46265
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
46737
|
+
args: args37,
|
|
46738
|
+
tool: async (client, args38, ctx) => {
|
|
46739
|
+
const [result, apiCall] = await tokenAddress(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46266
46740
|
if (!result.ok) {
|
|
46267
46741
|
return {
|
|
46268
46742
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46277,9 +46751,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
46277
46751
|
|
|
46278
46752
|
// src/funcs/tokenBalance.ts
|
|
46279
46753
|
function tokenBalance(client, request, options) {
|
|
46280
|
-
return new APIPromise($
|
|
46754
|
+
return new APIPromise($do38(client, request, options));
|
|
46281
46755
|
}
|
|
46282
|
-
async function $
|
|
46756
|
+
async function $do38(client, request, options) {
|
|
46283
46757
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46284
46758
|
if (!parsed.ok) {
|
|
46285
46759
|
return [parsed, { status: "invalid" }];
|
|
@@ -46354,12 +46828,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
46354
46828
|
});
|
|
46355
46829
|
|
|
46356
46830
|
// src/mcp-server/tools/tokenBalance.ts
|
|
46357
|
-
var
|
|
46831
|
+
var args38, tool$tokenBalance;
|
|
46358
46832
|
var init_tokenBalance2 = __esm(() => {
|
|
46359
46833
|
init_tokenBalance();
|
|
46360
46834
|
init_operations();
|
|
46361
46835
|
init_tools();
|
|
46362
|
-
|
|
46836
|
+
args38 = {
|
|
46363
46837
|
request: TokenBalanceRequest$inboundSchema
|
|
46364
46838
|
};
|
|
46365
46839
|
tool$tokenBalance = {
|
|
@@ -46367,9 +46841,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
46367
46841
|
description: `Token Balance
|
|
46368
46842
|
|
|
46369
46843
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
46370
|
-
args:
|
|
46371
|
-
tool: async (client,
|
|
46372
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
46844
|
+
args: args38,
|
|
46845
|
+
tool: async (client, args39, ctx) => {
|
|
46846
|
+
const [result, apiCall] = await tokenBalance(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46373
46847
|
if (!result.ok) {
|
|
46374
46848
|
return {
|
|
46375
46849
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46384,9 +46858,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
46384
46858
|
|
|
46385
46859
|
// src/funcs/tokenPrice.ts
|
|
46386
46860
|
function tokenPrice(client, request, options) {
|
|
46387
|
-
return new APIPromise($
|
|
46861
|
+
return new APIPromise($do39(client, request, options));
|
|
46388
46862
|
}
|
|
46389
|
-
async function $
|
|
46863
|
+
async function $do39(client, request, options) {
|
|
46390
46864
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46391
46865
|
if (!parsed.ok) {
|
|
46392
46866
|
return [parsed, { status: "invalid" }];
|
|
@@ -46460,12 +46934,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
46460
46934
|
});
|
|
46461
46935
|
|
|
46462
46936
|
// src/mcp-server/tools/tokenPrice.ts
|
|
46463
|
-
var
|
|
46937
|
+
var args39, tool$tokenPrice;
|
|
46464
46938
|
var init_tokenPrice2 = __esm(() => {
|
|
46465
46939
|
init_tokenPrice();
|
|
46466
46940
|
init_operations();
|
|
46467
46941
|
init_tools();
|
|
46468
|
-
|
|
46942
|
+
args39 = {
|
|
46469
46943
|
request: TokenPriceRequest$inboundSchema
|
|
46470
46944
|
};
|
|
46471
46945
|
tool$tokenPrice = {
|
|
@@ -46477,9 +46951,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
46477
46951
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
46478
46952
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
46479
46953
|
with the update frequency of the oracle.`,
|
|
46480
|
-
args:
|
|
46481
|
-
tool: async (client,
|
|
46482
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
46954
|
+
args: args39,
|
|
46955
|
+
tool: async (client, args40, ctx) => {
|
|
46956
|
+
const [result, apiCall] = await tokenPrice(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46483
46957
|
if (!result.ok) {
|
|
46484
46958
|
return {
|
|
46485
46959
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46494,9 +46968,9 @@ with the update frequency of the oracle.`,
|
|
|
46494
46968
|
|
|
46495
46969
|
// src/funcs/tokenTransfer.ts
|
|
46496
46970
|
function tokenTransfer(client, request, options) {
|
|
46497
|
-
return new APIPromise($
|
|
46971
|
+
return new APIPromise($do40(client, request, options));
|
|
46498
46972
|
}
|
|
46499
|
-
async function $
|
|
46973
|
+
async function $do40(client, request, options) {
|
|
46500
46974
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46501
46975
|
if (!parsed.ok) {
|
|
46502
46976
|
return [parsed, { status: "invalid" }];
|
|
@@ -46565,12 +47039,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
46565
47039
|
});
|
|
46566
47040
|
|
|
46567
47041
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
46568
|
-
var
|
|
47042
|
+
var args40, tool$tokenTransfer;
|
|
46569
47043
|
var init_tokenTransfer2 = __esm(() => {
|
|
46570
47044
|
init_tokenTransfer();
|
|
46571
47045
|
init_components();
|
|
46572
47046
|
init_tools();
|
|
46573
|
-
|
|
47047
|
+
args40 = {
|
|
46574
47048
|
request: TokenTransferRequest$inboundSchema
|
|
46575
47049
|
};
|
|
46576
47050
|
tool$tokenTransfer = {
|
|
@@ -46578,9 +47052,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
46578
47052
|
description: `Transfer ETH or ERC20 Tokens
|
|
46579
47053
|
|
|
46580
47054
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
46581
|
-
args:
|
|
46582
|
-
tool: async (client,
|
|
46583
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
47055
|
+
args: args40,
|
|
47056
|
+
tool: async (client, args41, ctx) => {
|
|
47057
|
+
const [result, apiCall] = await tokenTransfer(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46584
47058
|
if (!result.ok) {
|
|
46585
47059
|
return {
|
|
46586
47060
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46595,9 +47069,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
46595
47069
|
|
|
46596
47070
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
46597
47071
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
46598
|
-
return new APIPromise($
|
|
47072
|
+
return new APIPromise($do41(client, request, options));
|
|
46599
47073
|
}
|
|
46600
|
-
async function $
|
|
47074
|
+
async function $do41(client, request, options) {
|
|
46601
47075
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46602
47076
|
if (!parsed.ok) {
|
|
46603
47077
|
return [parsed, { status: "invalid" }];
|
|
@@ -46666,12 +47140,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
46666
47140
|
});
|
|
46667
47141
|
|
|
46668
47142
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
46669
|
-
var
|
|
47143
|
+
var args41, tool$transactionBatchingAaveLoop;
|
|
46670
47144
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
46671
47145
|
init_transactionBatchingAaveLoop();
|
|
46672
47146
|
init_components();
|
|
46673
47147
|
init_tools();
|
|
46674
|
-
|
|
47148
|
+
args41 = {
|
|
46675
47149
|
request: AaveLoopRequest$inboundSchema
|
|
46676
47150
|
};
|
|
46677
47151
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -46689,9 +47163,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
46689
47163
|
- Supplies the swapped tokens
|
|
46690
47164
|
|
|
46691
47165
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
46692
|
-
args:
|
|
46693
|
-
tool: async (client,
|
|
46694
|
-
const [result, apiCall] = await transactionBatchingAaveLoop(client,
|
|
47166
|
+
args: args41,
|
|
47167
|
+
tool: async (client, args42, ctx) => {
|
|
47168
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46695
47169
|
if (!result.ok) {
|
|
46696
47170
|
return {
|
|
46697
47171
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46706,9 +47180,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
46706
47180
|
|
|
46707
47181
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
46708
47182
|
function transactionBatchingAuthorization(client, request, options) {
|
|
46709
|
-
return new APIPromise($
|
|
47183
|
+
return new APIPromise($do42(client, request, options));
|
|
46710
47184
|
}
|
|
46711
|
-
async function $
|
|
47185
|
+
async function $do42(client, request, options) {
|
|
46712
47186
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46713
47187
|
if (!parsed.ok) {
|
|
46714
47188
|
return [parsed, { status: "invalid" }];
|
|
@@ -46777,12 +47251,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
46777
47251
|
});
|
|
46778
47252
|
|
|
46779
47253
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
46780
|
-
var
|
|
47254
|
+
var args42, tool$transactionBatchingAuthorization;
|
|
46781
47255
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
46782
47256
|
init_transactionBatchingAuthorization();
|
|
46783
47257
|
init_components();
|
|
46784
47258
|
init_tools();
|
|
46785
|
-
|
|
47259
|
+
args42 = {
|
|
46786
47260
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
46787
47261
|
};
|
|
46788
47262
|
tool$transactionBatchingAuthorization = {
|
|
@@ -46795,9 +47269,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
46795
47269
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
46796
47270
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
46797
47271
|
targeting.`,
|
|
46798
|
-
args:
|
|
46799
|
-
tool: async (client,
|
|
46800
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
47272
|
+
args: args42,
|
|
47273
|
+
tool: async (client, args43, ctx) => {
|
|
47274
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46801
47275
|
if (!result.ok) {
|
|
46802
47276
|
return {
|
|
46803
47277
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46812,9 +47286,9 @@ targeting.`,
|
|
|
46812
47286
|
|
|
46813
47287
|
// src/funcs/transactionBatchingExecute.ts
|
|
46814
47288
|
function transactionBatchingExecute(client, request, options) {
|
|
46815
|
-
return new APIPromise($
|
|
47289
|
+
return new APIPromise($do43(client, request, options));
|
|
46816
47290
|
}
|
|
46817
|
-
async function $
|
|
47291
|
+
async function $do43(client, request, options) {
|
|
46818
47292
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46819
47293
|
if (!parsed.ok) {
|
|
46820
47294
|
return [parsed, { status: "invalid" }];
|
|
@@ -46883,12 +47357,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
46883
47357
|
});
|
|
46884
47358
|
|
|
46885
47359
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
46886
|
-
var
|
|
47360
|
+
var args43, tool$transactionBatchingExecute;
|
|
46887
47361
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
46888
47362
|
init_transactionBatchingExecute();
|
|
46889
47363
|
init_components();
|
|
46890
47364
|
init_tools();
|
|
46891
|
-
|
|
47365
|
+
args43 = {
|
|
46892
47366
|
request: MulticallExecuteRequest$inboundSchema
|
|
46893
47367
|
};
|
|
46894
47368
|
tool$transactionBatchingExecute = {
|
|
@@ -46901,9 +47375,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
46901
47375
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
46902
47376
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
46903
47377
|
prevent replay attacks.`,
|
|
46904
|
-
args:
|
|
46905
|
-
tool: async (client,
|
|
46906
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
47378
|
+
args: args43,
|
|
47379
|
+
tool: async (client, args44, ctx) => {
|
|
47380
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46907
47381
|
if (!result.ok) {
|
|
46908
47382
|
return {
|
|
46909
47383
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46918,9 +47392,9 @@ prevent replay attacks.`,
|
|
|
46918
47392
|
|
|
46919
47393
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
46920
47394
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
46921
|
-
return new APIPromise($
|
|
47395
|
+
return new APIPromise($do44(client, request, options));
|
|
46922
47396
|
}
|
|
46923
|
-
async function $
|
|
47397
|
+
async function $do44(client, request, options) {
|
|
46924
47398
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46925
47399
|
if (!parsed.ok) {
|
|
46926
47400
|
return [parsed, { status: "invalid" }];
|
|
@@ -46989,12 +47463,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
46989
47463
|
});
|
|
46990
47464
|
|
|
46991
47465
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
46992
|
-
var
|
|
47466
|
+
var args44, tool$uniswapV3LiquidityProvisionIncrease;
|
|
46993
47467
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
46994
47468
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
46995
47469
|
init_components();
|
|
46996
47470
|
init_tools();
|
|
46997
|
-
|
|
47471
|
+
args44 = {
|
|
46998
47472
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
46999
47473
|
};
|
|
47000
47474
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -47010,9 +47484,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
47010
47484
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
47011
47485
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
47012
47486
|
process.`,
|
|
47013
|
-
args:
|
|
47014
|
-
tool: async (client,
|
|
47015
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
47487
|
+
args: args44,
|
|
47488
|
+
tool: async (client, args45, ctx) => {
|
|
47489
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47016
47490
|
if (!result.ok) {
|
|
47017
47491
|
return {
|
|
47018
47492
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47027,9 +47501,9 @@ process.`,
|
|
|
47027
47501
|
|
|
47028
47502
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
47029
47503
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
47030
|
-
return new APIPromise($
|
|
47504
|
+
return new APIPromise($do45(client, request, options));
|
|
47031
47505
|
}
|
|
47032
|
-
async function $
|
|
47506
|
+
async function $do45(client, request, options) {
|
|
47033
47507
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47034
47508
|
if (!parsed.ok) {
|
|
47035
47509
|
return [parsed, { status: "invalid" }];
|
|
@@ -47103,12 +47577,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
47103
47577
|
});
|
|
47104
47578
|
|
|
47105
47579
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
47106
|
-
var
|
|
47580
|
+
var args45, tool$uniswapV3LiquidityProvisionInRange;
|
|
47107
47581
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
47108
47582
|
init_uniswapV3LiquidityProvisionInRange();
|
|
47109
47583
|
init_operations();
|
|
47110
47584
|
init_tools();
|
|
47111
|
-
|
|
47585
|
+
args45 = {
|
|
47112
47586
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
47113
47587
|
};
|
|
47114
47588
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -47123,9 +47597,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
47123
47597
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
47124
47598
|
they are actively participating in the trading activities within the liquidity pool
|
|
47125
47599
|
and earning trading fees.`,
|
|
47126
|
-
args:
|
|
47127
|
-
tool: async (client,
|
|
47128
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
47600
|
+
args: args45,
|
|
47601
|
+
tool: async (client, args46, ctx) => {
|
|
47602
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47129
47603
|
if (!result.ok) {
|
|
47130
47604
|
return {
|
|
47131
47605
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47140,9 +47614,9 @@ and earning trading fees.`,
|
|
|
47140
47614
|
|
|
47141
47615
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
47142
47616
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
47143
|
-
return new APIPromise($
|
|
47617
|
+
return new APIPromise($do46(client, request, options));
|
|
47144
47618
|
}
|
|
47145
|
-
async function $
|
|
47619
|
+
async function $do46(client, request, options) {
|
|
47146
47620
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47147
47621
|
if (!parsed.ok) {
|
|
47148
47622
|
return [parsed, { status: "invalid" }];
|
|
@@ -47211,12 +47685,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
47211
47685
|
});
|
|
47212
47686
|
|
|
47213
47687
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
47214
|
-
var
|
|
47688
|
+
var args46, tool$uniswapV3LiquidityProvisionMint;
|
|
47215
47689
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
47216
47690
|
init_uniswapV3LiquidityProvisionMint();
|
|
47217
47691
|
init_components();
|
|
47218
47692
|
init_tools();
|
|
47219
|
-
|
|
47693
|
+
args46 = {
|
|
47220
47694
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
47221
47695
|
};
|
|
47222
47696
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -47232,9 +47706,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
47232
47706
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
47233
47707
|
requires details such as the token pair, amount, and any additional parameters
|
|
47234
47708
|
needed for the minting process.`,
|
|
47235
|
-
args:
|
|
47236
|
-
tool: async (client,
|
|
47237
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
47709
|
+
args: args46,
|
|
47710
|
+
tool: async (client, args47, ctx) => {
|
|
47711
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47238
47712
|
if (!result.ok) {
|
|
47239
47713
|
return {
|
|
47240
47714
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47249,9 +47723,9 @@ needed for the minting process.`,
|
|
|
47249
47723
|
|
|
47250
47724
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
47251
47725
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
47252
|
-
return new APIPromise($
|
|
47726
|
+
return new APIPromise($do47(client, request, options));
|
|
47253
47727
|
}
|
|
47254
|
-
async function $
|
|
47728
|
+
async function $do47(client, request, options) {
|
|
47255
47729
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47256
47730
|
if (!parsed.ok) {
|
|
47257
47731
|
return [parsed, { status: "invalid" }];
|
|
@@ -47325,12 +47799,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
47325
47799
|
});
|
|
47326
47800
|
|
|
47327
47801
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
47328
|
-
var
|
|
47802
|
+
var args47, tool$uniswapV3LiquidityProvisionPositions;
|
|
47329
47803
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
47330
47804
|
init_uniswapV3LiquidityProvisionPositions();
|
|
47331
47805
|
init_operations();
|
|
47332
47806
|
init_tools();
|
|
47333
|
-
|
|
47807
|
+
args47 = {
|
|
47334
47808
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
47335
47809
|
};
|
|
47336
47810
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -47344,9 +47818,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
47344
47818
|
positions, including the total number of positions and relevant metadata. This
|
|
47345
47819
|
information is crucial for users to manage and analyze their liquidity provision
|
|
47346
47820
|
activities effectively.`,
|
|
47347
|
-
args:
|
|
47348
|
-
tool: async (client,
|
|
47349
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
47821
|
+
args: args47,
|
|
47822
|
+
tool: async (client, args48, ctx) => {
|
|
47823
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47350
47824
|
if (!result.ok) {
|
|
47351
47825
|
return {
|
|
47352
47826
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47361,9 +47835,9 @@ activities effectively.`,
|
|
|
47361
47835
|
|
|
47362
47836
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
47363
47837
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
47364
|
-
return new APIPromise($
|
|
47838
|
+
return new APIPromise($do48(client, request, options));
|
|
47365
47839
|
}
|
|
47366
|
-
async function $
|
|
47840
|
+
async function $do48(client, request, options) {
|
|
47367
47841
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47368
47842
|
if (!parsed.ok) {
|
|
47369
47843
|
return [parsed, { status: "invalid" }];
|
|
@@ -47432,12 +47906,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
47432
47906
|
});
|
|
47433
47907
|
|
|
47434
47908
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
47435
|
-
var
|
|
47909
|
+
var args48, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
47436
47910
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
47437
47911
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
47438
47912
|
init_components();
|
|
47439
47913
|
init_tools();
|
|
47440
|
-
|
|
47914
|
+
args48 = {
|
|
47441
47915
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
47442
47916
|
};
|
|
47443
47917
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -47454,9 +47928,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
47454
47928
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
47455
47929
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
47456
47930
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
47457
|
-
args:
|
|
47458
|
-
tool: async (client,
|
|
47459
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
47931
|
+
args: args48,
|
|
47932
|
+
tool: async (client, args49, ctx) => {
|
|
47933
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47460
47934
|
if (!result.ok) {
|
|
47461
47935
|
return {
|
|
47462
47936
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47471,9 +47945,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
47471
47945
|
|
|
47472
47946
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
47473
47947
|
function uniswapV3PoolPrice(client, request, options) {
|
|
47474
|
-
return new APIPromise($
|
|
47948
|
+
return new APIPromise($do49(client, request, options));
|
|
47475
47949
|
}
|
|
47476
|
-
async function $
|
|
47950
|
+
async function $do49(client, request, options) {
|
|
47477
47951
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47478
47952
|
if (!parsed.ok) {
|
|
47479
47953
|
return [parsed, { status: "invalid" }];
|
|
@@ -47549,12 +48023,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
47549
48023
|
});
|
|
47550
48024
|
|
|
47551
48025
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
47552
|
-
var
|
|
48026
|
+
var args49, tool$uniswapV3PoolPrice;
|
|
47553
48027
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
47554
48028
|
init_uniswapV3PoolPrice();
|
|
47555
48029
|
init_operations();
|
|
47556
48030
|
init_tools();
|
|
47557
|
-
|
|
48031
|
+
args49 = {
|
|
47558
48032
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
47559
48033
|
};
|
|
47560
48034
|
tool$uniswapV3PoolPrice = {
|
|
@@ -47564,9 +48038,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
47564
48038
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
47565
48039
|
|
|
47566
48040
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
47567
|
-
args:
|
|
47568
|
-
tool: async (client,
|
|
47569
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
48041
|
+
args: args49,
|
|
48042
|
+
tool: async (client, args50, ctx) => {
|
|
48043
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47570
48044
|
if (!result.ok) {
|
|
47571
48045
|
return {
|
|
47572
48046
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47581,9 +48055,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
47581
48055
|
|
|
47582
48056
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
47583
48057
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
47584
|
-
return new APIPromise($
|
|
48058
|
+
return new APIPromise($do50(client, request, options));
|
|
47585
48059
|
}
|
|
47586
|
-
async function $
|
|
48060
|
+
async function $do50(client, request, options) {
|
|
47587
48061
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47588
48062
|
if (!parsed.ok) {
|
|
47589
48063
|
return [parsed, { status: "invalid" }];
|
|
@@ -47660,12 +48134,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
47660
48134
|
});
|
|
47661
48135
|
|
|
47662
48136
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
47663
|
-
var
|
|
48137
|
+
var args50, tool$uniswapV3QuoteBuyExactly;
|
|
47664
48138
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
47665
48139
|
init_uniswapV3QuoteBuyExactly();
|
|
47666
48140
|
init_operations();
|
|
47667
48141
|
init_tools();
|
|
47668
|
-
|
|
48142
|
+
args50 = {
|
|
47669
48143
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
47670
48144
|
};
|
|
47671
48145
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -47677,9 +48151,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
47677
48151
|
|
|
47678
48152
|
It also provides the resulting price after the transaction. The calculation takes
|
|
47679
48153
|
into account the current pool state and the specified fee tier.`,
|
|
47680
|
-
args:
|
|
47681
|
-
tool: async (client,
|
|
47682
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
48154
|
+
args: args50,
|
|
48155
|
+
tool: async (client, args51, ctx) => {
|
|
48156
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47683
48157
|
if (!result.ok) {
|
|
47684
48158
|
return {
|
|
47685
48159
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47694,9 +48168,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
47694
48168
|
|
|
47695
48169
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
47696
48170
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
47697
|
-
return new APIPromise($
|
|
48171
|
+
return new APIPromise($do51(client, request, options));
|
|
47698
48172
|
}
|
|
47699
|
-
async function $
|
|
48173
|
+
async function $do51(client, request, options) {
|
|
47700
48174
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47701
48175
|
if (!parsed.ok) {
|
|
47702
48176
|
return [parsed, { status: "invalid" }];
|
|
@@ -47773,12 +48247,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
47773
48247
|
});
|
|
47774
48248
|
|
|
47775
48249
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
47776
|
-
var
|
|
48250
|
+
var args51, tool$uniswapV3QuoteSellExactly;
|
|
47777
48251
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
47778
48252
|
init_uniswapV3QuoteSellExactly();
|
|
47779
48253
|
init_operations();
|
|
47780
48254
|
init_tools();
|
|
47781
|
-
|
|
48255
|
+
args51 = {
|
|
47782
48256
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
47783
48257
|
};
|
|
47784
48258
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -47790,9 +48264,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
47790
48264
|
|
|
47791
48265
|
It also provides the resulting price after the transaction. The calculation takes
|
|
47792
48266
|
into account the current pool state and the specified fee tier.`,
|
|
47793
|
-
args:
|
|
47794
|
-
tool: async (client,
|
|
47795
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
48267
|
+
args: args51,
|
|
48268
|
+
tool: async (client, args52, ctx) => {
|
|
48269
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47796
48270
|
if (!result.ok) {
|
|
47797
48271
|
return {
|
|
47798
48272
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47807,9 +48281,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
47807
48281
|
|
|
47808
48282
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
47809
48283
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
47810
|
-
return new APIPromise($
|
|
48284
|
+
return new APIPromise($do52(client, request, options));
|
|
47811
48285
|
}
|
|
47812
|
-
async function $
|
|
48286
|
+
async function $do52(client, request, options) {
|
|
47813
48287
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47814
48288
|
if (!parsed.ok) {
|
|
47815
48289
|
return [parsed, { status: "invalid" }];
|
|
@@ -47878,12 +48352,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
47878
48352
|
});
|
|
47879
48353
|
|
|
47880
48354
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
47881
|
-
var
|
|
48355
|
+
var args52, tool$uniswapV3SwapBuyExactly;
|
|
47882
48356
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
47883
48357
|
init_uniswapV3SwapBuyExactly();
|
|
47884
48358
|
init_components();
|
|
47885
48359
|
init_tools();
|
|
47886
|
-
|
|
48360
|
+
args52 = {
|
|
47887
48361
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
47888
48362
|
};
|
|
47889
48363
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -47897,9 +48371,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
47897
48371
|
provide the necessary transaction details, including the token to buy, the token to
|
|
47898
48372
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
47899
48373
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
47900
|
-
args:
|
|
47901
|
-
tool: async (client,
|
|
47902
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
48374
|
+
args: args52,
|
|
48375
|
+
tool: async (client, args53, ctx) => {
|
|
48376
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47903
48377
|
if (!result.ok) {
|
|
47904
48378
|
return {
|
|
47905
48379
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47914,9 +48388,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
47914
48388
|
|
|
47915
48389
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
47916
48390
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
47917
|
-
return new APIPromise($
|
|
48391
|
+
return new APIPromise($do53(client, request, options));
|
|
47918
48392
|
}
|
|
47919
|
-
async function $
|
|
48393
|
+
async function $do53(client, request, options) {
|
|
47920
48394
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47921
48395
|
if (!parsed.ok) {
|
|
47922
48396
|
return [parsed, { status: "invalid" }];
|
|
@@ -47985,12 +48459,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
47985
48459
|
});
|
|
47986
48460
|
|
|
47987
48461
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
47988
|
-
var
|
|
48462
|
+
var args53, tool$uniswapV3SwapSellExactly;
|
|
47989
48463
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
47990
48464
|
init_uniswapV3SwapSellExactly();
|
|
47991
48465
|
init_components();
|
|
47992
48466
|
init_tools();
|
|
47993
|
-
|
|
48467
|
+
args53 = {
|
|
47994
48468
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
47995
48469
|
};
|
|
47996
48470
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -48004,9 +48478,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
48004
48478
|
provide the necessary transaction details, including the token to sell, the token to
|
|
48005
48479
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
48006
48480
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
48007
|
-
args:
|
|
48008
|
-
tool: async (client,
|
|
48009
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
48481
|
+
args: args53,
|
|
48482
|
+
tool: async (client, args54, ctx) => {
|
|
48483
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48010
48484
|
if (!result.ok) {
|
|
48011
48485
|
return {
|
|
48012
48486
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48021,9 +48495,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
48021
48495
|
|
|
48022
48496
|
// src/funcs/universalAllowance.ts
|
|
48023
48497
|
function universalAllowance(client, request, options) {
|
|
48024
|
-
return new APIPromise($
|
|
48498
|
+
return new APIPromise($do54(client, request, options));
|
|
48025
48499
|
}
|
|
48026
|
-
async function $
|
|
48500
|
+
async function $do54(client, request, options) {
|
|
48027
48501
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48028
48502
|
if (!parsed.ok) {
|
|
48029
48503
|
return [parsed, { status: "invalid" }];
|
|
@@ -48099,12 +48573,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
48099
48573
|
});
|
|
48100
48574
|
|
|
48101
48575
|
// src/mcp-server/tools/universalAllowance.ts
|
|
48102
|
-
var
|
|
48576
|
+
var args54, tool$universalAllowance;
|
|
48103
48577
|
var init_universalAllowance2 = __esm(() => {
|
|
48104
48578
|
init_universalAllowance();
|
|
48105
48579
|
init_operations();
|
|
48106
48580
|
init_tools();
|
|
48107
|
-
|
|
48581
|
+
args54 = {
|
|
48108
48582
|
request: GenericAllowanceRequest$inboundSchema
|
|
48109
48583
|
};
|
|
48110
48584
|
tool$universalAllowance = {
|
|
@@ -48118,9 +48592,9 @@ tokens on their behalf.
|
|
|
48118
48592
|
This is a crucial step before engaging in any transactions or operations within
|
|
48119
48593
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
48120
48594
|
the user's tokens securely and efficiently.`,
|
|
48121
|
-
args:
|
|
48122
|
-
tool: async (client,
|
|
48123
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
48595
|
+
args: args54,
|
|
48596
|
+
tool: async (client, args55, ctx) => {
|
|
48597
|
+
const [result, apiCall] = await universalAllowance(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48124
48598
|
if (!result.ok) {
|
|
48125
48599
|
return {
|
|
48126
48600
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48135,9 +48609,9 @@ the user's tokens securely and efficiently.`,
|
|
|
48135
48609
|
|
|
48136
48610
|
// src/funcs/universalAllowanceSet.ts
|
|
48137
48611
|
function universalAllowanceSet(client, request, options) {
|
|
48138
|
-
return new APIPromise($
|
|
48612
|
+
return new APIPromise($do55(client, request, options));
|
|
48139
48613
|
}
|
|
48140
|
-
async function $
|
|
48614
|
+
async function $do55(client, request, options) {
|
|
48141
48615
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48142
48616
|
if (!parsed.ok) {
|
|
48143
48617
|
return [parsed, { status: "invalid" }];
|
|
@@ -48206,12 +48680,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
48206
48680
|
});
|
|
48207
48681
|
|
|
48208
48682
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
48209
|
-
var
|
|
48683
|
+
var args55, tool$universalAllowanceSet;
|
|
48210
48684
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
48211
48685
|
init_universalAllowanceSet();
|
|
48212
48686
|
init_components();
|
|
48213
48687
|
init_tools();
|
|
48214
|
-
|
|
48688
|
+
args55 = {
|
|
48215
48689
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
48216
48690
|
};
|
|
48217
48691
|
tool$universalAllowanceSet = {
|
|
@@ -48225,9 +48699,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
48225
48699
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
48226
48700
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
48227
48701
|
within the DeFi ecosystem.`,
|
|
48228
|
-
args:
|
|
48229
|
-
tool: async (client,
|
|
48230
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
48702
|
+
args: args55,
|
|
48703
|
+
tool: async (client, args56, ctx) => {
|
|
48704
|
+
const [result, apiCall] = await universalAllowanceSet(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48231
48705
|
if (!result.ok) {
|
|
48232
48706
|
return {
|
|
48233
48707
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48242,9 +48716,9 @@ within the DeFi ecosystem.`,
|
|
|
48242
48716
|
|
|
48243
48717
|
// src/funcs/universalEns.ts
|
|
48244
48718
|
function universalEns(client, request, options) {
|
|
48245
|
-
return new APIPromise($
|
|
48719
|
+
return new APIPromise($do56(client, request, options));
|
|
48246
48720
|
}
|
|
48247
|
-
async function $
|
|
48721
|
+
async function $do56(client, request, options) {
|
|
48248
48722
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48249
48723
|
if (!parsed.ok) {
|
|
48250
48724
|
return [parsed, { status: "invalid" }];
|
|
@@ -48318,12 +48792,12 @@ var init_universalEns = __esm(() => {
|
|
|
48318
48792
|
});
|
|
48319
48793
|
|
|
48320
48794
|
// src/mcp-server/tools/universalEns.ts
|
|
48321
|
-
var
|
|
48795
|
+
var args56, tool$universalEns;
|
|
48322
48796
|
var init_universalEns2 = __esm(() => {
|
|
48323
48797
|
init_universalEns();
|
|
48324
48798
|
init_operations();
|
|
48325
48799
|
init_tools();
|
|
48326
|
-
|
|
48800
|
+
args56 = {
|
|
48327
48801
|
request: GenericEnsRequest$inboundSchema
|
|
48328
48802
|
};
|
|
48329
48803
|
tool$universalEns = {
|
|
@@ -48334,9 +48808,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
48334
48808
|
|
|
48335
48809
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
48336
48810
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
48337
|
-
args:
|
|
48338
|
-
tool: async (client,
|
|
48339
|
-
const [result, apiCall] = await universalEns(client,
|
|
48811
|
+
args: args56,
|
|
48812
|
+
tool: async (client, args57, ctx) => {
|
|
48813
|
+
const [result, apiCall] = await universalEns(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48340
48814
|
if (!result.ok) {
|
|
48341
48815
|
return {
|
|
48342
48816
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48351,9 +48825,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
48351
48825
|
|
|
48352
48826
|
// src/funcs/universalPortfolio.ts
|
|
48353
48827
|
function universalPortfolio(client, request, options) {
|
|
48354
|
-
return new APIPromise($
|
|
48828
|
+
return new APIPromise($do57(client, request, options));
|
|
48355
48829
|
}
|
|
48356
|
-
async function $
|
|
48830
|
+
async function $do57(client, request, options) {
|
|
48357
48831
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48358
48832
|
if (!parsed.ok) {
|
|
48359
48833
|
return [parsed, { status: "invalid" }];
|
|
@@ -48427,12 +48901,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
48427
48901
|
});
|
|
48428
48902
|
|
|
48429
48903
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
48430
|
-
var
|
|
48904
|
+
var args57, tool$universalPortfolio;
|
|
48431
48905
|
var init_universalPortfolio2 = __esm(() => {
|
|
48432
48906
|
init_universalPortfolio();
|
|
48433
48907
|
init_operations();
|
|
48434
48908
|
init_tools();
|
|
48435
|
-
|
|
48909
|
+
args57 = {
|
|
48436
48910
|
request: GenericPortfolioRequest$inboundSchema
|
|
48437
48911
|
};
|
|
48438
48912
|
tool$universalPortfolio = {
|
|
@@ -48443,9 +48917,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
48443
48917
|
|
|
48444
48918
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
48445
48919
|
balances, including their respective values and quantities.`,
|
|
48446
|
-
args:
|
|
48447
|
-
tool: async (client,
|
|
48448
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
48920
|
+
args: args57,
|
|
48921
|
+
tool: async (client, args58, ctx) => {
|
|
48922
|
+
const [result, apiCall] = await universalPortfolio(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48449
48923
|
if (!result.ok) {
|
|
48450
48924
|
return {
|
|
48451
48925
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48460,9 +48934,9 @@ balances, including their respective values and quantities.`,
|
|
|
48460
48934
|
|
|
48461
48935
|
// src/funcs/universalSupportedTokens.ts
|
|
48462
48936
|
function universalSupportedTokens(client, request, options) {
|
|
48463
|
-
return new APIPromise($
|
|
48937
|
+
return new APIPromise($do58(client, request, options));
|
|
48464
48938
|
}
|
|
48465
|
-
async function $
|
|
48939
|
+
async function $do58(client, request, options) {
|
|
48466
48940
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48467
48941
|
if (!parsed.ok) {
|
|
48468
48942
|
return [parsed, { status: "invalid" }];
|
|
@@ -48535,12 +49009,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
48535
49009
|
});
|
|
48536
49010
|
|
|
48537
49011
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
48538
|
-
var
|
|
49012
|
+
var args58, tool$universalSupportedTokens;
|
|
48539
49013
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
48540
49014
|
init_universalSupportedTokens();
|
|
48541
49015
|
init_operations();
|
|
48542
49016
|
init_tools();
|
|
48543
|
-
|
|
49017
|
+
args58 = {
|
|
48544
49018
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
48545
49019
|
};
|
|
48546
49020
|
tool$universalSupportedTokens = {
|
|
@@ -48548,9 +49022,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
48548
49022
|
description: `List supported tokens
|
|
48549
49023
|
|
|
48550
49024
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
48551
|
-
args:
|
|
48552
|
-
tool: async (client,
|
|
48553
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
49025
|
+
args: args58,
|
|
49026
|
+
tool: async (client, args59, ctx) => {
|
|
49027
|
+
const [result, apiCall] = await universalSupportedTokens(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48554
49028
|
if (!result.ok) {
|
|
48555
49029
|
return {
|
|
48556
49030
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48565,9 +49039,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
48565
49039
|
|
|
48566
49040
|
// src/funcs/universalUnwrapWeth.ts
|
|
48567
49041
|
function universalUnwrapWeth(client, request, options) {
|
|
48568
|
-
return new APIPromise($
|
|
49042
|
+
return new APIPromise($do59(client, request, options));
|
|
48569
49043
|
}
|
|
48570
|
-
async function $
|
|
49044
|
+
async function $do59(client, request, options) {
|
|
48571
49045
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48572
49046
|
if (!parsed.ok) {
|
|
48573
49047
|
return [parsed, { status: "invalid" }];
|
|
@@ -48636,12 +49110,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
48636
49110
|
});
|
|
48637
49111
|
|
|
48638
49112
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
48639
|
-
var
|
|
49113
|
+
var args59, tool$universalUnwrapWeth;
|
|
48640
49114
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
48641
49115
|
init_universalUnwrapWeth();
|
|
48642
49116
|
init_components();
|
|
48643
49117
|
init_tools();
|
|
48644
|
-
|
|
49118
|
+
args59 = {
|
|
48645
49119
|
request: UnwrapWethRequest$inboundSchema
|
|
48646
49120
|
};
|
|
48647
49121
|
tool$universalUnwrapWeth = {
|
|
@@ -48650,9 +49124,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
48650
49124
|
|
|
48651
49125
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
48652
49126
|
can be used for gas and other native purposes.`,
|
|
48653
|
-
args:
|
|
48654
|
-
tool: async (client,
|
|
48655
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
49127
|
+
args: args59,
|
|
49128
|
+
tool: async (client, args60, ctx) => {
|
|
49129
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48656
49130
|
if (!result.ok) {
|
|
48657
49131
|
return {
|
|
48658
49132
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48667,9 +49141,9 @@ can be used for gas and other native purposes.`,
|
|
|
48667
49141
|
|
|
48668
49142
|
// src/funcs/universalVisualizePortfolio.ts
|
|
48669
49143
|
function universalVisualizePortfolio(client, request, options) {
|
|
48670
|
-
return new APIPromise($
|
|
49144
|
+
return new APIPromise($do60(client, request, options));
|
|
48671
49145
|
}
|
|
48672
|
-
async function $
|
|
49146
|
+
async function $do60(client, request, options) {
|
|
48673
49147
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48674
49148
|
if (!parsed.ok) {
|
|
48675
49149
|
return [parsed, { status: "invalid" }];
|
|
@@ -48743,12 +49217,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
48743
49217
|
});
|
|
48744
49218
|
|
|
48745
49219
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
48746
|
-
var
|
|
49220
|
+
var args60, tool$universalVisualizePortfolio;
|
|
48747
49221
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
48748
49222
|
init_universalVisualizePortfolio();
|
|
48749
49223
|
init_operations();
|
|
48750
49224
|
init_tools();
|
|
48751
|
-
|
|
49225
|
+
args60 = {
|
|
48752
49226
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
48753
49227
|
};
|
|
48754
49228
|
tool$universalVisualizePortfolio = {
|
|
@@ -48760,9 +49234,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
48760
49234
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
48761
49235
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
48762
49236
|
USD.`,
|
|
48763
|
-
args:
|
|
48764
|
-
tool: async (client,
|
|
48765
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
49237
|
+
args: args60,
|
|
49238
|
+
tool: async (client, args61, ctx) => {
|
|
49239
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48766
49240
|
if (!result.ok) {
|
|
48767
49241
|
return {
|
|
48768
49242
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48777,9 +49251,9 @@ USD.`,
|
|
|
48777
49251
|
|
|
48778
49252
|
// src/funcs/universalWrapEth.ts
|
|
48779
49253
|
function universalWrapEth(client, request, options) {
|
|
48780
|
-
return new APIPromise($
|
|
49254
|
+
return new APIPromise($do61(client, request, options));
|
|
48781
49255
|
}
|
|
48782
|
-
async function $
|
|
49256
|
+
async function $do61(client, request, options) {
|
|
48783
49257
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48784
49258
|
if (!parsed.ok) {
|
|
48785
49259
|
return [parsed, { status: "invalid" }];
|
|
@@ -48848,12 +49322,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
48848
49322
|
});
|
|
48849
49323
|
|
|
48850
49324
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
48851
|
-
var
|
|
49325
|
+
var args61, tool$universalWrapEth;
|
|
48852
49326
|
var init_universalWrapEth2 = __esm(() => {
|
|
48853
49327
|
init_universalWrapEth();
|
|
48854
49328
|
init_components();
|
|
48855
49329
|
init_tools();
|
|
48856
|
-
|
|
49330
|
+
args61 = {
|
|
48857
49331
|
request: WrapEthRequest$inboundSchema
|
|
48858
49332
|
};
|
|
48859
49333
|
tool$universalWrapEth = {
|
|
@@ -48862,9 +49336,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
48862
49336
|
|
|
48863
49337
|
Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
|
|
48864
49338
|
it to be traded on DeFi protocols.`,
|
|
48865
|
-
args:
|
|
48866
|
-
tool: async (client,
|
|
48867
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
49339
|
+
args: args61,
|
|
49340
|
+
tool: async (client, args62, ctx) => {
|
|
49341
|
+
const [result, apiCall] = await universalWrapEth(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48868
49342
|
if (!result.ok) {
|
|
48869
49343
|
return {
|
|
48870
49344
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48881,7 +49355,7 @@ it to be traded on DeFi protocols.`,
|
|
|
48881
49355
|
function createMCPServer(deps) {
|
|
48882
49356
|
const server = new McpServer({
|
|
48883
49357
|
name: "CompassApiSDK",
|
|
48884
|
-
version: "0.0.
|
|
49358
|
+
version: "0.0.30"
|
|
48885
49359
|
});
|
|
48886
49360
|
const client = new CompassApiSDKCore({
|
|
48887
49361
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -48895,6 +49369,8 @@ function createMCPServer(deps) {
|
|
|
48895
49369
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
48896
49370
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
48897
49371
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
49372
|
+
tool(tool$aaveV3StdRate);
|
|
49373
|
+
tool(tool$aaveV3AvgRate);
|
|
48898
49374
|
tool(tool$aaveV3ReserveOverview);
|
|
48899
49375
|
tool(tool$aaveV3Rate);
|
|
48900
49376
|
tool(tool$aaveV3TokenPrice);
|
|
@@ -48961,12 +49437,14 @@ var init_server2 = __esm(() => {
|
|
|
48961
49437
|
init_core();
|
|
48962
49438
|
init_resources();
|
|
48963
49439
|
init_tools();
|
|
49440
|
+
init_aaveV3AvgRate2();
|
|
48964
49441
|
init_aaveV3Borrow2();
|
|
48965
49442
|
init_aaveV3HistoricalTransactions2();
|
|
48966
49443
|
init_aaveV3LiquidityChange2();
|
|
48967
49444
|
init_aaveV3Rate2();
|
|
48968
49445
|
init_aaveV3Repay2();
|
|
48969
49446
|
init_aaveV3ReserveOverview2();
|
|
49447
|
+
init_aaveV3StdRate2();
|
|
48970
49448
|
init_aaveV3Supply2();
|
|
48971
49449
|
init_aaveV3TokenPrice2();
|
|
48972
49450
|
init_aaveV3UserPositionPerToken2();
|
|
@@ -50210,7 +50688,7 @@ var routes = an({
|
|
|
50210
50688
|
var app = He(routes, {
|
|
50211
50689
|
name: "mcp",
|
|
50212
50690
|
versionInfo: {
|
|
50213
|
-
currentVersion: "0.0.
|
|
50691
|
+
currentVersion: "0.0.30"
|
|
50214
50692
|
}
|
|
50215
50693
|
});
|
|
50216
50694
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -50218,5 +50696,5 @@ export {
|
|
|
50218
50696
|
app
|
|
50219
50697
|
};
|
|
50220
50698
|
|
|
50221
|
-
//# debugId=
|
|
50699
|
+
//# debugId=B6F6D62E08D798E764756E2164756E21
|
|
50222
50700
|
//# sourceMappingURL=mcp-server.js.map
|