@compass-labs/api-sdk 0.0.28 → 0.0.29
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 +21 -13
- package/bin/mcp-server.js +799 -560
- package/bin/mcp-server.js.map +15 -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/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 +3 -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/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/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -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/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +7 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +10 -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/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 +3 -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/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/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -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/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +7 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +10 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/docs/sdks/aavev3/README.md +82 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3AvgRate.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 +3 -1
- package/src/mcp-server/tools/aaveV3AvgRate.ts +37 -0
- package/src/models/components/aaveavgrateresponse.ts +123 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/aaveavgrate.ts +203 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/aavev3.ts +18 -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.29",
|
|
34189
34189
|
genVersion: "2.604.2",
|
|
34190
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
34190
|
+
userAgent: "speakeasy-sdk/typescript 0.0.29 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(() => {
|
|
@@ -40364,6 +40409,7 @@ var init_wrapethrequest = __esm(() => {
|
|
|
40364
40409
|
|
|
40365
40410
|
// src/models/components/index.ts
|
|
40366
40411
|
var init_components = __esm(() => {
|
|
40412
|
+
init_aaveavgrateresponse();
|
|
40367
40413
|
init_aaveborrowparams();
|
|
40368
40414
|
init_aaveborrowrequest();
|
|
40369
40415
|
init_aavehistoricaltransactionsresponse();
|
|
@@ -40526,134 +40572,87 @@ var init_errors = __esm(() => {
|
|
|
40526
40572
|
init_sdkvalidationerror();
|
|
40527
40573
|
});
|
|
40528
40574
|
|
|
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
|
|
40575
|
+
// src/models/operations/aaveavgrate.ts
|
|
40576
|
+
var AaveAvgRateChain, AaveAvgRateToken, AaveAvgRateChain$inboundSchema, AaveAvgRateChain$outboundSchema, AaveAvgRateChain$, AaveAvgRateToken$inboundSchema, AaveAvgRateToken$outboundSchema, AaveAvgRateToken$, AaveAvgRateRequest$inboundSchema, AaveAvgRateRequest$outboundSchema, AaveAvgRateRequest$;
|
|
40577
|
+
var init_aaveavgrate = __esm(() => {
|
|
40578
|
+
init_lib();
|
|
40579
|
+
AaveAvgRateChain = {
|
|
40580
|
+
BaseMainnet: "base:mainnet",
|
|
40581
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
40582
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40635
40583
|
};
|
|
40636
|
-
|
|
40637
|
-
|
|
40638
|
-
|
|
40639
|
-
|
|
40640
|
-
|
|
40641
|
-
|
|
40642
|
-
|
|
40643
|
-
|
|
40644
|
-
|
|
40645
|
-
|
|
40646
|
-
|
|
40647
|
-
|
|
40648
|
-
|
|
40649
|
-
|
|
40650
|
-
|
|
40651
|
-
|
|
40652
|
-
|
|
40653
|
-
|
|
40654
|
-
|
|
40655
|
-
|
|
40584
|
+
AaveAvgRateToken = {
|
|
40585
|
+
OneINCH: "1INCH",
|
|
40586
|
+
Aave: "AAVE",
|
|
40587
|
+
Bal: "BAL",
|
|
40588
|
+
CbBTC: "cbBTC",
|
|
40589
|
+
CbETH: "cbETH",
|
|
40590
|
+
Crv: "CRV",
|
|
40591
|
+
CrvUSD: "crvUSD",
|
|
40592
|
+
Dai: "DAI",
|
|
40593
|
+
Ens: "ENS",
|
|
40594
|
+
ETHx: "ETHx",
|
|
40595
|
+
Frax: "FRAX",
|
|
40596
|
+
Fxs: "FXS",
|
|
40597
|
+
Gho: "GHO",
|
|
40598
|
+
Knc: "KNC",
|
|
40599
|
+
Ldo: "LDO",
|
|
40600
|
+
Link: "LINK",
|
|
40601
|
+
Lusd: "LUSD",
|
|
40602
|
+
Mkr: "MKR",
|
|
40603
|
+
OsETH: "osETH",
|
|
40604
|
+
Pyusd: "PYUSD",
|
|
40605
|
+
RETH: "rETH",
|
|
40606
|
+
Rpl: "RPL",
|
|
40607
|
+
RsETH: "rsETH",
|
|
40608
|
+
SDAI: "sDAI",
|
|
40609
|
+
Snx: "SNX",
|
|
40610
|
+
Stg: "STG",
|
|
40611
|
+
SUSDe: "sUSDe",
|
|
40612
|
+
TBTC: "tBTC",
|
|
40613
|
+
Uni: "UNI",
|
|
40614
|
+
Usdc: "USDC",
|
|
40615
|
+
USDe: "USDe",
|
|
40616
|
+
Usds: "USDS",
|
|
40617
|
+
Usdt: "USDT",
|
|
40618
|
+
Wbtc: "WBTC",
|
|
40619
|
+
WeETH: "weETH",
|
|
40620
|
+
Weth: "WETH",
|
|
40621
|
+
WstETH: "wstETH",
|
|
40622
|
+
Arb: "ARB",
|
|
40623
|
+
Eurs: "EURS",
|
|
40624
|
+
Mai: "MAI",
|
|
40625
|
+
USDCe: "USDCe",
|
|
40626
|
+
Aero: "AERO",
|
|
40627
|
+
Eur: "EUR",
|
|
40628
|
+
Virtual: "VIRTUAL"
|
|
40656
40629
|
};
|
|
40630
|
+
AaveAvgRateChain$inboundSchema = nativeEnumType(AaveAvgRateChain);
|
|
40631
|
+
AaveAvgRateChain$outboundSchema = AaveAvgRateChain$inboundSchema;
|
|
40632
|
+
((AaveAvgRateChain$) => {
|
|
40633
|
+
AaveAvgRateChain$.inboundSchema = AaveAvgRateChain$inboundSchema;
|
|
40634
|
+
AaveAvgRateChain$.outboundSchema = AaveAvgRateChain$outboundSchema;
|
|
40635
|
+
})(AaveAvgRateChain$ ||= {});
|
|
40636
|
+
AaveAvgRateToken$inboundSchema = nativeEnumType(AaveAvgRateToken);
|
|
40637
|
+
AaveAvgRateToken$outboundSchema = AaveAvgRateToken$inboundSchema;
|
|
40638
|
+
((AaveAvgRateToken$) => {
|
|
40639
|
+
AaveAvgRateToken$.inboundSchema = AaveAvgRateToken$inboundSchema;
|
|
40640
|
+
AaveAvgRateToken$.outboundSchema = AaveAvgRateToken$outboundSchema;
|
|
40641
|
+
})(AaveAvgRateToken$ ||= {});
|
|
40642
|
+
AaveAvgRateRequest$inboundSchema = objectType({
|
|
40643
|
+
chain: AaveAvgRateChain$inboundSchema.default("ethereum:mainnet"),
|
|
40644
|
+
token: AaveAvgRateToken$inboundSchema.default("USDC"),
|
|
40645
|
+
days: numberType().int().default(7)
|
|
40646
|
+
});
|
|
40647
|
+
AaveAvgRateRequest$outboundSchema = objectType({
|
|
40648
|
+
chain: AaveAvgRateChain$outboundSchema.default("ethereum:mainnet"),
|
|
40649
|
+
token: AaveAvgRateToken$outboundSchema.default("USDC"),
|
|
40650
|
+
days: numberType().int().default(7)
|
|
40651
|
+
});
|
|
40652
|
+
((AaveAvgRateRequest$) => {
|
|
40653
|
+
AaveAvgRateRequest$.inboundSchema = AaveAvgRateRequest$inboundSchema;
|
|
40654
|
+
AaveAvgRateRequest$.outboundSchema = AaveAvgRateRequest$outboundSchema;
|
|
40655
|
+
})(AaveAvgRateRequest$ ||= {});
|
|
40657
40656
|
});
|
|
40658
40657
|
|
|
40659
40658
|
// src/models/operations/aavehistoricaltransactions.ts
|
|
@@ -42519,6 +42518,7 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
42519
42518
|
|
|
42520
42519
|
// src/models/operations/index.ts
|
|
42521
42520
|
var init_operations = __esm(() => {
|
|
42521
|
+
init_aaveavgrate();
|
|
42522
42522
|
init_aavehistoricaltransactions();
|
|
42523
42523
|
init_aaveliquiditychange();
|
|
42524
42524
|
init_aaverate();
|
|
@@ -42548,23 +42548,48 @@ var init_operations = __esm(() => {
|
|
|
42548
42548
|
init_uniswapquotesellexactly();
|
|
42549
42549
|
});
|
|
42550
42550
|
|
|
42551
|
-
// src/
|
|
42552
|
-
|
|
42553
|
-
|
|
42551
|
+
// src/types/async.ts
|
|
42552
|
+
var APIPromise;
|
|
42553
|
+
var init_async = __esm(() => {
|
|
42554
|
+
APIPromise = class APIPromise {
|
|
42555
|
+
#promise;
|
|
42556
|
+
#unwrapped;
|
|
42557
|
+
[Symbol.toStringTag] = "APIPromise";
|
|
42558
|
+
constructor(p) {
|
|
42559
|
+
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
42560
|
+
this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
|
|
42561
|
+
}
|
|
42562
|
+
then(onfulfilled, onrejected) {
|
|
42563
|
+
return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
|
|
42564
|
+
}
|
|
42565
|
+
catch(onrejected) {
|
|
42566
|
+
return this.#unwrapped.catch(onrejected);
|
|
42567
|
+
}
|
|
42568
|
+
finally(onfinally) {
|
|
42569
|
+
return this.#unwrapped.finally(onfinally);
|
|
42570
|
+
}
|
|
42571
|
+
$inspect() {
|
|
42572
|
+
return this.#promise;
|
|
42573
|
+
}
|
|
42574
|
+
};
|
|
42575
|
+
});
|
|
42576
|
+
|
|
42577
|
+
// src/funcs/aaveV3AvgRate.ts
|
|
42578
|
+
function aaveV3AvgRate(client, request, options) {
|
|
42579
|
+
return new APIPromise($do(client, request, options));
|
|
42554
42580
|
}
|
|
42555
|
-
async function $
|
|
42556
|
-
const parsed = safeParse(request, (value) =>
|
|
42581
|
+
async function $do(client, request, options) {
|
|
42582
|
+
const parsed = safeParse(request, (value) => AaveAvgRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42557
42583
|
if (!parsed.ok) {
|
|
42558
42584
|
return [parsed, { status: "invalid" }];
|
|
42559
42585
|
}
|
|
42560
42586
|
const payload = parsed.value;
|
|
42561
42587
|
const body = null;
|
|
42562
|
-
const path = pathToFunc("/v0/aave/
|
|
42588
|
+
const path = pathToFunc("/v0/aave/avg_rate/get")();
|
|
42563
42589
|
const query = encodeFormQuery({
|
|
42564
42590
|
chain: payload.chain,
|
|
42565
|
-
|
|
42566
|
-
|
|
42567
|
-
user_address: payload.user_address
|
|
42591
|
+
days: payload.days,
|
|
42592
|
+
token: payload.token
|
|
42568
42593
|
});
|
|
42569
42594
|
const headers = new Headers(compactMap({
|
|
42570
42595
|
Accept: "application/json"
|
|
@@ -42574,7 +42599,7 @@ async function $do2(client, request, options) {
|
|
|
42574
42599
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42575
42600
|
const context = {
|
|
42576
42601
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42577
|
-
operationID: "
|
|
42602
|
+
operationID: "aave_avg_rate",
|
|
42578
42603
|
oAuth2Scopes: [],
|
|
42579
42604
|
resolvedSecurity: requestSecurity,
|
|
42580
42605
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -42608,13 +42633,13 @@ async function $do2(client, request, options) {
|
|
|
42608
42633
|
const responseFields = {
|
|
42609
42634
|
HttpMeta: { Response: response, Request: req }
|
|
42610
42635
|
};
|
|
42611
|
-
const [result] = await match(json(200,
|
|
42636
|
+
const [result] = await match(json(200, AaveAvgRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42612
42637
|
if (!result.ok) {
|
|
42613
42638
|
return [result, { status: "complete", request: req, response }];
|
|
42614
42639
|
}
|
|
42615
42640
|
return [result, { status: "complete", request: req, response }];
|
|
42616
42641
|
}
|
|
42617
|
-
var
|
|
42642
|
+
var init_aaveV3AvgRate = __esm(() => {
|
|
42618
42643
|
init_encodings();
|
|
42619
42644
|
init_matchers();
|
|
42620
42645
|
init_primitives();
|
|
@@ -42627,28 +42652,23 @@ var init_aaveV3HistoricalTransactions = __esm(() => {
|
|
|
42627
42652
|
init_async();
|
|
42628
42653
|
});
|
|
42629
42654
|
|
|
42630
|
-
// src/mcp-server/tools/
|
|
42631
|
-
var
|
|
42632
|
-
var
|
|
42633
|
-
|
|
42655
|
+
// src/mcp-server/tools/aaveV3AvgRate.ts
|
|
42656
|
+
var args, tool$aaveV3AvgRate;
|
|
42657
|
+
var init_aaveV3AvgRate2 = __esm(() => {
|
|
42658
|
+
init_aaveV3AvgRate();
|
|
42634
42659
|
init_operations();
|
|
42635
42660
|
init_tools();
|
|
42636
|
-
|
|
42637
|
-
request:
|
|
42661
|
+
args = {
|
|
42662
|
+
request: AaveAvgRateRequest$inboundSchema
|
|
42638
42663
|
};
|
|
42639
|
-
tool$
|
|
42640
|
-
name: "aave-v3-
|
|
42641
|
-
description: `
|
|
42642
|
-
|
|
42643
|
-
This endpoint retrieves historical transactions for a user on the AAVE platform.
|
|
42664
|
+
tool$aaveV3AvgRate = {
|
|
42665
|
+
name: "aave-v3-avg-rate",
|
|
42666
|
+
description: `Average interest rates
|
|
42644
42667
|
|
|
42645
|
-
|
|
42646
|
-
|
|
42647
|
-
|
|
42648
|
-
|
|
42649
|
-
args: args2,
|
|
42650
|
-
tool: async (client, args3, ctx) => {
|
|
42651
|
-
const [result, apiCall] = await aaveV3HistoricalTransactions(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42668
|
+
Returns time averaged Interest Rates for Aave Reserves:`,
|
|
42669
|
+
args,
|
|
42670
|
+
tool: async (client, args2, ctx) => {
|
|
42671
|
+
const [result, apiCall] = await aaveV3AvgRate(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42652
42672
|
if (!result.ok) {
|
|
42653
42673
|
return {
|
|
42654
42674
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42661,11 +42681,228 @@ activity within the AAVE protocol.`,
|
|
|
42661
42681
|
};
|
|
42662
42682
|
});
|
|
42663
42683
|
|
|
42664
|
-
// src/funcs/
|
|
42665
|
-
function
|
|
42684
|
+
// src/funcs/aaveV3Borrow.ts
|
|
42685
|
+
function aaveV3Borrow(client, request, options) {
|
|
42686
|
+
return new APIPromise($do2(client, request, options));
|
|
42687
|
+
}
|
|
42688
|
+
async function $do2(client, request, options) {
|
|
42689
|
+
const parsed = safeParse(request, (value) => AaveBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42690
|
+
if (!parsed.ok) {
|
|
42691
|
+
return [parsed, { status: "invalid" }];
|
|
42692
|
+
}
|
|
42693
|
+
const payload = parsed.value;
|
|
42694
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
42695
|
+
const path = pathToFunc("/v0/aave/borrow")();
|
|
42696
|
+
const headers = new Headers(compactMap({
|
|
42697
|
+
"Content-Type": "application/json",
|
|
42698
|
+
Accept: "application/json"
|
|
42699
|
+
}));
|
|
42700
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
42701
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
42702
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42703
|
+
const context = {
|
|
42704
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42705
|
+
operationID: "aave_borrow",
|
|
42706
|
+
oAuth2Scopes: [],
|
|
42707
|
+
resolvedSecurity: requestSecurity,
|
|
42708
|
+
securitySource: client._options.apiKeyAuth,
|
|
42709
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42710
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42711
|
+
};
|
|
42712
|
+
const requestRes = client._createRequest(context, {
|
|
42713
|
+
security: requestSecurity,
|
|
42714
|
+
method: "POST",
|
|
42715
|
+
baseURL: options?.serverURL,
|
|
42716
|
+
path,
|
|
42717
|
+
headers,
|
|
42718
|
+
body,
|
|
42719
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42720
|
+
}, options);
|
|
42721
|
+
if (!requestRes.ok) {
|
|
42722
|
+
return [requestRes, { status: "invalid" }];
|
|
42723
|
+
}
|
|
42724
|
+
const req = requestRes.value;
|
|
42725
|
+
const doResult = await client._do(req, {
|
|
42726
|
+
context,
|
|
42727
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
42728
|
+
retryConfig: context.retryConfig,
|
|
42729
|
+
retryCodes: context.retryCodes
|
|
42730
|
+
});
|
|
42731
|
+
if (!doResult.ok) {
|
|
42732
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42733
|
+
}
|
|
42734
|
+
const response = doResult.value;
|
|
42735
|
+
const responseFields = {
|
|
42736
|
+
HttpMeta: { Response: response, Request: req }
|
|
42737
|
+
};
|
|
42738
|
+
const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42739
|
+
if (!result.ok) {
|
|
42740
|
+
return [result, { status: "complete", request: req, response }];
|
|
42741
|
+
}
|
|
42742
|
+
return [result, { status: "complete", request: req, response }];
|
|
42743
|
+
}
|
|
42744
|
+
var init_aaveV3Borrow = __esm(() => {
|
|
42745
|
+
init_encodings();
|
|
42746
|
+
init_matchers();
|
|
42747
|
+
init_primitives();
|
|
42748
|
+
init_schemas();
|
|
42749
|
+
init_security();
|
|
42750
|
+
init_url();
|
|
42751
|
+
init_components();
|
|
42752
|
+
init_errors();
|
|
42753
|
+
init_async();
|
|
42754
|
+
});
|
|
42755
|
+
|
|
42756
|
+
// src/mcp-server/tools/aaveV3Borrow.ts
|
|
42757
|
+
var args2, tool$aaveV3Borrow;
|
|
42758
|
+
var init_aaveV3Borrow2 = __esm(() => {
|
|
42759
|
+
init_aaveV3Borrow();
|
|
42760
|
+
init_components();
|
|
42761
|
+
init_tools();
|
|
42762
|
+
args2 = {
|
|
42763
|
+
request: AaveBorrowRequest$inboundSchema
|
|
42764
|
+
};
|
|
42765
|
+
tool$aaveV3Borrow = {
|
|
42766
|
+
name: "aave-v3-borrow",
|
|
42767
|
+
description: `Borrow
|
|
42768
|
+
|
|
42769
|
+
You will pay interest for your borrows.
|
|
42770
|
+
|
|
42771
|
+
Price changes in the assets may lead to some or all of your collateral being
|
|
42772
|
+
liquidated, if the borrow position becomes unhealthy.`,
|
|
42773
|
+
args: args2,
|
|
42774
|
+
tool: async (client, args3, ctx) => {
|
|
42775
|
+
const [result, apiCall] = await aaveV3Borrow(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42776
|
+
if (!result.ok) {
|
|
42777
|
+
return {
|
|
42778
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42779
|
+
isError: true
|
|
42780
|
+
};
|
|
42781
|
+
}
|
|
42782
|
+
const value = result.value;
|
|
42783
|
+
return formatResult(value, apiCall);
|
|
42784
|
+
}
|
|
42785
|
+
};
|
|
42786
|
+
});
|
|
42787
|
+
|
|
42788
|
+
// src/funcs/aaveV3HistoricalTransactions.ts
|
|
42789
|
+
function aaveV3HistoricalTransactions(client, request, options) {
|
|
42666
42790
|
return new APIPromise($do3(client, request, options));
|
|
42667
42791
|
}
|
|
42668
42792
|
async function $do3(client, request, options) {
|
|
42793
|
+
const parsed = safeParse(request, (value) => AaveHistoricalTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42794
|
+
if (!parsed.ok) {
|
|
42795
|
+
return [parsed, { status: "invalid" }];
|
|
42796
|
+
}
|
|
42797
|
+
const payload = parsed.value;
|
|
42798
|
+
const body = null;
|
|
42799
|
+
const path = pathToFunc("/v0/aave/historical_transactions/get")();
|
|
42800
|
+
const query = encodeFormQuery({
|
|
42801
|
+
chain: payload.chain,
|
|
42802
|
+
limit: payload.limit,
|
|
42803
|
+
offset: payload.offset,
|
|
42804
|
+
user_address: payload.user_address
|
|
42805
|
+
});
|
|
42806
|
+
const headers = new Headers(compactMap({
|
|
42807
|
+
Accept: "application/json"
|
|
42808
|
+
}));
|
|
42809
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
42810
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
42811
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42812
|
+
const context = {
|
|
42813
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42814
|
+
operationID: "aave_historical_transactions",
|
|
42815
|
+
oAuth2Scopes: [],
|
|
42816
|
+
resolvedSecurity: requestSecurity,
|
|
42817
|
+
securitySource: client._options.apiKeyAuth,
|
|
42818
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42819
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42820
|
+
};
|
|
42821
|
+
const requestRes = client._createRequest(context, {
|
|
42822
|
+
security: requestSecurity,
|
|
42823
|
+
method: "GET",
|
|
42824
|
+
baseURL: options?.serverURL,
|
|
42825
|
+
path,
|
|
42826
|
+
headers,
|
|
42827
|
+
query,
|
|
42828
|
+
body,
|
|
42829
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42830
|
+
}, options);
|
|
42831
|
+
if (!requestRes.ok) {
|
|
42832
|
+
return [requestRes, { status: "invalid" }];
|
|
42833
|
+
}
|
|
42834
|
+
const req = requestRes.value;
|
|
42835
|
+
const doResult = await client._do(req, {
|
|
42836
|
+
context,
|
|
42837
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
42838
|
+
retryConfig: context.retryConfig,
|
|
42839
|
+
retryCodes: context.retryCodes
|
|
42840
|
+
});
|
|
42841
|
+
if (!doResult.ok) {
|
|
42842
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42843
|
+
}
|
|
42844
|
+
const response = doResult.value;
|
|
42845
|
+
const responseFields = {
|
|
42846
|
+
HttpMeta: { Response: response, Request: req }
|
|
42847
|
+
};
|
|
42848
|
+
const [result] = await match(json(200, AaveHistoricalTransactionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42849
|
+
if (!result.ok) {
|
|
42850
|
+
return [result, { status: "complete", request: req, response }];
|
|
42851
|
+
}
|
|
42852
|
+
return [result, { status: "complete", request: req, response }];
|
|
42853
|
+
}
|
|
42854
|
+
var init_aaveV3HistoricalTransactions = __esm(() => {
|
|
42855
|
+
init_encodings();
|
|
42856
|
+
init_matchers();
|
|
42857
|
+
init_primitives();
|
|
42858
|
+
init_schemas();
|
|
42859
|
+
init_security();
|
|
42860
|
+
init_url();
|
|
42861
|
+
init_components();
|
|
42862
|
+
init_errors();
|
|
42863
|
+
init_operations();
|
|
42864
|
+
init_async();
|
|
42865
|
+
});
|
|
42866
|
+
|
|
42867
|
+
// src/mcp-server/tools/aaveV3HistoricalTransactions.ts
|
|
42868
|
+
var args3, tool$aaveV3HistoricalTransactions;
|
|
42869
|
+
var init_aaveV3HistoricalTransactions2 = __esm(() => {
|
|
42870
|
+
init_aaveV3HistoricalTransactions();
|
|
42871
|
+
init_operations();
|
|
42872
|
+
init_tools();
|
|
42873
|
+
args3 = {
|
|
42874
|
+
request: AaveHistoricalTransactionsRequest$inboundSchema
|
|
42875
|
+
};
|
|
42876
|
+
tool$aaveV3HistoricalTransactions = {
|
|
42877
|
+
name: "aave-v3-historical-transactions",
|
|
42878
|
+
description: `Historical transactions
|
|
42879
|
+
|
|
42880
|
+
This endpoint retrieves historical transactions for a user on the AAVE platform.
|
|
42881
|
+
|
|
42882
|
+
It returns a list of transactions including deposits, withdrawals, borrows, and
|
|
42883
|
+
repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
42884
|
+
and transaction type. This provides a comprehensive view of the user's historical
|
|
42885
|
+
activity within the AAVE protocol.`,
|
|
42886
|
+
args: args3,
|
|
42887
|
+
tool: async (client, args4, ctx) => {
|
|
42888
|
+
const [result, apiCall] = await aaveV3HistoricalTransactions(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42889
|
+
if (!result.ok) {
|
|
42890
|
+
return {
|
|
42891
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42892
|
+
isError: true
|
|
42893
|
+
};
|
|
42894
|
+
}
|
|
42895
|
+
const value = result.value;
|
|
42896
|
+
return formatResult(value, apiCall);
|
|
42897
|
+
}
|
|
42898
|
+
};
|
|
42899
|
+
});
|
|
42900
|
+
|
|
42901
|
+
// src/funcs/aaveV3LiquidityChange.ts
|
|
42902
|
+
function aaveV3LiquidityChange(client, request, options) {
|
|
42903
|
+
return new APIPromise($do4(client, request, options));
|
|
42904
|
+
}
|
|
42905
|
+
async function $do4(client, request, options) {
|
|
42669
42906
|
const parsed = safeParse(request, (value) => AaveLiquidityChangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42670
42907
|
if (!parsed.ok) {
|
|
42671
42908
|
return [parsed, { status: "invalid" }];
|
|
@@ -42741,12 +42978,12 @@ var init_aaveV3LiquidityChange = __esm(() => {
|
|
|
42741
42978
|
});
|
|
42742
42979
|
|
|
42743
42980
|
// src/mcp-server/tools/aaveV3LiquidityChange.ts
|
|
42744
|
-
var
|
|
42981
|
+
var args4, tool$aaveV3LiquidityChange;
|
|
42745
42982
|
var init_aaveV3LiquidityChange2 = __esm(() => {
|
|
42746
42983
|
init_aaveV3LiquidityChange();
|
|
42747
42984
|
init_operations();
|
|
42748
42985
|
init_tools();
|
|
42749
|
-
|
|
42986
|
+
args4 = {
|
|
42750
42987
|
request: AaveLiquidityChangeRequest$inboundSchema
|
|
42751
42988
|
};
|
|
42752
42989
|
tool$aaveV3LiquidityChange = {
|
|
@@ -42764,9 +43001,9 @@ at the start block, a positive liquidity index change will represent accrued
|
|
|
42764
43001
|
interest and a profit. If tokens were borrowed at the start block, this debt will
|
|
42765
43002
|
increase, compound on itself and represent large debt. The reverse in both cases is
|
|
42766
43003
|
true if the liquidity index is negative.`,
|
|
42767
|
-
args:
|
|
42768
|
-
tool: async (client,
|
|
42769
|
-
const [result, apiCall] = await aaveV3LiquidityChange(client,
|
|
43004
|
+
args: args4,
|
|
43005
|
+
tool: async (client, args5, ctx) => {
|
|
43006
|
+
const [result, apiCall] = await aaveV3LiquidityChange(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42770
43007
|
if (!result.ok) {
|
|
42771
43008
|
return {
|
|
42772
43009
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42781,9 +43018,9 @@ true if the liquidity index is negative.`,
|
|
|
42781
43018
|
|
|
42782
43019
|
// src/funcs/aaveV3Rate.ts
|
|
42783
43020
|
function aaveV3Rate(client, request, options) {
|
|
42784
|
-
return new APIPromise($
|
|
43021
|
+
return new APIPromise($do5(client, request, options));
|
|
42785
43022
|
}
|
|
42786
|
-
async function $
|
|
43023
|
+
async function $do5(client, request, options) {
|
|
42787
43024
|
const parsed = safeParse(request, (value) => AaveRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42788
43025
|
if (!parsed.ok) {
|
|
42789
43026
|
return [parsed, { status: "invalid" }];
|
|
@@ -42857,12 +43094,12 @@ var init_aaveV3Rate = __esm(() => {
|
|
|
42857
43094
|
});
|
|
42858
43095
|
|
|
42859
43096
|
// src/mcp-server/tools/aaveV3Rate.ts
|
|
42860
|
-
var
|
|
43097
|
+
var args5, tool$aaveV3Rate;
|
|
42861
43098
|
var init_aaveV3Rate2 = __esm(() => {
|
|
42862
43099
|
init_aaveV3Rate();
|
|
42863
43100
|
init_operations();
|
|
42864
43101
|
init_tools();
|
|
42865
|
-
|
|
43102
|
+
args5 = {
|
|
42866
43103
|
request: AaveRateRequest$inboundSchema
|
|
42867
43104
|
};
|
|
42868
43105
|
tool$aaveV3Rate = {
|
|
@@ -42883,9 +43120,9 @@ blockchain every time this endpoint is called.
|
|
|
42883
43120
|
compounding).
|
|
42884
43121
|
|
|
42885
43122
|
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,
|
|
43123
|
+
args: args5,
|
|
43124
|
+
tool: async (client, args6, ctx) => {
|
|
43125
|
+
const [result, apiCall] = await aaveV3Rate(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42889
43126
|
if (!result.ok) {
|
|
42890
43127
|
return {
|
|
42891
43128
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42900,9 +43137,9 @@ For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.`
|
|
|
42900
43137
|
|
|
42901
43138
|
// src/funcs/aaveV3Repay.ts
|
|
42902
43139
|
function aaveV3Repay(client, request, options) {
|
|
42903
|
-
return new APIPromise($
|
|
43140
|
+
return new APIPromise($do6(client, request, options));
|
|
42904
43141
|
}
|
|
42905
|
-
async function $
|
|
43142
|
+
async function $do6(client, request, options) {
|
|
42906
43143
|
const parsed = safeParse(request, (value) => AaveRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42907
43144
|
if (!parsed.ok) {
|
|
42908
43145
|
return [parsed, { status: "invalid" }];
|
|
@@ -42971,12 +43208,12 @@ var init_aaveV3Repay = __esm(() => {
|
|
|
42971
43208
|
});
|
|
42972
43209
|
|
|
42973
43210
|
// src/mcp-server/tools/aaveV3Repay.ts
|
|
42974
|
-
var
|
|
43211
|
+
var args6, tool$aaveV3Repay;
|
|
42975
43212
|
var init_aaveV3Repay2 = __esm(() => {
|
|
42976
43213
|
init_aaveV3Repay();
|
|
42977
43214
|
init_components();
|
|
42978
43215
|
init_tools();
|
|
42979
|
-
|
|
43216
|
+
args6 = {
|
|
42980
43217
|
request: AaveRepayRequest$inboundSchema
|
|
42981
43218
|
};
|
|
42982
43219
|
tool$aaveV3Repay = {
|
|
@@ -42991,9 +43228,9 @@ measure of the safety of their loan position. A higher health factor reduces the
|
|
|
42991
43228
|
risk of liquidation, ensuring a more secure borrowing experience. The endpoint
|
|
42992
43229
|
requires specifying the chain and the details of the repayment transaction,
|
|
42993
43230
|
including the amount and the asset to be repaid.`,
|
|
42994
|
-
args:
|
|
42995
|
-
tool: async (client,
|
|
42996
|
-
const [result, apiCall] = await aaveV3Repay(client,
|
|
43231
|
+
args: args6,
|
|
43232
|
+
tool: async (client, args7, ctx) => {
|
|
43233
|
+
const [result, apiCall] = await aaveV3Repay(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42997
43234
|
if (!result.ok) {
|
|
42998
43235
|
return {
|
|
42999
43236
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43008,9 +43245,9 @@ including the amount and the asset to be repaid.`,
|
|
|
43008
43245
|
|
|
43009
43246
|
// src/funcs/aaveV3ReserveOverview.ts
|
|
43010
43247
|
function aaveV3ReserveOverview(client, request, options) {
|
|
43011
|
-
return new APIPromise($
|
|
43248
|
+
return new APIPromise($do7(client, request, options));
|
|
43012
43249
|
}
|
|
43013
|
-
async function $
|
|
43250
|
+
async function $do7(client, request, options) {
|
|
43014
43251
|
const parsed = safeParse(request, (value) => AaveReserveOverviewRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43015
43252
|
if (!parsed.ok) {
|
|
43016
43253
|
return [parsed, { status: "invalid" }];
|
|
@@ -43084,12 +43321,12 @@ var init_aaveV3ReserveOverview = __esm(() => {
|
|
|
43084
43321
|
});
|
|
43085
43322
|
|
|
43086
43323
|
// src/mcp-server/tools/aaveV3ReserveOverview.ts
|
|
43087
|
-
var
|
|
43324
|
+
var args7, tool$aaveV3ReserveOverview;
|
|
43088
43325
|
var init_aaveV3ReserveOverview2 = __esm(() => {
|
|
43089
43326
|
init_aaveV3ReserveOverview();
|
|
43090
43327
|
init_operations();
|
|
43091
43328
|
init_tools();
|
|
43092
|
-
|
|
43329
|
+
args7 = {
|
|
43093
43330
|
request: AaveReserveOverviewRequest$inboundSchema
|
|
43094
43331
|
};
|
|
43095
43332
|
tool$aaveV3ReserveOverview = {
|
|
@@ -43102,9 +43339,9 @@ Returns key metrics for Aave Reserves:
|
|
|
43102
43339
|
- Utilization Ratio
|
|
43103
43340
|
|
|
43104
43341
|
See below for more info:`,
|
|
43105
|
-
args:
|
|
43106
|
-
tool: async (client,
|
|
43107
|
-
const [result, apiCall] = await aaveV3ReserveOverview(client,
|
|
43342
|
+
args: args7,
|
|
43343
|
+
tool: async (client, args8, ctx) => {
|
|
43344
|
+
const [result, apiCall] = await aaveV3ReserveOverview(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43108
43345
|
if (!result.ok) {
|
|
43109
43346
|
return {
|
|
43110
43347
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43119,9 +43356,9 @@ See below for more info:`,
|
|
|
43119
43356
|
|
|
43120
43357
|
// src/funcs/aaveV3Supply.ts
|
|
43121
43358
|
function aaveV3Supply(client, request, options) {
|
|
43122
|
-
return new APIPromise($
|
|
43359
|
+
return new APIPromise($do8(client, request, options));
|
|
43123
43360
|
}
|
|
43124
|
-
async function $
|
|
43361
|
+
async function $do8(client, request, options) {
|
|
43125
43362
|
const parsed = safeParse(request, (value) => AaveSupplyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43126
43363
|
if (!parsed.ok) {
|
|
43127
43364
|
return [parsed, { status: "invalid" }];
|
|
@@ -43190,12 +43427,12 @@ var init_aaveV3Supply = __esm(() => {
|
|
|
43190
43427
|
});
|
|
43191
43428
|
|
|
43192
43429
|
// src/mcp-server/tools/aaveV3Supply.ts
|
|
43193
|
-
var
|
|
43430
|
+
var args8, tool$aaveV3Supply;
|
|
43194
43431
|
var init_aaveV3Supply2 = __esm(() => {
|
|
43195
43432
|
init_aaveV3Supply();
|
|
43196
43433
|
init_components();
|
|
43197
43434
|
init_tools();
|
|
43198
|
-
|
|
43435
|
+
args8 = {
|
|
43199
43436
|
request: AaveSupplyRequest$inboundSchema
|
|
43200
43437
|
};
|
|
43201
43438
|
tool$aaveV3Supply = {
|
|
@@ -43211,9 +43448,9 @@ create leverage.
|
|
|
43211
43448
|
Overall, this endpoint is a critical component for users looking to maximize their
|
|
43212
43449
|
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
43213
43450
|
borrowing flexibility.`,
|
|
43214
|
-
args:
|
|
43215
|
-
tool: async (client,
|
|
43216
|
-
const [result, apiCall] = await aaveV3Supply(client,
|
|
43451
|
+
args: args8,
|
|
43452
|
+
tool: async (client, args9, ctx) => {
|
|
43453
|
+
const [result, apiCall] = await aaveV3Supply(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43217
43454
|
if (!result.ok) {
|
|
43218
43455
|
return {
|
|
43219
43456
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43228,9 +43465,9 @@ borrowing flexibility.`,
|
|
|
43228
43465
|
|
|
43229
43466
|
// src/funcs/aaveV3TokenPrice.ts
|
|
43230
43467
|
function aaveV3TokenPrice(client, request, options) {
|
|
43231
|
-
return new APIPromise($
|
|
43468
|
+
return new APIPromise($do9(client, request, options));
|
|
43232
43469
|
}
|
|
43233
|
-
async function $
|
|
43470
|
+
async function $do9(client, request, options) {
|
|
43234
43471
|
const parsed = safeParse(request, (value) => AaveTokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43235
43472
|
if (!parsed.ok) {
|
|
43236
43473
|
return [parsed, { status: "invalid" }];
|
|
@@ -43304,12 +43541,12 @@ var init_aaveV3TokenPrice = __esm(() => {
|
|
|
43304
43541
|
});
|
|
43305
43542
|
|
|
43306
43543
|
// src/mcp-server/tools/aaveV3TokenPrice.ts
|
|
43307
|
-
var
|
|
43544
|
+
var args9, tool$aaveV3TokenPrice;
|
|
43308
43545
|
var init_aaveV3TokenPrice2 = __esm(() => {
|
|
43309
43546
|
init_aaveV3TokenPrice();
|
|
43310
43547
|
init_operations();
|
|
43311
43548
|
init_tools();
|
|
43312
|
-
|
|
43549
|
+
args9 = {
|
|
43313
43550
|
request: AaveTokenPriceRequest$inboundSchema
|
|
43314
43551
|
};
|
|
43315
43552
|
tool$aaveV3TokenPrice = {
|
|
@@ -43324,9 +43561,9 @@ to-date information. The request requires the token identifier and the blockchai
|
|
|
43324
43561
|
network (chain) on which the token resides. The response provides the token price in
|
|
43325
43562
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
43326
43563
|
Aave.`,
|
|
43327
|
-
args:
|
|
43328
|
-
tool: async (client,
|
|
43329
|
-
const [result, apiCall] = await aaveV3TokenPrice(client,
|
|
43564
|
+
args: args9,
|
|
43565
|
+
tool: async (client, args10, ctx) => {
|
|
43566
|
+
const [result, apiCall] = await aaveV3TokenPrice(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43330
43567
|
if (!result.ok) {
|
|
43331
43568
|
return {
|
|
43332
43569
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43341,9 +43578,9 @@ Aave.`,
|
|
|
43341
43578
|
|
|
43342
43579
|
// src/funcs/aaveV3UserPositionPerToken.ts
|
|
43343
43580
|
function aaveV3UserPositionPerToken(client, request, options) {
|
|
43344
|
-
return new APIPromise($
|
|
43581
|
+
return new APIPromise($do10(client, request, options));
|
|
43345
43582
|
}
|
|
43346
|
-
async function $
|
|
43583
|
+
async function $do10(client, request, options) {
|
|
43347
43584
|
const parsed = safeParse(request, (value) => AaveUserPositionPerTokenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43348
43585
|
if (!parsed.ok) {
|
|
43349
43586
|
return [parsed, { status: "invalid" }];
|
|
@@ -43418,12 +43655,12 @@ var init_aaveV3UserPositionPerToken = __esm(() => {
|
|
|
43418
43655
|
});
|
|
43419
43656
|
|
|
43420
43657
|
// src/mcp-server/tools/aaveV3UserPositionPerToken.ts
|
|
43421
|
-
var
|
|
43658
|
+
var args10, tool$aaveV3UserPositionPerToken;
|
|
43422
43659
|
var init_aaveV3UserPositionPerToken2 = __esm(() => {
|
|
43423
43660
|
init_aaveV3UserPositionPerToken();
|
|
43424
43661
|
init_operations();
|
|
43425
43662
|
init_tools();
|
|
43426
|
-
|
|
43663
|
+
args10 = {
|
|
43427
43664
|
request: AaveUserPositionPerTokenRequest$inboundSchema
|
|
43428
43665
|
};
|
|
43429
43666
|
tool$aaveV3UserPositionPerToken = {
|
|
@@ -43439,9 +43676,9 @@ stable borrow rate, stable borrow rate for new loans, variable borrow rate, and
|
|
|
43439
43676
|
liquidity rate. These metrics are calculated by aggregating data across all open
|
|
43440
43677
|
positions held by the user for the specified token, offering a detailed view of
|
|
43441
43678
|
their financial standing within the AAVE ecosystem.`,
|
|
43442
|
-
args:
|
|
43443
|
-
tool: async (client,
|
|
43444
|
-
const [result, apiCall] = await aaveV3UserPositionPerToken(client,
|
|
43679
|
+
args: args10,
|
|
43680
|
+
tool: async (client, args11, ctx) => {
|
|
43681
|
+
const [result, apiCall] = await aaveV3UserPositionPerToken(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43445
43682
|
if (!result.ok) {
|
|
43446
43683
|
return {
|
|
43447
43684
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43456,9 +43693,9 @@ their financial standing within the AAVE ecosystem.`,
|
|
|
43456
43693
|
|
|
43457
43694
|
// src/funcs/aaveV3UserPositionSummary.ts
|
|
43458
43695
|
function aaveV3UserPositionSummary(client, request, options) {
|
|
43459
|
-
return new APIPromise($
|
|
43696
|
+
return new APIPromise($do11(client, request, options));
|
|
43460
43697
|
}
|
|
43461
|
-
async function $
|
|
43698
|
+
async function $do11(client, request, options) {
|
|
43462
43699
|
const parsed = safeParse(request, (value) => AaveUserPositionSummaryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43463
43700
|
if (!parsed.ok) {
|
|
43464
43701
|
return [parsed, { status: "invalid" }];
|
|
@@ -43532,12 +43769,12 @@ var init_aaveV3UserPositionSummary = __esm(() => {
|
|
|
43532
43769
|
});
|
|
43533
43770
|
|
|
43534
43771
|
// src/mcp-server/tools/aaveV3UserPositionSummary.ts
|
|
43535
|
-
var
|
|
43772
|
+
var args11, tool$aaveV3UserPositionSummary;
|
|
43536
43773
|
var init_aaveV3UserPositionSummary2 = __esm(() => {
|
|
43537
43774
|
init_aaveV3UserPositionSummary();
|
|
43538
43775
|
init_operations();
|
|
43539
43776
|
init_tools();
|
|
43540
|
-
|
|
43777
|
+
args11 = {
|
|
43541
43778
|
request: AaveUserPositionSummaryRequest$inboundSchema
|
|
43542
43779
|
};
|
|
43543
43780
|
tool$aaveV3UserPositionSummary = {
|
|
@@ -43552,9 +43789,9 @@ debt accrued, available borrowing capacity, liquidation threshold, maximum loan-
|
|
|
43552
43789
|
value ratio, and the health factor of the user's account. These metrics are
|
|
43553
43790
|
calculated by aggregating data across all open positions held by the user, offering
|
|
43554
43791
|
a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
43555
|
-
args:
|
|
43556
|
-
tool: async (client,
|
|
43557
|
-
const [result, apiCall] = await aaveV3UserPositionSummary(client,
|
|
43792
|
+
args: args11,
|
|
43793
|
+
tool: async (client, args12, ctx) => {
|
|
43794
|
+
const [result, apiCall] = await aaveV3UserPositionSummary(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43558
43795
|
if (!result.ok) {
|
|
43559
43796
|
return {
|
|
43560
43797
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43569,9 +43806,9 @@ a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
|
43569
43806
|
|
|
43570
43807
|
// src/funcs/aaveV3Withdraw.ts
|
|
43571
43808
|
function aaveV3Withdraw(client, request, options) {
|
|
43572
|
-
return new APIPromise($
|
|
43809
|
+
return new APIPromise($do12(client, request, options));
|
|
43573
43810
|
}
|
|
43574
|
-
async function $
|
|
43811
|
+
async function $do12(client, request, options) {
|
|
43575
43812
|
const parsed = safeParse(request, (value) => AaveWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43576
43813
|
if (!parsed.ok) {
|
|
43577
43814
|
return [parsed, { status: "invalid" }];
|
|
@@ -43640,12 +43877,12 @@ var init_aaveV3Withdraw = __esm(() => {
|
|
|
43640
43877
|
});
|
|
43641
43878
|
|
|
43642
43879
|
// src/mcp-server/tools/aaveV3Withdraw.ts
|
|
43643
|
-
var
|
|
43880
|
+
var args12, tool$aaveV3Withdraw;
|
|
43644
43881
|
var init_aaveV3Withdraw2 = __esm(() => {
|
|
43645
43882
|
init_aaveV3Withdraw();
|
|
43646
43883
|
init_components();
|
|
43647
43884
|
init_tools();
|
|
43648
|
-
|
|
43885
|
+
args12 = {
|
|
43649
43886
|
request: AaveWithdrawRequest$inboundSchema
|
|
43650
43887
|
};
|
|
43651
43888
|
tool$aaveV3Withdraw = {
|
|
@@ -43661,9 +43898,9 @@ for users to carefully consider their outstanding debts and the potential impact
|
|
|
43661
43898
|
their liquidation threshold before proceeding with a withdrawal. This endpoint is
|
|
43662
43899
|
designed to provide a seamless and efficient way to manage your collateral within
|
|
43663
43900
|
the Aave ecosystem.`,
|
|
43664
|
-
args:
|
|
43665
|
-
tool: async (client,
|
|
43666
|
-
const [result, apiCall] = await aaveV3Withdraw(client,
|
|
43901
|
+
args: args12,
|
|
43902
|
+
tool: async (client, args13, ctx) => {
|
|
43903
|
+
const [result, apiCall] = await aaveV3Withdraw(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43667
43904
|
if (!result.ok) {
|
|
43668
43905
|
return {
|
|
43669
43906
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43678,9 +43915,9 @@ the Aave ecosystem.`,
|
|
|
43678
43915
|
|
|
43679
43916
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43680
43917
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, request, options) {
|
|
43681
|
-
return new APIPromise($
|
|
43918
|
+
return new APIPromise($do13(client, request, options));
|
|
43682
43919
|
}
|
|
43683
|
-
async function $
|
|
43920
|
+
async function $do13(client, request, options) {
|
|
43684
43921
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43685
43922
|
if (!parsed.ok) {
|
|
43686
43923
|
return [parsed, { status: "invalid" }];
|
|
@@ -43749,12 +43986,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = __esm(() => {
|
|
|
43749
43986
|
});
|
|
43750
43987
|
|
|
43751
43988
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43752
|
-
var
|
|
43989
|
+
var args13, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease;
|
|
43753
43990
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease2 = __esm(() => {
|
|
43754
43991
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease();
|
|
43755
43992
|
init_components();
|
|
43756
43993
|
init_tools();
|
|
43757
|
-
|
|
43994
|
+
args13 = {
|
|
43758
43995
|
request: AerodromeSlipstreamIncreaseLiquidityProvisionRequest$inboundSchema
|
|
43759
43996
|
};
|
|
43760
43997
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = {
|
|
@@ -43772,9 +44009,9 @@ users with updated information about their enhanced position. This functionality
|
|
|
43772
44009
|
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
43773
44010
|
to adapt to market conditions and maximize their returns in decentralized finance
|
|
43774
44011
|
(DeFi) markets.`,
|
|
43775
|
-
args:
|
|
43776
|
-
tool: async (client,
|
|
43777
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client,
|
|
44012
|
+
args: args13,
|
|
44013
|
+
tool: async (client, args14, ctx) => {
|
|
44014
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43778
44015
|
if (!result.ok) {
|
|
43779
44016
|
return {
|
|
43780
44017
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43789,9 +44026,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
43789
44026
|
|
|
43790
44027
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43791
44028
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, request, options) {
|
|
43792
|
-
return new APIPromise($
|
|
44029
|
+
return new APIPromise($do14(client, request, options));
|
|
43793
44030
|
}
|
|
43794
|
-
async function $
|
|
44031
|
+
async function $do14(client, request, options) {
|
|
43795
44032
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43796
44033
|
if (!parsed.ok) {
|
|
43797
44034
|
return [parsed, { status: "invalid" }];
|
|
@@ -43860,12 +44097,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint = __esm(() => {
|
|
|
43860
44097
|
});
|
|
43861
44098
|
|
|
43862
44099
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43863
|
-
var
|
|
44100
|
+
var args14, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint;
|
|
43864
44101
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint2 = __esm(() => {
|
|
43865
44102
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint();
|
|
43866
44103
|
init_components();
|
|
43867
44104
|
init_tools();
|
|
43868
|
-
|
|
44105
|
+
args14 = {
|
|
43869
44106
|
request: AerodromeSlipstreamMintLiquidityProvisionRequest$inboundSchema
|
|
43870
44107
|
};
|
|
43871
44108
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint = {
|
|
@@ -43881,9 +44118,9 @@ confirm the successful creation of the LP position, providing users with the
|
|
|
43881
44118
|
necessary information to manage their newly minted position. This functionality is
|
|
43882
44119
|
crucial for users looking to expand their liquidity provision activities, offering
|
|
43883
44120
|
them the opportunity to engage in decentralized finance (DeFi) markets effectively.`,
|
|
43884
|
-
args:
|
|
43885
|
-
tool: async (client,
|
|
43886
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client,
|
|
44121
|
+
args: args14,
|
|
44122
|
+
tool: async (client, args15, ctx) => {
|
|
44123
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43887
44124
|
if (!result.ok) {
|
|
43888
44125
|
return {
|
|
43889
44126
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43898,9 +44135,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
43898
44135
|
|
|
43899
44136
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43900
44137
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, request, options) {
|
|
43901
|
-
return new APIPromise($
|
|
44138
|
+
return new APIPromise($do15(client, request, options));
|
|
43902
44139
|
}
|
|
43903
|
-
async function $
|
|
44140
|
+
async function $do15(client, request, options) {
|
|
43904
44141
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43905
44142
|
if (!parsed.ok) {
|
|
43906
44143
|
return [parsed, { status: "invalid" }];
|
|
@@ -43974,12 +44211,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = __esm(() =>
|
|
|
43974
44211
|
});
|
|
43975
44212
|
|
|
43976
44213
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43977
|
-
var
|
|
44214
|
+
var args15, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions;
|
|
43978
44215
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions2 = __esm(() => {
|
|
43979
44216
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions();
|
|
43980
44217
|
init_operations();
|
|
43981
44218
|
init_tools();
|
|
43982
|
-
|
|
44219
|
+
args15 = {
|
|
43983
44220
|
request: AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema
|
|
43984
44221
|
};
|
|
43985
44222
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = {
|
|
@@ -43995,9 +44232,9 @@ AerodromeLPPositionsInfo, provides a structured representation of the LP positio
|
|
|
43995
44232
|
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
43996
44233
|
managing their liquidity provision activities, enabling them to make informed
|
|
43997
44234
|
decisions based on their current positions.`,
|
|
43998
|
-
args:
|
|
43999
|
-
tool: async (client,
|
|
44000
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client,
|
|
44235
|
+
args: args15,
|
|
44236
|
+
tool: async (client, args16, ctx) => {
|
|
44237
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44001
44238
|
if (!result.ok) {
|
|
44002
44239
|
return {
|
|
44003
44240
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44012,9 +44249,9 @@ decisions based on their current positions.`,
|
|
|
44012
44249
|
|
|
44013
44250
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
44014
44251
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, request, options) {
|
|
44015
|
-
return new APIPromise($
|
|
44252
|
+
return new APIPromise($do16(client, request, options));
|
|
44016
44253
|
}
|
|
44017
|
-
async function $
|
|
44254
|
+
async function $do16(client, request, options) {
|
|
44018
44255
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44019
44256
|
if (!parsed.ok) {
|
|
44020
44257
|
return [parsed, { status: "invalid" }];
|
|
@@ -44083,12 +44320,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = __esm(() => {
|
|
|
44083
44320
|
});
|
|
44084
44321
|
|
|
44085
44322
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
44086
|
-
var
|
|
44323
|
+
var args16, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw;
|
|
44087
44324
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw2 = __esm(() => {
|
|
44088
44325
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw();
|
|
44089
44326
|
init_components();
|
|
44090
44327
|
init_tools();
|
|
44091
|
-
|
|
44328
|
+
args16 = {
|
|
44092
44329
|
request: AerodromeSlipstreamWithdrawLiquidityProvisionRequest$inboundSchema
|
|
44093
44330
|
};
|
|
44094
44331
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = {
|
|
@@ -44106,9 +44343,9 @@ wish to exit their liquidity provision activities, enabling them to reclaim thei
|
|
|
44106
44343
|
assets and potentially reallocate them to other investment opportunities. The
|
|
44107
44344
|
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
44108
44345
|
strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
44109
|
-
args:
|
|
44110
|
-
tool: async (client,
|
|
44111
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client,
|
|
44346
|
+
args: args16,
|
|
44347
|
+
tool: async (client, args17, ctx) => {
|
|
44348
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44112
44349
|
if (!result.ok) {
|
|
44113
44350
|
return {
|
|
44114
44351
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44123,9 +44360,9 @@ strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
|
44123
44360
|
|
|
44124
44361
|
// src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
44125
44362
|
function aerodromeSlipstreamSlipstreamPoolPrice(client, request, options) {
|
|
44126
|
-
return new APIPromise($
|
|
44363
|
+
return new APIPromise($do17(client, request, options));
|
|
44127
44364
|
}
|
|
44128
|
-
async function $
|
|
44365
|
+
async function $do17(client, request, options) {
|
|
44129
44366
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44130
44367
|
if (!parsed.ok) {
|
|
44131
44368
|
return [parsed, { status: "invalid" }];
|
|
@@ -44201,12 +44438,12 @@ var init_aerodromeSlipstreamSlipstreamPoolPrice = __esm(() => {
|
|
|
44201
44438
|
});
|
|
44202
44439
|
|
|
44203
44440
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
44204
|
-
var
|
|
44441
|
+
var args17, tool$aerodromeSlipstreamSlipstreamPoolPrice;
|
|
44205
44442
|
var init_aerodromeSlipstreamSlipstreamPoolPrice2 = __esm(() => {
|
|
44206
44443
|
init_aerodromeSlipstreamSlipstreamPoolPrice();
|
|
44207
44444
|
init_operations();
|
|
44208
44445
|
init_tools();
|
|
44209
|
-
|
|
44446
|
+
args17 = {
|
|
44210
44447
|
request: AerodromeSlipstreamPoolPriceRequest$inboundSchema
|
|
44211
44448
|
};
|
|
44212
44449
|
tool$aerodromeSlipstreamSlipstreamPoolPrice = {
|
|
@@ -44219,9 +44456,9 @@ you can purchase for 1 token1.
|
|
|
44219
44456
|
Note that this is an instantaneous price and may change during any trade. For a more
|
|
44220
44457
|
accurate representation of the trade ratios between the two assets, consider using
|
|
44221
44458
|
the quote endpoint.`,
|
|
44222
|
-
args:
|
|
44223
|
-
tool: async (client,
|
|
44224
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client,
|
|
44459
|
+
args: args17,
|
|
44460
|
+
tool: async (client, args18, ctx) => {
|
|
44461
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44225
44462
|
if (!result.ok) {
|
|
44226
44463
|
return {
|
|
44227
44464
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44236,9 +44473,9 @@ the quote endpoint.`,
|
|
|
44236
44473
|
|
|
44237
44474
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
44238
44475
|
function aerodromeSlipstreamSlipstreamSwapBuyExactly(client, request, options) {
|
|
44239
|
-
return new APIPromise($
|
|
44476
|
+
return new APIPromise($do18(client, request, options));
|
|
44240
44477
|
}
|
|
44241
|
-
async function $
|
|
44478
|
+
async function $do18(client, request, options) {
|
|
44242
44479
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44243
44480
|
if (!parsed.ok) {
|
|
44244
44481
|
return [parsed, { status: "invalid" }];
|
|
@@ -44307,12 +44544,12 @@ var init_aerodromeSlipstreamSlipstreamSwapBuyExactly = __esm(() => {
|
|
|
44307
44544
|
});
|
|
44308
44545
|
|
|
44309
44546
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
44310
|
-
var
|
|
44547
|
+
var args18, tool$aerodromeSlipstreamSlipstreamSwapBuyExactly;
|
|
44311
44548
|
var init_aerodromeSlipstreamSlipstreamSwapBuyExactly2 = __esm(() => {
|
|
44312
44549
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly();
|
|
44313
44550
|
init_components();
|
|
44314
44551
|
init_tools();
|
|
44315
|
-
|
|
44552
|
+
args18 = {
|
|
44316
44553
|
request: AerodromeSlipstreamBuyExactlyRequest$inboundSchema
|
|
44317
44554
|
};
|
|
44318
44555
|
tool$aerodromeSlipstreamSlipstreamSwapBuyExactly = {
|
|
@@ -44329,9 +44566,9 @@ in mind and are willing to provide the corresponding input token amount. The
|
|
|
44329
44566
|
transaction is executed with consideration of current market conditions, including
|
|
44330
44567
|
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
44331
44568
|
effectively.`,
|
|
44332
|
-
args:
|
|
44333
|
-
tool: async (client,
|
|
44334
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client,
|
|
44569
|
+
args: args18,
|
|
44570
|
+
tool: async (client, args19, ctx) => {
|
|
44571
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44335
44572
|
if (!result.ok) {
|
|
44336
44573
|
return {
|
|
44337
44574
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44346,9 +44583,9 @@ effectively.`,
|
|
|
44346
44583
|
|
|
44347
44584
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
44348
44585
|
function aerodromeSlipstreamSlipstreamSwapSellExactly(client, request, options) {
|
|
44349
|
-
return new APIPromise($
|
|
44586
|
+
return new APIPromise($do19(client, request, options));
|
|
44350
44587
|
}
|
|
44351
|
-
async function $
|
|
44588
|
+
async function $do19(client, request, options) {
|
|
44352
44589
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44353
44590
|
if (!parsed.ok) {
|
|
44354
44591
|
return [parsed, { status: "invalid" }];
|
|
@@ -44417,12 +44654,12 @@ var init_aerodromeSlipstreamSlipstreamSwapSellExactly = __esm(() => {
|
|
|
44417
44654
|
});
|
|
44418
44655
|
|
|
44419
44656
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
44420
|
-
var
|
|
44657
|
+
var args19, tool$aerodromeSlipstreamSlipstreamSwapSellExactly;
|
|
44421
44658
|
var init_aerodromeSlipstreamSlipstreamSwapSellExactly2 = __esm(() => {
|
|
44422
44659
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly();
|
|
44423
44660
|
init_components();
|
|
44424
44661
|
init_tools();
|
|
44425
|
-
|
|
44662
|
+
args19 = {
|
|
44426
44663
|
request: AerodromeSlipstreamSellExactlyRequest$inboundSchema
|
|
44427
44664
|
};
|
|
44428
44665
|
tool$aerodromeSlipstreamSlipstreamSwapSellExactly = {
|
|
@@ -44438,9 +44675,9 @@ received. The operation ensures that the trade is conducted within the constrain
|
|
|
44438
44675
|
of the current market conditions, taking into account the liquidity and price
|
|
44439
44676
|
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
44440
44677
|
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,
|
|
44678
|
+
args: args19,
|
|
44679
|
+
tool: async (client, args20, ctx) => {
|
|
44680
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44444
44681
|
if (!result.ok) {
|
|
44445
44682
|
return {
|
|
44446
44683
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44455,9 +44692,9 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
44455
44692
|
|
|
44456
44693
|
// src/funcs/morphoAllowance.ts
|
|
44457
44694
|
function morphoAllowance(client, request, options) {
|
|
44458
|
-
return new APIPromise($
|
|
44695
|
+
return new APIPromise($do20(client, request, options));
|
|
44459
44696
|
}
|
|
44460
|
-
async function $
|
|
44697
|
+
async function $do20(client, request, options) {
|
|
44461
44698
|
const parsed = safeParse(request, (value) => MorphoSetVaultAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44462
44699
|
if (!parsed.ok) {
|
|
44463
44700
|
return [parsed, { status: "invalid" }];
|
|
@@ -44526,12 +44763,12 @@ var init_morphoAllowance = __esm(() => {
|
|
|
44526
44763
|
});
|
|
44527
44764
|
|
|
44528
44765
|
// src/mcp-server/tools/morphoAllowance.ts
|
|
44529
|
-
var
|
|
44766
|
+
var args20, tool$morphoAllowance;
|
|
44530
44767
|
var init_morphoAllowance2 = __esm(() => {
|
|
44531
44768
|
init_morphoAllowance();
|
|
44532
44769
|
init_components();
|
|
44533
44770
|
init_tools();
|
|
44534
|
-
|
|
44771
|
+
args20 = {
|
|
44535
44772
|
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
44536
44773
|
};
|
|
44537
44774
|
tool$morphoAllowance = {
|
|
@@ -44543,9 +44780,9 @@ Set an allowance for a Morpho vault. You must set this for at least the amount y
|
|
|
44543
44780
|
Each vault has only one associated token that can be deposited.
|
|
44544
44781
|
|
|
44545
44782
|
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,
|
|
44783
|
+
args: args20,
|
|
44784
|
+
tool: async (client, args21, ctx) => {
|
|
44785
|
+
const [result, apiCall] = await morphoAllowance(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44549
44786
|
if (!result.ok) {
|
|
44550
44787
|
return {
|
|
44551
44788
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44560,9 +44797,9 @@ Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
|
44560
44797
|
|
|
44561
44798
|
// src/funcs/morphoBorrow.ts
|
|
44562
44799
|
function morphoBorrow(client, request, options) {
|
|
44563
|
-
return new APIPromise($
|
|
44800
|
+
return new APIPromise($do21(client, request, options));
|
|
44564
44801
|
}
|
|
44565
|
-
async function $
|
|
44802
|
+
async function $do21(client, request, options) {
|
|
44566
44803
|
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44567
44804
|
if (!parsed.ok) {
|
|
44568
44805
|
return [parsed, { status: "invalid" }];
|
|
@@ -44631,12 +44868,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
44631
44868
|
});
|
|
44632
44869
|
|
|
44633
44870
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
44634
|
-
var
|
|
44871
|
+
var args21, tool$morphoBorrow;
|
|
44635
44872
|
var init_morphoBorrow2 = __esm(() => {
|
|
44636
44873
|
init_morphoBorrow();
|
|
44637
44874
|
init_components();
|
|
44638
44875
|
init_tools();
|
|
44639
|
-
|
|
44876
|
+
args21 = {
|
|
44640
44877
|
request: MorphoBorrowRequest$inboundSchema
|
|
44641
44878
|
};
|
|
44642
44879
|
tool$morphoBorrow = {
|
|
@@ -44652,9 +44889,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44652
44889
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44653
44890
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44654
44891
|
as long as the blockchain it is deployed on is live.`,
|
|
44655
|
-
args:
|
|
44656
|
-
tool: async (client,
|
|
44657
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
44892
|
+
args: args21,
|
|
44893
|
+
tool: async (client, args22, ctx) => {
|
|
44894
|
+
const [result, apiCall] = await morphoBorrow(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44658
44895
|
if (!result.ok) {
|
|
44659
44896
|
return {
|
|
44660
44897
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44669,9 +44906,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44669
44906
|
|
|
44670
44907
|
// src/funcs/morphoDeposit.ts
|
|
44671
44908
|
function morphoDeposit(client, request, options) {
|
|
44672
|
-
return new APIPromise($
|
|
44909
|
+
return new APIPromise($do22(client, request, options));
|
|
44673
44910
|
}
|
|
44674
|
-
async function $
|
|
44911
|
+
async function $do22(client, request, options) {
|
|
44675
44912
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44676
44913
|
if (!parsed.ok) {
|
|
44677
44914
|
return [parsed, { status: "invalid" }];
|
|
@@ -44740,12 +44977,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
44740
44977
|
});
|
|
44741
44978
|
|
|
44742
44979
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
44743
|
-
var
|
|
44980
|
+
var args22, tool$morphoDeposit;
|
|
44744
44981
|
var init_morphoDeposit2 = __esm(() => {
|
|
44745
44982
|
init_morphoDeposit();
|
|
44746
44983
|
init_components();
|
|
44747
44984
|
init_tools();
|
|
44748
|
-
|
|
44985
|
+
args22 = {
|
|
44749
44986
|
request: MorphoDepositRequest$inboundSchema
|
|
44750
44987
|
};
|
|
44751
44988
|
tool$morphoDeposit = {
|
|
@@ -44763,9 +45000,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
44763
45000
|
exposure for all deposited assets so users don't need to make these decisions
|
|
44764
45001
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
44765
45002
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
44766
|
-
args:
|
|
44767
|
-
tool: async (client,
|
|
44768
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
45003
|
+
args: args22,
|
|
45004
|
+
tool: async (client, args23, ctx) => {
|
|
45005
|
+
const [result, apiCall] = await morphoDeposit(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44769
45006
|
if (!result.ok) {
|
|
44770
45007
|
return {
|
|
44771
45008
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44780,9 +45017,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
44780
45017
|
|
|
44781
45018
|
// src/funcs/morphoMarketPosition.ts
|
|
44782
45019
|
function morphoMarketPosition(client, request, options) {
|
|
44783
|
-
return new APIPromise($
|
|
45020
|
+
return new APIPromise($do23(client, request, options));
|
|
44784
45021
|
}
|
|
44785
|
-
async function $
|
|
45022
|
+
async function $do23(client, request, options) {
|
|
44786
45023
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44787
45024
|
if (!parsed.ok) {
|
|
44788
45025
|
return [parsed, { status: "invalid" }];
|
|
@@ -44857,12 +45094,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
44857
45094
|
});
|
|
44858
45095
|
|
|
44859
45096
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
44860
|
-
var
|
|
45097
|
+
var args23, tool$morphoMarketPosition;
|
|
44861
45098
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
44862
45099
|
init_morphoMarketPosition();
|
|
44863
45100
|
init_operations();
|
|
44864
45101
|
init_tools();
|
|
44865
|
-
|
|
45102
|
+
args23 = {
|
|
44866
45103
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
44867
45104
|
};
|
|
44868
45105
|
tool$morphoMarketPosition = {
|
|
@@ -44871,9 +45108,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
44871
45108
|
|
|
44872
45109
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
44873
45110
|
market.`,
|
|
44874
|
-
args:
|
|
44875
|
-
tool: async (client,
|
|
44876
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
45111
|
+
args: args23,
|
|
45112
|
+
tool: async (client, args24, ctx) => {
|
|
45113
|
+
const [result, apiCall] = await morphoMarketPosition(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44877
45114
|
if (!result.ok) {
|
|
44878
45115
|
return {
|
|
44879
45116
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44888,9 +45125,9 @@ market.`,
|
|
|
44888
45125
|
|
|
44889
45126
|
// src/funcs/morphoMarkets.ts
|
|
44890
45127
|
function morphoMarkets(client, request, options) {
|
|
44891
|
-
return new APIPromise($
|
|
45128
|
+
return new APIPromise($do24(client, request, options));
|
|
44892
45129
|
}
|
|
44893
|
-
async function $
|
|
45130
|
+
async function $do24(client, request, options) {
|
|
44894
45131
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44895
45132
|
if (!parsed.ok) {
|
|
44896
45133
|
return [parsed, { status: "invalid" }];
|
|
@@ -44965,12 +45202,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
44965
45202
|
});
|
|
44966
45203
|
|
|
44967
45204
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
44968
|
-
var
|
|
45205
|
+
var args24, tool$morphoMarkets;
|
|
44969
45206
|
var init_morphoMarkets2 = __esm(() => {
|
|
44970
45207
|
init_morphoMarkets();
|
|
44971
45208
|
init_operations();
|
|
44972
45209
|
init_tools();
|
|
44973
|
-
|
|
45210
|
+
args24 = {
|
|
44974
45211
|
request: MorphoMarketsRequest$inboundSchema
|
|
44975
45212
|
};
|
|
44976
45213
|
tool$morphoMarkets = {
|
|
@@ -44981,9 +45218,9 @@ Query a list of markets you can borrow from.
|
|
|
44981
45218
|
|
|
44982
45219
|
Each market has one unique token that can be borrowed against one unique token that
|
|
44983
45220
|
can be used as collateral.`,
|
|
44984
|
-
args:
|
|
44985
|
-
tool: async (client,
|
|
44986
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
45221
|
+
args: args24,
|
|
45222
|
+
tool: async (client, args25, ctx) => {
|
|
45223
|
+
const [result, apiCall] = await morphoMarkets(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44987
45224
|
if (!result.ok) {
|
|
44988
45225
|
return {
|
|
44989
45226
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44998,9 +45235,9 @@ can be used as collateral.`,
|
|
|
44998
45235
|
|
|
44999
45236
|
// src/funcs/morphoRepay.ts
|
|
45000
45237
|
function morphoRepay(client, request, options) {
|
|
45001
|
-
return new APIPromise($
|
|
45238
|
+
return new APIPromise($do25(client, request, options));
|
|
45002
45239
|
}
|
|
45003
|
-
async function $
|
|
45240
|
+
async function $do25(client, request, options) {
|
|
45004
45241
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45005
45242
|
if (!parsed.ok) {
|
|
45006
45243
|
return [parsed, { status: "invalid" }];
|
|
@@ -45069,12 +45306,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
45069
45306
|
});
|
|
45070
45307
|
|
|
45071
45308
|
// src/mcp-server/tools/morphoRepay.ts
|
|
45072
|
-
var
|
|
45309
|
+
var args25, tool$morphoRepay;
|
|
45073
45310
|
var init_morphoRepay2 = __esm(() => {
|
|
45074
45311
|
init_morphoRepay();
|
|
45075
45312
|
init_components();
|
|
45076
45313
|
init_tools();
|
|
45077
|
-
|
|
45314
|
+
args25 = {
|
|
45078
45315
|
request: MorphoRepayRequest$inboundSchema
|
|
45079
45316
|
};
|
|
45080
45317
|
tool$morphoRepay = {
|
|
@@ -45087,9 +45324,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45087
45324
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45088
45325
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45089
45326
|
as long as the blockchain it is deployed on is live.`,
|
|
45090
|
-
args:
|
|
45091
|
-
tool: async (client,
|
|
45092
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
45327
|
+
args: args25,
|
|
45328
|
+
tool: async (client, args26, ctx) => {
|
|
45329
|
+
const [result, apiCall] = await morphoRepay(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45093
45330
|
if (!result.ok) {
|
|
45094
45331
|
return {
|
|
45095
45332
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45104,9 +45341,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45104
45341
|
|
|
45105
45342
|
// src/funcs/morphoSupplyCollateral.ts
|
|
45106
45343
|
function morphoSupplyCollateral(client, request, options) {
|
|
45107
|
-
return new APIPromise($
|
|
45344
|
+
return new APIPromise($do26(client, request, options));
|
|
45108
45345
|
}
|
|
45109
|
-
async function $
|
|
45346
|
+
async function $do26(client, request, options) {
|
|
45110
45347
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45111
45348
|
if (!parsed.ok) {
|
|
45112
45349
|
return [parsed, { status: "invalid" }];
|
|
@@ -45175,12 +45412,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
45175
45412
|
});
|
|
45176
45413
|
|
|
45177
45414
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
45178
|
-
var
|
|
45415
|
+
var args26, tool$morphoSupplyCollateral;
|
|
45179
45416
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
45180
45417
|
init_morphoSupplyCollateral();
|
|
45181
45418
|
init_components();
|
|
45182
45419
|
init_tools();
|
|
45183
|
-
|
|
45420
|
+
args26 = {
|
|
45184
45421
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
45185
45422
|
};
|
|
45186
45423
|
tool$morphoSupplyCollateral = {
|
|
@@ -45193,9 +45430,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45193
45430
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45194
45431
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45195
45432
|
as long as the blockchain it is deployed on is live.`,
|
|
45196
|
-
args:
|
|
45197
|
-
tool: async (client,
|
|
45198
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
45433
|
+
args: args26,
|
|
45434
|
+
tool: async (client, args27, ctx) => {
|
|
45435
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45199
45436
|
if (!result.ok) {
|
|
45200
45437
|
return {
|
|
45201
45438
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45210,9 +45447,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45210
45447
|
|
|
45211
45448
|
// src/funcs/morphoVaultPosition.ts
|
|
45212
45449
|
function morphoVaultPosition(client, request, options) {
|
|
45213
|
-
return new APIPromise($
|
|
45450
|
+
return new APIPromise($do27(client, request, options));
|
|
45214
45451
|
}
|
|
45215
|
-
async function $
|
|
45452
|
+
async function $do27(client, request, options) {
|
|
45216
45453
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45217
45454
|
if (!parsed.ok) {
|
|
45218
45455
|
return [parsed, { status: "invalid" }];
|
|
@@ -45287,12 +45524,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
45287
45524
|
});
|
|
45288
45525
|
|
|
45289
45526
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
45290
|
-
var
|
|
45527
|
+
var args27, tool$morphoVaultPosition;
|
|
45291
45528
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
45292
45529
|
init_morphoVaultPosition();
|
|
45293
45530
|
init_operations();
|
|
45294
45531
|
init_tools();
|
|
45295
|
-
|
|
45532
|
+
args27 = {
|
|
45296
45533
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
45297
45534
|
};
|
|
45298
45535
|
tool$morphoVaultPosition = {
|
|
@@ -45301,9 +45538,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
45301
45538
|
|
|
45302
45539
|
Check how many shares you own and the equivalent token amount of a given
|
|
45303
45540
|
vault.`,
|
|
45304
|
-
args:
|
|
45305
|
-
tool: async (client,
|
|
45306
|
-
const [result, apiCall] = await morphoVaultPosition(client,
|
|
45541
|
+
args: args27,
|
|
45542
|
+
tool: async (client, args28, ctx) => {
|
|
45543
|
+
const [result, apiCall] = await morphoVaultPosition(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45307
45544
|
if (!result.ok) {
|
|
45308
45545
|
return {
|
|
45309
45546
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45318,9 +45555,9 @@ vault.`,
|
|
|
45318
45555
|
|
|
45319
45556
|
// src/funcs/morphoVaults.ts
|
|
45320
45557
|
function morphoVaults(client, request, options) {
|
|
45321
|
-
return new APIPromise($
|
|
45558
|
+
return new APIPromise($do28(client, request, options));
|
|
45322
45559
|
}
|
|
45323
|
-
async function $
|
|
45560
|
+
async function $do28(client, request, options) {
|
|
45324
45561
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45325
45562
|
if (!parsed.ok) {
|
|
45326
45563
|
return [parsed, { status: "invalid" }];
|
|
@@ -45394,12 +45631,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
45394
45631
|
});
|
|
45395
45632
|
|
|
45396
45633
|
// src/mcp-server/tools/morphoVaults.ts
|
|
45397
|
-
var
|
|
45634
|
+
var args28, tool$morphoVaults;
|
|
45398
45635
|
var init_morphoVaults2 = __esm(() => {
|
|
45399
45636
|
init_morphoVaults();
|
|
45400
45637
|
init_operations();
|
|
45401
45638
|
init_tools();
|
|
45402
|
-
|
|
45639
|
+
args28 = {
|
|
45403
45640
|
request: MorphoVaultsRequest$inboundSchema
|
|
45404
45641
|
};
|
|
45405
45642
|
tool$morphoVaults = {
|
|
@@ -45411,9 +45648,9 @@ Query a list of vaults you can deposit into.
|
|
|
45411
45648
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
45412
45649
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
45413
45650
|
exchange value increasing over time.`,
|
|
45414
|
-
args:
|
|
45415
|
-
tool: async (client,
|
|
45416
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
45651
|
+
args: args28,
|
|
45652
|
+
tool: async (client, args29, ctx) => {
|
|
45653
|
+
const [result, apiCall] = await morphoVaults(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45417
45654
|
if (!result.ok) {
|
|
45418
45655
|
return {
|
|
45419
45656
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45428,9 +45665,9 @@ exchange value increasing over time.`,
|
|
|
45428
45665
|
|
|
45429
45666
|
// src/funcs/morphoWithdraw.ts
|
|
45430
45667
|
function morphoWithdraw(client, request, options) {
|
|
45431
|
-
return new APIPromise($
|
|
45668
|
+
return new APIPromise($do29(client, request, options));
|
|
45432
45669
|
}
|
|
45433
|
-
async function $
|
|
45670
|
+
async function $do29(client, request, options) {
|
|
45434
45671
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45435
45672
|
if (!parsed.ok) {
|
|
45436
45673
|
return [parsed, { status: "invalid" }];
|
|
@@ -45499,12 +45736,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
45499
45736
|
});
|
|
45500
45737
|
|
|
45501
45738
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
45502
|
-
var
|
|
45739
|
+
var args29, tool$morphoWithdraw;
|
|
45503
45740
|
var init_morphoWithdraw2 = __esm(() => {
|
|
45504
45741
|
init_morphoWithdraw();
|
|
45505
45742
|
init_components();
|
|
45506
45743
|
init_tools();
|
|
45507
|
-
|
|
45744
|
+
args29 = {
|
|
45508
45745
|
request: MorphoWithdrawRequest$inboundSchema
|
|
45509
45746
|
};
|
|
45510
45747
|
tool$morphoWithdraw = {
|
|
@@ -45522,9 +45759,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
45522
45759
|
exposure for all deposited assets so users don't need to make these decisions
|
|
45523
45760
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
45524
45761
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
45525
|
-
args:
|
|
45526
|
-
tool: async (client,
|
|
45527
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
45762
|
+
args: args29,
|
|
45763
|
+
tool: async (client, args30, ctx) => {
|
|
45764
|
+
const [result, apiCall] = await morphoWithdraw(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45528
45765
|
if (!result.ok) {
|
|
45529
45766
|
return {
|
|
45530
45767
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45539,9 +45776,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
45539
45776
|
|
|
45540
45777
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
45541
45778
|
function morphoWithdrawCollateral(client, request, options) {
|
|
45542
|
-
return new APIPromise($
|
|
45779
|
+
return new APIPromise($do30(client, request, options));
|
|
45543
45780
|
}
|
|
45544
|
-
async function $
|
|
45781
|
+
async function $do30(client, request, options) {
|
|
45545
45782
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45546
45783
|
if (!parsed.ok) {
|
|
45547
45784
|
return [parsed, { status: "invalid" }];
|
|
@@ -45610,12 +45847,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
45610
45847
|
});
|
|
45611
45848
|
|
|
45612
45849
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
45613
|
-
var
|
|
45850
|
+
var args30, tool$morphoWithdrawCollateral;
|
|
45614
45851
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
45615
45852
|
init_morphoWithdrawCollateral();
|
|
45616
45853
|
init_components();
|
|
45617
45854
|
init_tools();
|
|
45618
|
-
|
|
45855
|
+
args30 = {
|
|
45619
45856
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
45620
45857
|
};
|
|
45621
45858
|
tool$morphoWithdrawCollateral = {
|
|
@@ -45628,9 +45865,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45628
45865
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45629
45866
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45630
45867
|
as long as the blockchain it is deployed on is live.`,
|
|
45631
|
-
args:
|
|
45632
|
-
tool: async (client,
|
|
45633
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
45868
|
+
args: args30,
|
|
45869
|
+
tool: async (client, args31, ctx) => {
|
|
45870
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45634
45871
|
if (!result.ok) {
|
|
45635
45872
|
return {
|
|
45636
45873
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45645,9 +45882,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45645
45882
|
|
|
45646
45883
|
// src/funcs/skyBuy.ts
|
|
45647
45884
|
function skyBuy(client, request, options) {
|
|
45648
|
-
return new APIPromise($
|
|
45885
|
+
return new APIPromise($do31(client, request, options));
|
|
45649
45886
|
}
|
|
45650
|
-
async function $
|
|
45887
|
+
async function $do31(client, request, options) {
|
|
45651
45888
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45652
45889
|
if (!parsed.ok) {
|
|
45653
45890
|
return [parsed, { status: "invalid" }];
|
|
@@ -45716,12 +45953,12 @@ var init_skyBuy = __esm(() => {
|
|
|
45716
45953
|
});
|
|
45717
45954
|
|
|
45718
45955
|
// src/mcp-server/tools/skyBuy.ts
|
|
45719
|
-
var
|
|
45956
|
+
var args31, tool$skyBuy;
|
|
45720
45957
|
var init_skyBuy2 = __esm(() => {
|
|
45721
45958
|
init_skyBuy();
|
|
45722
45959
|
init_components();
|
|
45723
45960
|
init_tools();
|
|
45724
|
-
|
|
45961
|
+
args31 = {
|
|
45725
45962
|
request: SkyBuyRequest$inboundSchema
|
|
45726
45963
|
};
|
|
45727
45964
|
tool$skyBuy = {
|
|
@@ -45735,9 +45972,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
45735
45972
|
|
|
45736
45973
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
45737
45974
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
45738
|
-
args:
|
|
45739
|
-
tool: async (client,
|
|
45740
|
-
const [result, apiCall] = await skyBuy(client,
|
|
45975
|
+
args: args31,
|
|
45976
|
+
tool: async (client, args32, ctx) => {
|
|
45977
|
+
const [result, apiCall] = await skyBuy(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45741
45978
|
if (!result.ok) {
|
|
45742
45979
|
return {
|
|
45743
45980
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45752,9 +45989,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
45752
45989
|
|
|
45753
45990
|
// src/funcs/skyDeposit.ts
|
|
45754
45991
|
function skyDeposit(client, request, options) {
|
|
45755
|
-
return new APIPromise($
|
|
45992
|
+
return new APIPromise($do32(client, request, options));
|
|
45756
45993
|
}
|
|
45757
|
-
async function $
|
|
45994
|
+
async function $do32(client, request, options) {
|
|
45758
45995
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45759
45996
|
if (!parsed.ok) {
|
|
45760
45997
|
return [parsed, { status: "invalid" }];
|
|
@@ -45823,12 +46060,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
45823
46060
|
});
|
|
45824
46061
|
|
|
45825
46062
|
// src/mcp-server/tools/skyDeposit.ts
|
|
45826
|
-
var
|
|
46063
|
+
var args32, tool$skyDeposit;
|
|
45827
46064
|
var init_skyDeposit2 = __esm(() => {
|
|
45828
46065
|
init_skyDeposit();
|
|
45829
46066
|
init_components();
|
|
45830
46067
|
init_tools();
|
|
45831
|
-
|
|
46068
|
+
args32 = {
|
|
45832
46069
|
request: SkyDepositRequest$inboundSchema
|
|
45833
46070
|
};
|
|
45834
46071
|
tool$skyDeposit = {
|
|
@@ -45838,9 +46075,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
45838
46075
|
Deposit USDS for sUSDS to earn yield.
|
|
45839
46076
|
|
|
45840
46077
|
There are no fees.`,
|
|
45841
|
-
args:
|
|
45842
|
-
tool: async (client,
|
|
45843
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
46078
|
+
args: args32,
|
|
46079
|
+
tool: async (client, args33, ctx) => {
|
|
46080
|
+
const [result, apiCall] = await skyDeposit(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45844
46081
|
if (!result.ok) {
|
|
45845
46082
|
return {
|
|
45846
46083
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45855,9 +46092,9 @@ There are no fees.`,
|
|
|
45855
46092
|
|
|
45856
46093
|
// src/funcs/skyPosition.ts
|
|
45857
46094
|
function skyPosition(client, request, options) {
|
|
45858
|
-
return new APIPromise($
|
|
46095
|
+
return new APIPromise($do33(client, request, options));
|
|
45859
46096
|
}
|
|
45860
|
-
async function $
|
|
46097
|
+
async function $do33(client, request, options) {
|
|
45861
46098
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45862
46099
|
if (!parsed.ok) {
|
|
45863
46100
|
return [parsed, { status: "invalid" }];
|
|
@@ -45931,12 +46168,12 @@ var init_skyPosition = __esm(() => {
|
|
|
45931
46168
|
});
|
|
45932
46169
|
|
|
45933
46170
|
// src/mcp-server/tools/skyPosition.ts
|
|
45934
|
-
var
|
|
46171
|
+
var args33, tool$skyPosition;
|
|
45935
46172
|
var init_skyPosition2 = __esm(() => {
|
|
45936
46173
|
init_skyPosition();
|
|
45937
46174
|
init_operations();
|
|
45938
46175
|
init_tools();
|
|
45939
|
-
|
|
46176
|
+
args33 = {
|
|
45940
46177
|
request: SkyPositionRequest$inboundSchema
|
|
45941
46178
|
};
|
|
45942
46179
|
tool$skyPosition = {
|
|
@@ -45944,9 +46181,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
45944
46181
|
description: `Check USDS Position
|
|
45945
46182
|
|
|
45946
46183
|
Check the USDS overall position.`,
|
|
45947
|
-
args:
|
|
45948
|
-
tool: async (client,
|
|
45949
|
-
const [result, apiCall] = await skyPosition(client,
|
|
46184
|
+
args: args33,
|
|
46185
|
+
tool: async (client, args34, ctx) => {
|
|
46186
|
+
const [result, apiCall] = await skyPosition(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45950
46187
|
if (!result.ok) {
|
|
45951
46188
|
return {
|
|
45952
46189
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45961,9 +46198,9 @@ Check the USDS overall position.`,
|
|
|
45961
46198
|
|
|
45962
46199
|
// src/funcs/skySell.ts
|
|
45963
46200
|
function skySell(client, request, options) {
|
|
45964
|
-
return new APIPromise($
|
|
46201
|
+
return new APIPromise($do34(client, request, options));
|
|
45965
46202
|
}
|
|
45966
|
-
async function $
|
|
46203
|
+
async function $do34(client, request, options) {
|
|
45967
46204
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45968
46205
|
if (!parsed.ok) {
|
|
45969
46206
|
return [parsed, { status: "invalid" }];
|
|
@@ -46032,12 +46269,12 @@ var init_skySell = __esm(() => {
|
|
|
46032
46269
|
});
|
|
46033
46270
|
|
|
46034
46271
|
// src/mcp-server/tools/skySell.ts
|
|
46035
|
-
var
|
|
46272
|
+
var args34, tool$skySell;
|
|
46036
46273
|
var init_skySell2 = __esm(() => {
|
|
46037
46274
|
init_skySell();
|
|
46038
46275
|
init_components();
|
|
46039
46276
|
init_tools();
|
|
46040
|
-
|
|
46277
|
+
args34 = {
|
|
46041
46278
|
request: SkySellRequest$inboundSchema
|
|
46042
46279
|
};
|
|
46043
46280
|
tool$skySell = {
|
|
@@ -46051,9 +46288,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
46051
46288
|
|
|
46052
46289
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
46053
46290
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
46054
|
-
args:
|
|
46055
|
-
tool: async (client,
|
|
46056
|
-
const [result, apiCall] = await skySell(client,
|
|
46291
|
+
args: args34,
|
|
46292
|
+
tool: async (client, args35, ctx) => {
|
|
46293
|
+
const [result, apiCall] = await skySell(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46057
46294
|
if (!result.ok) {
|
|
46058
46295
|
return {
|
|
46059
46296
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46068,9 +46305,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
46068
46305
|
|
|
46069
46306
|
// src/funcs/skyWithdraw.ts
|
|
46070
46307
|
function skyWithdraw(client, request, options) {
|
|
46071
|
-
return new APIPromise($
|
|
46308
|
+
return new APIPromise($do35(client, request, options));
|
|
46072
46309
|
}
|
|
46073
|
-
async function $
|
|
46310
|
+
async function $do35(client, request, options) {
|
|
46074
46311
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46075
46312
|
if (!parsed.ok) {
|
|
46076
46313
|
return [parsed, { status: "invalid" }];
|
|
@@ -46139,12 +46376,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
46139
46376
|
});
|
|
46140
46377
|
|
|
46141
46378
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
46142
|
-
var
|
|
46379
|
+
var args35, tool$skyWithdraw;
|
|
46143
46380
|
var init_skyWithdraw2 = __esm(() => {
|
|
46144
46381
|
init_skyWithdraw();
|
|
46145
46382
|
init_components();
|
|
46146
46383
|
init_tools();
|
|
46147
|
-
|
|
46384
|
+
args35 = {
|
|
46148
46385
|
request: SkyWithdrawRequest$inboundSchema
|
|
46149
46386
|
};
|
|
46150
46387
|
tool$skyWithdraw = {
|
|
@@ -46154,9 +46391,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
46154
46391
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
46155
46392
|
|
|
46156
46393
|
There are no fees.`,
|
|
46157
|
-
args:
|
|
46158
|
-
tool: async (client,
|
|
46159
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
46394
|
+
args: args35,
|
|
46395
|
+
tool: async (client, args36, ctx) => {
|
|
46396
|
+
const [result, apiCall] = await skyWithdraw(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46160
46397
|
if (!result.ok) {
|
|
46161
46398
|
return {
|
|
46162
46399
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46171,9 +46408,9 @@ There are no fees.`,
|
|
|
46171
46408
|
|
|
46172
46409
|
// src/funcs/tokenAddress.ts
|
|
46173
46410
|
function tokenAddress(client, request, options) {
|
|
46174
|
-
return new APIPromise($
|
|
46411
|
+
return new APIPromise($do36(client, request, options));
|
|
46175
46412
|
}
|
|
46176
|
-
async function $
|
|
46413
|
+
async function $do36(client, request, options) {
|
|
46177
46414
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46178
46415
|
if (!parsed.ok) {
|
|
46179
46416
|
return [parsed, { status: "invalid" }];
|
|
@@ -46247,12 +46484,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
46247
46484
|
});
|
|
46248
46485
|
|
|
46249
46486
|
// src/mcp-server/tools/tokenAddress.ts
|
|
46250
|
-
var
|
|
46487
|
+
var args36, tool$tokenAddress;
|
|
46251
46488
|
var init_tokenAddress2 = __esm(() => {
|
|
46252
46489
|
init_tokenAddress();
|
|
46253
46490
|
init_operations();
|
|
46254
46491
|
init_tools();
|
|
46255
|
-
|
|
46492
|
+
args36 = {
|
|
46256
46493
|
request: TokenAddressRequest$inboundSchema
|
|
46257
46494
|
};
|
|
46258
46495
|
tool$tokenAddress = {
|
|
@@ -46260,9 +46497,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
46260
46497
|
description: `Token Address
|
|
46261
46498
|
|
|
46262
46499
|
This endpoint retrieves the address for a token supported by us.`,
|
|
46263
|
-
args:
|
|
46264
|
-
tool: async (client,
|
|
46265
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
46500
|
+
args: args36,
|
|
46501
|
+
tool: async (client, args37, ctx) => {
|
|
46502
|
+
const [result, apiCall] = await tokenAddress(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46266
46503
|
if (!result.ok) {
|
|
46267
46504
|
return {
|
|
46268
46505
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46277,9 +46514,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
46277
46514
|
|
|
46278
46515
|
// src/funcs/tokenBalance.ts
|
|
46279
46516
|
function tokenBalance(client, request, options) {
|
|
46280
|
-
return new APIPromise($
|
|
46517
|
+
return new APIPromise($do37(client, request, options));
|
|
46281
46518
|
}
|
|
46282
|
-
async function $
|
|
46519
|
+
async function $do37(client, request, options) {
|
|
46283
46520
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46284
46521
|
if (!parsed.ok) {
|
|
46285
46522
|
return [parsed, { status: "invalid" }];
|
|
@@ -46354,12 +46591,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
46354
46591
|
});
|
|
46355
46592
|
|
|
46356
46593
|
// src/mcp-server/tools/tokenBalance.ts
|
|
46357
|
-
var
|
|
46594
|
+
var args37, tool$tokenBalance;
|
|
46358
46595
|
var init_tokenBalance2 = __esm(() => {
|
|
46359
46596
|
init_tokenBalance();
|
|
46360
46597
|
init_operations();
|
|
46361
46598
|
init_tools();
|
|
46362
|
-
|
|
46599
|
+
args37 = {
|
|
46363
46600
|
request: TokenBalanceRequest$inboundSchema
|
|
46364
46601
|
};
|
|
46365
46602
|
tool$tokenBalance = {
|
|
@@ -46367,9 +46604,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
46367
46604
|
description: `Token Balance
|
|
46368
46605
|
|
|
46369
46606
|
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,
|
|
46607
|
+
args: args37,
|
|
46608
|
+
tool: async (client, args38, ctx) => {
|
|
46609
|
+
const [result, apiCall] = await tokenBalance(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46373
46610
|
if (!result.ok) {
|
|
46374
46611
|
return {
|
|
46375
46612
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46384,9 +46621,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
46384
46621
|
|
|
46385
46622
|
// src/funcs/tokenPrice.ts
|
|
46386
46623
|
function tokenPrice(client, request, options) {
|
|
46387
|
-
return new APIPromise($
|
|
46624
|
+
return new APIPromise($do38(client, request, options));
|
|
46388
46625
|
}
|
|
46389
|
-
async function $
|
|
46626
|
+
async function $do38(client, request, options) {
|
|
46390
46627
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46391
46628
|
if (!parsed.ok) {
|
|
46392
46629
|
return [parsed, { status: "invalid" }];
|
|
@@ -46460,12 +46697,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
46460
46697
|
});
|
|
46461
46698
|
|
|
46462
46699
|
// src/mcp-server/tools/tokenPrice.ts
|
|
46463
|
-
var
|
|
46700
|
+
var args38, tool$tokenPrice;
|
|
46464
46701
|
var init_tokenPrice2 = __esm(() => {
|
|
46465
46702
|
init_tokenPrice();
|
|
46466
46703
|
init_operations();
|
|
46467
46704
|
init_tools();
|
|
46468
|
-
|
|
46705
|
+
args38 = {
|
|
46469
46706
|
request: TokenPriceRequest$inboundSchema
|
|
46470
46707
|
};
|
|
46471
46708
|
tool$tokenPrice = {
|
|
@@ -46477,9 +46714,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
46477
46714
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
46478
46715
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
46479
46716
|
with the update frequency of the oracle.`,
|
|
46480
|
-
args:
|
|
46481
|
-
tool: async (client,
|
|
46482
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
46717
|
+
args: args38,
|
|
46718
|
+
tool: async (client, args39, ctx) => {
|
|
46719
|
+
const [result, apiCall] = await tokenPrice(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46483
46720
|
if (!result.ok) {
|
|
46484
46721
|
return {
|
|
46485
46722
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46494,9 +46731,9 @@ with the update frequency of the oracle.`,
|
|
|
46494
46731
|
|
|
46495
46732
|
// src/funcs/tokenTransfer.ts
|
|
46496
46733
|
function tokenTransfer(client, request, options) {
|
|
46497
|
-
return new APIPromise($
|
|
46734
|
+
return new APIPromise($do39(client, request, options));
|
|
46498
46735
|
}
|
|
46499
|
-
async function $
|
|
46736
|
+
async function $do39(client, request, options) {
|
|
46500
46737
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46501
46738
|
if (!parsed.ok) {
|
|
46502
46739
|
return [parsed, { status: "invalid" }];
|
|
@@ -46565,12 +46802,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
46565
46802
|
});
|
|
46566
46803
|
|
|
46567
46804
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
46568
|
-
var
|
|
46805
|
+
var args39, tool$tokenTransfer;
|
|
46569
46806
|
var init_tokenTransfer2 = __esm(() => {
|
|
46570
46807
|
init_tokenTransfer();
|
|
46571
46808
|
init_components();
|
|
46572
46809
|
init_tools();
|
|
46573
|
-
|
|
46810
|
+
args39 = {
|
|
46574
46811
|
request: TokenTransferRequest$inboundSchema
|
|
46575
46812
|
};
|
|
46576
46813
|
tool$tokenTransfer = {
|
|
@@ -46578,9 +46815,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
46578
46815
|
description: `Transfer ETH or ERC20 Tokens
|
|
46579
46816
|
|
|
46580
46817
|
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,
|
|
46818
|
+
args: args39,
|
|
46819
|
+
tool: async (client, args40, ctx) => {
|
|
46820
|
+
const [result, apiCall] = await tokenTransfer(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46584
46821
|
if (!result.ok) {
|
|
46585
46822
|
return {
|
|
46586
46823
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46595,9 +46832,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
46595
46832
|
|
|
46596
46833
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
46597
46834
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
46598
|
-
return new APIPromise($
|
|
46835
|
+
return new APIPromise($do40(client, request, options));
|
|
46599
46836
|
}
|
|
46600
|
-
async function $
|
|
46837
|
+
async function $do40(client, request, options) {
|
|
46601
46838
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46602
46839
|
if (!parsed.ok) {
|
|
46603
46840
|
return [parsed, { status: "invalid" }];
|
|
@@ -46666,12 +46903,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
46666
46903
|
});
|
|
46667
46904
|
|
|
46668
46905
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
46669
|
-
var
|
|
46906
|
+
var args40, tool$transactionBatchingAaveLoop;
|
|
46670
46907
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
46671
46908
|
init_transactionBatchingAaveLoop();
|
|
46672
46909
|
init_components();
|
|
46673
46910
|
init_tools();
|
|
46674
|
-
|
|
46911
|
+
args40 = {
|
|
46675
46912
|
request: AaveLoopRequest$inboundSchema
|
|
46676
46913
|
};
|
|
46677
46914
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -46689,9 +46926,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
46689
46926
|
- Supplies the swapped tokens
|
|
46690
46927
|
|
|
46691
46928
|
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,
|
|
46929
|
+
args: args40,
|
|
46930
|
+
tool: async (client, args41, ctx) => {
|
|
46931
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46695
46932
|
if (!result.ok) {
|
|
46696
46933
|
return {
|
|
46697
46934
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46706,9 +46943,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
46706
46943
|
|
|
46707
46944
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
46708
46945
|
function transactionBatchingAuthorization(client, request, options) {
|
|
46709
|
-
return new APIPromise($
|
|
46946
|
+
return new APIPromise($do41(client, request, options));
|
|
46710
46947
|
}
|
|
46711
|
-
async function $
|
|
46948
|
+
async function $do41(client, request, options) {
|
|
46712
46949
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46713
46950
|
if (!parsed.ok) {
|
|
46714
46951
|
return [parsed, { status: "invalid" }];
|
|
@@ -46777,12 +47014,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
46777
47014
|
});
|
|
46778
47015
|
|
|
46779
47016
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
46780
|
-
var
|
|
47017
|
+
var args41, tool$transactionBatchingAuthorization;
|
|
46781
47018
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
46782
47019
|
init_transactionBatchingAuthorization();
|
|
46783
47020
|
init_components();
|
|
46784
47021
|
init_tools();
|
|
46785
|
-
|
|
47022
|
+
args41 = {
|
|
46786
47023
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
46787
47024
|
};
|
|
46788
47025
|
tool$transactionBatchingAuthorization = {
|
|
@@ -46795,9 +47032,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
46795
47032
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
46796
47033
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
46797
47034
|
targeting.`,
|
|
46798
|
-
args:
|
|
46799
|
-
tool: async (client,
|
|
46800
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
47035
|
+
args: args41,
|
|
47036
|
+
tool: async (client, args42, ctx) => {
|
|
47037
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46801
47038
|
if (!result.ok) {
|
|
46802
47039
|
return {
|
|
46803
47040
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46812,9 +47049,9 @@ targeting.`,
|
|
|
46812
47049
|
|
|
46813
47050
|
// src/funcs/transactionBatchingExecute.ts
|
|
46814
47051
|
function transactionBatchingExecute(client, request, options) {
|
|
46815
|
-
return new APIPromise($
|
|
47052
|
+
return new APIPromise($do42(client, request, options));
|
|
46816
47053
|
}
|
|
46817
|
-
async function $
|
|
47054
|
+
async function $do42(client, request, options) {
|
|
46818
47055
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46819
47056
|
if (!parsed.ok) {
|
|
46820
47057
|
return [parsed, { status: "invalid" }];
|
|
@@ -46883,12 +47120,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
46883
47120
|
});
|
|
46884
47121
|
|
|
46885
47122
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
46886
|
-
var
|
|
47123
|
+
var args42, tool$transactionBatchingExecute;
|
|
46887
47124
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
46888
47125
|
init_transactionBatchingExecute();
|
|
46889
47126
|
init_components();
|
|
46890
47127
|
init_tools();
|
|
46891
|
-
|
|
47128
|
+
args42 = {
|
|
46892
47129
|
request: MulticallExecuteRequest$inboundSchema
|
|
46893
47130
|
};
|
|
46894
47131
|
tool$transactionBatchingExecute = {
|
|
@@ -46901,9 +47138,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
46901
47138
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
46902
47139
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
46903
47140
|
prevent replay attacks.`,
|
|
46904
|
-
args:
|
|
46905
|
-
tool: async (client,
|
|
46906
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
47141
|
+
args: args42,
|
|
47142
|
+
tool: async (client, args43, ctx) => {
|
|
47143
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46907
47144
|
if (!result.ok) {
|
|
46908
47145
|
return {
|
|
46909
47146
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46918,9 +47155,9 @@ prevent replay attacks.`,
|
|
|
46918
47155
|
|
|
46919
47156
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
46920
47157
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
46921
|
-
return new APIPromise($
|
|
47158
|
+
return new APIPromise($do43(client, request, options));
|
|
46922
47159
|
}
|
|
46923
|
-
async function $
|
|
47160
|
+
async function $do43(client, request, options) {
|
|
46924
47161
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46925
47162
|
if (!parsed.ok) {
|
|
46926
47163
|
return [parsed, { status: "invalid" }];
|
|
@@ -46989,12 +47226,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
46989
47226
|
});
|
|
46990
47227
|
|
|
46991
47228
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
46992
|
-
var
|
|
47229
|
+
var args43, tool$uniswapV3LiquidityProvisionIncrease;
|
|
46993
47230
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
46994
47231
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
46995
47232
|
init_components();
|
|
46996
47233
|
init_tools();
|
|
46997
|
-
|
|
47234
|
+
args43 = {
|
|
46998
47235
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
46999
47236
|
};
|
|
47000
47237
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -47010,9 +47247,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
47010
47247
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
47011
47248
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
47012
47249
|
process.`,
|
|
47013
|
-
args:
|
|
47014
|
-
tool: async (client,
|
|
47015
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
47250
|
+
args: args43,
|
|
47251
|
+
tool: async (client, args44, ctx) => {
|
|
47252
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47016
47253
|
if (!result.ok) {
|
|
47017
47254
|
return {
|
|
47018
47255
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47027,9 +47264,9 @@ process.`,
|
|
|
47027
47264
|
|
|
47028
47265
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
47029
47266
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
47030
|
-
return new APIPromise($
|
|
47267
|
+
return new APIPromise($do44(client, request, options));
|
|
47031
47268
|
}
|
|
47032
|
-
async function $
|
|
47269
|
+
async function $do44(client, request, options) {
|
|
47033
47270
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47034
47271
|
if (!parsed.ok) {
|
|
47035
47272
|
return [parsed, { status: "invalid" }];
|
|
@@ -47103,12 +47340,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
47103
47340
|
});
|
|
47104
47341
|
|
|
47105
47342
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
47106
|
-
var
|
|
47343
|
+
var args44, tool$uniswapV3LiquidityProvisionInRange;
|
|
47107
47344
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
47108
47345
|
init_uniswapV3LiquidityProvisionInRange();
|
|
47109
47346
|
init_operations();
|
|
47110
47347
|
init_tools();
|
|
47111
|
-
|
|
47348
|
+
args44 = {
|
|
47112
47349
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
47113
47350
|
};
|
|
47114
47351
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -47123,9 +47360,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
47123
47360
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
47124
47361
|
they are actively participating in the trading activities within the liquidity pool
|
|
47125
47362
|
and earning trading fees.`,
|
|
47126
|
-
args:
|
|
47127
|
-
tool: async (client,
|
|
47128
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
47363
|
+
args: args44,
|
|
47364
|
+
tool: async (client, args45, ctx) => {
|
|
47365
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47129
47366
|
if (!result.ok) {
|
|
47130
47367
|
return {
|
|
47131
47368
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47140,9 +47377,9 @@ and earning trading fees.`,
|
|
|
47140
47377
|
|
|
47141
47378
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
47142
47379
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
47143
|
-
return new APIPromise($
|
|
47380
|
+
return new APIPromise($do45(client, request, options));
|
|
47144
47381
|
}
|
|
47145
|
-
async function $
|
|
47382
|
+
async function $do45(client, request, options) {
|
|
47146
47383
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47147
47384
|
if (!parsed.ok) {
|
|
47148
47385
|
return [parsed, { status: "invalid" }];
|
|
@@ -47211,12 +47448,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
47211
47448
|
});
|
|
47212
47449
|
|
|
47213
47450
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
47214
|
-
var
|
|
47451
|
+
var args45, tool$uniswapV3LiquidityProvisionMint;
|
|
47215
47452
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
47216
47453
|
init_uniswapV3LiquidityProvisionMint();
|
|
47217
47454
|
init_components();
|
|
47218
47455
|
init_tools();
|
|
47219
|
-
|
|
47456
|
+
args45 = {
|
|
47220
47457
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
47221
47458
|
};
|
|
47222
47459
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -47232,9 +47469,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
47232
47469
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
47233
47470
|
requires details such as the token pair, amount, and any additional parameters
|
|
47234
47471
|
needed for the minting process.`,
|
|
47235
|
-
args:
|
|
47236
|
-
tool: async (client,
|
|
47237
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
47472
|
+
args: args45,
|
|
47473
|
+
tool: async (client, args46, ctx) => {
|
|
47474
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47238
47475
|
if (!result.ok) {
|
|
47239
47476
|
return {
|
|
47240
47477
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47249,9 +47486,9 @@ needed for the minting process.`,
|
|
|
47249
47486
|
|
|
47250
47487
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
47251
47488
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
47252
|
-
return new APIPromise($
|
|
47489
|
+
return new APIPromise($do46(client, request, options));
|
|
47253
47490
|
}
|
|
47254
|
-
async function $
|
|
47491
|
+
async function $do46(client, request, options) {
|
|
47255
47492
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47256
47493
|
if (!parsed.ok) {
|
|
47257
47494
|
return [parsed, { status: "invalid" }];
|
|
@@ -47325,12 +47562,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
47325
47562
|
});
|
|
47326
47563
|
|
|
47327
47564
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
47328
|
-
var
|
|
47565
|
+
var args46, tool$uniswapV3LiquidityProvisionPositions;
|
|
47329
47566
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
47330
47567
|
init_uniswapV3LiquidityProvisionPositions();
|
|
47331
47568
|
init_operations();
|
|
47332
47569
|
init_tools();
|
|
47333
|
-
|
|
47570
|
+
args46 = {
|
|
47334
47571
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
47335
47572
|
};
|
|
47336
47573
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -47344,9 +47581,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
47344
47581
|
positions, including the total number of positions and relevant metadata. This
|
|
47345
47582
|
information is crucial for users to manage and analyze their liquidity provision
|
|
47346
47583
|
activities effectively.`,
|
|
47347
|
-
args:
|
|
47348
|
-
tool: async (client,
|
|
47349
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
47584
|
+
args: args46,
|
|
47585
|
+
tool: async (client, args47, ctx) => {
|
|
47586
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47350
47587
|
if (!result.ok) {
|
|
47351
47588
|
return {
|
|
47352
47589
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47361,9 +47598,9 @@ activities effectively.`,
|
|
|
47361
47598
|
|
|
47362
47599
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
47363
47600
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
47364
|
-
return new APIPromise($
|
|
47601
|
+
return new APIPromise($do47(client, request, options));
|
|
47365
47602
|
}
|
|
47366
|
-
async function $
|
|
47603
|
+
async function $do47(client, request, options) {
|
|
47367
47604
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47368
47605
|
if (!parsed.ok) {
|
|
47369
47606
|
return [parsed, { status: "invalid" }];
|
|
@@ -47432,12 +47669,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
47432
47669
|
});
|
|
47433
47670
|
|
|
47434
47671
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
47435
|
-
var
|
|
47672
|
+
var args47, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
47436
47673
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
47437
47674
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
47438
47675
|
init_components();
|
|
47439
47676
|
init_tools();
|
|
47440
|
-
|
|
47677
|
+
args47 = {
|
|
47441
47678
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
47442
47679
|
};
|
|
47443
47680
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -47454,9 +47691,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
47454
47691
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
47455
47692
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
47456
47693
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
47457
|
-
args:
|
|
47458
|
-
tool: async (client,
|
|
47459
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
47694
|
+
args: args47,
|
|
47695
|
+
tool: async (client, args48, ctx) => {
|
|
47696
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47460
47697
|
if (!result.ok) {
|
|
47461
47698
|
return {
|
|
47462
47699
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47471,9 +47708,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
47471
47708
|
|
|
47472
47709
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
47473
47710
|
function uniswapV3PoolPrice(client, request, options) {
|
|
47474
|
-
return new APIPromise($
|
|
47711
|
+
return new APIPromise($do48(client, request, options));
|
|
47475
47712
|
}
|
|
47476
|
-
async function $
|
|
47713
|
+
async function $do48(client, request, options) {
|
|
47477
47714
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47478
47715
|
if (!parsed.ok) {
|
|
47479
47716
|
return [parsed, { status: "invalid" }];
|
|
@@ -47549,12 +47786,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
47549
47786
|
});
|
|
47550
47787
|
|
|
47551
47788
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
47552
|
-
var
|
|
47789
|
+
var args48, tool$uniswapV3PoolPrice;
|
|
47553
47790
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
47554
47791
|
init_uniswapV3PoolPrice();
|
|
47555
47792
|
init_operations();
|
|
47556
47793
|
init_tools();
|
|
47557
|
-
|
|
47794
|
+
args48 = {
|
|
47558
47795
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
47559
47796
|
};
|
|
47560
47797
|
tool$uniswapV3PoolPrice = {
|
|
@@ -47564,9 +47801,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
47564
47801
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
47565
47802
|
|
|
47566
47803
|
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,
|
|
47804
|
+
args: args48,
|
|
47805
|
+
tool: async (client, args49, ctx) => {
|
|
47806
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47570
47807
|
if (!result.ok) {
|
|
47571
47808
|
return {
|
|
47572
47809
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47581,9 +47818,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
47581
47818
|
|
|
47582
47819
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
47583
47820
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
47584
|
-
return new APIPromise($
|
|
47821
|
+
return new APIPromise($do49(client, request, options));
|
|
47585
47822
|
}
|
|
47586
|
-
async function $
|
|
47823
|
+
async function $do49(client, request, options) {
|
|
47587
47824
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47588
47825
|
if (!parsed.ok) {
|
|
47589
47826
|
return [parsed, { status: "invalid" }];
|
|
@@ -47660,12 +47897,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
47660
47897
|
});
|
|
47661
47898
|
|
|
47662
47899
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
47663
|
-
var
|
|
47900
|
+
var args49, tool$uniswapV3QuoteBuyExactly;
|
|
47664
47901
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
47665
47902
|
init_uniswapV3QuoteBuyExactly();
|
|
47666
47903
|
init_operations();
|
|
47667
47904
|
init_tools();
|
|
47668
|
-
|
|
47905
|
+
args49 = {
|
|
47669
47906
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
47670
47907
|
};
|
|
47671
47908
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -47677,9 +47914,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
47677
47914
|
|
|
47678
47915
|
It also provides the resulting price after the transaction. The calculation takes
|
|
47679
47916
|
into account the current pool state and the specified fee tier.`,
|
|
47680
|
-
args:
|
|
47681
|
-
tool: async (client,
|
|
47682
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
47917
|
+
args: args49,
|
|
47918
|
+
tool: async (client, args50, ctx) => {
|
|
47919
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47683
47920
|
if (!result.ok) {
|
|
47684
47921
|
return {
|
|
47685
47922
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47694,9 +47931,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
47694
47931
|
|
|
47695
47932
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
47696
47933
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
47697
|
-
return new APIPromise($
|
|
47934
|
+
return new APIPromise($do50(client, request, options));
|
|
47698
47935
|
}
|
|
47699
|
-
async function $
|
|
47936
|
+
async function $do50(client, request, options) {
|
|
47700
47937
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47701
47938
|
if (!parsed.ok) {
|
|
47702
47939
|
return [parsed, { status: "invalid" }];
|
|
@@ -47773,12 +48010,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
47773
48010
|
});
|
|
47774
48011
|
|
|
47775
48012
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
47776
|
-
var
|
|
48013
|
+
var args50, tool$uniswapV3QuoteSellExactly;
|
|
47777
48014
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
47778
48015
|
init_uniswapV3QuoteSellExactly();
|
|
47779
48016
|
init_operations();
|
|
47780
48017
|
init_tools();
|
|
47781
|
-
|
|
48018
|
+
args50 = {
|
|
47782
48019
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
47783
48020
|
};
|
|
47784
48021
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -47790,9 +48027,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
47790
48027
|
|
|
47791
48028
|
It also provides the resulting price after the transaction. The calculation takes
|
|
47792
48029
|
into account the current pool state and the specified fee tier.`,
|
|
47793
|
-
args:
|
|
47794
|
-
tool: async (client,
|
|
47795
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
48030
|
+
args: args50,
|
|
48031
|
+
tool: async (client, args51, ctx) => {
|
|
48032
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47796
48033
|
if (!result.ok) {
|
|
47797
48034
|
return {
|
|
47798
48035
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47807,9 +48044,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
47807
48044
|
|
|
47808
48045
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
47809
48046
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
47810
|
-
return new APIPromise($
|
|
48047
|
+
return new APIPromise($do51(client, request, options));
|
|
47811
48048
|
}
|
|
47812
|
-
async function $
|
|
48049
|
+
async function $do51(client, request, options) {
|
|
47813
48050
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47814
48051
|
if (!parsed.ok) {
|
|
47815
48052
|
return [parsed, { status: "invalid" }];
|
|
@@ -47878,12 +48115,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
47878
48115
|
});
|
|
47879
48116
|
|
|
47880
48117
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
47881
|
-
var
|
|
48118
|
+
var args51, tool$uniswapV3SwapBuyExactly;
|
|
47882
48119
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
47883
48120
|
init_uniswapV3SwapBuyExactly();
|
|
47884
48121
|
init_components();
|
|
47885
48122
|
init_tools();
|
|
47886
|
-
|
|
48123
|
+
args51 = {
|
|
47887
48124
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
47888
48125
|
};
|
|
47889
48126
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -47897,9 +48134,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
47897
48134
|
provide the necessary transaction details, including the token to buy, the token to
|
|
47898
48135
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
47899
48136
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
47900
|
-
args:
|
|
47901
|
-
tool: async (client,
|
|
47902
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
48137
|
+
args: args51,
|
|
48138
|
+
tool: async (client, args52, ctx) => {
|
|
48139
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47903
48140
|
if (!result.ok) {
|
|
47904
48141
|
return {
|
|
47905
48142
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47914,9 +48151,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
47914
48151
|
|
|
47915
48152
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
47916
48153
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
47917
|
-
return new APIPromise($
|
|
48154
|
+
return new APIPromise($do52(client, request, options));
|
|
47918
48155
|
}
|
|
47919
|
-
async function $
|
|
48156
|
+
async function $do52(client, request, options) {
|
|
47920
48157
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47921
48158
|
if (!parsed.ok) {
|
|
47922
48159
|
return [parsed, { status: "invalid" }];
|
|
@@ -47985,12 +48222,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
47985
48222
|
});
|
|
47986
48223
|
|
|
47987
48224
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
47988
|
-
var
|
|
48225
|
+
var args52, tool$uniswapV3SwapSellExactly;
|
|
47989
48226
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
47990
48227
|
init_uniswapV3SwapSellExactly();
|
|
47991
48228
|
init_components();
|
|
47992
48229
|
init_tools();
|
|
47993
|
-
|
|
48230
|
+
args52 = {
|
|
47994
48231
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
47995
48232
|
};
|
|
47996
48233
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -48004,9 +48241,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
48004
48241
|
provide the necessary transaction details, including the token to sell, the token to
|
|
48005
48242
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
48006
48243
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
48007
|
-
args:
|
|
48008
|
-
tool: async (client,
|
|
48009
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
48244
|
+
args: args52,
|
|
48245
|
+
tool: async (client, args53, ctx) => {
|
|
48246
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48010
48247
|
if (!result.ok) {
|
|
48011
48248
|
return {
|
|
48012
48249
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48021,9 +48258,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
48021
48258
|
|
|
48022
48259
|
// src/funcs/universalAllowance.ts
|
|
48023
48260
|
function universalAllowance(client, request, options) {
|
|
48024
|
-
return new APIPromise($
|
|
48261
|
+
return new APIPromise($do53(client, request, options));
|
|
48025
48262
|
}
|
|
48026
|
-
async function $
|
|
48263
|
+
async function $do53(client, request, options) {
|
|
48027
48264
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48028
48265
|
if (!parsed.ok) {
|
|
48029
48266
|
return [parsed, { status: "invalid" }];
|
|
@@ -48099,12 +48336,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
48099
48336
|
});
|
|
48100
48337
|
|
|
48101
48338
|
// src/mcp-server/tools/universalAllowance.ts
|
|
48102
|
-
var
|
|
48339
|
+
var args53, tool$universalAllowance;
|
|
48103
48340
|
var init_universalAllowance2 = __esm(() => {
|
|
48104
48341
|
init_universalAllowance();
|
|
48105
48342
|
init_operations();
|
|
48106
48343
|
init_tools();
|
|
48107
|
-
|
|
48344
|
+
args53 = {
|
|
48108
48345
|
request: GenericAllowanceRequest$inboundSchema
|
|
48109
48346
|
};
|
|
48110
48347
|
tool$universalAllowance = {
|
|
@@ -48118,9 +48355,9 @@ tokens on their behalf.
|
|
|
48118
48355
|
This is a crucial step before engaging in any transactions or operations within
|
|
48119
48356
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
48120
48357
|
the user's tokens securely and efficiently.`,
|
|
48121
|
-
args:
|
|
48122
|
-
tool: async (client,
|
|
48123
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
48358
|
+
args: args53,
|
|
48359
|
+
tool: async (client, args54, ctx) => {
|
|
48360
|
+
const [result, apiCall] = await universalAllowance(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48124
48361
|
if (!result.ok) {
|
|
48125
48362
|
return {
|
|
48126
48363
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48135,9 +48372,9 @@ the user's tokens securely and efficiently.`,
|
|
|
48135
48372
|
|
|
48136
48373
|
// src/funcs/universalAllowanceSet.ts
|
|
48137
48374
|
function universalAllowanceSet(client, request, options) {
|
|
48138
|
-
return new APIPromise($
|
|
48375
|
+
return new APIPromise($do54(client, request, options));
|
|
48139
48376
|
}
|
|
48140
|
-
async function $
|
|
48377
|
+
async function $do54(client, request, options) {
|
|
48141
48378
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48142
48379
|
if (!parsed.ok) {
|
|
48143
48380
|
return [parsed, { status: "invalid" }];
|
|
@@ -48206,12 +48443,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
48206
48443
|
});
|
|
48207
48444
|
|
|
48208
48445
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
48209
|
-
var
|
|
48446
|
+
var args54, tool$universalAllowanceSet;
|
|
48210
48447
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
48211
48448
|
init_universalAllowanceSet();
|
|
48212
48449
|
init_components();
|
|
48213
48450
|
init_tools();
|
|
48214
|
-
|
|
48451
|
+
args54 = {
|
|
48215
48452
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
48216
48453
|
};
|
|
48217
48454
|
tool$universalAllowanceSet = {
|
|
@@ -48225,9 +48462,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
48225
48462
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
48226
48463
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
48227
48464
|
within the DeFi ecosystem.`,
|
|
48228
|
-
args:
|
|
48229
|
-
tool: async (client,
|
|
48230
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
48465
|
+
args: args54,
|
|
48466
|
+
tool: async (client, args55, ctx) => {
|
|
48467
|
+
const [result, apiCall] = await universalAllowanceSet(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48231
48468
|
if (!result.ok) {
|
|
48232
48469
|
return {
|
|
48233
48470
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48242,9 +48479,9 @@ within the DeFi ecosystem.`,
|
|
|
48242
48479
|
|
|
48243
48480
|
// src/funcs/universalEns.ts
|
|
48244
48481
|
function universalEns(client, request, options) {
|
|
48245
|
-
return new APIPromise($
|
|
48482
|
+
return new APIPromise($do55(client, request, options));
|
|
48246
48483
|
}
|
|
48247
|
-
async function $
|
|
48484
|
+
async function $do55(client, request, options) {
|
|
48248
48485
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48249
48486
|
if (!parsed.ok) {
|
|
48250
48487
|
return [parsed, { status: "invalid" }];
|
|
@@ -48318,12 +48555,12 @@ var init_universalEns = __esm(() => {
|
|
|
48318
48555
|
});
|
|
48319
48556
|
|
|
48320
48557
|
// src/mcp-server/tools/universalEns.ts
|
|
48321
|
-
var
|
|
48558
|
+
var args55, tool$universalEns;
|
|
48322
48559
|
var init_universalEns2 = __esm(() => {
|
|
48323
48560
|
init_universalEns();
|
|
48324
48561
|
init_operations();
|
|
48325
48562
|
init_tools();
|
|
48326
|
-
|
|
48563
|
+
args55 = {
|
|
48327
48564
|
request: GenericEnsRequest$inboundSchema
|
|
48328
48565
|
};
|
|
48329
48566
|
tool$universalEns = {
|
|
@@ -48334,9 +48571,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
48334
48571
|
|
|
48335
48572
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
48336
48573
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
48337
|
-
args:
|
|
48338
|
-
tool: async (client,
|
|
48339
|
-
const [result, apiCall] = await universalEns(client,
|
|
48574
|
+
args: args55,
|
|
48575
|
+
tool: async (client, args56, ctx) => {
|
|
48576
|
+
const [result, apiCall] = await universalEns(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48340
48577
|
if (!result.ok) {
|
|
48341
48578
|
return {
|
|
48342
48579
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48351,9 +48588,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
48351
48588
|
|
|
48352
48589
|
// src/funcs/universalPortfolio.ts
|
|
48353
48590
|
function universalPortfolio(client, request, options) {
|
|
48354
|
-
return new APIPromise($
|
|
48591
|
+
return new APIPromise($do56(client, request, options));
|
|
48355
48592
|
}
|
|
48356
|
-
async function $
|
|
48593
|
+
async function $do56(client, request, options) {
|
|
48357
48594
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48358
48595
|
if (!parsed.ok) {
|
|
48359
48596
|
return [parsed, { status: "invalid" }];
|
|
@@ -48427,12 +48664,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
48427
48664
|
});
|
|
48428
48665
|
|
|
48429
48666
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
48430
|
-
var
|
|
48667
|
+
var args56, tool$universalPortfolio;
|
|
48431
48668
|
var init_universalPortfolio2 = __esm(() => {
|
|
48432
48669
|
init_universalPortfolio();
|
|
48433
48670
|
init_operations();
|
|
48434
48671
|
init_tools();
|
|
48435
|
-
|
|
48672
|
+
args56 = {
|
|
48436
48673
|
request: GenericPortfolioRequest$inboundSchema
|
|
48437
48674
|
};
|
|
48438
48675
|
tool$universalPortfolio = {
|
|
@@ -48443,9 +48680,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
48443
48680
|
|
|
48444
48681
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
48445
48682
|
balances, including their respective values and quantities.`,
|
|
48446
|
-
args:
|
|
48447
|
-
tool: async (client,
|
|
48448
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
48683
|
+
args: args56,
|
|
48684
|
+
tool: async (client, args57, ctx) => {
|
|
48685
|
+
const [result, apiCall] = await universalPortfolio(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48449
48686
|
if (!result.ok) {
|
|
48450
48687
|
return {
|
|
48451
48688
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48460,9 +48697,9 @@ balances, including their respective values and quantities.`,
|
|
|
48460
48697
|
|
|
48461
48698
|
// src/funcs/universalSupportedTokens.ts
|
|
48462
48699
|
function universalSupportedTokens(client, request, options) {
|
|
48463
|
-
return new APIPromise($
|
|
48700
|
+
return new APIPromise($do57(client, request, options));
|
|
48464
48701
|
}
|
|
48465
|
-
async function $
|
|
48702
|
+
async function $do57(client, request, options) {
|
|
48466
48703
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48467
48704
|
if (!parsed.ok) {
|
|
48468
48705
|
return [parsed, { status: "invalid" }];
|
|
@@ -48535,12 +48772,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
48535
48772
|
});
|
|
48536
48773
|
|
|
48537
48774
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
48538
|
-
var
|
|
48775
|
+
var args57, tool$universalSupportedTokens;
|
|
48539
48776
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
48540
48777
|
init_universalSupportedTokens();
|
|
48541
48778
|
init_operations();
|
|
48542
48779
|
init_tools();
|
|
48543
|
-
|
|
48780
|
+
args57 = {
|
|
48544
48781
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
48545
48782
|
};
|
|
48546
48783
|
tool$universalSupportedTokens = {
|
|
@@ -48548,9 +48785,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
48548
48785
|
description: `List supported tokens
|
|
48549
48786
|
|
|
48550
48787
|
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,
|
|
48788
|
+
args: args57,
|
|
48789
|
+
tool: async (client, args58, ctx) => {
|
|
48790
|
+
const [result, apiCall] = await universalSupportedTokens(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48554
48791
|
if (!result.ok) {
|
|
48555
48792
|
return {
|
|
48556
48793
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48565,9 +48802,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
48565
48802
|
|
|
48566
48803
|
// src/funcs/universalUnwrapWeth.ts
|
|
48567
48804
|
function universalUnwrapWeth(client, request, options) {
|
|
48568
|
-
return new APIPromise($
|
|
48805
|
+
return new APIPromise($do58(client, request, options));
|
|
48569
48806
|
}
|
|
48570
|
-
async function $
|
|
48807
|
+
async function $do58(client, request, options) {
|
|
48571
48808
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48572
48809
|
if (!parsed.ok) {
|
|
48573
48810
|
return [parsed, { status: "invalid" }];
|
|
@@ -48636,12 +48873,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
48636
48873
|
});
|
|
48637
48874
|
|
|
48638
48875
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
48639
|
-
var
|
|
48876
|
+
var args58, tool$universalUnwrapWeth;
|
|
48640
48877
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
48641
48878
|
init_universalUnwrapWeth();
|
|
48642
48879
|
init_components();
|
|
48643
48880
|
init_tools();
|
|
48644
|
-
|
|
48881
|
+
args58 = {
|
|
48645
48882
|
request: UnwrapWethRequest$inboundSchema
|
|
48646
48883
|
};
|
|
48647
48884
|
tool$universalUnwrapWeth = {
|
|
@@ -48650,9 +48887,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
48650
48887
|
|
|
48651
48888
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
48652
48889
|
can be used for gas and other native purposes.`,
|
|
48653
|
-
args:
|
|
48654
|
-
tool: async (client,
|
|
48655
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
48890
|
+
args: args58,
|
|
48891
|
+
tool: async (client, args59, ctx) => {
|
|
48892
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48656
48893
|
if (!result.ok) {
|
|
48657
48894
|
return {
|
|
48658
48895
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48667,9 +48904,9 @@ can be used for gas and other native purposes.`,
|
|
|
48667
48904
|
|
|
48668
48905
|
// src/funcs/universalVisualizePortfolio.ts
|
|
48669
48906
|
function universalVisualizePortfolio(client, request, options) {
|
|
48670
|
-
return new APIPromise($
|
|
48907
|
+
return new APIPromise($do59(client, request, options));
|
|
48671
48908
|
}
|
|
48672
|
-
async function $
|
|
48909
|
+
async function $do59(client, request, options) {
|
|
48673
48910
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48674
48911
|
if (!parsed.ok) {
|
|
48675
48912
|
return [parsed, { status: "invalid" }];
|
|
@@ -48743,12 +48980,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
48743
48980
|
});
|
|
48744
48981
|
|
|
48745
48982
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
48746
|
-
var
|
|
48983
|
+
var args59, tool$universalVisualizePortfolio;
|
|
48747
48984
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
48748
48985
|
init_universalVisualizePortfolio();
|
|
48749
48986
|
init_operations();
|
|
48750
48987
|
init_tools();
|
|
48751
|
-
|
|
48988
|
+
args59 = {
|
|
48752
48989
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
48753
48990
|
};
|
|
48754
48991
|
tool$universalVisualizePortfolio = {
|
|
@@ -48760,9 +48997,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
48760
48997
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
48761
48998
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
48762
48999
|
USD.`,
|
|
48763
|
-
args:
|
|
48764
|
-
tool: async (client,
|
|
48765
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
49000
|
+
args: args59,
|
|
49001
|
+
tool: async (client, args60, ctx) => {
|
|
49002
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48766
49003
|
if (!result.ok) {
|
|
48767
49004
|
return {
|
|
48768
49005
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48777,9 +49014,9 @@ USD.`,
|
|
|
48777
49014
|
|
|
48778
49015
|
// src/funcs/universalWrapEth.ts
|
|
48779
49016
|
function universalWrapEth(client, request, options) {
|
|
48780
|
-
return new APIPromise($
|
|
49017
|
+
return new APIPromise($do60(client, request, options));
|
|
48781
49018
|
}
|
|
48782
|
-
async function $
|
|
49019
|
+
async function $do60(client, request, options) {
|
|
48783
49020
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48784
49021
|
if (!parsed.ok) {
|
|
48785
49022
|
return [parsed, { status: "invalid" }];
|
|
@@ -48848,12 +49085,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
48848
49085
|
});
|
|
48849
49086
|
|
|
48850
49087
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
48851
|
-
var
|
|
49088
|
+
var args60, tool$universalWrapEth;
|
|
48852
49089
|
var init_universalWrapEth2 = __esm(() => {
|
|
48853
49090
|
init_universalWrapEth();
|
|
48854
49091
|
init_components();
|
|
48855
49092
|
init_tools();
|
|
48856
|
-
|
|
49093
|
+
args60 = {
|
|
48857
49094
|
request: WrapEthRequest$inboundSchema
|
|
48858
49095
|
};
|
|
48859
49096
|
tool$universalWrapEth = {
|
|
@@ -48862,9 +49099,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
48862
49099
|
|
|
48863
49100
|
Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
|
|
48864
49101
|
it to be traded on DeFi protocols.`,
|
|
48865
|
-
args:
|
|
48866
|
-
tool: async (client,
|
|
48867
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
49102
|
+
args: args60,
|
|
49103
|
+
tool: async (client, args61, ctx) => {
|
|
49104
|
+
const [result, apiCall] = await universalWrapEth(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48868
49105
|
if (!result.ok) {
|
|
48869
49106
|
return {
|
|
48870
49107
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48881,7 +49118,7 @@ it to be traded on DeFi protocols.`,
|
|
|
48881
49118
|
function createMCPServer(deps) {
|
|
48882
49119
|
const server = new McpServer({
|
|
48883
49120
|
name: "CompassApiSDK",
|
|
48884
|
-
version: "0.0.
|
|
49121
|
+
version: "0.0.29"
|
|
48885
49122
|
});
|
|
48886
49123
|
const client = new CompassApiSDKCore({
|
|
48887
49124
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -48895,6 +49132,7 @@ function createMCPServer(deps) {
|
|
|
48895
49132
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
48896
49133
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
48897
49134
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
49135
|
+
tool(tool$aaveV3AvgRate);
|
|
48898
49136
|
tool(tool$aaveV3ReserveOverview);
|
|
48899
49137
|
tool(tool$aaveV3Rate);
|
|
48900
49138
|
tool(tool$aaveV3TokenPrice);
|
|
@@ -48961,6 +49199,7 @@ var init_server2 = __esm(() => {
|
|
|
48961
49199
|
init_core();
|
|
48962
49200
|
init_resources();
|
|
48963
49201
|
init_tools();
|
|
49202
|
+
init_aaveV3AvgRate2();
|
|
48964
49203
|
init_aaveV3Borrow2();
|
|
48965
49204
|
init_aaveV3HistoricalTransactions2();
|
|
48966
49205
|
init_aaveV3LiquidityChange2();
|
|
@@ -50210,7 +50449,7 @@ var routes = an({
|
|
|
50210
50449
|
var app = He(routes, {
|
|
50211
50450
|
name: "mcp",
|
|
50212
50451
|
versionInfo: {
|
|
50213
|
-
currentVersion: "0.0.
|
|
50452
|
+
currentVersion: "0.0.29"
|
|
50214
50453
|
}
|
|
50215
50454
|
});
|
|
50216
50455
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -50218,5 +50457,5 @@ export {
|
|
|
50218
50457
|
app
|
|
50219
50458
|
};
|
|
50220
50459
|
|
|
50221
|
-
//# debugId=
|
|
50460
|
+
//# debugId=ED986B8E995A266764756E2164756E21
|
|
50222
50461
|
//# sourceMappingURL=mcp-server.js.map
|