@compass-labs/api-sdk 0.0.21 → 0.0.23
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 +2 -2
- package/README.md +9 -7
- package/bin/mcp-server.js +631 -885
- package/bin/mcp-server.js.map +14 -17
- package/dist/commonjs/funcs/aaveV3ReserveOverview.d.ts +23 -0
- package/dist/commonjs/funcs/aaveV3ReserveOverview.d.ts.map +1 -0
- package/dist/commonjs/funcs/aaveV3ReserveOverview.js +126 -0
- package/dist/commonjs/funcs/aaveV3ReserveOverview.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/aaveV3ReserveOverview.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.js +69 -0
- package/dist/commonjs/mcp-server/tools/aaveV3ReserveOverview.js.map +1 -0
- package/dist/commonjs/models/components/aavereserveoverviewresponse.d.ts +42 -0
- package/dist/commonjs/models/components/aavereserveoverviewresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavereserveoverviewresponse.js +84 -0
- package/dist/commonjs/models/components/aavereserveoverviewresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -7
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -7
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/multicallaction.d.ts +4 -11
- package/dist/commonjs/models/components/multicallaction.d.ts.map +1 -1
- package/dist/commonjs/models/components/multicallaction.js +0 -35
- package/dist/commonjs/models/components/multicallaction.js.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.d.ts +0 -21
- package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.js +0 -7
- package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts +244 -0
- package/dist/commonjs/models/operations/aavereserveoverview.d.ts.map +1 -0
- package/dist/commonjs/models/operations/aavereserveoverview.js +163 -0
- package/dist/commonjs/models/operations/aavereserveoverview.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 +12 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +15 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/esm/funcs/aaveV3ReserveOverview.d.ts +23 -0
- package/dist/esm/funcs/aaveV3ReserveOverview.d.ts.map +1 -0
- package/dist/esm/funcs/aaveV3ReserveOverview.js +90 -0
- package/dist/esm/funcs/aaveV3ReserveOverview.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/aaveV3ReserveOverview.d.ts +8 -0
- package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.js +33 -0
- package/dist/esm/mcp-server/tools/aaveV3ReserveOverview.js.map +1 -0
- package/dist/esm/models/components/aavereserveoverviewresponse.d.ts +42 -0
- package/dist/esm/models/components/aavereserveoverviewresponse.d.ts.map +1 -0
- package/dist/esm/models/components/aavereserveoverviewresponse.js +46 -0
- package/dist/esm/models/components/aavereserveoverviewresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -7
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -7
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/multicallaction.d.ts +4 -11
- package/dist/esm/models/components/multicallaction.d.ts.map +1 -1
- package/dist/esm/models/components/multicallaction.js +0 -35
- package/dist/esm/models/components/multicallaction.js.map +1 -1
- package/dist/esm/models/components/multicallactiontype.d.ts +0 -21
- package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/esm/models/components/multicallactiontype.js +0 -7
- package/dist/esm/models/components/multicallactiontype.js.map +1 -1
- package/dist/esm/models/operations/aavereserveoverview.d.ts +244 -0
- package/dist/esm/models/operations/aavereserveoverview.d.ts.map +1 -0
- package/dist/esm/models/operations/aavereserveoverview.js +125 -0
- package/dist/esm/models/operations/aavereserveoverview.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 +12 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +15 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/docs/sdks/aavev3/README.md +85 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3ReserveOverview.ts +175 -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/aaveV3ReserveOverview.ts +42 -0
- package/src/models/components/aavereserveoverviewresponse.ts +96 -0
- package/src/models/components/index.ts +1 -7
- package/src/models/components/multicallaction.ts +0 -98
- package/src/models/components/multicallactiontype.ts +0 -7
- package/src/models/operations/aavereserveoverview.ts +205 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/aavev3.ts +23 -0
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts +0 -177
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js +0 -191
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts +0 -186
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.js +0 -197
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts +0 -151
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js +0 -167
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts +0 -161
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js +0 -173
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts +0 -109
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js +0 -137
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts +0 -109
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js +0 -137
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js.map +0 -1
- package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts +0 -128
- package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/aerodromeswaptokensparams.js +0 -141
- package/dist/commonjs/models/components/aerodromeswaptokensparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts +0 -177
- package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeaddliquidityethparams.js +0 -145
- package/dist/esm/models/components/aerodromeaddliquidityethparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts +0 -186
- package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeaddliquidityparams.js +0 -151
- package/dist/esm/models/components/aerodromeaddliquidityparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts +0 -151
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js +0 -123
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js.map +0 -1
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts +0 -161
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.js +0 -129
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.js.map +0 -1
- package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts +0 -109
- package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeswapethfortokenparams.js +0 -95
- package/dist/esm/models/components/aerodromeswapethfortokenparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts +0 -109
- package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeswaptokenforethparams.js +0 -95
- package/dist/esm/models/components/aerodromeswaptokenforethparams.js.map +0 -1
- package/dist/esm/models/components/aerodromeswaptokensparams.d.ts +0 -128
- package/dist/esm/models/components/aerodromeswaptokensparams.d.ts.map +0 -1
- package/dist/esm/models/components/aerodromeswaptokensparams.js +0 -99
- package/dist/esm/models/components/aerodromeswaptokensparams.js.map +0 -1
- package/src/models/components/aerodromeaddliquidityethparams.ts +0 -392
- package/src/models/components/aerodromeaddliquidityparams.ts +0 -382
- package/src/models/components/aerodromeremoveliquidityethrequest.ts +0 -357
- package/src/models/components/aerodromeremoveliquidityrequest.ts +0 -363
- package/src/models/components/aerodromeswapethfortokenparams.ts +0 -249
- package/src/models/components/aerodromeswaptokenforethparams.ts +0 -249
- package/src/models/components/aerodromeswaptokensparams.ts +0 -260
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.23",
|
|
34189
34189
|
genVersion: "2.598.22",
|
|
34190
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
34190
|
+
userAgent: "speakeasy-sdk/typescript 0.0.23 2.598.22 0.0.1 @compass-labs/api-sdk"
|
|
34191
34191
|
};
|
|
34192
34192
|
});
|
|
34193
34193
|
|
|
@@ -36161,6 +36161,37 @@ var init_aaverepayrequest = __esm(() => {
|
|
|
36161
36161
|
})(AaveRepayRequest$ ||= {});
|
|
36162
36162
|
});
|
|
36163
36163
|
|
|
36164
|
+
// src/models/components/aavereserveoverviewresponse.ts
|
|
36165
|
+
var AaveReserveOverviewResponse$inboundSchema, AaveReserveOverviewResponse$outboundSchema, AaveReserveOverviewResponse$;
|
|
36166
|
+
var init_aavereserveoverviewresponse = __esm(() => {
|
|
36167
|
+
init_lib();
|
|
36168
|
+
init_primitives();
|
|
36169
|
+
AaveReserveOverviewResponse$inboundSchema = objectType({
|
|
36170
|
+
tvl: numberType(),
|
|
36171
|
+
total_borrowed: numberType(),
|
|
36172
|
+
utilization_ratio: numberType()
|
|
36173
|
+
}).transform((v2) => {
|
|
36174
|
+
return remap(v2, {
|
|
36175
|
+
total_borrowed: "totalBorrowed",
|
|
36176
|
+
utilization_ratio: "utilizationRatio"
|
|
36177
|
+
});
|
|
36178
|
+
});
|
|
36179
|
+
AaveReserveOverviewResponse$outboundSchema = objectType({
|
|
36180
|
+
tvl: numberType(),
|
|
36181
|
+
totalBorrowed: numberType(),
|
|
36182
|
+
utilizationRatio: numberType()
|
|
36183
|
+
}).transform((v2) => {
|
|
36184
|
+
return remap(v2, {
|
|
36185
|
+
totalBorrowed: "total_borrowed",
|
|
36186
|
+
utilizationRatio: "utilization_ratio"
|
|
36187
|
+
});
|
|
36188
|
+
});
|
|
36189
|
+
((AaveReserveOverviewResponse$) => {
|
|
36190
|
+
AaveReserveOverviewResponse$.inboundSchema = AaveReserveOverviewResponse$inboundSchema;
|
|
36191
|
+
AaveReserveOverviewResponse$.outboundSchema = AaveReserveOverviewResponse$outboundSchema;
|
|
36192
|
+
})(AaveReserveOverviewResponse$ ||= {});
|
|
36193
|
+
});
|
|
36194
|
+
|
|
36164
36195
|
// src/models/components/aavesupplyparams.ts
|
|
36165
36196
|
var AaveSupplyParamsAmount$inboundSchema, AaveSupplyParamsAmount$outboundSchema, AaveSupplyParamsAmount$, AaveSupplyParams$inboundSchema, AaveSupplyParams$outboundSchema, AaveSupplyParams$;
|
|
36166
36197
|
var init_aavesupplyparams = __esm(() => {
|
|
@@ -36415,152 +36446,6 @@ var init_aavewithdrawrequest = __esm(() => {
|
|
|
36415
36446
|
})(AaveWithdrawRequest$ ||= {});
|
|
36416
36447
|
});
|
|
36417
36448
|
|
|
36418
|
-
// src/models/components/aerodromeaddliquidityethparams.ts
|
|
36419
|
-
var AmountTokenDesired$inboundSchema, AmountTokenDesired$outboundSchema, AmountTokenDesired$, AmountEthDesired$inboundSchema, AmountEthDesired$outboundSchema, AmountEthDesired$, AerodromeAddLiquidityEthParamsAmountTokenMin$inboundSchema, AerodromeAddLiquidityEthParamsAmountTokenMin$outboundSchema, AerodromeAddLiquidityEthParamsAmountTokenMin$, AerodromeAddLiquidityEthParamsAmountEthMin$inboundSchema, AerodromeAddLiquidityEthParamsAmountEthMin$outboundSchema, AerodromeAddLiquidityEthParamsAmountEthMin$, AerodromeAddLiquidityEthParams$inboundSchema, AerodromeAddLiquidityEthParams$outboundSchema, AerodromeAddLiquidityEthParams$;
|
|
36420
|
-
var init_aerodromeaddliquidityethparams = __esm(() => {
|
|
36421
|
-
init_lib();
|
|
36422
|
-
init_primitives();
|
|
36423
|
-
init_tokenenum();
|
|
36424
|
-
AmountTokenDesired$inboundSchema = unionType([numberType(), stringType()]);
|
|
36425
|
-
AmountTokenDesired$outboundSchema = unionType([numberType(), stringType()]);
|
|
36426
|
-
((AmountTokenDesired$) => {
|
|
36427
|
-
AmountTokenDesired$.inboundSchema = AmountTokenDesired$inboundSchema;
|
|
36428
|
-
AmountTokenDesired$.outboundSchema = AmountTokenDesired$outboundSchema;
|
|
36429
|
-
})(AmountTokenDesired$ ||= {});
|
|
36430
|
-
AmountEthDesired$inboundSchema = unionType([numberType(), stringType()]);
|
|
36431
|
-
AmountEthDesired$outboundSchema = unionType([numberType(), stringType()]);
|
|
36432
|
-
((AmountEthDesired$) => {
|
|
36433
|
-
AmountEthDesired$.inboundSchema = AmountEthDesired$inboundSchema;
|
|
36434
|
-
AmountEthDesired$.outboundSchema = AmountEthDesired$outboundSchema;
|
|
36435
|
-
})(AmountEthDesired$ ||= {});
|
|
36436
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36437
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36438
|
-
((AerodromeAddLiquidityEthParamsAmountTokenMin$) => {
|
|
36439
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin$.inboundSchema = AerodromeAddLiquidityEthParamsAmountTokenMin$inboundSchema;
|
|
36440
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin$.outboundSchema = AerodromeAddLiquidityEthParamsAmountTokenMin$outboundSchema;
|
|
36441
|
-
})(AerodromeAddLiquidityEthParamsAmountTokenMin$ ||= {});
|
|
36442
|
-
AerodromeAddLiquidityEthParamsAmountEthMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36443
|
-
AerodromeAddLiquidityEthParamsAmountEthMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36444
|
-
((AerodromeAddLiquidityEthParamsAmountEthMin$) => {
|
|
36445
|
-
AerodromeAddLiquidityEthParamsAmountEthMin$.inboundSchema = AerodromeAddLiquidityEthParamsAmountEthMin$inboundSchema;
|
|
36446
|
-
AerodromeAddLiquidityEthParamsAmountEthMin$.outboundSchema = AerodromeAddLiquidityEthParamsAmountEthMin$outboundSchema;
|
|
36447
|
-
})(AerodromeAddLiquidityEthParamsAmountEthMin$ ||= {});
|
|
36448
|
-
AerodromeAddLiquidityEthParams$inboundSchema = objectType({
|
|
36449
|
-
token: TokenEnum$inboundSchema,
|
|
36450
|
-
stable: booleanType(),
|
|
36451
|
-
amount_token_desired: unionType([numberType(), stringType()]),
|
|
36452
|
-
amount_eth_desired: unionType([numberType(), stringType()]),
|
|
36453
|
-
amount_token_min: unionType([numberType(), stringType()]),
|
|
36454
|
-
amount_eth_min: unionType([numberType(), stringType()]),
|
|
36455
|
-
to: nullableType(stringType()).optional(),
|
|
36456
|
-
deadline: nullableType(numberType().int())
|
|
36457
|
-
}).transform((v2) => {
|
|
36458
|
-
return remap(v2, {
|
|
36459
|
-
amount_token_desired: "amountTokenDesired",
|
|
36460
|
-
amount_eth_desired: "amountEthDesired",
|
|
36461
|
-
amount_token_min: "amountTokenMin",
|
|
36462
|
-
amount_eth_min: "amountEthMin"
|
|
36463
|
-
});
|
|
36464
|
-
});
|
|
36465
|
-
AerodromeAddLiquidityEthParams$outboundSchema = objectType({
|
|
36466
|
-
token: TokenEnum$outboundSchema,
|
|
36467
|
-
stable: booleanType(),
|
|
36468
|
-
amountTokenDesired: unionType([numberType(), stringType()]),
|
|
36469
|
-
amountEthDesired: unionType([numberType(), stringType()]),
|
|
36470
|
-
amountTokenMin: unionType([numberType(), stringType()]),
|
|
36471
|
-
amountEthMin: unionType([numberType(), stringType()]),
|
|
36472
|
-
to: nullableType(stringType()).optional(),
|
|
36473
|
-
deadline: nullableType(numberType().int())
|
|
36474
|
-
}).transform((v2) => {
|
|
36475
|
-
return remap(v2, {
|
|
36476
|
-
amountTokenDesired: "amount_token_desired",
|
|
36477
|
-
amountEthDesired: "amount_eth_desired",
|
|
36478
|
-
amountTokenMin: "amount_token_min",
|
|
36479
|
-
amountEthMin: "amount_eth_min"
|
|
36480
|
-
});
|
|
36481
|
-
});
|
|
36482
|
-
((AerodromeAddLiquidityEthParams$) => {
|
|
36483
|
-
AerodromeAddLiquidityEthParams$.inboundSchema = AerodromeAddLiquidityEthParams$inboundSchema;
|
|
36484
|
-
AerodromeAddLiquidityEthParams$.outboundSchema = AerodromeAddLiquidityEthParams$outboundSchema;
|
|
36485
|
-
})(AerodromeAddLiquidityEthParams$ ||= {});
|
|
36486
|
-
});
|
|
36487
|
-
|
|
36488
|
-
// src/models/components/aerodromeaddliquidityparams.ts
|
|
36489
|
-
var AmountADesired$inboundSchema, AmountADesired$outboundSchema, AmountADesired$, AmountBDesired$inboundSchema, AmountBDesired$outboundSchema, AmountBDesired$, AerodromeAddLiquidityParamsAmountAMin$inboundSchema, AerodromeAddLiquidityParamsAmountAMin$outboundSchema, AerodromeAddLiquidityParamsAmountAMin$, AerodromeAddLiquidityParamsAmountBMin$inboundSchema, AerodromeAddLiquidityParamsAmountBMin$outboundSchema, AerodromeAddLiquidityParamsAmountBMin$, AerodromeAddLiquidityParams$inboundSchema, AerodromeAddLiquidityParams$outboundSchema, AerodromeAddLiquidityParams$;
|
|
36490
|
-
var init_aerodromeaddliquidityparams = __esm(() => {
|
|
36491
|
-
init_lib();
|
|
36492
|
-
init_primitives();
|
|
36493
|
-
init_tokenenum();
|
|
36494
|
-
AmountADesired$inboundSchema = unionType([numberType(), stringType()]);
|
|
36495
|
-
AmountADesired$outboundSchema = unionType([numberType(), stringType()]);
|
|
36496
|
-
((AmountADesired$) => {
|
|
36497
|
-
AmountADesired$.inboundSchema = AmountADesired$inboundSchema;
|
|
36498
|
-
AmountADesired$.outboundSchema = AmountADesired$outboundSchema;
|
|
36499
|
-
})(AmountADesired$ ||= {});
|
|
36500
|
-
AmountBDesired$inboundSchema = unionType([numberType(), stringType()]);
|
|
36501
|
-
AmountBDesired$outboundSchema = unionType([numberType(), stringType()]);
|
|
36502
|
-
((AmountBDesired$) => {
|
|
36503
|
-
AmountBDesired$.inboundSchema = AmountBDesired$inboundSchema;
|
|
36504
|
-
AmountBDesired$.outboundSchema = AmountBDesired$outboundSchema;
|
|
36505
|
-
})(AmountBDesired$ ||= {});
|
|
36506
|
-
AerodromeAddLiquidityParamsAmountAMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36507
|
-
AerodromeAddLiquidityParamsAmountAMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36508
|
-
((AerodromeAddLiquidityParamsAmountAMin$) => {
|
|
36509
|
-
AerodromeAddLiquidityParamsAmountAMin$.inboundSchema = AerodromeAddLiquidityParamsAmountAMin$inboundSchema;
|
|
36510
|
-
AerodromeAddLiquidityParamsAmountAMin$.outboundSchema = AerodromeAddLiquidityParamsAmountAMin$outboundSchema;
|
|
36511
|
-
})(AerodromeAddLiquidityParamsAmountAMin$ ||= {});
|
|
36512
|
-
AerodromeAddLiquidityParamsAmountBMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36513
|
-
AerodromeAddLiquidityParamsAmountBMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36514
|
-
((AerodromeAddLiquidityParamsAmountBMin$) => {
|
|
36515
|
-
AerodromeAddLiquidityParamsAmountBMin$.inboundSchema = AerodromeAddLiquidityParamsAmountBMin$inboundSchema;
|
|
36516
|
-
AerodromeAddLiquidityParamsAmountBMin$.outboundSchema = AerodromeAddLiquidityParamsAmountBMin$outboundSchema;
|
|
36517
|
-
})(AerodromeAddLiquidityParamsAmountBMin$ ||= {});
|
|
36518
|
-
AerodromeAddLiquidityParams$inboundSchema = objectType({
|
|
36519
|
-
token_a: TokenEnum$inboundSchema,
|
|
36520
|
-
token_b: TokenEnum$inboundSchema,
|
|
36521
|
-
stable: booleanType(),
|
|
36522
|
-
amount_a_desired: unionType([numberType(), stringType()]),
|
|
36523
|
-
amount_b_desired: unionType([numberType(), stringType()]),
|
|
36524
|
-
amount_a_min: unionType([numberType(), stringType()]),
|
|
36525
|
-
amount_b_min: unionType([numberType(), stringType()]),
|
|
36526
|
-
to: nullableType(stringType()).optional(),
|
|
36527
|
-
deadline: nullableType(numberType().int())
|
|
36528
|
-
}).transform((v2) => {
|
|
36529
|
-
return remap(v2, {
|
|
36530
|
-
token_a: "tokenA",
|
|
36531
|
-
token_b: "tokenB",
|
|
36532
|
-
amount_a_desired: "amountADesired",
|
|
36533
|
-
amount_b_desired: "amountBDesired",
|
|
36534
|
-
amount_a_min: "amountAMin",
|
|
36535
|
-
amount_b_min: "amountBMin"
|
|
36536
|
-
});
|
|
36537
|
-
});
|
|
36538
|
-
AerodromeAddLiquidityParams$outboundSchema = objectType({
|
|
36539
|
-
tokenA: TokenEnum$outboundSchema,
|
|
36540
|
-
tokenB: TokenEnum$outboundSchema,
|
|
36541
|
-
stable: booleanType(),
|
|
36542
|
-
amountADesired: unionType([numberType(), stringType()]),
|
|
36543
|
-
amountBDesired: unionType([numberType(), stringType()]),
|
|
36544
|
-
amountAMin: unionType([numberType(), stringType()]),
|
|
36545
|
-
amountBMin: unionType([numberType(), stringType()]),
|
|
36546
|
-
to: nullableType(stringType()).optional(),
|
|
36547
|
-
deadline: nullableType(numberType().int())
|
|
36548
|
-
}).transform((v2) => {
|
|
36549
|
-
return remap(v2, {
|
|
36550
|
-
tokenA: "token_a",
|
|
36551
|
-
tokenB: "token_b",
|
|
36552
|
-
amountADesired: "amount_a_desired",
|
|
36553
|
-
amountBDesired: "amount_b_desired",
|
|
36554
|
-
amountAMin: "amount_a_min",
|
|
36555
|
-
amountBMin: "amount_b_min"
|
|
36556
|
-
});
|
|
36557
|
-
});
|
|
36558
|
-
((AerodromeAddLiquidityParams$) => {
|
|
36559
|
-
AerodromeAddLiquidityParams$.inboundSchema = AerodromeAddLiquidityParams$inboundSchema;
|
|
36560
|
-
AerodromeAddLiquidityParams$.outboundSchema = AerodromeAddLiquidityParams$outboundSchema;
|
|
36561
|
-
})(AerodromeAddLiquidityParams$ ||= {});
|
|
36562
|
-
});
|
|
36563
|
-
|
|
36564
36449
|
// src/models/components/aerodromeposition.ts
|
|
36565
36450
|
var AerodromePosition$inboundSchema, AerodromePosition$outboundSchema, AerodromePosition$;
|
|
36566
36451
|
var init_aerodromeposition = __esm(() => {
|
|
@@ -36642,138 +36527,6 @@ var init_aerodromelppositionsresponse = __esm(() => {
|
|
|
36642
36527
|
})(AerodromeLPPositionsResponse$ ||= {});
|
|
36643
36528
|
});
|
|
36644
36529
|
|
|
36645
|
-
// src/models/components/aerodromeremoveliquidityethrequest.ts
|
|
36646
|
-
var AerodromeRemoveLiquidityEthRequestLiquidity$inboundSchema, AerodromeRemoveLiquidityEthRequestLiquidity$outboundSchema, AerodromeRemoveLiquidityEthRequestLiquidity$, AerodromeRemoveLiquidityEthRequestAmountTokenMin$inboundSchema, AerodromeRemoveLiquidityEthRequestAmountTokenMin$outboundSchema, AerodromeRemoveLiquidityEthRequestAmountTokenMin$, AerodromeRemoveLiquidityEthRequestAmountEthMin$inboundSchema, AerodromeRemoveLiquidityEthRequestAmountEthMin$outboundSchema, AerodromeRemoveLiquidityEthRequestAmountEthMin$, AerodromeRemoveLiquidityEthRequest$inboundSchema, AerodromeRemoveLiquidityEthRequest$outboundSchema, AerodromeRemoveLiquidityEthRequest$;
|
|
36647
|
-
var init_aerodromeremoveliquidityethrequest = __esm(() => {
|
|
36648
|
-
init_lib();
|
|
36649
|
-
init_primitives();
|
|
36650
|
-
init_chain();
|
|
36651
|
-
init_tokenenum();
|
|
36652
|
-
AerodromeRemoveLiquidityEthRequestLiquidity$inboundSchema = unionType([numberType(), stringType()]);
|
|
36653
|
-
AerodromeRemoveLiquidityEthRequestLiquidity$outboundSchema = unionType([numberType(), stringType()]);
|
|
36654
|
-
((AerodromeRemoveLiquidityEthRequestLiquidity$) => {
|
|
36655
|
-
AerodromeRemoveLiquidityEthRequestLiquidity$.inboundSchema = AerodromeRemoveLiquidityEthRequestLiquidity$inboundSchema;
|
|
36656
|
-
AerodromeRemoveLiquidityEthRequestLiquidity$.outboundSchema = AerodromeRemoveLiquidityEthRequestLiquidity$outboundSchema;
|
|
36657
|
-
})(AerodromeRemoveLiquidityEthRequestLiquidity$ ||= {});
|
|
36658
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36659
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36660
|
-
((AerodromeRemoveLiquidityEthRequestAmountTokenMin$) => {
|
|
36661
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin$.inboundSchema = AerodromeRemoveLiquidityEthRequestAmountTokenMin$inboundSchema;
|
|
36662
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin$.outboundSchema = AerodromeRemoveLiquidityEthRequestAmountTokenMin$outboundSchema;
|
|
36663
|
-
})(AerodromeRemoveLiquidityEthRequestAmountTokenMin$ ||= {});
|
|
36664
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36665
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36666
|
-
((AerodromeRemoveLiquidityEthRequestAmountEthMin$) => {
|
|
36667
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin$.inboundSchema = AerodromeRemoveLiquidityEthRequestAmountEthMin$inboundSchema;
|
|
36668
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin$.outboundSchema = AerodromeRemoveLiquidityEthRequestAmountEthMin$outboundSchema;
|
|
36669
|
-
})(AerodromeRemoveLiquidityEthRequestAmountEthMin$ ||= {});
|
|
36670
|
-
AerodromeRemoveLiquidityEthRequest$inboundSchema = objectType({
|
|
36671
|
-
chain: Chain$inboundSchema,
|
|
36672
|
-
sender: stringType(),
|
|
36673
|
-
token: TokenEnum$inboundSchema,
|
|
36674
|
-
stable: booleanType(),
|
|
36675
|
-
liquidity: unionType([numberType(), stringType()]),
|
|
36676
|
-
amount_token_min: unionType([numberType(), stringType()]),
|
|
36677
|
-
amount_eth_min: unionType([numberType(), stringType()]),
|
|
36678
|
-
to: nullableType(stringType()).optional(),
|
|
36679
|
-
deadline: nullableType(numberType().int())
|
|
36680
|
-
}).transform((v2) => {
|
|
36681
|
-
return remap(v2, {
|
|
36682
|
-
amount_token_min: "amountTokenMin",
|
|
36683
|
-
amount_eth_min: "amountEthMin"
|
|
36684
|
-
});
|
|
36685
|
-
});
|
|
36686
|
-
AerodromeRemoveLiquidityEthRequest$outboundSchema = objectType({
|
|
36687
|
-
chain: Chain$outboundSchema,
|
|
36688
|
-
sender: stringType(),
|
|
36689
|
-
token: TokenEnum$outboundSchema,
|
|
36690
|
-
stable: booleanType(),
|
|
36691
|
-
liquidity: unionType([numberType(), stringType()]),
|
|
36692
|
-
amountTokenMin: unionType([numberType(), stringType()]),
|
|
36693
|
-
amountEthMin: unionType([numberType(), stringType()]),
|
|
36694
|
-
to: nullableType(stringType()).optional(),
|
|
36695
|
-
deadline: nullableType(numberType().int())
|
|
36696
|
-
}).transform((v2) => {
|
|
36697
|
-
return remap(v2, {
|
|
36698
|
-
amountTokenMin: "amount_token_min",
|
|
36699
|
-
amountEthMin: "amount_eth_min"
|
|
36700
|
-
});
|
|
36701
|
-
});
|
|
36702
|
-
((AerodromeRemoveLiquidityEthRequest$) => {
|
|
36703
|
-
AerodromeRemoveLiquidityEthRequest$.inboundSchema = AerodromeRemoveLiquidityEthRequest$inboundSchema;
|
|
36704
|
-
AerodromeRemoveLiquidityEthRequest$.outboundSchema = AerodromeRemoveLiquidityEthRequest$outboundSchema;
|
|
36705
|
-
})(AerodromeRemoveLiquidityEthRequest$ ||= {});
|
|
36706
|
-
});
|
|
36707
|
-
|
|
36708
|
-
// src/models/components/aerodromeremoveliquidityrequest.ts
|
|
36709
|
-
var AerodromeRemoveLiquidityRequestLiquidity$inboundSchema, AerodromeRemoveLiquidityRequestLiquidity$outboundSchema, AerodromeRemoveLiquidityRequestLiquidity$, AerodromeRemoveLiquidityRequestAmountAMin$inboundSchema, AerodromeRemoveLiquidityRequestAmountAMin$outboundSchema, AerodromeRemoveLiquidityRequestAmountAMin$, AerodromeRemoveLiquidityRequestAmountBMin$inboundSchema, AerodromeRemoveLiquidityRequestAmountBMin$outboundSchema, AerodromeRemoveLiquidityRequestAmountBMin$, AerodromeRemoveLiquidityRequest$inboundSchema, AerodromeRemoveLiquidityRequest$outboundSchema, AerodromeRemoveLiquidityRequest$;
|
|
36710
|
-
var init_aerodromeremoveliquidityrequest = __esm(() => {
|
|
36711
|
-
init_lib();
|
|
36712
|
-
init_primitives();
|
|
36713
|
-
init_chain();
|
|
36714
|
-
init_tokenenum();
|
|
36715
|
-
AerodromeRemoveLiquidityRequestLiquidity$inboundSchema = unionType([numberType(), stringType()]);
|
|
36716
|
-
AerodromeRemoveLiquidityRequestLiquidity$outboundSchema = unionType([numberType(), stringType()]);
|
|
36717
|
-
((AerodromeRemoveLiquidityRequestLiquidity$) => {
|
|
36718
|
-
AerodromeRemoveLiquidityRequestLiquidity$.inboundSchema = AerodromeRemoveLiquidityRequestLiquidity$inboundSchema;
|
|
36719
|
-
AerodromeRemoveLiquidityRequestLiquidity$.outboundSchema = AerodromeRemoveLiquidityRequestLiquidity$outboundSchema;
|
|
36720
|
-
})(AerodromeRemoveLiquidityRequestLiquidity$ ||= {});
|
|
36721
|
-
AerodromeRemoveLiquidityRequestAmountAMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36722
|
-
AerodromeRemoveLiquidityRequestAmountAMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36723
|
-
((AerodromeRemoveLiquidityRequestAmountAMin$) => {
|
|
36724
|
-
AerodromeRemoveLiquidityRequestAmountAMin$.inboundSchema = AerodromeRemoveLiquidityRequestAmountAMin$inboundSchema;
|
|
36725
|
-
AerodromeRemoveLiquidityRequestAmountAMin$.outboundSchema = AerodromeRemoveLiquidityRequestAmountAMin$outboundSchema;
|
|
36726
|
-
})(AerodromeRemoveLiquidityRequestAmountAMin$ ||= {});
|
|
36727
|
-
AerodromeRemoveLiquidityRequestAmountBMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36728
|
-
AerodromeRemoveLiquidityRequestAmountBMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36729
|
-
((AerodromeRemoveLiquidityRequestAmountBMin$) => {
|
|
36730
|
-
AerodromeRemoveLiquidityRequestAmountBMin$.inboundSchema = AerodromeRemoveLiquidityRequestAmountBMin$inboundSchema;
|
|
36731
|
-
AerodromeRemoveLiquidityRequestAmountBMin$.outboundSchema = AerodromeRemoveLiquidityRequestAmountBMin$outboundSchema;
|
|
36732
|
-
})(AerodromeRemoveLiquidityRequestAmountBMin$ ||= {});
|
|
36733
|
-
AerodromeRemoveLiquidityRequest$inboundSchema = objectType({
|
|
36734
|
-
chain: Chain$inboundSchema,
|
|
36735
|
-
sender: stringType(),
|
|
36736
|
-
token_a: TokenEnum$inboundSchema,
|
|
36737
|
-
token_b: TokenEnum$inboundSchema,
|
|
36738
|
-
stable: booleanType(),
|
|
36739
|
-
liquidity: unionType([numberType(), stringType()]),
|
|
36740
|
-
amount_a_min: unionType([numberType(), stringType()]),
|
|
36741
|
-
amount_b_min: unionType([numberType(), stringType()]),
|
|
36742
|
-
to: nullableType(stringType()).optional(),
|
|
36743
|
-
deadline: nullableType(numberType().int())
|
|
36744
|
-
}).transform((v2) => {
|
|
36745
|
-
return remap(v2, {
|
|
36746
|
-
token_a: "tokenA",
|
|
36747
|
-
token_b: "tokenB",
|
|
36748
|
-
amount_a_min: "amountAMin",
|
|
36749
|
-
amount_b_min: "amountBMin"
|
|
36750
|
-
});
|
|
36751
|
-
});
|
|
36752
|
-
AerodromeRemoveLiquidityRequest$outboundSchema = objectType({
|
|
36753
|
-
chain: Chain$outboundSchema,
|
|
36754
|
-
sender: stringType(),
|
|
36755
|
-
tokenA: TokenEnum$outboundSchema,
|
|
36756
|
-
tokenB: TokenEnum$outboundSchema,
|
|
36757
|
-
stable: booleanType(),
|
|
36758
|
-
liquidity: unionType([numberType(), stringType()]),
|
|
36759
|
-
amountAMin: unionType([numberType(), stringType()]),
|
|
36760
|
-
amountBMin: unionType([numberType(), stringType()]),
|
|
36761
|
-
to: nullableType(stringType()).optional(),
|
|
36762
|
-
deadline: nullableType(numberType().int())
|
|
36763
|
-
}).transform((v2) => {
|
|
36764
|
-
return remap(v2, {
|
|
36765
|
-
tokenA: "token_a",
|
|
36766
|
-
tokenB: "token_b",
|
|
36767
|
-
amountAMin: "amount_a_min",
|
|
36768
|
-
amountBMin: "amount_b_min"
|
|
36769
|
-
});
|
|
36770
|
-
});
|
|
36771
|
-
((AerodromeRemoveLiquidityRequest$) => {
|
|
36772
|
-
AerodromeRemoveLiquidityRequest$.inboundSchema = AerodromeRemoveLiquidityRequest$inboundSchema;
|
|
36773
|
-
AerodromeRemoveLiquidityRequest$.outboundSchema = AerodromeRemoveLiquidityRequest$outboundSchema;
|
|
36774
|
-
})(AerodromeRemoveLiquidityRequest$ ||= {});
|
|
36775
|
-
});
|
|
36776
|
-
|
|
36777
36530
|
// src/models/components/aerodromeslipstreambuyexactlyparams.ts
|
|
36778
36531
|
var AerodromeSlipstreamBuyExactlyParamsAmountOut$inboundSchema, AerodromeSlipstreamBuyExactlyParamsAmountOut$outboundSchema, AerodromeSlipstreamBuyExactlyParamsAmountOut$, AerodromeSlipstreamBuyExactlyParamsAmountInMaximum$inboundSchema, AerodromeSlipstreamBuyExactlyParamsAmountInMaximum$outboundSchema, AerodromeSlipstreamBuyExactlyParamsAmountInMaximum$, AerodromeSlipstreamBuyExactlyParams$inboundSchema, AerodromeSlipstreamBuyExactlyParams$outboundSchema, AerodromeSlipstreamBuyExactlyParams$;
|
|
36779
36532
|
var init_aerodromeslipstreambuyexactlyparams = __esm(() => {
|
|
@@ -37409,160 +37162,6 @@ var init_aerodromeslipstreamwithdrawliquidityprovisionrequest = __esm(() => {
|
|
|
37409
37162
|
})(AerodromeSlipstreamWithdrawLiquidityProvisionRequest$ ||= {});
|
|
37410
37163
|
});
|
|
37411
37164
|
|
|
37412
|
-
// src/models/components/aerodromeswapethfortokenparams.ts
|
|
37413
|
-
var AerodromeSwapEthForTokenParamsAmountIn$inboundSchema, AerodromeSwapEthForTokenParamsAmountIn$outboundSchema, AerodromeSwapEthForTokenParamsAmountIn$, AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema, AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema, AerodromeSwapEthForTokenParamsAmountOutMin$, AerodromeSwapEthForTokenParams$inboundSchema, AerodromeSwapEthForTokenParams$outboundSchema, AerodromeSwapEthForTokenParams$;
|
|
37414
|
-
var init_aerodromeswapethfortokenparams = __esm(() => {
|
|
37415
|
-
init_lib();
|
|
37416
|
-
init_primitives();
|
|
37417
|
-
init_tokenenum();
|
|
37418
|
-
AerodromeSwapEthForTokenParamsAmountIn$inboundSchema = unionType([numberType(), stringType()]);
|
|
37419
|
-
AerodromeSwapEthForTokenParamsAmountIn$outboundSchema = unionType([numberType(), stringType()]);
|
|
37420
|
-
((AerodromeSwapEthForTokenParamsAmountIn$) => {
|
|
37421
|
-
AerodromeSwapEthForTokenParamsAmountIn$.inboundSchema = AerodromeSwapEthForTokenParamsAmountIn$inboundSchema;
|
|
37422
|
-
AerodromeSwapEthForTokenParamsAmountIn$.outboundSchema = AerodromeSwapEthForTokenParamsAmountIn$outboundSchema;
|
|
37423
|
-
})(AerodromeSwapEthForTokenParamsAmountIn$ ||= {});
|
|
37424
|
-
AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
37425
|
-
AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
37426
|
-
((AerodromeSwapEthForTokenParamsAmountOutMin$) => {
|
|
37427
|
-
AerodromeSwapEthForTokenParamsAmountOutMin$.inboundSchema = AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema;
|
|
37428
|
-
AerodromeSwapEthForTokenParamsAmountOutMin$.outboundSchema = AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema;
|
|
37429
|
-
})(AerodromeSwapEthForTokenParamsAmountOutMin$ ||= {});
|
|
37430
|
-
AerodromeSwapEthForTokenParams$inboundSchema = objectType({
|
|
37431
|
-
token_out: TokenEnum$inboundSchema,
|
|
37432
|
-
amount_in: unionType([numberType(), stringType()]),
|
|
37433
|
-
amount_out_min: unionType([numberType(), stringType()]),
|
|
37434
|
-
stable: booleanType(),
|
|
37435
|
-
to: nullableType(stringType()).optional()
|
|
37436
|
-
}).transform((v2) => {
|
|
37437
|
-
return remap(v2, {
|
|
37438
|
-
token_out: "tokenOut",
|
|
37439
|
-
amount_in: "amountIn",
|
|
37440
|
-
amount_out_min: "amountOutMin"
|
|
37441
|
-
});
|
|
37442
|
-
});
|
|
37443
|
-
AerodromeSwapEthForTokenParams$outboundSchema = objectType({
|
|
37444
|
-
tokenOut: TokenEnum$outboundSchema,
|
|
37445
|
-
amountIn: unionType([numberType(), stringType()]),
|
|
37446
|
-
amountOutMin: unionType([numberType(), stringType()]),
|
|
37447
|
-
stable: booleanType(),
|
|
37448
|
-
to: nullableType(stringType()).optional()
|
|
37449
|
-
}).transform((v2) => {
|
|
37450
|
-
return remap(v2, {
|
|
37451
|
-
tokenOut: "token_out",
|
|
37452
|
-
amountIn: "amount_in",
|
|
37453
|
-
amountOutMin: "amount_out_min"
|
|
37454
|
-
});
|
|
37455
|
-
});
|
|
37456
|
-
((AerodromeSwapEthForTokenParams$) => {
|
|
37457
|
-
AerodromeSwapEthForTokenParams$.inboundSchema = AerodromeSwapEthForTokenParams$inboundSchema;
|
|
37458
|
-
AerodromeSwapEthForTokenParams$.outboundSchema = AerodromeSwapEthForTokenParams$outboundSchema;
|
|
37459
|
-
})(AerodromeSwapEthForTokenParams$ ||= {});
|
|
37460
|
-
});
|
|
37461
|
-
|
|
37462
|
-
// src/models/components/aerodromeswaptokenforethparams.ts
|
|
37463
|
-
var AerodromeSwapTokenForEthParamsAmountIn$inboundSchema, AerodromeSwapTokenForEthParamsAmountIn$outboundSchema, AerodromeSwapTokenForEthParamsAmountIn$, AerodromeSwapTokenForEthParamsAmountOutMin$inboundSchema, AerodromeSwapTokenForEthParamsAmountOutMin$outboundSchema, AerodromeSwapTokenForEthParamsAmountOutMin$, AerodromeSwapTokenForEthParams$inboundSchema, AerodromeSwapTokenForEthParams$outboundSchema, AerodromeSwapTokenForEthParams$;
|
|
37464
|
-
var init_aerodromeswaptokenforethparams = __esm(() => {
|
|
37465
|
-
init_lib();
|
|
37466
|
-
init_primitives();
|
|
37467
|
-
init_tokenenum();
|
|
37468
|
-
AerodromeSwapTokenForEthParamsAmountIn$inboundSchema = unionType([numberType(), stringType()]);
|
|
37469
|
-
AerodromeSwapTokenForEthParamsAmountIn$outboundSchema = unionType([numberType(), stringType()]);
|
|
37470
|
-
((AerodromeSwapTokenForEthParamsAmountIn$) => {
|
|
37471
|
-
AerodromeSwapTokenForEthParamsAmountIn$.inboundSchema = AerodromeSwapTokenForEthParamsAmountIn$inboundSchema;
|
|
37472
|
-
AerodromeSwapTokenForEthParamsAmountIn$.outboundSchema = AerodromeSwapTokenForEthParamsAmountIn$outboundSchema;
|
|
37473
|
-
})(AerodromeSwapTokenForEthParamsAmountIn$ ||= {});
|
|
37474
|
-
AerodromeSwapTokenForEthParamsAmountOutMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
37475
|
-
AerodromeSwapTokenForEthParamsAmountOutMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
37476
|
-
((AerodromeSwapTokenForEthParamsAmountOutMin$) => {
|
|
37477
|
-
AerodromeSwapTokenForEthParamsAmountOutMin$.inboundSchema = AerodromeSwapTokenForEthParamsAmountOutMin$inboundSchema;
|
|
37478
|
-
AerodromeSwapTokenForEthParamsAmountOutMin$.outboundSchema = AerodromeSwapTokenForEthParamsAmountOutMin$outboundSchema;
|
|
37479
|
-
})(AerodromeSwapTokenForEthParamsAmountOutMin$ ||= {});
|
|
37480
|
-
AerodromeSwapTokenForEthParams$inboundSchema = objectType({
|
|
37481
|
-
token_in: TokenEnum$inboundSchema,
|
|
37482
|
-
amount_in: unionType([numberType(), stringType()]),
|
|
37483
|
-
amount_out_min: unionType([numberType(), stringType()]),
|
|
37484
|
-
stable: booleanType(),
|
|
37485
|
-
to: nullableType(stringType()).optional()
|
|
37486
|
-
}).transform((v2) => {
|
|
37487
|
-
return remap(v2, {
|
|
37488
|
-
token_in: "tokenIn",
|
|
37489
|
-
amount_in: "amountIn",
|
|
37490
|
-
amount_out_min: "amountOutMin"
|
|
37491
|
-
});
|
|
37492
|
-
});
|
|
37493
|
-
AerodromeSwapTokenForEthParams$outboundSchema = objectType({
|
|
37494
|
-
tokenIn: TokenEnum$outboundSchema,
|
|
37495
|
-
amountIn: unionType([numberType(), stringType()]),
|
|
37496
|
-
amountOutMin: unionType([numberType(), stringType()]),
|
|
37497
|
-
stable: booleanType(),
|
|
37498
|
-
to: nullableType(stringType()).optional()
|
|
37499
|
-
}).transform((v2) => {
|
|
37500
|
-
return remap(v2, {
|
|
37501
|
-
tokenIn: "token_in",
|
|
37502
|
-
amountIn: "amount_in",
|
|
37503
|
-
amountOutMin: "amount_out_min"
|
|
37504
|
-
});
|
|
37505
|
-
});
|
|
37506
|
-
((AerodromeSwapTokenForEthParams$) => {
|
|
37507
|
-
AerodromeSwapTokenForEthParams$.inboundSchema = AerodromeSwapTokenForEthParams$inboundSchema;
|
|
37508
|
-
AerodromeSwapTokenForEthParams$.outboundSchema = AerodromeSwapTokenForEthParams$outboundSchema;
|
|
37509
|
-
})(AerodromeSwapTokenForEthParams$ ||= {});
|
|
37510
|
-
});
|
|
37511
|
-
|
|
37512
|
-
// src/models/components/aerodromeswaptokensparams.ts
|
|
37513
|
-
var AerodromeSwapTokensParamsAmountIn$inboundSchema, AerodromeSwapTokensParamsAmountIn$outboundSchema, AerodromeSwapTokensParamsAmountIn$, AerodromeSwapTokensParamsAmountOutMin$inboundSchema, AerodromeSwapTokensParamsAmountOutMin$outboundSchema, AerodromeSwapTokensParamsAmountOutMin$, AerodromeSwapTokensParams$inboundSchema, AerodromeSwapTokensParams$outboundSchema, AerodromeSwapTokensParams$;
|
|
37514
|
-
var init_aerodromeswaptokensparams = __esm(() => {
|
|
37515
|
-
init_lib();
|
|
37516
|
-
init_primitives();
|
|
37517
|
-
init_tokenenum();
|
|
37518
|
-
AerodromeSwapTokensParamsAmountIn$inboundSchema = unionType([numberType(), stringType()]);
|
|
37519
|
-
AerodromeSwapTokensParamsAmountIn$outboundSchema = unionType([numberType(), stringType()]);
|
|
37520
|
-
((AerodromeSwapTokensParamsAmountIn$) => {
|
|
37521
|
-
AerodromeSwapTokensParamsAmountIn$.inboundSchema = AerodromeSwapTokensParamsAmountIn$inboundSchema;
|
|
37522
|
-
AerodromeSwapTokensParamsAmountIn$.outboundSchema = AerodromeSwapTokensParamsAmountIn$outboundSchema;
|
|
37523
|
-
})(AerodromeSwapTokensParamsAmountIn$ ||= {});
|
|
37524
|
-
AerodromeSwapTokensParamsAmountOutMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
37525
|
-
AerodromeSwapTokensParamsAmountOutMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
37526
|
-
((AerodromeSwapTokensParamsAmountOutMin$) => {
|
|
37527
|
-
AerodromeSwapTokensParamsAmountOutMin$.inboundSchema = AerodromeSwapTokensParamsAmountOutMin$inboundSchema;
|
|
37528
|
-
AerodromeSwapTokensParamsAmountOutMin$.outboundSchema = AerodromeSwapTokensParamsAmountOutMin$outboundSchema;
|
|
37529
|
-
})(AerodromeSwapTokensParamsAmountOutMin$ ||= {});
|
|
37530
|
-
AerodromeSwapTokensParams$inboundSchema = objectType({
|
|
37531
|
-
token_in: TokenEnum$inboundSchema,
|
|
37532
|
-
token_out: TokenEnum$inboundSchema,
|
|
37533
|
-
amount_in: unionType([numberType(), stringType()]),
|
|
37534
|
-
amount_out_min: unionType([numberType(), stringType()]),
|
|
37535
|
-
stable: booleanType(),
|
|
37536
|
-
to: nullableType(stringType()).optional()
|
|
37537
|
-
}).transform((v2) => {
|
|
37538
|
-
return remap(v2, {
|
|
37539
|
-
token_in: "tokenIn",
|
|
37540
|
-
token_out: "tokenOut",
|
|
37541
|
-
amount_in: "amountIn",
|
|
37542
|
-
amount_out_min: "amountOutMin"
|
|
37543
|
-
});
|
|
37544
|
-
});
|
|
37545
|
-
AerodromeSwapTokensParams$outboundSchema = objectType({
|
|
37546
|
-
tokenIn: TokenEnum$outboundSchema,
|
|
37547
|
-
tokenOut: TokenEnum$outboundSchema,
|
|
37548
|
-
amountIn: unionType([numberType(), stringType()]),
|
|
37549
|
-
amountOutMin: unionType([numberType(), stringType()]),
|
|
37550
|
-
stable: booleanType(),
|
|
37551
|
-
to: nullableType(stringType()).optional()
|
|
37552
|
-
}).transform((v2) => {
|
|
37553
|
-
return remap(v2, {
|
|
37554
|
-
tokenIn: "token_in",
|
|
37555
|
-
tokenOut: "token_out",
|
|
37556
|
-
amountIn: "amount_in",
|
|
37557
|
-
amountOutMin: "amount_out_min"
|
|
37558
|
-
});
|
|
37559
|
-
});
|
|
37560
|
-
((AerodromeSwapTokensParams$) => {
|
|
37561
|
-
AerodromeSwapTokensParams$.inboundSchema = AerodromeSwapTokensParams$inboundSchema;
|
|
37562
|
-
AerodromeSwapTokensParams$.outboundSchema = AerodromeSwapTokensParams$outboundSchema;
|
|
37563
|
-
})(AerodromeSwapTokensParams$ ||= {});
|
|
37564
|
-
});
|
|
37565
|
-
|
|
37566
37165
|
// src/models/components/allowanceinforesponse.ts
|
|
37567
37166
|
var AllowanceInfoResponse$inboundSchema, AllowanceInfoResponse$outboundSchema, AllowanceInfoResponse$;
|
|
37568
37167
|
var init_allowanceinforesponse = __esm(() => {
|
|
@@ -38461,13 +38060,6 @@ var init_multicallactiontype = __esm(() => {
|
|
|
38461
38060
|
AaveRepay: "AAVE_REPAY",
|
|
38462
38061
|
AaveSupply: "AAVE_SUPPLY",
|
|
38463
38062
|
AaveWithdraw: "AAVE_WITHDRAW",
|
|
38464
|
-
AerodromeBasicAddLiquidity: "AERODROME_BASIC_ADD_LIQUIDITY",
|
|
38465
|
-
AerodromeBasicAddLiquidityEth: "AERODROME_BASIC_ADD_LIQUIDITY_ETH",
|
|
38466
|
-
AerodromeBasicRemoveLiquidity: "AERODROME_BASIC_REMOVE_LIQUIDITY",
|
|
38467
|
-
AerodromeBasicRemoveLiquidityEth: "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH",
|
|
38468
|
-
AerodromeBasicSwapEthForToken: "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN",
|
|
38469
|
-
AerodromeBasicSwapToken: "AERODROME_BASIC_SWAP_TOKEN",
|
|
38470
|
-
AerodromeBasicSwapTokenForEth: "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH",
|
|
38471
38063
|
AerodromeSlipstreamBuyExactly: "AERODROME_SLIPSTREAM_BUY_EXACTLY",
|
|
38472
38064
|
AerodromeSlipstreamIncreaseLiquidity: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY",
|
|
38473
38065
|
AerodromeSlipstreamMintLiquidity: "AERODROME_SLIPSTREAM_MINT_LIQUIDITY",
|
|
@@ -38851,18 +38443,11 @@ var init_multicallaction = __esm(() => {
|
|
|
38851
38443
|
init_aaverepayparams();
|
|
38852
38444
|
init_aavesupplyparams();
|
|
38853
38445
|
init_aavewithdrawparams();
|
|
38854
|
-
init_aerodromeaddliquidityethparams();
|
|
38855
|
-
init_aerodromeaddliquidityparams();
|
|
38856
|
-
init_aerodromeremoveliquidityethrequest();
|
|
38857
|
-
init_aerodromeremoveliquidityrequest();
|
|
38858
38446
|
init_aerodromeslipstreambuyexactlyparams();
|
|
38859
38447
|
init_aerodromeslipstreamincreaseliquidityprovisionparams();
|
|
38860
38448
|
init_aerodromeslipstreammintliquidityprovisionparams();
|
|
38861
38449
|
init_aerodromeslipstreamsellexactlyparams();
|
|
38862
38450
|
init_aerodromeslipstreamwithdrawliquidityprovisionparams();
|
|
38863
|
-
init_aerodromeswapethfortokenparams();
|
|
38864
|
-
init_aerodromeswaptokenforethparams();
|
|
38865
|
-
init_aerodromeswaptokensparams();
|
|
38866
38451
|
init_increaseallowanceanyparams();
|
|
38867
38452
|
init_increaseallowanceparams();
|
|
38868
38453
|
init_multicallactiontype();
|
|
@@ -38886,19 +38471,12 @@ var init_multicallaction = __esm(() => {
|
|
|
38886
38471
|
IncreaseAllowanceAnyParams$inboundSchema,
|
|
38887
38472
|
AaveBorrowParams$inboundSchema,
|
|
38888
38473
|
AaveRepayParams$inboundSchema,
|
|
38889
|
-
AerodromeSwapEthForTokenParams$inboundSchema,
|
|
38890
|
-
AerodromeSwapTokenForEthParams$inboundSchema,
|
|
38891
38474
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema,
|
|
38892
38475
|
AerodromeSlipstreamBuyExactlyParams$inboundSchema,
|
|
38893
38476
|
AerodromeSlipstreamSellExactlyParams$inboundSchema,
|
|
38894
38477
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema,
|
|
38895
|
-
AerodromeSwapTokensParams$inboundSchema,
|
|
38896
38478
|
UniswapBuyExactlyParams$inboundSchema,
|
|
38897
38479
|
UniswapSellExactlyParams$inboundSchema,
|
|
38898
|
-
AerodromeAddLiquidityEthParams$inboundSchema,
|
|
38899
|
-
AerodromeAddLiquidityParams$inboundSchema,
|
|
38900
|
-
AerodromeRemoveLiquidityEthRequest$inboundSchema,
|
|
38901
|
-
AerodromeRemoveLiquidityRequest$inboundSchema,
|
|
38902
38480
|
AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema,
|
|
38903
38481
|
UniswapMintLiquidityProvisionParams$inboundSchema
|
|
38904
38482
|
]);
|
|
@@ -38914,19 +38492,12 @@ var init_multicallaction = __esm(() => {
|
|
|
38914
38492
|
IncreaseAllowanceAnyParams$outboundSchema,
|
|
38915
38493
|
AaveBorrowParams$outboundSchema,
|
|
38916
38494
|
AaveRepayParams$outboundSchema,
|
|
38917
|
-
AerodromeSwapEthForTokenParams$outboundSchema,
|
|
38918
|
-
AerodromeSwapTokenForEthParams$outboundSchema,
|
|
38919
38495
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema,
|
|
38920
38496
|
AerodromeSlipstreamBuyExactlyParams$outboundSchema,
|
|
38921
38497
|
AerodromeSlipstreamSellExactlyParams$outboundSchema,
|
|
38922
38498
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema,
|
|
38923
|
-
AerodromeSwapTokensParams$outboundSchema,
|
|
38924
38499
|
UniswapBuyExactlyParams$outboundSchema,
|
|
38925
38500
|
UniswapSellExactlyParams$outboundSchema,
|
|
38926
|
-
AerodromeAddLiquidityEthParams$outboundSchema,
|
|
38927
|
-
AerodromeAddLiquidityParams$outboundSchema,
|
|
38928
|
-
AerodromeRemoveLiquidityEthRequest$outboundSchema,
|
|
38929
|
-
AerodromeRemoveLiquidityRequest$outboundSchema,
|
|
38930
38501
|
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema,
|
|
38931
38502
|
UniswapMintLiquidityProvisionParams$outboundSchema
|
|
38932
38503
|
]);
|
|
@@ -38948,19 +38519,12 @@ var init_multicallaction = __esm(() => {
|
|
|
38948
38519
|
IncreaseAllowanceAnyParams$inboundSchema,
|
|
38949
38520
|
AaveBorrowParams$inboundSchema,
|
|
38950
38521
|
AaveRepayParams$inboundSchema,
|
|
38951
|
-
AerodromeSwapEthForTokenParams$inboundSchema,
|
|
38952
|
-
AerodromeSwapTokenForEthParams$inboundSchema,
|
|
38953
38522
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema,
|
|
38954
38523
|
AerodromeSlipstreamBuyExactlyParams$inboundSchema,
|
|
38955
38524
|
AerodromeSlipstreamSellExactlyParams$inboundSchema,
|
|
38956
38525
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema,
|
|
38957
|
-
AerodromeSwapTokensParams$inboundSchema,
|
|
38958
38526
|
UniswapBuyExactlyParams$inboundSchema,
|
|
38959
38527
|
UniswapSellExactlyParams$inboundSchema,
|
|
38960
|
-
AerodromeAddLiquidityEthParams$inboundSchema,
|
|
38961
|
-
AerodromeAddLiquidityParams$inboundSchema,
|
|
38962
|
-
AerodromeRemoveLiquidityEthRequest$inboundSchema,
|
|
38963
|
-
AerodromeRemoveLiquidityRequest$inboundSchema,
|
|
38964
38528
|
AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema,
|
|
38965
38529
|
UniswapMintLiquidityProvisionParams$inboundSchema
|
|
38966
38530
|
])
|
|
@@ -38983,19 +38547,12 @@ var init_multicallaction = __esm(() => {
|
|
|
38983
38547
|
IncreaseAllowanceAnyParams$outboundSchema,
|
|
38984
38548
|
AaveBorrowParams$outboundSchema,
|
|
38985
38549
|
AaveRepayParams$outboundSchema,
|
|
38986
|
-
AerodromeSwapEthForTokenParams$outboundSchema,
|
|
38987
|
-
AerodromeSwapTokenForEthParams$outboundSchema,
|
|
38988
38550
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema,
|
|
38989
38551
|
AerodromeSlipstreamBuyExactlyParams$outboundSchema,
|
|
38990
38552
|
AerodromeSlipstreamSellExactlyParams$outboundSchema,
|
|
38991
38553
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema,
|
|
38992
|
-
AerodromeSwapTokensParams$outboundSchema,
|
|
38993
38554
|
UniswapBuyExactlyParams$outboundSchema,
|
|
38994
38555
|
UniswapSellExactlyParams$outboundSchema,
|
|
38995
|
-
AerodromeAddLiquidityEthParams$outboundSchema,
|
|
38996
|
-
AerodromeAddLiquidityParams$outboundSchema,
|
|
38997
|
-
AerodromeRemoveLiquidityEthRequest$outboundSchema,
|
|
38998
|
-
AerodromeRemoveLiquidityRequest$outboundSchema,
|
|
38999
38556
|
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema,
|
|
39000
38557
|
UniswapMintLiquidityProvisionParams$outboundSchema
|
|
39001
38558
|
])
|
|
@@ -40172,6 +39729,7 @@ var init_components = __esm(() => {
|
|
|
40172
39729
|
init_aaverateresponse();
|
|
40173
39730
|
init_aaverepayparams();
|
|
40174
39731
|
init_aaverepayrequest();
|
|
39732
|
+
init_aavereserveoverviewresponse();
|
|
40175
39733
|
init_aavesupplyparams();
|
|
40176
39734
|
init_aavesupplyrequest();
|
|
40177
39735
|
init_aavetokenpriceresponse();
|
|
@@ -40180,12 +39738,8 @@ var init_components = __esm(() => {
|
|
|
40180
39738
|
init_aavewithdrawparams();
|
|
40181
39739
|
init_aavewithdrawrequest();
|
|
40182
39740
|
init_action();
|
|
40183
|
-
init_aerodromeaddliquidityethparams();
|
|
40184
|
-
init_aerodromeaddliquidityparams();
|
|
40185
39741
|
init_aerodromelppositionsresponse();
|
|
40186
39742
|
init_aerodromeposition();
|
|
40187
|
-
init_aerodromeremoveliquidityethrequest();
|
|
40188
|
-
init_aerodromeremoveliquidityrequest();
|
|
40189
39743
|
init_aerodromeslipstreambuyexactlyparams();
|
|
40190
39744
|
init_aerodromeslipstreambuyexactlyrequest();
|
|
40191
39745
|
init_aerodromeslipstreamincreaseliquidityprovisionparams();
|
|
@@ -40197,9 +39751,6 @@ var init_components = __esm(() => {
|
|
|
40197
39751
|
init_aerodromeslipstreamsellexactlyrequest();
|
|
40198
39752
|
init_aerodromeslipstreamwithdrawliquidityprovisionparams();
|
|
40199
39753
|
init_aerodromeslipstreamwithdrawliquidityprovisionrequest();
|
|
40200
|
-
init_aerodromeswapethfortokenparams();
|
|
40201
|
-
init_aerodromeswaptokenforethparams();
|
|
40202
|
-
init_aerodromeswaptokensparams();
|
|
40203
39754
|
init_allowanceinforesponse();
|
|
40204
39755
|
init_borrow();
|
|
40205
39756
|
init_chain();
|
|
@@ -40673,6 +40224,87 @@ var init_aaverate = __esm(() => {
|
|
|
40673
40224
|
})(AaveRateRequest$ ||= {});
|
|
40674
40225
|
});
|
|
40675
40226
|
|
|
40227
|
+
// src/models/operations/aavereserveoverview.ts
|
|
40228
|
+
var AaveReserveOverviewChain, AaveReserveOverviewToken, AaveReserveOverviewChain$inboundSchema, AaveReserveOverviewChain$outboundSchema, AaveReserveOverviewChain$, AaveReserveOverviewToken$inboundSchema, AaveReserveOverviewToken$outboundSchema, AaveReserveOverviewToken$, AaveReserveOverviewRequest$inboundSchema, AaveReserveOverviewRequest$outboundSchema, AaveReserveOverviewRequest$;
|
|
40229
|
+
var init_aavereserveoverview = __esm(() => {
|
|
40230
|
+
init_lib();
|
|
40231
|
+
AaveReserveOverviewChain = {
|
|
40232
|
+
BaseMainnet: "base:mainnet",
|
|
40233
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
40234
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40235
|
+
};
|
|
40236
|
+
AaveReserveOverviewToken = {
|
|
40237
|
+
OneINCH: "1INCH",
|
|
40238
|
+
Aave: "AAVE",
|
|
40239
|
+
Bal: "BAL",
|
|
40240
|
+
CbBTC: "cbBTC",
|
|
40241
|
+
CbETH: "cbETH",
|
|
40242
|
+
Crv: "CRV",
|
|
40243
|
+
CrvUSD: "crvUSD",
|
|
40244
|
+
Dai: "DAI",
|
|
40245
|
+
Ens: "ENS",
|
|
40246
|
+
ETHx: "ETHx",
|
|
40247
|
+
Frax: "FRAX",
|
|
40248
|
+
Fxs: "FXS",
|
|
40249
|
+
Gho: "GHO",
|
|
40250
|
+
Knc: "KNC",
|
|
40251
|
+
Ldo: "LDO",
|
|
40252
|
+
Link: "LINK",
|
|
40253
|
+
Lusd: "LUSD",
|
|
40254
|
+
Mkr: "MKR",
|
|
40255
|
+
OsETH: "osETH",
|
|
40256
|
+
Pyusd: "PYUSD",
|
|
40257
|
+
RETH: "rETH",
|
|
40258
|
+
Rpl: "RPL",
|
|
40259
|
+
RsETH: "rsETH",
|
|
40260
|
+
SDAI: "sDAI",
|
|
40261
|
+
Snx: "SNX",
|
|
40262
|
+
Stg: "STG",
|
|
40263
|
+
SUSDe: "sUSDe",
|
|
40264
|
+
TBTC: "tBTC",
|
|
40265
|
+
Uni: "UNI",
|
|
40266
|
+
Usdc: "USDC",
|
|
40267
|
+
USDe: "USDe",
|
|
40268
|
+
Usds: "USDS",
|
|
40269
|
+
Usdt: "USDT",
|
|
40270
|
+
Wbtc: "WBTC",
|
|
40271
|
+
WeETH: "weETH",
|
|
40272
|
+
Weth: "WETH",
|
|
40273
|
+
WstETH: "wstETH",
|
|
40274
|
+
Arb: "ARB",
|
|
40275
|
+
Eurs: "EURS",
|
|
40276
|
+
Mai: "MAI",
|
|
40277
|
+
USDCe: "USDCe",
|
|
40278
|
+
Aero: "AERO",
|
|
40279
|
+
Eur: "EUR",
|
|
40280
|
+
Virtual: "VIRTUAL"
|
|
40281
|
+
};
|
|
40282
|
+
AaveReserveOverviewChain$inboundSchema = nativeEnumType(AaveReserveOverviewChain);
|
|
40283
|
+
AaveReserveOverviewChain$outboundSchema = AaveReserveOverviewChain$inboundSchema;
|
|
40284
|
+
((AaveReserveOverviewChain$) => {
|
|
40285
|
+
AaveReserveOverviewChain$.inboundSchema = AaveReserveOverviewChain$inboundSchema;
|
|
40286
|
+
AaveReserveOverviewChain$.outboundSchema = AaveReserveOverviewChain$outboundSchema;
|
|
40287
|
+
})(AaveReserveOverviewChain$ ||= {});
|
|
40288
|
+
AaveReserveOverviewToken$inboundSchema = nativeEnumType(AaveReserveOverviewToken);
|
|
40289
|
+
AaveReserveOverviewToken$outboundSchema = AaveReserveOverviewToken$inboundSchema;
|
|
40290
|
+
((AaveReserveOverviewToken$) => {
|
|
40291
|
+
AaveReserveOverviewToken$.inboundSchema = AaveReserveOverviewToken$inboundSchema;
|
|
40292
|
+
AaveReserveOverviewToken$.outboundSchema = AaveReserveOverviewToken$outboundSchema;
|
|
40293
|
+
})(AaveReserveOverviewToken$ ||= {});
|
|
40294
|
+
AaveReserveOverviewRequest$inboundSchema = objectType({
|
|
40295
|
+
chain: AaveReserveOverviewChain$inboundSchema.default("arbitrum:mainnet"),
|
|
40296
|
+
token: AaveReserveOverviewToken$inboundSchema.default("USDC")
|
|
40297
|
+
});
|
|
40298
|
+
AaveReserveOverviewRequest$outboundSchema = objectType({
|
|
40299
|
+
chain: AaveReserveOverviewChain$outboundSchema.default("arbitrum:mainnet"),
|
|
40300
|
+
token: AaveReserveOverviewToken$outboundSchema.default("USDC")
|
|
40301
|
+
});
|
|
40302
|
+
((AaveReserveOverviewRequest$) => {
|
|
40303
|
+
AaveReserveOverviewRequest$.inboundSchema = AaveReserveOverviewRequest$inboundSchema;
|
|
40304
|
+
AaveReserveOverviewRequest$.outboundSchema = AaveReserveOverviewRequest$outboundSchema;
|
|
40305
|
+
})(AaveReserveOverviewRequest$ ||= {});
|
|
40306
|
+
});
|
|
40307
|
+
|
|
40676
40308
|
// src/models/operations/aavetokenprice.ts
|
|
40677
40309
|
var AaveTokenPriceChain, AaveTokenPriceToken, AaveTokenPriceChain$inboundSchema, AaveTokenPriceChain$outboundSchema, AaveTokenPriceChain$, AaveTokenPriceToken$inboundSchema, AaveTokenPriceToken$outboundSchema, AaveTokenPriceToken$, AaveTokenPriceRequest$inboundSchema, AaveTokenPriceRequest$outboundSchema, AaveTokenPriceRequest$;
|
|
40678
40310
|
var init_aavetokenprice = __esm(() => {
|
|
@@ -42243,6 +41875,7 @@ var init_operations = __esm(() => {
|
|
|
42243
41875
|
init_aavehistoricaltransactions();
|
|
42244
41876
|
init_aaveliquiditychange();
|
|
42245
41877
|
init_aaverate();
|
|
41878
|
+
init_aavereserveoverview();
|
|
42246
41879
|
init_aavetokenprice();
|
|
42247
41880
|
init_aaveuserpositionpertoken();
|
|
42248
41881
|
init_aaveuserpositionsummary();
|
|
@@ -42726,20 +42359,23 @@ including the amount and the asset to be repaid.`,
|
|
|
42726
42359
|
};
|
|
42727
42360
|
});
|
|
42728
42361
|
|
|
42729
|
-
// src/funcs/
|
|
42730
|
-
function
|
|
42362
|
+
// src/funcs/aaveV3ReserveOverview.ts
|
|
42363
|
+
function aaveV3ReserveOverview(client, request, options) {
|
|
42731
42364
|
return new APIPromise($do6(client, request, options));
|
|
42732
42365
|
}
|
|
42733
42366
|
async function $do6(client, request, options) {
|
|
42734
|
-
const parsed = safeParse(request, (value) =>
|
|
42367
|
+
const parsed = safeParse(request, (value) => AaveReserveOverviewRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42735
42368
|
if (!parsed.ok) {
|
|
42736
42369
|
return [parsed, { status: "invalid" }];
|
|
42737
42370
|
}
|
|
42738
42371
|
const payload = parsed.value;
|
|
42739
|
-
const body =
|
|
42740
|
-
const path = pathToFunc("/v0/aave/
|
|
42372
|
+
const body = null;
|
|
42373
|
+
const path = pathToFunc("/v0/aave/reserve_overview/get")();
|
|
42374
|
+
const query = encodeFormQuery({
|
|
42375
|
+
chain: payload.chain,
|
|
42376
|
+
token: payload.token
|
|
42377
|
+
});
|
|
42741
42378
|
const headers = new Headers(compactMap({
|
|
42742
|
-
"Content-Type": "application/json",
|
|
42743
42379
|
Accept: "application/json"
|
|
42744
42380
|
}));
|
|
42745
42381
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -42747,7 +42383,7 @@ async function $do6(client, request, options) {
|
|
|
42747
42383
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42748
42384
|
const context = {
|
|
42749
42385
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42750
|
-
operationID: "
|
|
42386
|
+
operationID: "aave_reserve_overview",
|
|
42751
42387
|
oAuth2Scopes: [],
|
|
42752
42388
|
resolvedSecurity: requestSecurity,
|
|
42753
42389
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -42756,10 +42392,11 @@ async function $do6(client, request, options) {
|
|
|
42756
42392
|
};
|
|
42757
42393
|
const requestRes = client._createRequest(context, {
|
|
42758
42394
|
security: requestSecurity,
|
|
42759
|
-
method: "
|
|
42395
|
+
method: "GET",
|
|
42760
42396
|
baseURL: options?.serverURL,
|
|
42761
42397
|
path,
|
|
42762
42398
|
headers,
|
|
42399
|
+
query,
|
|
42763
42400
|
body,
|
|
42764
42401
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42765
42402
|
}, options);
|
|
@@ -42780,13 +42417,13 @@ async function $do6(client, request, options) {
|
|
|
42780
42417
|
const responseFields = {
|
|
42781
42418
|
HttpMeta: { Response: response, Request: req }
|
|
42782
42419
|
};
|
|
42783
|
-
const [result] = await match(json(200,
|
|
42420
|
+
const [result] = await match(json(200, AaveReserveOverviewResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42784
42421
|
if (!result.ok) {
|
|
42785
42422
|
return [result, { status: "complete", request: req, response }];
|
|
42786
42423
|
}
|
|
42787
42424
|
return [result, { status: "complete", request: req, response }];
|
|
42788
42425
|
}
|
|
42789
|
-
var
|
|
42426
|
+
var init_aaveV3ReserveOverview = __esm(() => {
|
|
42790
42427
|
init_encodings();
|
|
42791
42428
|
init_matchers();
|
|
42792
42429
|
init_primitives();
|
|
@@ -42795,34 +42432,32 @@ var init_aaveV3Supply = __esm(() => {
|
|
|
42795
42432
|
init_url();
|
|
42796
42433
|
init_components();
|
|
42797
42434
|
init_errors();
|
|
42435
|
+
init_operations();
|
|
42798
42436
|
init_async();
|
|
42799
42437
|
});
|
|
42800
42438
|
|
|
42801
|
-
// src/mcp-server/tools/
|
|
42802
|
-
var args6, tool$
|
|
42803
|
-
var
|
|
42804
|
-
|
|
42805
|
-
|
|
42439
|
+
// src/mcp-server/tools/aaveV3ReserveOverview.ts
|
|
42440
|
+
var args6, tool$aaveV3ReserveOverview;
|
|
42441
|
+
var init_aaveV3ReserveOverview2 = __esm(() => {
|
|
42442
|
+
init_aaveV3ReserveOverview();
|
|
42443
|
+
init_operations();
|
|
42806
42444
|
init_tools();
|
|
42807
42445
|
args6 = {
|
|
42808
|
-
request:
|
|
42446
|
+
request: AaveReserveOverviewRequest$inboundSchema
|
|
42809
42447
|
};
|
|
42810
|
-
tool$
|
|
42811
|
-
name: "aave-v3-
|
|
42812
|
-
description: `
|
|
42813
|
-
|
|
42814
|
-
By supplying assets, users can earn interest on their deposits.
|
|
42448
|
+
tool$aaveV3ReserveOverview = {
|
|
42449
|
+
name: "aave-v3-reserve-overview",
|
|
42450
|
+
description: `Reserve overview
|
|
42815
42451
|
|
|
42816
|
-
|
|
42817
|
-
|
|
42818
|
-
|
|
42452
|
+
Returns key metrics for Aave Reserves:
|
|
42453
|
+
- Total Supplied (TVL) in USD
|
|
42454
|
+
- Total Borrowed in USD
|
|
42455
|
+
- Utilization Ratio
|
|
42819
42456
|
|
|
42820
|
-
|
|
42821
|
-
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
42822
|
-
borrowing flexibility.`,
|
|
42457
|
+
See below for more info:`,
|
|
42823
42458
|
args: args6,
|
|
42824
42459
|
tool: async (client, args7, ctx) => {
|
|
42825
|
-
const [result, apiCall] = await
|
|
42460
|
+
const [result, apiCall] = await aaveV3ReserveOverview(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42826
42461
|
if (!result.ok) {
|
|
42827
42462
|
return {
|
|
42828
42463
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42835,23 +42470,20 @@ borrowing flexibility.`,
|
|
|
42835
42470
|
};
|
|
42836
42471
|
});
|
|
42837
42472
|
|
|
42838
|
-
// src/funcs/
|
|
42839
|
-
function
|
|
42473
|
+
// src/funcs/aaveV3Supply.ts
|
|
42474
|
+
function aaveV3Supply(client, request, options) {
|
|
42840
42475
|
return new APIPromise($do7(client, request, options));
|
|
42841
42476
|
}
|
|
42842
42477
|
async function $do7(client, request, options) {
|
|
42843
|
-
const parsed = safeParse(request, (value) =>
|
|
42478
|
+
const parsed = safeParse(request, (value) => AaveSupplyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42844
42479
|
if (!parsed.ok) {
|
|
42845
42480
|
return [parsed, { status: "invalid" }];
|
|
42846
42481
|
}
|
|
42847
42482
|
const payload = parsed.value;
|
|
42848
|
-
const body =
|
|
42849
|
-
const path = pathToFunc("/v0/aave/
|
|
42850
|
-
const query = encodeFormQuery({
|
|
42851
|
-
chain: payload.chain,
|
|
42852
|
-
token: payload.token
|
|
42853
|
-
});
|
|
42483
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
42484
|
+
const path = pathToFunc("/v0/aave/supply")();
|
|
42854
42485
|
const headers = new Headers(compactMap({
|
|
42486
|
+
"Content-Type": "application/json",
|
|
42855
42487
|
Accept: "application/json"
|
|
42856
42488
|
}));
|
|
42857
42489
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -42859,7 +42491,7 @@ async function $do7(client, request, options) {
|
|
|
42859
42491
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42860
42492
|
const context = {
|
|
42861
42493
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42862
|
-
operationID: "
|
|
42494
|
+
operationID: "aave_supply",
|
|
42863
42495
|
oAuth2Scopes: [],
|
|
42864
42496
|
resolvedSecurity: requestSecurity,
|
|
42865
42497
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -42868,11 +42500,10 @@ async function $do7(client, request, options) {
|
|
|
42868
42500
|
};
|
|
42869
42501
|
const requestRes = client._createRequest(context, {
|
|
42870
42502
|
security: requestSecurity,
|
|
42871
|
-
method: "
|
|
42503
|
+
method: "POST",
|
|
42872
42504
|
baseURL: options?.serverURL,
|
|
42873
42505
|
path,
|
|
42874
42506
|
headers,
|
|
42875
|
-
query,
|
|
42876
42507
|
body,
|
|
42877
42508
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42878
42509
|
}, options);
|
|
@@ -42893,13 +42524,13 @@ async function $do7(client, request, options) {
|
|
|
42893
42524
|
const responseFields = {
|
|
42894
42525
|
HttpMeta: { Response: response, Request: req }
|
|
42895
42526
|
};
|
|
42896
|
-
const [result] = await match(json(200,
|
|
42527
|
+
const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42897
42528
|
if (!result.ok) {
|
|
42898
42529
|
return [result, { status: "complete", request: req, response }];
|
|
42899
42530
|
}
|
|
42900
42531
|
return [result, { status: "complete", request: req, response }];
|
|
42901
42532
|
}
|
|
42902
|
-
var
|
|
42533
|
+
var init_aaveV3Supply = __esm(() => {
|
|
42903
42534
|
init_encodings();
|
|
42904
42535
|
init_matchers();
|
|
42905
42536
|
init_primitives();
|
|
@@ -42908,17 +42539,130 @@ var init_aaveV3TokenPrice = __esm(() => {
|
|
|
42908
42539
|
init_url();
|
|
42909
42540
|
init_components();
|
|
42910
42541
|
init_errors();
|
|
42911
|
-
init_operations();
|
|
42912
42542
|
init_async();
|
|
42913
42543
|
});
|
|
42914
42544
|
|
|
42915
|
-
// src/mcp-server/tools/
|
|
42916
|
-
var args7, tool$
|
|
42545
|
+
// src/mcp-server/tools/aaveV3Supply.ts
|
|
42546
|
+
var args7, tool$aaveV3Supply;
|
|
42547
|
+
var init_aaveV3Supply2 = __esm(() => {
|
|
42548
|
+
init_aaveV3Supply();
|
|
42549
|
+
init_components();
|
|
42550
|
+
init_tools();
|
|
42551
|
+
args7 = {
|
|
42552
|
+
request: AaveSupplyRequest$inboundSchema
|
|
42553
|
+
};
|
|
42554
|
+
tool$aaveV3Supply = {
|
|
42555
|
+
name: "aave-v3-supply",
|
|
42556
|
+
description: `Supply/Lend
|
|
42557
|
+
|
|
42558
|
+
By supplying assets, users can earn interest on their deposits.
|
|
42559
|
+
|
|
42560
|
+
The supplied collateral can be used as a basis for borrowing other assets, allowing
|
|
42561
|
+
users to leverage their positions. In combination with a trading protocol, this can
|
|
42562
|
+
create leverage.
|
|
42563
|
+
|
|
42564
|
+
Overall, this endpoint is a critical component for users looking to maximize their
|
|
42565
|
+
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
42566
|
+
borrowing flexibility.`,
|
|
42567
|
+
args: args7,
|
|
42568
|
+
tool: async (client, args8, ctx) => {
|
|
42569
|
+
const [result, apiCall] = await aaveV3Supply(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42570
|
+
if (!result.ok) {
|
|
42571
|
+
return {
|
|
42572
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42573
|
+
isError: true
|
|
42574
|
+
};
|
|
42575
|
+
}
|
|
42576
|
+
const value = result.value;
|
|
42577
|
+
return formatResult(value, apiCall);
|
|
42578
|
+
}
|
|
42579
|
+
};
|
|
42580
|
+
});
|
|
42581
|
+
|
|
42582
|
+
// src/funcs/aaveV3TokenPrice.ts
|
|
42583
|
+
function aaveV3TokenPrice(client, request, options) {
|
|
42584
|
+
return new APIPromise($do8(client, request, options));
|
|
42585
|
+
}
|
|
42586
|
+
async function $do8(client, request, options) {
|
|
42587
|
+
const parsed = safeParse(request, (value) => AaveTokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42588
|
+
if (!parsed.ok) {
|
|
42589
|
+
return [parsed, { status: "invalid" }];
|
|
42590
|
+
}
|
|
42591
|
+
const payload = parsed.value;
|
|
42592
|
+
const body = null;
|
|
42593
|
+
const path = pathToFunc("/v0/aave/token_price/get")();
|
|
42594
|
+
const query = encodeFormQuery({
|
|
42595
|
+
chain: payload.chain,
|
|
42596
|
+
token: payload.token
|
|
42597
|
+
});
|
|
42598
|
+
const headers = new Headers(compactMap({
|
|
42599
|
+
Accept: "application/json"
|
|
42600
|
+
}));
|
|
42601
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
42602
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
42603
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42604
|
+
const context = {
|
|
42605
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42606
|
+
operationID: "aave_token_price",
|
|
42607
|
+
oAuth2Scopes: [],
|
|
42608
|
+
resolvedSecurity: requestSecurity,
|
|
42609
|
+
securitySource: client._options.apiKeyAuth,
|
|
42610
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42611
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42612
|
+
};
|
|
42613
|
+
const requestRes = client._createRequest(context, {
|
|
42614
|
+
security: requestSecurity,
|
|
42615
|
+
method: "GET",
|
|
42616
|
+
baseURL: options?.serverURL,
|
|
42617
|
+
path,
|
|
42618
|
+
headers,
|
|
42619
|
+
query,
|
|
42620
|
+
body,
|
|
42621
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42622
|
+
}, options);
|
|
42623
|
+
if (!requestRes.ok) {
|
|
42624
|
+
return [requestRes, { status: "invalid" }];
|
|
42625
|
+
}
|
|
42626
|
+
const req = requestRes.value;
|
|
42627
|
+
const doResult = await client._do(req, {
|
|
42628
|
+
context,
|
|
42629
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
42630
|
+
retryConfig: context.retryConfig,
|
|
42631
|
+
retryCodes: context.retryCodes
|
|
42632
|
+
});
|
|
42633
|
+
if (!doResult.ok) {
|
|
42634
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42635
|
+
}
|
|
42636
|
+
const response = doResult.value;
|
|
42637
|
+
const responseFields = {
|
|
42638
|
+
HttpMeta: { Response: response, Request: req }
|
|
42639
|
+
};
|
|
42640
|
+
const [result] = await match(json(200, AaveTokenPriceResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42641
|
+
if (!result.ok) {
|
|
42642
|
+
return [result, { status: "complete", request: req, response }];
|
|
42643
|
+
}
|
|
42644
|
+
return [result, { status: "complete", request: req, response }];
|
|
42645
|
+
}
|
|
42646
|
+
var init_aaveV3TokenPrice = __esm(() => {
|
|
42647
|
+
init_encodings();
|
|
42648
|
+
init_matchers();
|
|
42649
|
+
init_primitives();
|
|
42650
|
+
init_schemas();
|
|
42651
|
+
init_security();
|
|
42652
|
+
init_url();
|
|
42653
|
+
init_components();
|
|
42654
|
+
init_errors();
|
|
42655
|
+
init_operations();
|
|
42656
|
+
init_async();
|
|
42657
|
+
});
|
|
42658
|
+
|
|
42659
|
+
// src/mcp-server/tools/aaveV3TokenPrice.ts
|
|
42660
|
+
var args8, tool$aaveV3TokenPrice;
|
|
42917
42661
|
var init_aaveV3TokenPrice2 = __esm(() => {
|
|
42918
42662
|
init_aaveV3TokenPrice();
|
|
42919
42663
|
init_operations();
|
|
42920
42664
|
init_tools();
|
|
42921
|
-
|
|
42665
|
+
args8 = {
|
|
42922
42666
|
request: AaveTokenPriceRequest$inboundSchema
|
|
42923
42667
|
};
|
|
42924
42668
|
tool$aaveV3TokenPrice = {
|
|
@@ -42933,9 +42677,9 @@ to-date information. The request requires the token identifier and the blockchai
|
|
|
42933
42677
|
network (chain) on which the token resides. The response provides the token price in
|
|
42934
42678
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
42935
42679
|
Aave.`,
|
|
42936
|
-
args:
|
|
42937
|
-
tool: async (client,
|
|
42938
|
-
const [result, apiCall] = await aaveV3TokenPrice(client,
|
|
42680
|
+
args: args8,
|
|
42681
|
+
tool: async (client, args9, ctx) => {
|
|
42682
|
+
const [result, apiCall] = await aaveV3TokenPrice(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42939
42683
|
if (!result.ok) {
|
|
42940
42684
|
return {
|
|
42941
42685
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42950,9 +42694,9 @@ Aave.`,
|
|
|
42950
42694
|
|
|
42951
42695
|
// src/funcs/aaveV3UserPositionPerToken.ts
|
|
42952
42696
|
function aaveV3UserPositionPerToken(client, request, options) {
|
|
42953
|
-
return new APIPromise($
|
|
42697
|
+
return new APIPromise($do9(client, request, options));
|
|
42954
42698
|
}
|
|
42955
|
-
async function $
|
|
42699
|
+
async function $do9(client, request, options) {
|
|
42956
42700
|
const parsed = safeParse(request, (value) => AaveUserPositionPerTokenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42957
42701
|
if (!parsed.ok) {
|
|
42958
42702
|
return [parsed, { status: "invalid" }];
|
|
@@ -43027,12 +42771,12 @@ var init_aaveV3UserPositionPerToken = __esm(() => {
|
|
|
43027
42771
|
});
|
|
43028
42772
|
|
|
43029
42773
|
// src/mcp-server/tools/aaveV3UserPositionPerToken.ts
|
|
43030
|
-
var
|
|
42774
|
+
var args9, tool$aaveV3UserPositionPerToken;
|
|
43031
42775
|
var init_aaveV3UserPositionPerToken2 = __esm(() => {
|
|
43032
42776
|
init_aaveV3UserPositionPerToken();
|
|
43033
42777
|
init_operations();
|
|
43034
42778
|
init_tools();
|
|
43035
|
-
|
|
42779
|
+
args9 = {
|
|
43036
42780
|
request: AaveUserPositionPerTokenRequest$inboundSchema
|
|
43037
42781
|
};
|
|
43038
42782
|
tool$aaveV3UserPositionPerToken = {
|
|
@@ -43048,9 +42792,9 @@ stable borrow rate, stable borrow rate for new loans, variable borrow rate, and
|
|
|
43048
42792
|
liquidity rate. These metrics are calculated by aggregating data across all open
|
|
43049
42793
|
positions held by the user for the specified token, offering a detailed view of
|
|
43050
42794
|
their financial standing within the AAVE ecosystem.`,
|
|
43051
|
-
args:
|
|
43052
|
-
tool: async (client,
|
|
43053
|
-
const [result, apiCall] = await aaveV3UserPositionPerToken(client,
|
|
42795
|
+
args: args9,
|
|
42796
|
+
tool: async (client, args10, ctx) => {
|
|
42797
|
+
const [result, apiCall] = await aaveV3UserPositionPerToken(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43054
42798
|
if (!result.ok) {
|
|
43055
42799
|
return {
|
|
43056
42800
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43065,9 +42809,9 @@ their financial standing within the AAVE ecosystem.`,
|
|
|
43065
42809
|
|
|
43066
42810
|
// src/funcs/aaveV3UserPositionSummary.ts
|
|
43067
42811
|
function aaveV3UserPositionSummary(client, request, options) {
|
|
43068
|
-
return new APIPromise($
|
|
42812
|
+
return new APIPromise($do10(client, request, options));
|
|
43069
42813
|
}
|
|
43070
|
-
async function $
|
|
42814
|
+
async function $do10(client, request, options) {
|
|
43071
42815
|
const parsed = safeParse(request, (value) => AaveUserPositionSummaryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43072
42816
|
if (!parsed.ok) {
|
|
43073
42817
|
return [parsed, { status: "invalid" }];
|
|
@@ -43141,12 +42885,12 @@ var init_aaveV3UserPositionSummary = __esm(() => {
|
|
|
43141
42885
|
});
|
|
43142
42886
|
|
|
43143
42887
|
// src/mcp-server/tools/aaveV3UserPositionSummary.ts
|
|
43144
|
-
var
|
|
42888
|
+
var args10, tool$aaveV3UserPositionSummary;
|
|
43145
42889
|
var init_aaveV3UserPositionSummary2 = __esm(() => {
|
|
43146
42890
|
init_aaveV3UserPositionSummary();
|
|
43147
42891
|
init_operations();
|
|
43148
42892
|
init_tools();
|
|
43149
|
-
|
|
42893
|
+
args10 = {
|
|
43150
42894
|
request: AaveUserPositionSummaryRequest$inboundSchema
|
|
43151
42895
|
};
|
|
43152
42896
|
tool$aaveV3UserPositionSummary = {
|
|
@@ -43161,9 +42905,9 @@ debt accrued, available borrowing capacity, liquidation threshold, maximum loan-
|
|
|
43161
42905
|
value ratio, and the health factor of the user's account. These metrics are
|
|
43162
42906
|
calculated by aggregating data across all open positions held by the user, offering
|
|
43163
42907
|
a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
43164
|
-
args:
|
|
43165
|
-
tool: async (client,
|
|
43166
|
-
const [result, apiCall] = await aaveV3UserPositionSummary(client,
|
|
42908
|
+
args: args10,
|
|
42909
|
+
tool: async (client, args11, ctx) => {
|
|
42910
|
+
const [result, apiCall] = await aaveV3UserPositionSummary(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43167
42911
|
if (!result.ok) {
|
|
43168
42912
|
return {
|
|
43169
42913
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43178,9 +42922,9 @@ a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
|
43178
42922
|
|
|
43179
42923
|
// src/funcs/aaveV3Withdraw.ts
|
|
43180
42924
|
function aaveV3Withdraw(client, request, options) {
|
|
43181
|
-
return new APIPromise($
|
|
42925
|
+
return new APIPromise($do11(client, request, options));
|
|
43182
42926
|
}
|
|
43183
|
-
async function $
|
|
42927
|
+
async function $do11(client, request, options) {
|
|
43184
42928
|
const parsed = safeParse(request, (value) => AaveWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43185
42929
|
if (!parsed.ok) {
|
|
43186
42930
|
return [parsed, { status: "invalid" }];
|
|
@@ -43249,12 +42993,12 @@ var init_aaveV3Withdraw = __esm(() => {
|
|
|
43249
42993
|
});
|
|
43250
42994
|
|
|
43251
42995
|
// src/mcp-server/tools/aaveV3Withdraw.ts
|
|
43252
|
-
var
|
|
42996
|
+
var args11, tool$aaveV3Withdraw;
|
|
43253
42997
|
var init_aaveV3Withdraw2 = __esm(() => {
|
|
43254
42998
|
init_aaveV3Withdraw();
|
|
43255
42999
|
init_components();
|
|
43256
43000
|
init_tools();
|
|
43257
|
-
|
|
43001
|
+
args11 = {
|
|
43258
43002
|
request: AaveWithdrawRequest$inboundSchema
|
|
43259
43003
|
};
|
|
43260
43004
|
tool$aaveV3Withdraw = {
|
|
@@ -43270,9 +43014,9 @@ for users to carefully consider their outstanding debts and the potential impact
|
|
|
43270
43014
|
their liquidation threshold before proceeding with a withdrawal. This endpoint is
|
|
43271
43015
|
designed to provide a seamless and efficient way to manage your collateral within
|
|
43272
43016
|
the Aave ecosystem.`,
|
|
43273
|
-
args:
|
|
43274
|
-
tool: async (client,
|
|
43275
|
-
const [result, apiCall] = await aaveV3Withdraw(client,
|
|
43017
|
+
args: args11,
|
|
43018
|
+
tool: async (client, args12, ctx) => {
|
|
43019
|
+
const [result, apiCall] = await aaveV3Withdraw(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43276
43020
|
if (!result.ok) {
|
|
43277
43021
|
return {
|
|
43278
43022
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43287,9 +43031,9 @@ the Aave ecosystem.`,
|
|
|
43287
43031
|
|
|
43288
43032
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43289
43033
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, request, options) {
|
|
43290
|
-
return new APIPromise($
|
|
43034
|
+
return new APIPromise($do12(client, request, options));
|
|
43291
43035
|
}
|
|
43292
|
-
async function $
|
|
43036
|
+
async function $do12(client, request, options) {
|
|
43293
43037
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43294
43038
|
if (!parsed.ok) {
|
|
43295
43039
|
return [parsed, { status: "invalid" }];
|
|
@@ -43358,12 +43102,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = __esm(() => {
|
|
|
43358
43102
|
});
|
|
43359
43103
|
|
|
43360
43104
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43361
|
-
var
|
|
43105
|
+
var args12, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease;
|
|
43362
43106
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease2 = __esm(() => {
|
|
43363
43107
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease();
|
|
43364
43108
|
init_components();
|
|
43365
43109
|
init_tools();
|
|
43366
|
-
|
|
43110
|
+
args12 = {
|
|
43367
43111
|
request: AerodromeSlipstreamIncreaseLiquidityProvisionRequest$inboundSchema
|
|
43368
43112
|
};
|
|
43369
43113
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = {
|
|
@@ -43381,9 +43125,9 @@ users with updated information about their enhanced position. This functionality
|
|
|
43381
43125
|
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
43382
43126
|
to adapt to market conditions and maximize their returns in decentralized finance
|
|
43383
43127
|
(DeFi) markets.`,
|
|
43384
|
-
args:
|
|
43385
|
-
tool: async (client,
|
|
43386
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client,
|
|
43128
|
+
args: args12,
|
|
43129
|
+
tool: async (client, args13, ctx) => {
|
|
43130
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43387
43131
|
if (!result.ok) {
|
|
43388
43132
|
return {
|
|
43389
43133
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43398,9 +43142,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
43398
43142
|
|
|
43399
43143
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43400
43144
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, request, options) {
|
|
43401
|
-
return new APIPromise($
|
|
43145
|
+
return new APIPromise($do13(client, request, options));
|
|
43402
43146
|
}
|
|
43403
|
-
async function $
|
|
43147
|
+
async function $do13(client, request, options) {
|
|
43404
43148
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43405
43149
|
if (!parsed.ok) {
|
|
43406
43150
|
return [parsed, { status: "invalid" }];
|
|
@@ -43469,12 +43213,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint = __esm(() => {
|
|
|
43469
43213
|
});
|
|
43470
43214
|
|
|
43471
43215
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43472
|
-
var
|
|
43216
|
+
var args13, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint;
|
|
43473
43217
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint2 = __esm(() => {
|
|
43474
43218
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint();
|
|
43475
43219
|
init_components();
|
|
43476
43220
|
init_tools();
|
|
43477
|
-
|
|
43221
|
+
args13 = {
|
|
43478
43222
|
request: AerodromeSlipstreamMintLiquidityProvisionRequest$inboundSchema
|
|
43479
43223
|
};
|
|
43480
43224
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint = {
|
|
@@ -43490,9 +43234,9 @@ confirm the successful creation of the LP position, providing users with the
|
|
|
43490
43234
|
necessary information to manage their newly minted position. This functionality is
|
|
43491
43235
|
crucial for users looking to expand their liquidity provision activities, offering
|
|
43492
43236
|
them the opportunity to engage in decentralized finance (DeFi) markets effectively.`,
|
|
43493
|
-
args:
|
|
43494
|
-
tool: async (client,
|
|
43495
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client,
|
|
43237
|
+
args: args13,
|
|
43238
|
+
tool: async (client, args14, ctx) => {
|
|
43239
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43496
43240
|
if (!result.ok) {
|
|
43497
43241
|
return {
|
|
43498
43242
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43507,9 +43251,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
43507
43251
|
|
|
43508
43252
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43509
43253
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, request, options) {
|
|
43510
|
-
return new APIPromise($
|
|
43254
|
+
return new APIPromise($do14(client, request, options));
|
|
43511
43255
|
}
|
|
43512
|
-
async function $
|
|
43256
|
+
async function $do14(client, request, options) {
|
|
43513
43257
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43514
43258
|
if (!parsed.ok) {
|
|
43515
43259
|
return [parsed, { status: "invalid" }];
|
|
@@ -43583,12 +43327,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = __esm(() =>
|
|
|
43583
43327
|
});
|
|
43584
43328
|
|
|
43585
43329
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43586
|
-
var
|
|
43330
|
+
var args14, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions;
|
|
43587
43331
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions2 = __esm(() => {
|
|
43588
43332
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions();
|
|
43589
43333
|
init_operations();
|
|
43590
43334
|
init_tools();
|
|
43591
|
-
|
|
43335
|
+
args14 = {
|
|
43592
43336
|
request: AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema
|
|
43593
43337
|
};
|
|
43594
43338
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = {
|
|
@@ -43604,9 +43348,9 @@ AerodromeLPPositionsInfo, provides a structured representation of the LP positio
|
|
|
43604
43348
|
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
43605
43349
|
managing their liquidity provision activities, enabling them to make informed
|
|
43606
43350
|
decisions based on their current positions.`,
|
|
43607
|
-
args:
|
|
43608
|
-
tool: async (client,
|
|
43609
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client,
|
|
43351
|
+
args: args14,
|
|
43352
|
+
tool: async (client, args15, ctx) => {
|
|
43353
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43610
43354
|
if (!result.ok) {
|
|
43611
43355
|
return {
|
|
43612
43356
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43621,9 +43365,9 @@ decisions based on their current positions.`,
|
|
|
43621
43365
|
|
|
43622
43366
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
43623
43367
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, request, options) {
|
|
43624
|
-
return new APIPromise($
|
|
43368
|
+
return new APIPromise($do15(client, request, options));
|
|
43625
43369
|
}
|
|
43626
|
-
async function $
|
|
43370
|
+
async function $do15(client, request, options) {
|
|
43627
43371
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43628
43372
|
if (!parsed.ok) {
|
|
43629
43373
|
return [parsed, { status: "invalid" }];
|
|
@@ -43692,12 +43436,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = __esm(() => {
|
|
|
43692
43436
|
});
|
|
43693
43437
|
|
|
43694
43438
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
43695
|
-
var
|
|
43439
|
+
var args15, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw;
|
|
43696
43440
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw2 = __esm(() => {
|
|
43697
43441
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw();
|
|
43698
43442
|
init_components();
|
|
43699
43443
|
init_tools();
|
|
43700
|
-
|
|
43444
|
+
args15 = {
|
|
43701
43445
|
request: AerodromeSlipstreamWithdrawLiquidityProvisionRequest$inboundSchema
|
|
43702
43446
|
};
|
|
43703
43447
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = {
|
|
@@ -43715,9 +43459,9 @@ wish to exit their liquidity provision activities, enabling them to reclaim thei
|
|
|
43715
43459
|
assets and potentially reallocate them to other investment opportunities. The
|
|
43716
43460
|
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
43717
43461
|
strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
43718
|
-
args:
|
|
43719
|
-
tool: async (client,
|
|
43720
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client,
|
|
43462
|
+
args: args15,
|
|
43463
|
+
tool: async (client, args16, ctx) => {
|
|
43464
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43721
43465
|
if (!result.ok) {
|
|
43722
43466
|
return {
|
|
43723
43467
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43732,9 +43476,9 @@ strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
|
43732
43476
|
|
|
43733
43477
|
// src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43734
43478
|
function aerodromeSlipstreamSlipstreamPoolPrice(client, request, options) {
|
|
43735
|
-
return new APIPromise($
|
|
43479
|
+
return new APIPromise($do16(client, request, options));
|
|
43736
43480
|
}
|
|
43737
|
-
async function $
|
|
43481
|
+
async function $do16(client, request, options) {
|
|
43738
43482
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43739
43483
|
if (!parsed.ok) {
|
|
43740
43484
|
return [parsed, { status: "invalid" }];
|
|
@@ -43810,12 +43554,12 @@ var init_aerodromeSlipstreamSlipstreamPoolPrice = __esm(() => {
|
|
|
43810
43554
|
});
|
|
43811
43555
|
|
|
43812
43556
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43813
|
-
var
|
|
43557
|
+
var args16, tool$aerodromeSlipstreamSlipstreamPoolPrice;
|
|
43814
43558
|
var init_aerodromeSlipstreamSlipstreamPoolPrice2 = __esm(() => {
|
|
43815
43559
|
init_aerodromeSlipstreamSlipstreamPoolPrice();
|
|
43816
43560
|
init_operations();
|
|
43817
43561
|
init_tools();
|
|
43818
|
-
|
|
43562
|
+
args16 = {
|
|
43819
43563
|
request: AerodromeSlipstreamPoolPriceRequest$inboundSchema
|
|
43820
43564
|
};
|
|
43821
43565
|
tool$aerodromeSlipstreamSlipstreamPoolPrice = {
|
|
@@ -43828,9 +43572,9 @@ you can purchase for 1 token1.
|
|
|
43828
43572
|
Note that this is an instantaneous price and may change during any trade. For a more
|
|
43829
43573
|
accurate representation of the trade ratios between the two assets, consider using
|
|
43830
43574
|
the quote endpoint.`,
|
|
43831
|
-
args:
|
|
43832
|
-
tool: async (client,
|
|
43833
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client,
|
|
43575
|
+
args: args16,
|
|
43576
|
+
tool: async (client, args17, ctx) => {
|
|
43577
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43834
43578
|
if (!result.ok) {
|
|
43835
43579
|
return {
|
|
43836
43580
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43845,9 +43589,9 @@ the quote endpoint.`,
|
|
|
43845
43589
|
|
|
43846
43590
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43847
43591
|
function aerodromeSlipstreamSlipstreamSwapBuyExactly(client, request, options) {
|
|
43848
|
-
return new APIPromise($
|
|
43592
|
+
return new APIPromise($do17(client, request, options));
|
|
43849
43593
|
}
|
|
43850
|
-
async function $
|
|
43594
|
+
async function $do17(client, request, options) {
|
|
43851
43595
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43852
43596
|
if (!parsed.ok) {
|
|
43853
43597
|
return [parsed, { status: "invalid" }];
|
|
@@ -43916,12 +43660,12 @@ var init_aerodromeSlipstreamSlipstreamSwapBuyExactly = __esm(() => {
|
|
|
43916
43660
|
});
|
|
43917
43661
|
|
|
43918
43662
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43919
|
-
var
|
|
43663
|
+
var args17, tool$aerodromeSlipstreamSlipstreamSwapBuyExactly;
|
|
43920
43664
|
var init_aerodromeSlipstreamSlipstreamSwapBuyExactly2 = __esm(() => {
|
|
43921
43665
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly();
|
|
43922
43666
|
init_components();
|
|
43923
43667
|
init_tools();
|
|
43924
|
-
|
|
43668
|
+
args17 = {
|
|
43925
43669
|
request: AerodromeSlipstreamBuyExactlyRequest$inboundSchema
|
|
43926
43670
|
};
|
|
43927
43671
|
tool$aerodromeSlipstreamSlipstreamSwapBuyExactly = {
|
|
@@ -43938,9 +43682,9 @@ in mind and are willing to provide the corresponding input token amount. The
|
|
|
43938
43682
|
transaction is executed with consideration of current market conditions, including
|
|
43939
43683
|
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
43940
43684
|
effectively.`,
|
|
43941
|
-
args:
|
|
43942
|
-
tool: async (client,
|
|
43943
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client,
|
|
43685
|
+
args: args17,
|
|
43686
|
+
tool: async (client, args18, ctx) => {
|
|
43687
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43944
43688
|
if (!result.ok) {
|
|
43945
43689
|
return {
|
|
43946
43690
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43955,9 +43699,9 @@ effectively.`,
|
|
|
43955
43699
|
|
|
43956
43700
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
43957
43701
|
function aerodromeSlipstreamSlipstreamSwapSellExactly(client, request, options) {
|
|
43958
|
-
return new APIPromise($
|
|
43702
|
+
return new APIPromise($do18(client, request, options));
|
|
43959
43703
|
}
|
|
43960
|
-
async function $
|
|
43704
|
+
async function $do18(client, request, options) {
|
|
43961
43705
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43962
43706
|
if (!parsed.ok) {
|
|
43963
43707
|
return [parsed, { status: "invalid" }];
|
|
@@ -44026,12 +43770,12 @@ var init_aerodromeSlipstreamSlipstreamSwapSellExactly = __esm(() => {
|
|
|
44026
43770
|
});
|
|
44027
43771
|
|
|
44028
43772
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
44029
|
-
var
|
|
43773
|
+
var args18, tool$aerodromeSlipstreamSlipstreamSwapSellExactly;
|
|
44030
43774
|
var init_aerodromeSlipstreamSlipstreamSwapSellExactly2 = __esm(() => {
|
|
44031
43775
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly();
|
|
44032
43776
|
init_components();
|
|
44033
43777
|
init_tools();
|
|
44034
|
-
|
|
43778
|
+
args18 = {
|
|
44035
43779
|
request: AerodromeSlipstreamSellExactlyRequest$inboundSchema
|
|
44036
43780
|
};
|
|
44037
43781
|
tool$aerodromeSlipstreamSlipstreamSwapSellExactly = {
|
|
@@ -44047,9 +43791,9 @@ received. The operation ensures that the trade is conducted within the constrain
|
|
|
44047
43791
|
of the current market conditions, taking into account the liquidity and price
|
|
44048
43792
|
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
44049
43793
|
token and are willing to accept the resulting amount of the other token.`,
|
|
44050
|
-
args:
|
|
44051
|
-
tool: async (client,
|
|
44052
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client,
|
|
43794
|
+
args: args18,
|
|
43795
|
+
tool: async (client, args19, ctx) => {
|
|
43796
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44053
43797
|
if (!result.ok) {
|
|
44054
43798
|
return {
|
|
44055
43799
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44064,9 +43808,9 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
44064
43808
|
|
|
44065
43809
|
// src/funcs/morphoAllowance.ts
|
|
44066
43810
|
function morphoAllowance(client, request, options) {
|
|
44067
|
-
return new APIPromise($
|
|
43811
|
+
return new APIPromise($do19(client, request, options));
|
|
44068
43812
|
}
|
|
44069
|
-
async function $
|
|
43813
|
+
async function $do19(client, request, options) {
|
|
44070
43814
|
const parsed = safeParse(request, (value) => MorphoSetVaultAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44071
43815
|
if (!parsed.ok) {
|
|
44072
43816
|
return [parsed, { status: "invalid" }];
|
|
@@ -44135,12 +43879,12 @@ var init_morphoAllowance = __esm(() => {
|
|
|
44135
43879
|
});
|
|
44136
43880
|
|
|
44137
43881
|
// src/mcp-server/tools/morphoAllowance.ts
|
|
44138
|
-
var
|
|
43882
|
+
var args19, tool$morphoAllowance;
|
|
44139
43883
|
var init_morphoAllowance2 = __esm(() => {
|
|
44140
43884
|
init_morphoAllowance();
|
|
44141
43885
|
init_components();
|
|
44142
43886
|
init_tools();
|
|
44143
|
-
|
|
43887
|
+
args19 = {
|
|
44144
43888
|
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
44145
43889
|
};
|
|
44146
43890
|
tool$morphoAllowance = {
|
|
@@ -44152,9 +43896,9 @@ Set an allowance for a Morpho vault. You must set this for at least the amount y
|
|
|
44152
43896
|
Each vault has only one associated token that can be deposited.
|
|
44153
43897
|
|
|
44154
43898
|
Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
44155
|
-
args:
|
|
44156
|
-
tool: async (client,
|
|
44157
|
-
const [result, apiCall] = await morphoAllowance(client,
|
|
43899
|
+
args: args19,
|
|
43900
|
+
tool: async (client, args20, ctx) => {
|
|
43901
|
+
const [result, apiCall] = await morphoAllowance(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44158
43902
|
if (!result.ok) {
|
|
44159
43903
|
return {
|
|
44160
43904
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44169,9 +43913,9 @@ Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
|
44169
43913
|
|
|
44170
43914
|
// src/funcs/morphoBorrow.ts
|
|
44171
43915
|
function morphoBorrow(client, request, options) {
|
|
44172
|
-
return new APIPromise($
|
|
43916
|
+
return new APIPromise($do20(client, request, options));
|
|
44173
43917
|
}
|
|
44174
|
-
async function $
|
|
43918
|
+
async function $do20(client, request, options) {
|
|
44175
43919
|
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44176
43920
|
if (!parsed.ok) {
|
|
44177
43921
|
return [parsed, { status: "invalid" }];
|
|
@@ -44240,12 +43984,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
44240
43984
|
});
|
|
44241
43985
|
|
|
44242
43986
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
44243
|
-
var
|
|
43987
|
+
var args20, tool$morphoBorrow;
|
|
44244
43988
|
var init_morphoBorrow2 = __esm(() => {
|
|
44245
43989
|
init_morphoBorrow();
|
|
44246
43990
|
init_components();
|
|
44247
43991
|
init_tools();
|
|
44248
|
-
|
|
43992
|
+
args20 = {
|
|
44249
43993
|
request: MorphoBorrowRequest$inboundSchema
|
|
44250
43994
|
};
|
|
44251
43995
|
tool$morphoBorrow = {
|
|
@@ -44261,9 +44005,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44261
44005
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44262
44006
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44263
44007
|
as long as the blockchain it is deployed on is live.`,
|
|
44264
|
-
args:
|
|
44265
|
-
tool: async (client,
|
|
44266
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
44008
|
+
args: args20,
|
|
44009
|
+
tool: async (client, args21, ctx) => {
|
|
44010
|
+
const [result, apiCall] = await morphoBorrow(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44267
44011
|
if (!result.ok) {
|
|
44268
44012
|
return {
|
|
44269
44013
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44278,9 +44022,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44278
44022
|
|
|
44279
44023
|
// src/funcs/morphoDeposit.ts
|
|
44280
44024
|
function morphoDeposit(client, request, options) {
|
|
44281
|
-
return new APIPromise($
|
|
44025
|
+
return new APIPromise($do21(client, request, options));
|
|
44282
44026
|
}
|
|
44283
|
-
async function $
|
|
44027
|
+
async function $do21(client, request, options) {
|
|
44284
44028
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44285
44029
|
if (!parsed.ok) {
|
|
44286
44030
|
return [parsed, { status: "invalid" }];
|
|
@@ -44349,12 +44093,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
44349
44093
|
});
|
|
44350
44094
|
|
|
44351
44095
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
44352
|
-
var
|
|
44096
|
+
var args21, tool$morphoDeposit;
|
|
44353
44097
|
var init_morphoDeposit2 = __esm(() => {
|
|
44354
44098
|
init_morphoDeposit();
|
|
44355
44099
|
init_components();
|
|
44356
44100
|
init_tools();
|
|
44357
|
-
|
|
44101
|
+
args21 = {
|
|
44358
44102
|
request: MorphoDepositRequest$inboundSchema
|
|
44359
44103
|
};
|
|
44360
44104
|
tool$morphoDeposit = {
|
|
@@ -44372,9 +44116,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
44372
44116
|
exposure for all deposited assets so users don't need to make these decisions
|
|
44373
44117
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
44374
44118
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
44375
|
-
args:
|
|
44376
|
-
tool: async (client,
|
|
44377
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
44119
|
+
args: args21,
|
|
44120
|
+
tool: async (client, args22, ctx) => {
|
|
44121
|
+
const [result, apiCall] = await morphoDeposit(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44378
44122
|
if (!result.ok) {
|
|
44379
44123
|
return {
|
|
44380
44124
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44389,9 +44133,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
44389
44133
|
|
|
44390
44134
|
// src/funcs/morphoMarketPosition.ts
|
|
44391
44135
|
function morphoMarketPosition(client, request, options) {
|
|
44392
|
-
return new APIPromise($
|
|
44136
|
+
return new APIPromise($do22(client, request, options));
|
|
44393
44137
|
}
|
|
44394
|
-
async function $
|
|
44138
|
+
async function $do22(client, request, options) {
|
|
44395
44139
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44396
44140
|
if (!parsed.ok) {
|
|
44397
44141
|
return [parsed, { status: "invalid" }];
|
|
@@ -44466,12 +44210,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
44466
44210
|
});
|
|
44467
44211
|
|
|
44468
44212
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
44469
|
-
var
|
|
44213
|
+
var args22, tool$morphoMarketPosition;
|
|
44470
44214
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
44471
44215
|
init_morphoMarketPosition();
|
|
44472
44216
|
init_operations();
|
|
44473
44217
|
init_tools();
|
|
44474
|
-
|
|
44218
|
+
args22 = {
|
|
44475
44219
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
44476
44220
|
};
|
|
44477
44221
|
tool$morphoMarketPosition = {
|
|
@@ -44480,9 +44224,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
44480
44224
|
|
|
44481
44225
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
44482
44226
|
market.`,
|
|
44483
|
-
args:
|
|
44484
|
-
tool: async (client,
|
|
44485
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
44227
|
+
args: args22,
|
|
44228
|
+
tool: async (client, args23, ctx) => {
|
|
44229
|
+
const [result, apiCall] = await morphoMarketPosition(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44486
44230
|
if (!result.ok) {
|
|
44487
44231
|
return {
|
|
44488
44232
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44497,9 +44241,9 @@ market.`,
|
|
|
44497
44241
|
|
|
44498
44242
|
// src/funcs/morphoMarkets.ts
|
|
44499
44243
|
function morphoMarkets(client, request, options) {
|
|
44500
|
-
return new APIPromise($
|
|
44244
|
+
return new APIPromise($do23(client, request, options));
|
|
44501
44245
|
}
|
|
44502
|
-
async function $
|
|
44246
|
+
async function $do23(client, request, options) {
|
|
44503
44247
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44504
44248
|
if (!parsed.ok) {
|
|
44505
44249
|
return [parsed, { status: "invalid" }];
|
|
@@ -44574,12 +44318,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
44574
44318
|
});
|
|
44575
44319
|
|
|
44576
44320
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
44577
|
-
var
|
|
44321
|
+
var args23, tool$morphoMarkets;
|
|
44578
44322
|
var init_morphoMarkets2 = __esm(() => {
|
|
44579
44323
|
init_morphoMarkets();
|
|
44580
44324
|
init_operations();
|
|
44581
44325
|
init_tools();
|
|
44582
|
-
|
|
44326
|
+
args23 = {
|
|
44583
44327
|
request: MorphoMarketsRequest$inboundSchema
|
|
44584
44328
|
};
|
|
44585
44329
|
tool$morphoMarkets = {
|
|
@@ -44590,9 +44334,9 @@ Query a list of markets you can borrow from.
|
|
|
44590
44334
|
|
|
44591
44335
|
Each market has one unique token that can be borrowed against one unique token that
|
|
44592
44336
|
can be used as collateral.`,
|
|
44593
|
-
args:
|
|
44594
|
-
tool: async (client,
|
|
44595
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
44337
|
+
args: args23,
|
|
44338
|
+
tool: async (client, args24, ctx) => {
|
|
44339
|
+
const [result, apiCall] = await morphoMarkets(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44596
44340
|
if (!result.ok) {
|
|
44597
44341
|
return {
|
|
44598
44342
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44607,9 +44351,9 @@ can be used as collateral.`,
|
|
|
44607
44351
|
|
|
44608
44352
|
// src/funcs/morphoRepay.ts
|
|
44609
44353
|
function morphoRepay(client, request, options) {
|
|
44610
|
-
return new APIPromise($
|
|
44354
|
+
return new APIPromise($do24(client, request, options));
|
|
44611
44355
|
}
|
|
44612
|
-
async function $
|
|
44356
|
+
async function $do24(client, request, options) {
|
|
44613
44357
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44614
44358
|
if (!parsed.ok) {
|
|
44615
44359
|
return [parsed, { status: "invalid" }];
|
|
@@ -44678,12 +44422,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
44678
44422
|
});
|
|
44679
44423
|
|
|
44680
44424
|
// src/mcp-server/tools/morphoRepay.ts
|
|
44681
|
-
var
|
|
44425
|
+
var args24, tool$morphoRepay;
|
|
44682
44426
|
var init_morphoRepay2 = __esm(() => {
|
|
44683
44427
|
init_morphoRepay();
|
|
44684
44428
|
init_components();
|
|
44685
44429
|
init_tools();
|
|
44686
|
-
|
|
44430
|
+
args24 = {
|
|
44687
44431
|
request: MorphoRepayRequest$inboundSchema
|
|
44688
44432
|
};
|
|
44689
44433
|
tool$morphoRepay = {
|
|
@@ -44696,9 +44440,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44696
44440
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44697
44441
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44698
44442
|
as long as the blockchain it is deployed on is live.`,
|
|
44699
|
-
args:
|
|
44700
|
-
tool: async (client,
|
|
44701
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
44443
|
+
args: args24,
|
|
44444
|
+
tool: async (client, args25, ctx) => {
|
|
44445
|
+
const [result, apiCall] = await morphoRepay(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44702
44446
|
if (!result.ok) {
|
|
44703
44447
|
return {
|
|
44704
44448
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44713,9 +44457,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44713
44457
|
|
|
44714
44458
|
// src/funcs/morphoSupplyCollateral.ts
|
|
44715
44459
|
function morphoSupplyCollateral(client, request, options) {
|
|
44716
|
-
return new APIPromise($
|
|
44460
|
+
return new APIPromise($do25(client, request, options));
|
|
44717
44461
|
}
|
|
44718
|
-
async function $
|
|
44462
|
+
async function $do25(client, request, options) {
|
|
44719
44463
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44720
44464
|
if (!parsed.ok) {
|
|
44721
44465
|
return [parsed, { status: "invalid" }];
|
|
@@ -44784,12 +44528,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
44784
44528
|
});
|
|
44785
44529
|
|
|
44786
44530
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
44787
|
-
var
|
|
44531
|
+
var args25, tool$morphoSupplyCollateral;
|
|
44788
44532
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
44789
44533
|
init_morphoSupplyCollateral();
|
|
44790
44534
|
init_components();
|
|
44791
44535
|
init_tools();
|
|
44792
|
-
|
|
44536
|
+
args25 = {
|
|
44793
44537
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
44794
44538
|
};
|
|
44795
44539
|
tool$morphoSupplyCollateral = {
|
|
@@ -44802,9 +44546,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44802
44546
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44803
44547
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44804
44548
|
as long as the blockchain it is deployed on is live.`,
|
|
44805
|
-
args:
|
|
44806
|
-
tool: async (client,
|
|
44807
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
44549
|
+
args: args25,
|
|
44550
|
+
tool: async (client, args26, ctx) => {
|
|
44551
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44808
44552
|
if (!result.ok) {
|
|
44809
44553
|
return {
|
|
44810
44554
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44819,9 +44563,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44819
44563
|
|
|
44820
44564
|
// src/funcs/morphoVaultPosition.ts
|
|
44821
44565
|
function morphoVaultPosition(client, request, options) {
|
|
44822
|
-
return new APIPromise($
|
|
44566
|
+
return new APIPromise($do26(client, request, options));
|
|
44823
44567
|
}
|
|
44824
|
-
async function $
|
|
44568
|
+
async function $do26(client, request, options) {
|
|
44825
44569
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44826
44570
|
if (!parsed.ok) {
|
|
44827
44571
|
return [parsed, { status: "invalid" }];
|
|
@@ -44896,12 +44640,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
44896
44640
|
});
|
|
44897
44641
|
|
|
44898
44642
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
44899
|
-
var
|
|
44643
|
+
var args26, tool$morphoVaultPosition;
|
|
44900
44644
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
44901
44645
|
init_morphoVaultPosition();
|
|
44902
44646
|
init_operations();
|
|
44903
44647
|
init_tools();
|
|
44904
|
-
|
|
44648
|
+
args26 = {
|
|
44905
44649
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
44906
44650
|
};
|
|
44907
44651
|
tool$morphoVaultPosition = {
|
|
@@ -44910,9 +44654,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
44910
44654
|
|
|
44911
44655
|
Check how many shares you own and the equivalent token amount of a given
|
|
44912
44656
|
vault.`,
|
|
44913
|
-
args:
|
|
44914
|
-
tool: async (client,
|
|
44915
|
-
const [result, apiCall] = await morphoVaultPosition(client,
|
|
44657
|
+
args: args26,
|
|
44658
|
+
tool: async (client, args27, ctx) => {
|
|
44659
|
+
const [result, apiCall] = await morphoVaultPosition(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44916
44660
|
if (!result.ok) {
|
|
44917
44661
|
return {
|
|
44918
44662
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44927,9 +44671,9 @@ vault.`,
|
|
|
44927
44671
|
|
|
44928
44672
|
// src/funcs/morphoVaults.ts
|
|
44929
44673
|
function morphoVaults(client, request, options) {
|
|
44930
|
-
return new APIPromise($
|
|
44674
|
+
return new APIPromise($do27(client, request, options));
|
|
44931
44675
|
}
|
|
44932
|
-
async function $
|
|
44676
|
+
async function $do27(client, request, options) {
|
|
44933
44677
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44934
44678
|
if (!parsed.ok) {
|
|
44935
44679
|
return [parsed, { status: "invalid" }];
|
|
@@ -45003,12 +44747,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
45003
44747
|
});
|
|
45004
44748
|
|
|
45005
44749
|
// src/mcp-server/tools/morphoVaults.ts
|
|
45006
|
-
var
|
|
44750
|
+
var args27, tool$morphoVaults;
|
|
45007
44751
|
var init_morphoVaults2 = __esm(() => {
|
|
45008
44752
|
init_morphoVaults();
|
|
45009
44753
|
init_operations();
|
|
45010
44754
|
init_tools();
|
|
45011
|
-
|
|
44755
|
+
args27 = {
|
|
45012
44756
|
request: MorphoVaultsRequest$inboundSchema
|
|
45013
44757
|
};
|
|
45014
44758
|
tool$morphoVaults = {
|
|
@@ -45020,9 +44764,9 @@ Query a list of vaults you can deposit into.
|
|
|
45020
44764
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
45021
44765
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
45022
44766
|
exchange value increasing over time.`,
|
|
45023
|
-
args:
|
|
45024
|
-
tool: async (client,
|
|
45025
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
44767
|
+
args: args27,
|
|
44768
|
+
tool: async (client, args28, ctx) => {
|
|
44769
|
+
const [result, apiCall] = await morphoVaults(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45026
44770
|
if (!result.ok) {
|
|
45027
44771
|
return {
|
|
45028
44772
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45037,9 +44781,9 @@ exchange value increasing over time.`,
|
|
|
45037
44781
|
|
|
45038
44782
|
// src/funcs/morphoWithdraw.ts
|
|
45039
44783
|
function morphoWithdraw(client, request, options) {
|
|
45040
|
-
return new APIPromise($
|
|
44784
|
+
return new APIPromise($do28(client, request, options));
|
|
45041
44785
|
}
|
|
45042
|
-
async function $
|
|
44786
|
+
async function $do28(client, request, options) {
|
|
45043
44787
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45044
44788
|
if (!parsed.ok) {
|
|
45045
44789
|
return [parsed, { status: "invalid" }];
|
|
@@ -45108,12 +44852,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
45108
44852
|
});
|
|
45109
44853
|
|
|
45110
44854
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
45111
|
-
var
|
|
44855
|
+
var args28, tool$morphoWithdraw;
|
|
45112
44856
|
var init_morphoWithdraw2 = __esm(() => {
|
|
45113
44857
|
init_morphoWithdraw();
|
|
45114
44858
|
init_components();
|
|
45115
44859
|
init_tools();
|
|
45116
|
-
|
|
44860
|
+
args28 = {
|
|
45117
44861
|
request: MorphoWithdrawRequest$inboundSchema
|
|
45118
44862
|
};
|
|
45119
44863
|
tool$morphoWithdraw = {
|
|
@@ -45131,9 +44875,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
45131
44875
|
exposure for all deposited assets so users don't need to make these decisions
|
|
45132
44876
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
45133
44877
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
45134
|
-
args:
|
|
45135
|
-
tool: async (client,
|
|
45136
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
44878
|
+
args: args28,
|
|
44879
|
+
tool: async (client, args29, ctx) => {
|
|
44880
|
+
const [result, apiCall] = await morphoWithdraw(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45137
44881
|
if (!result.ok) {
|
|
45138
44882
|
return {
|
|
45139
44883
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45148,9 +44892,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
45148
44892
|
|
|
45149
44893
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
45150
44894
|
function morphoWithdrawCollateral(client, request, options) {
|
|
45151
|
-
return new APIPromise($
|
|
44895
|
+
return new APIPromise($do29(client, request, options));
|
|
45152
44896
|
}
|
|
45153
|
-
async function $
|
|
44897
|
+
async function $do29(client, request, options) {
|
|
45154
44898
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45155
44899
|
if (!parsed.ok) {
|
|
45156
44900
|
return [parsed, { status: "invalid" }];
|
|
@@ -45219,12 +44963,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
45219
44963
|
});
|
|
45220
44964
|
|
|
45221
44965
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
45222
|
-
var
|
|
44966
|
+
var args29, tool$morphoWithdrawCollateral;
|
|
45223
44967
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
45224
44968
|
init_morphoWithdrawCollateral();
|
|
45225
44969
|
init_components();
|
|
45226
44970
|
init_tools();
|
|
45227
|
-
|
|
44971
|
+
args29 = {
|
|
45228
44972
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
45229
44973
|
};
|
|
45230
44974
|
tool$morphoWithdrawCollateral = {
|
|
@@ -45237,9 +44981,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
45237
44981
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
45238
44982
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
45239
44983
|
as long as the blockchain it is deployed on is live.`,
|
|
45240
|
-
args:
|
|
45241
|
-
tool: async (client,
|
|
45242
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
44984
|
+
args: args29,
|
|
44985
|
+
tool: async (client, args30, ctx) => {
|
|
44986
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45243
44987
|
if (!result.ok) {
|
|
45244
44988
|
return {
|
|
45245
44989
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45254,9 +44998,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45254
44998
|
|
|
45255
44999
|
// src/funcs/skyBuy.ts
|
|
45256
45000
|
function skyBuy(client, request, options) {
|
|
45257
|
-
return new APIPromise($
|
|
45001
|
+
return new APIPromise($do30(client, request, options));
|
|
45258
45002
|
}
|
|
45259
|
-
async function $
|
|
45003
|
+
async function $do30(client, request, options) {
|
|
45260
45004
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45261
45005
|
if (!parsed.ok) {
|
|
45262
45006
|
return [parsed, { status: "invalid" }];
|
|
@@ -45325,12 +45069,12 @@ var init_skyBuy = __esm(() => {
|
|
|
45325
45069
|
});
|
|
45326
45070
|
|
|
45327
45071
|
// src/mcp-server/tools/skyBuy.ts
|
|
45328
|
-
var
|
|
45072
|
+
var args30, tool$skyBuy;
|
|
45329
45073
|
var init_skyBuy2 = __esm(() => {
|
|
45330
45074
|
init_skyBuy();
|
|
45331
45075
|
init_components();
|
|
45332
45076
|
init_tools();
|
|
45333
|
-
|
|
45077
|
+
args30 = {
|
|
45334
45078
|
request: SkyBuyRequest$inboundSchema
|
|
45335
45079
|
};
|
|
45336
45080
|
tool$skyBuy = {
|
|
@@ -45344,9 +45088,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
45344
45088
|
|
|
45345
45089
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
45346
45090
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
45347
|
-
args:
|
|
45348
|
-
tool: async (client,
|
|
45349
|
-
const [result, apiCall] = await skyBuy(client,
|
|
45091
|
+
args: args30,
|
|
45092
|
+
tool: async (client, args31, ctx) => {
|
|
45093
|
+
const [result, apiCall] = await skyBuy(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45350
45094
|
if (!result.ok) {
|
|
45351
45095
|
return {
|
|
45352
45096
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45361,9 +45105,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
45361
45105
|
|
|
45362
45106
|
// src/funcs/skyDeposit.ts
|
|
45363
45107
|
function skyDeposit(client, request, options) {
|
|
45364
|
-
return new APIPromise($
|
|
45108
|
+
return new APIPromise($do31(client, request, options));
|
|
45365
45109
|
}
|
|
45366
|
-
async function $
|
|
45110
|
+
async function $do31(client, request, options) {
|
|
45367
45111
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45368
45112
|
if (!parsed.ok) {
|
|
45369
45113
|
return [parsed, { status: "invalid" }];
|
|
@@ -45432,12 +45176,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
45432
45176
|
});
|
|
45433
45177
|
|
|
45434
45178
|
// src/mcp-server/tools/skyDeposit.ts
|
|
45435
|
-
var
|
|
45179
|
+
var args31, tool$skyDeposit;
|
|
45436
45180
|
var init_skyDeposit2 = __esm(() => {
|
|
45437
45181
|
init_skyDeposit();
|
|
45438
45182
|
init_components();
|
|
45439
45183
|
init_tools();
|
|
45440
|
-
|
|
45184
|
+
args31 = {
|
|
45441
45185
|
request: SkyDepositRequest$inboundSchema
|
|
45442
45186
|
};
|
|
45443
45187
|
tool$skyDeposit = {
|
|
@@ -45447,9 +45191,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
45447
45191
|
Deposit USDS for sUSDS to earn yield.
|
|
45448
45192
|
|
|
45449
45193
|
There are no fees.`,
|
|
45450
|
-
args:
|
|
45451
|
-
tool: async (client,
|
|
45452
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
45194
|
+
args: args31,
|
|
45195
|
+
tool: async (client, args32, ctx) => {
|
|
45196
|
+
const [result, apiCall] = await skyDeposit(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45453
45197
|
if (!result.ok) {
|
|
45454
45198
|
return {
|
|
45455
45199
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45464,9 +45208,9 @@ There are no fees.`,
|
|
|
45464
45208
|
|
|
45465
45209
|
// src/funcs/skyPosition.ts
|
|
45466
45210
|
function skyPosition(client, request, options) {
|
|
45467
|
-
return new APIPromise($
|
|
45211
|
+
return new APIPromise($do32(client, request, options));
|
|
45468
45212
|
}
|
|
45469
|
-
async function $
|
|
45213
|
+
async function $do32(client, request, options) {
|
|
45470
45214
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45471
45215
|
if (!parsed.ok) {
|
|
45472
45216
|
return [parsed, { status: "invalid" }];
|
|
@@ -45540,12 +45284,12 @@ var init_skyPosition = __esm(() => {
|
|
|
45540
45284
|
});
|
|
45541
45285
|
|
|
45542
45286
|
// src/mcp-server/tools/skyPosition.ts
|
|
45543
|
-
var
|
|
45287
|
+
var args32, tool$skyPosition;
|
|
45544
45288
|
var init_skyPosition2 = __esm(() => {
|
|
45545
45289
|
init_skyPosition();
|
|
45546
45290
|
init_operations();
|
|
45547
45291
|
init_tools();
|
|
45548
|
-
|
|
45292
|
+
args32 = {
|
|
45549
45293
|
request: SkyPositionRequest$inboundSchema
|
|
45550
45294
|
};
|
|
45551
45295
|
tool$skyPosition = {
|
|
@@ -45553,9 +45297,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
45553
45297
|
description: `Check USDS Position
|
|
45554
45298
|
|
|
45555
45299
|
Check the USDS overall position.`,
|
|
45556
|
-
args:
|
|
45557
|
-
tool: async (client,
|
|
45558
|
-
const [result, apiCall] = await skyPosition(client,
|
|
45300
|
+
args: args32,
|
|
45301
|
+
tool: async (client, args33, ctx) => {
|
|
45302
|
+
const [result, apiCall] = await skyPosition(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45559
45303
|
if (!result.ok) {
|
|
45560
45304
|
return {
|
|
45561
45305
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45570,9 +45314,9 @@ Check the USDS overall position.`,
|
|
|
45570
45314
|
|
|
45571
45315
|
// src/funcs/skySell.ts
|
|
45572
45316
|
function skySell(client, request, options) {
|
|
45573
|
-
return new APIPromise($
|
|
45317
|
+
return new APIPromise($do33(client, request, options));
|
|
45574
45318
|
}
|
|
45575
|
-
async function $
|
|
45319
|
+
async function $do33(client, request, options) {
|
|
45576
45320
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45577
45321
|
if (!parsed.ok) {
|
|
45578
45322
|
return [parsed, { status: "invalid" }];
|
|
@@ -45641,12 +45385,12 @@ var init_skySell = __esm(() => {
|
|
|
45641
45385
|
});
|
|
45642
45386
|
|
|
45643
45387
|
// src/mcp-server/tools/skySell.ts
|
|
45644
|
-
var
|
|
45388
|
+
var args33, tool$skySell;
|
|
45645
45389
|
var init_skySell2 = __esm(() => {
|
|
45646
45390
|
init_skySell();
|
|
45647
45391
|
init_components();
|
|
45648
45392
|
init_tools();
|
|
45649
|
-
|
|
45393
|
+
args33 = {
|
|
45650
45394
|
request: SkySellRequest$inboundSchema
|
|
45651
45395
|
};
|
|
45652
45396
|
tool$skySell = {
|
|
@@ -45660,9 +45404,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
45660
45404
|
|
|
45661
45405
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
45662
45406
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
45663
|
-
args:
|
|
45664
|
-
tool: async (client,
|
|
45665
|
-
const [result, apiCall] = await skySell(client,
|
|
45407
|
+
args: args33,
|
|
45408
|
+
tool: async (client, args34, ctx) => {
|
|
45409
|
+
const [result, apiCall] = await skySell(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45666
45410
|
if (!result.ok) {
|
|
45667
45411
|
return {
|
|
45668
45412
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45677,9 +45421,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
45677
45421
|
|
|
45678
45422
|
// src/funcs/skyWithdraw.ts
|
|
45679
45423
|
function skyWithdraw(client, request, options) {
|
|
45680
|
-
return new APIPromise($
|
|
45424
|
+
return new APIPromise($do34(client, request, options));
|
|
45681
45425
|
}
|
|
45682
|
-
async function $
|
|
45426
|
+
async function $do34(client, request, options) {
|
|
45683
45427
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45684
45428
|
if (!parsed.ok) {
|
|
45685
45429
|
return [parsed, { status: "invalid" }];
|
|
@@ -45748,12 +45492,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
45748
45492
|
});
|
|
45749
45493
|
|
|
45750
45494
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
45751
|
-
var
|
|
45495
|
+
var args34, tool$skyWithdraw;
|
|
45752
45496
|
var init_skyWithdraw2 = __esm(() => {
|
|
45753
45497
|
init_skyWithdraw();
|
|
45754
45498
|
init_components();
|
|
45755
45499
|
init_tools();
|
|
45756
|
-
|
|
45500
|
+
args34 = {
|
|
45757
45501
|
request: SkyWithdrawRequest$inboundSchema
|
|
45758
45502
|
};
|
|
45759
45503
|
tool$skyWithdraw = {
|
|
@@ -45763,9 +45507,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
45763
45507
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
45764
45508
|
|
|
45765
45509
|
There are no fees.`,
|
|
45766
|
-
args:
|
|
45767
|
-
tool: async (client,
|
|
45768
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
45510
|
+
args: args34,
|
|
45511
|
+
tool: async (client, args35, ctx) => {
|
|
45512
|
+
const [result, apiCall] = await skyWithdraw(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45769
45513
|
if (!result.ok) {
|
|
45770
45514
|
return {
|
|
45771
45515
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45780,9 +45524,9 @@ There are no fees.`,
|
|
|
45780
45524
|
|
|
45781
45525
|
// src/funcs/tokenAddress.ts
|
|
45782
45526
|
function tokenAddress(client, request, options) {
|
|
45783
|
-
return new APIPromise($
|
|
45527
|
+
return new APIPromise($do35(client, request, options));
|
|
45784
45528
|
}
|
|
45785
|
-
async function $
|
|
45529
|
+
async function $do35(client, request, options) {
|
|
45786
45530
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45787
45531
|
if (!parsed.ok) {
|
|
45788
45532
|
return [parsed, { status: "invalid" }];
|
|
@@ -45856,12 +45600,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
45856
45600
|
});
|
|
45857
45601
|
|
|
45858
45602
|
// src/mcp-server/tools/tokenAddress.ts
|
|
45859
|
-
var
|
|
45603
|
+
var args35, tool$tokenAddress;
|
|
45860
45604
|
var init_tokenAddress2 = __esm(() => {
|
|
45861
45605
|
init_tokenAddress();
|
|
45862
45606
|
init_operations();
|
|
45863
45607
|
init_tools();
|
|
45864
|
-
|
|
45608
|
+
args35 = {
|
|
45865
45609
|
request: TokenAddressRequest$inboundSchema
|
|
45866
45610
|
};
|
|
45867
45611
|
tool$tokenAddress = {
|
|
@@ -45869,9 +45613,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
45869
45613
|
description: `Token Address
|
|
45870
45614
|
|
|
45871
45615
|
This endpoint retrieves the address for a token supported by us.`,
|
|
45872
|
-
args:
|
|
45873
|
-
tool: async (client,
|
|
45874
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
45616
|
+
args: args35,
|
|
45617
|
+
tool: async (client, args36, ctx) => {
|
|
45618
|
+
const [result, apiCall] = await tokenAddress(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45875
45619
|
if (!result.ok) {
|
|
45876
45620
|
return {
|
|
45877
45621
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45886,9 +45630,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
45886
45630
|
|
|
45887
45631
|
// src/funcs/tokenBalance.ts
|
|
45888
45632
|
function tokenBalance(client, request, options) {
|
|
45889
|
-
return new APIPromise($
|
|
45633
|
+
return new APIPromise($do36(client, request, options));
|
|
45890
45634
|
}
|
|
45891
|
-
async function $
|
|
45635
|
+
async function $do36(client, request, options) {
|
|
45892
45636
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45893
45637
|
if (!parsed.ok) {
|
|
45894
45638
|
return [parsed, { status: "invalid" }];
|
|
@@ -45963,12 +45707,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
45963
45707
|
});
|
|
45964
45708
|
|
|
45965
45709
|
// src/mcp-server/tools/tokenBalance.ts
|
|
45966
|
-
var
|
|
45710
|
+
var args36, tool$tokenBalance;
|
|
45967
45711
|
var init_tokenBalance2 = __esm(() => {
|
|
45968
45712
|
init_tokenBalance();
|
|
45969
45713
|
init_operations();
|
|
45970
45714
|
init_tools();
|
|
45971
|
-
|
|
45715
|
+
args36 = {
|
|
45972
45716
|
request: TokenBalanceRequest$inboundSchema
|
|
45973
45717
|
};
|
|
45974
45718
|
tool$tokenBalance = {
|
|
@@ -45976,9 +45720,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
45976
45720
|
description: `Token Balance
|
|
45977
45721
|
|
|
45978
45722
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
45979
|
-
args:
|
|
45980
|
-
tool: async (client,
|
|
45981
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
45723
|
+
args: args36,
|
|
45724
|
+
tool: async (client, args37, ctx) => {
|
|
45725
|
+
const [result, apiCall] = await tokenBalance(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45982
45726
|
if (!result.ok) {
|
|
45983
45727
|
return {
|
|
45984
45728
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45993,9 +45737,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
45993
45737
|
|
|
45994
45738
|
// src/funcs/tokenPrice.ts
|
|
45995
45739
|
function tokenPrice(client, request, options) {
|
|
45996
|
-
return new APIPromise($
|
|
45740
|
+
return new APIPromise($do37(client, request, options));
|
|
45997
45741
|
}
|
|
45998
|
-
async function $
|
|
45742
|
+
async function $do37(client, request, options) {
|
|
45999
45743
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46000
45744
|
if (!parsed.ok) {
|
|
46001
45745
|
return [parsed, { status: "invalid" }];
|
|
@@ -46069,12 +45813,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
46069
45813
|
});
|
|
46070
45814
|
|
|
46071
45815
|
// src/mcp-server/tools/tokenPrice.ts
|
|
46072
|
-
var
|
|
45816
|
+
var args37, tool$tokenPrice;
|
|
46073
45817
|
var init_tokenPrice2 = __esm(() => {
|
|
46074
45818
|
init_tokenPrice();
|
|
46075
45819
|
init_operations();
|
|
46076
45820
|
init_tools();
|
|
46077
|
-
|
|
45821
|
+
args37 = {
|
|
46078
45822
|
request: TokenPriceRequest$inboundSchema
|
|
46079
45823
|
};
|
|
46080
45824
|
tool$tokenPrice = {
|
|
@@ -46086,9 +45830,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
46086
45830
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
46087
45831
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
46088
45832
|
with the update frequency of the oracle.`,
|
|
46089
|
-
args:
|
|
46090
|
-
tool: async (client,
|
|
46091
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
45833
|
+
args: args37,
|
|
45834
|
+
tool: async (client, args38, ctx) => {
|
|
45835
|
+
const [result, apiCall] = await tokenPrice(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46092
45836
|
if (!result.ok) {
|
|
46093
45837
|
return {
|
|
46094
45838
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46103,9 +45847,9 @@ with the update frequency of the oracle.`,
|
|
|
46103
45847
|
|
|
46104
45848
|
// src/funcs/tokenTransfer.ts
|
|
46105
45849
|
function tokenTransfer(client, request, options) {
|
|
46106
|
-
return new APIPromise($
|
|
45850
|
+
return new APIPromise($do38(client, request, options));
|
|
46107
45851
|
}
|
|
46108
|
-
async function $
|
|
45852
|
+
async function $do38(client, request, options) {
|
|
46109
45853
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46110
45854
|
if (!parsed.ok) {
|
|
46111
45855
|
return [parsed, { status: "invalid" }];
|
|
@@ -46174,12 +45918,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
46174
45918
|
});
|
|
46175
45919
|
|
|
46176
45920
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
46177
|
-
var
|
|
45921
|
+
var args38, tool$tokenTransfer;
|
|
46178
45922
|
var init_tokenTransfer2 = __esm(() => {
|
|
46179
45923
|
init_tokenTransfer();
|
|
46180
45924
|
init_components();
|
|
46181
45925
|
init_tools();
|
|
46182
|
-
|
|
45926
|
+
args38 = {
|
|
46183
45927
|
request: TokenTransferRequest$inboundSchema
|
|
46184
45928
|
};
|
|
46185
45929
|
tool$tokenTransfer = {
|
|
@@ -46187,9 +45931,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
46187
45931
|
description: `Transfer ETH or ERC20 Tokens
|
|
46188
45932
|
|
|
46189
45933
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
46190
|
-
args:
|
|
46191
|
-
tool: async (client,
|
|
46192
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
45934
|
+
args: args38,
|
|
45935
|
+
tool: async (client, args39, ctx) => {
|
|
45936
|
+
const [result, apiCall] = await tokenTransfer(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46193
45937
|
if (!result.ok) {
|
|
46194
45938
|
return {
|
|
46195
45939
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46204,9 +45948,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
46204
45948
|
|
|
46205
45949
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
46206
45950
|
function transactionBatchingAuthorization(client, request, options) {
|
|
46207
|
-
return new APIPromise($
|
|
45951
|
+
return new APIPromise($do39(client, request, options));
|
|
46208
45952
|
}
|
|
46209
|
-
async function $
|
|
45953
|
+
async function $do39(client, request, options) {
|
|
46210
45954
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46211
45955
|
if (!parsed.ok) {
|
|
46212
45956
|
return [parsed, { status: "invalid" }];
|
|
@@ -46275,12 +46019,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
46275
46019
|
});
|
|
46276
46020
|
|
|
46277
46021
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
46278
|
-
var
|
|
46022
|
+
var args39, tool$transactionBatchingAuthorization;
|
|
46279
46023
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
46280
46024
|
init_transactionBatchingAuthorization();
|
|
46281
46025
|
init_components();
|
|
46282
46026
|
init_tools();
|
|
46283
|
-
|
|
46027
|
+
args39 = {
|
|
46284
46028
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
46285
46029
|
};
|
|
46286
46030
|
tool$transactionBatchingAuthorization = {
|
|
@@ -46293,9 +46037,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
46293
46037
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
46294
46038
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
46295
46039
|
targeting.`,
|
|
46296
|
-
args:
|
|
46297
|
-
tool: async (client,
|
|
46298
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
46040
|
+
args: args39,
|
|
46041
|
+
tool: async (client, args40, ctx) => {
|
|
46042
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46299
46043
|
if (!result.ok) {
|
|
46300
46044
|
return {
|
|
46301
46045
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46310,9 +46054,9 @@ targeting.`,
|
|
|
46310
46054
|
|
|
46311
46055
|
// src/funcs/transactionBatchingExecute.ts
|
|
46312
46056
|
function transactionBatchingExecute(client, request, options) {
|
|
46313
|
-
return new APIPromise($
|
|
46057
|
+
return new APIPromise($do40(client, request, options));
|
|
46314
46058
|
}
|
|
46315
|
-
async function $
|
|
46059
|
+
async function $do40(client, request, options) {
|
|
46316
46060
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46317
46061
|
if (!parsed.ok) {
|
|
46318
46062
|
return [parsed, { status: "invalid" }];
|
|
@@ -46381,12 +46125,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
46381
46125
|
});
|
|
46382
46126
|
|
|
46383
46127
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
46384
|
-
var
|
|
46128
|
+
var args40, tool$transactionBatchingExecute;
|
|
46385
46129
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
46386
46130
|
init_transactionBatchingExecute();
|
|
46387
46131
|
init_components();
|
|
46388
46132
|
init_tools();
|
|
46389
|
-
|
|
46133
|
+
args40 = {
|
|
46390
46134
|
request: MulticallExecuteRequest$inboundSchema
|
|
46391
46135
|
};
|
|
46392
46136
|
tool$transactionBatchingExecute = {
|
|
@@ -46399,9 +46143,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
46399
46143
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
46400
46144
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
46401
46145
|
prevent replay attacks.`,
|
|
46402
|
-
args:
|
|
46403
|
-
tool: async (client,
|
|
46404
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
46146
|
+
args: args40,
|
|
46147
|
+
tool: async (client, args41, ctx) => {
|
|
46148
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46405
46149
|
if (!result.ok) {
|
|
46406
46150
|
return {
|
|
46407
46151
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46416,9 +46160,9 @@ prevent replay attacks.`,
|
|
|
46416
46160
|
|
|
46417
46161
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
46418
46162
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
46419
|
-
return new APIPromise($
|
|
46163
|
+
return new APIPromise($do41(client, request, options));
|
|
46420
46164
|
}
|
|
46421
|
-
async function $
|
|
46165
|
+
async function $do41(client, request, options) {
|
|
46422
46166
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46423
46167
|
if (!parsed.ok) {
|
|
46424
46168
|
return [parsed, { status: "invalid" }];
|
|
@@ -46487,12 +46231,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
46487
46231
|
});
|
|
46488
46232
|
|
|
46489
46233
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
46490
|
-
var
|
|
46234
|
+
var args41, tool$uniswapV3LiquidityProvisionIncrease;
|
|
46491
46235
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
46492
46236
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
46493
46237
|
init_components();
|
|
46494
46238
|
init_tools();
|
|
46495
|
-
|
|
46239
|
+
args41 = {
|
|
46496
46240
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
46497
46241
|
};
|
|
46498
46242
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -46508,9 +46252,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
46508
46252
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
46509
46253
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
46510
46254
|
process.`,
|
|
46511
|
-
args:
|
|
46512
|
-
tool: async (client,
|
|
46513
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
46255
|
+
args: args41,
|
|
46256
|
+
tool: async (client, args42, ctx) => {
|
|
46257
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46514
46258
|
if (!result.ok) {
|
|
46515
46259
|
return {
|
|
46516
46260
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46525,9 +46269,9 @@ process.`,
|
|
|
46525
46269
|
|
|
46526
46270
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
46527
46271
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
46528
|
-
return new APIPromise($
|
|
46272
|
+
return new APIPromise($do42(client, request, options));
|
|
46529
46273
|
}
|
|
46530
|
-
async function $
|
|
46274
|
+
async function $do42(client, request, options) {
|
|
46531
46275
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46532
46276
|
if (!parsed.ok) {
|
|
46533
46277
|
return [parsed, { status: "invalid" }];
|
|
@@ -46601,12 +46345,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
46601
46345
|
});
|
|
46602
46346
|
|
|
46603
46347
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
46604
|
-
var
|
|
46348
|
+
var args42, tool$uniswapV3LiquidityProvisionInRange;
|
|
46605
46349
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
46606
46350
|
init_uniswapV3LiquidityProvisionInRange();
|
|
46607
46351
|
init_operations();
|
|
46608
46352
|
init_tools();
|
|
46609
|
-
|
|
46353
|
+
args42 = {
|
|
46610
46354
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
46611
46355
|
};
|
|
46612
46356
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -46621,9 +46365,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
46621
46365
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
46622
46366
|
they are actively participating in the trading activities within the liquidity pool
|
|
46623
46367
|
and earning trading fees.`,
|
|
46624
|
-
args:
|
|
46625
|
-
tool: async (client,
|
|
46626
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
46368
|
+
args: args42,
|
|
46369
|
+
tool: async (client, args43, ctx) => {
|
|
46370
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46627
46371
|
if (!result.ok) {
|
|
46628
46372
|
return {
|
|
46629
46373
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46638,9 +46382,9 @@ and earning trading fees.`,
|
|
|
46638
46382
|
|
|
46639
46383
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
46640
46384
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
46641
|
-
return new APIPromise($
|
|
46385
|
+
return new APIPromise($do43(client, request, options));
|
|
46642
46386
|
}
|
|
46643
|
-
async function $
|
|
46387
|
+
async function $do43(client, request, options) {
|
|
46644
46388
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46645
46389
|
if (!parsed.ok) {
|
|
46646
46390
|
return [parsed, { status: "invalid" }];
|
|
@@ -46709,12 +46453,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
46709
46453
|
});
|
|
46710
46454
|
|
|
46711
46455
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
46712
|
-
var
|
|
46456
|
+
var args43, tool$uniswapV3LiquidityProvisionMint;
|
|
46713
46457
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
46714
46458
|
init_uniswapV3LiquidityProvisionMint();
|
|
46715
46459
|
init_components();
|
|
46716
46460
|
init_tools();
|
|
46717
|
-
|
|
46461
|
+
args43 = {
|
|
46718
46462
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
46719
46463
|
};
|
|
46720
46464
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -46730,9 +46474,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
46730
46474
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
46731
46475
|
requires details such as the token pair, amount, and any additional parameters
|
|
46732
46476
|
needed for the minting process.`,
|
|
46733
|
-
args:
|
|
46734
|
-
tool: async (client,
|
|
46735
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
46477
|
+
args: args43,
|
|
46478
|
+
tool: async (client, args44, ctx) => {
|
|
46479
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46736
46480
|
if (!result.ok) {
|
|
46737
46481
|
return {
|
|
46738
46482
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46747,9 +46491,9 @@ needed for the minting process.`,
|
|
|
46747
46491
|
|
|
46748
46492
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
46749
46493
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
46750
|
-
return new APIPromise($
|
|
46494
|
+
return new APIPromise($do44(client, request, options));
|
|
46751
46495
|
}
|
|
46752
|
-
async function $
|
|
46496
|
+
async function $do44(client, request, options) {
|
|
46753
46497
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46754
46498
|
if (!parsed.ok) {
|
|
46755
46499
|
return [parsed, { status: "invalid" }];
|
|
@@ -46823,12 +46567,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
46823
46567
|
});
|
|
46824
46568
|
|
|
46825
46569
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
46826
|
-
var
|
|
46570
|
+
var args44, tool$uniswapV3LiquidityProvisionPositions;
|
|
46827
46571
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
46828
46572
|
init_uniswapV3LiquidityProvisionPositions();
|
|
46829
46573
|
init_operations();
|
|
46830
46574
|
init_tools();
|
|
46831
|
-
|
|
46575
|
+
args44 = {
|
|
46832
46576
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
46833
46577
|
};
|
|
46834
46578
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -46842,9 +46586,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
46842
46586
|
positions, including the total number of positions and relevant metadata. This
|
|
46843
46587
|
information is crucial for users to manage and analyze their liquidity provision
|
|
46844
46588
|
activities effectively.`,
|
|
46845
|
-
args:
|
|
46846
|
-
tool: async (client,
|
|
46847
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
46589
|
+
args: args44,
|
|
46590
|
+
tool: async (client, args45, ctx) => {
|
|
46591
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46848
46592
|
if (!result.ok) {
|
|
46849
46593
|
return {
|
|
46850
46594
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46859,9 +46603,9 @@ activities effectively.`,
|
|
|
46859
46603
|
|
|
46860
46604
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46861
46605
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
46862
|
-
return new APIPromise($
|
|
46606
|
+
return new APIPromise($do45(client, request, options));
|
|
46863
46607
|
}
|
|
46864
|
-
async function $
|
|
46608
|
+
async function $do45(client, request, options) {
|
|
46865
46609
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46866
46610
|
if (!parsed.ok) {
|
|
46867
46611
|
return [parsed, { status: "invalid" }];
|
|
@@ -46930,12 +46674,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
46930
46674
|
});
|
|
46931
46675
|
|
|
46932
46676
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46933
|
-
var
|
|
46677
|
+
var args45, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
46934
46678
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
46935
46679
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
46936
46680
|
init_components();
|
|
46937
46681
|
init_tools();
|
|
46938
|
-
|
|
46682
|
+
args45 = {
|
|
46939
46683
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
46940
46684
|
};
|
|
46941
46685
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -46952,9 +46696,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
46952
46696
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
46953
46697
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
46954
46698
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
46955
|
-
args:
|
|
46956
|
-
tool: async (client,
|
|
46957
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
46699
|
+
args: args45,
|
|
46700
|
+
tool: async (client, args46, ctx) => {
|
|
46701
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46958
46702
|
if (!result.ok) {
|
|
46959
46703
|
return {
|
|
46960
46704
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46969,9 +46713,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
46969
46713
|
|
|
46970
46714
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
46971
46715
|
function uniswapV3PoolPrice(client, request, options) {
|
|
46972
|
-
return new APIPromise($
|
|
46716
|
+
return new APIPromise($do46(client, request, options));
|
|
46973
46717
|
}
|
|
46974
|
-
async function $
|
|
46718
|
+
async function $do46(client, request, options) {
|
|
46975
46719
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46976
46720
|
if (!parsed.ok) {
|
|
46977
46721
|
return [parsed, { status: "invalid" }];
|
|
@@ -47047,12 +46791,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
47047
46791
|
});
|
|
47048
46792
|
|
|
47049
46793
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
47050
|
-
var
|
|
46794
|
+
var args46, tool$uniswapV3PoolPrice;
|
|
47051
46795
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
47052
46796
|
init_uniswapV3PoolPrice();
|
|
47053
46797
|
init_operations();
|
|
47054
46798
|
init_tools();
|
|
47055
|
-
|
|
46799
|
+
args46 = {
|
|
47056
46800
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
47057
46801
|
};
|
|
47058
46802
|
tool$uniswapV3PoolPrice = {
|
|
@@ -47062,9 +46806,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
47062
46806
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
47063
46807
|
|
|
47064
46808
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
47065
|
-
args:
|
|
47066
|
-
tool: async (client,
|
|
47067
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
46809
|
+
args: args46,
|
|
46810
|
+
tool: async (client, args47, ctx) => {
|
|
46811
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47068
46812
|
if (!result.ok) {
|
|
47069
46813
|
return {
|
|
47070
46814
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47079,9 +46823,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
47079
46823
|
|
|
47080
46824
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
47081
46825
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
47082
|
-
return new APIPromise($
|
|
46826
|
+
return new APIPromise($do47(client, request, options));
|
|
47083
46827
|
}
|
|
47084
|
-
async function $
|
|
46828
|
+
async function $do47(client, request, options) {
|
|
47085
46829
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47086
46830
|
if (!parsed.ok) {
|
|
47087
46831
|
return [parsed, { status: "invalid" }];
|
|
@@ -47158,12 +46902,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
47158
46902
|
});
|
|
47159
46903
|
|
|
47160
46904
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
47161
|
-
var
|
|
46905
|
+
var args47, tool$uniswapV3QuoteBuyExactly;
|
|
47162
46906
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
47163
46907
|
init_uniswapV3QuoteBuyExactly();
|
|
47164
46908
|
init_operations();
|
|
47165
46909
|
init_tools();
|
|
47166
|
-
|
|
46910
|
+
args47 = {
|
|
47167
46911
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
47168
46912
|
};
|
|
47169
46913
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -47175,9 +46919,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
47175
46919
|
|
|
47176
46920
|
It also provides the resulting price after the transaction. The calculation takes
|
|
47177
46921
|
into account the current pool state and the specified fee tier.`,
|
|
47178
|
-
args:
|
|
47179
|
-
tool: async (client,
|
|
47180
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
46922
|
+
args: args47,
|
|
46923
|
+
tool: async (client, args48, ctx) => {
|
|
46924
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47181
46925
|
if (!result.ok) {
|
|
47182
46926
|
return {
|
|
47183
46927
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47192,9 +46936,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
47192
46936
|
|
|
47193
46937
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
47194
46938
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
47195
|
-
return new APIPromise($
|
|
46939
|
+
return new APIPromise($do48(client, request, options));
|
|
47196
46940
|
}
|
|
47197
|
-
async function $
|
|
46941
|
+
async function $do48(client, request, options) {
|
|
47198
46942
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47199
46943
|
if (!parsed.ok) {
|
|
47200
46944
|
return [parsed, { status: "invalid" }];
|
|
@@ -47271,12 +47015,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
47271
47015
|
});
|
|
47272
47016
|
|
|
47273
47017
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
47274
|
-
var
|
|
47018
|
+
var args48, tool$uniswapV3QuoteSellExactly;
|
|
47275
47019
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
47276
47020
|
init_uniswapV3QuoteSellExactly();
|
|
47277
47021
|
init_operations();
|
|
47278
47022
|
init_tools();
|
|
47279
|
-
|
|
47023
|
+
args48 = {
|
|
47280
47024
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
47281
47025
|
};
|
|
47282
47026
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -47288,9 +47032,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
47288
47032
|
|
|
47289
47033
|
It also provides the resulting price after the transaction. The calculation takes
|
|
47290
47034
|
into account the current pool state and the specified fee tier.`,
|
|
47291
|
-
args:
|
|
47292
|
-
tool: async (client,
|
|
47293
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
47035
|
+
args: args48,
|
|
47036
|
+
tool: async (client, args49, ctx) => {
|
|
47037
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47294
47038
|
if (!result.ok) {
|
|
47295
47039
|
return {
|
|
47296
47040
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47305,9 +47049,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
47305
47049
|
|
|
47306
47050
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
47307
47051
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
47308
|
-
return new APIPromise($
|
|
47052
|
+
return new APIPromise($do49(client, request, options));
|
|
47309
47053
|
}
|
|
47310
|
-
async function $
|
|
47054
|
+
async function $do49(client, request, options) {
|
|
47311
47055
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47312
47056
|
if (!parsed.ok) {
|
|
47313
47057
|
return [parsed, { status: "invalid" }];
|
|
@@ -47376,12 +47120,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
47376
47120
|
});
|
|
47377
47121
|
|
|
47378
47122
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
47379
|
-
var
|
|
47123
|
+
var args49, tool$uniswapV3SwapBuyExactly;
|
|
47380
47124
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
47381
47125
|
init_uniswapV3SwapBuyExactly();
|
|
47382
47126
|
init_components();
|
|
47383
47127
|
init_tools();
|
|
47384
|
-
|
|
47128
|
+
args49 = {
|
|
47385
47129
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
47386
47130
|
};
|
|
47387
47131
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -47395,9 +47139,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
47395
47139
|
provide the necessary transaction details, including the token to buy, the token to
|
|
47396
47140
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
47397
47141
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
47398
|
-
args:
|
|
47399
|
-
tool: async (client,
|
|
47400
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
47142
|
+
args: args49,
|
|
47143
|
+
tool: async (client, args50, ctx) => {
|
|
47144
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47401
47145
|
if (!result.ok) {
|
|
47402
47146
|
return {
|
|
47403
47147
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47412,9 +47156,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
47412
47156
|
|
|
47413
47157
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
47414
47158
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
47415
|
-
return new APIPromise($
|
|
47159
|
+
return new APIPromise($do50(client, request, options));
|
|
47416
47160
|
}
|
|
47417
|
-
async function $
|
|
47161
|
+
async function $do50(client, request, options) {
|
|
47418
47162
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47419
47163
|
if (!parsed.ok) {
|
|
47420
47164
|
return [parsed, { status: "invalid" }];
|
|
@@ -47483,12 +47227,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
47483
47227
|
});
|
|
47484
47228
|
|
|
47485
47229
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
47486
|
-
var
|
|
47230
|
+
var args50, tool$uniswapV3SwapSellExactly;
|
|
47487
47231
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
47488
47232
|
init_uniswapV3SwapSellExactly();
|
|
47489
47233
|
init_components();
|
|
47490
47234
|
init_tools();
|
|
47491
|
-
|
|
47235
|
+
args50 = {
|
|
47492
47236
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
47493
47237
|
};
|
|
47494
47238
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -47502,9 +47246,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
47502
47246
|
provide the necessary transaction details, including the token to sell, the token to
|
|
47503
47247
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
47504
47248
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
47505
|
-
args:
|
|
47506
|
-
tool: async (client,
|
|
47507
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
47249
|
+
args: args50,
|
|
47250
|
+
tool: async (client, args51, ctx) => {
|
|
47251
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47508
47252
|
if (!result.ok) {
|
|
47509
47253
|
return {
|
|
47510
47254
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47519,9 +47263,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
47519
47263
|
|
|
47520
47264
|
// src/funcs/universalAllowance.ts
|
|
47521
47265
|
function universalAllowance(client, request, options) {
|
|
47522
|
-
return new APIPromise($
|
|
47266
|
+
return new APIPromise($do51(client, request, options));
|
|
47523
47267
|
}
|
|
47524
|
-
async function $
|
|
47268
|
+
async function $do51(client, request, options) {
|
|
47525
47269
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47526
47270
|
if (!parsed.ok) {
|
|
47527
47271
|
return [parsed, { status: "invalid" }];
|
|
@@ -47597,12 +47341,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
47597
47341
|
});
|
|
47598
47342
|
|
|
47599
47343
|
// src/mcp-server/tools/universalAllowance.ts
|
|
47600
|
-
var
|
|
47344
|
+
var args51, tool$universalAllowance;
|
|
47601
47345
|
var init_universalAllowance2 = __esm(() => {
|
|
47602
47346
|
init_universalAllowance();
|
|
47603
47347
|
init_operations();
|
|
47604
47348
|
init_tools();
|
|
47605
|
-
|
|
47349
|
+
args51 = {
|
|
47606
47350
|
request: GenericAllowanceRequest$inboundSchema
|
|
47607
47351
|
};
|
|
47608
47352
|
tool$universalAllowance = {
|
|
@@ -47616,9 +47360,9 @@ tokens on their behalf.
|
|
|
47616
47360
|
This is a crucial step before engaging in any transactions or operations within
|
|
47617
47361
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
47618
47362
|
the user's tokens securely and efficiently.`,
|
|
47619
|
-
args:
|
|
47620
|
-
tool: async (client,
|
|
47621
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
47363
|
+
args: args51,
|
|
47364
|
+
tool: async (client, args52, ctx) => {
|
|
47365
|
+
const [result, apiCall] = await universalAllowance(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47622
47366
|
if (!result.ok) {
|
|
47623
47367
|
return {
|
|
47624
47368
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47633,9 +47377,9 @@ the user's tokens securely and efficiently.`,
|
|
|
47633
47377
|
|
|
47634
47378
|
// src/funcs/universalAllowanceSet.ts
|
|
47635
47379
|
function universalAllowanceSet(client, request, options) {
|
|
47636
|
-
return new APIPromise($
|
|
47380
|
+
return new APIPromise($do52(client, request, options));
|
|
47637
47381
|
}
|
|
47638
|
-
async function $
|
|
47382
|
+
async function $do52(client, request, options) {
|
|
47639
47383
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47640
47384
|
if (!parsed.ok) {
|
|
47641
47385
|
return [parsed, { status: "invalid" }];
|
|
@@ -47704,12 +47448,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
47704
47448
|
});
|
|
47705
47449
|
|
|
47706
47450
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
47707
|
-
var
|
|
47451
|
+
var args52, tool$universalAllowanceSet;
|
|
47708
47452
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
47709
47453
|
init_universalAllowanceSet();
|
|
47710
47454
|
init_components();
|
|
47711
47455
|
init_tools();
|
|
47712
|
-
|
|
47456
|
+
args52 = {
|
|
47713
47457
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
47714
47458
|
};
|
|
47715
47459
|
tool$universalAllowanceSet = {
|
|
@@ -47723,9 +47467,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
47723
47467
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
47724
47468
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
47725
47469
|
within the DeFi ecosystem.`,
|
|
47726
|
-
args:
|
|
47727
|
-
tool: async (client,
|
|
47728
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
47470
|
+
args: args52,
|
|
47471
|
+
tool: async (client, args53, ctx) => {
|
|
47472
|
+
const [result, apiCall] = await universalAllowanceSet(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47729
47473
|
if (!result.ok) {
|
|
47730
47474
|
return {
|
|
47731
47475
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47740,9 +47484,9 @@ within the DeFi ecosystem.`,
|
|
|
47740
47484
|
|
|
47741
47485
|
// src/funcs/universalEns.ts
|
|
47742
47486
|
function universalEns(client, request, options) {
|
|
47743
|
-
return new APIPromise($
|
|
47487
|
+
return new APIPromise($do53(client, request, options));
|
|
47744
47488
|
}
|
|
47745
|
-
async function $
|
|
47489
|
+
async function $do53(client, request, options) {
|
|
47746
47490
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47747
47491
|
if (!parsed.ok) {
|
|
47748
47492
|
return [parsed, { status: "invalid" }];
|
|
@@ -47816,12 +47560,12 @@ var init_universalEns = __esm(() => {
|
|
|
47816
47560
|
});
|
|
47817
47561
|
|
|
47818
47562
|
// src/mcp-server/tools/universalEns.ts
|
|
47819
|
-
var
|
|
47563
|
+
var args53, tool$universalEns;
|
|
47820
47564
|
var init_universalEns2 = __esm(() => {
|
|
47821
47565
|
init_universalEns();
|
|
47822
47566
|
init_operations();
|
|
47823
47567
|
init_tools();
|
|
47824
|
-
|
|
47568
|
+
args53 = {
|
|
47825
47569
|
request: GenericEnsRequest$inboundSchema
|
|
47826
47570
|
};
|
|
47827
47571
|
tool$universalEns = {
|
|
@@ -47832,9 +47576,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
47832
47576
|
|
|
47833
47577
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
47834
47578
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
47835
|
-
args:
|
|
47836
|
-
tool: async (client,
|
|
47837
|
-
const [result, apiCall] = await universalEns(client,
|
|
47579
|
+
args: args53,
|
|
47580
|
+
tool: async (client, args54, ctx) => {
|
|
47581
|
+
const [result, apiCall] = await universalEns(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47838
47582
|
if (!result.ok) {
|
|
47839
47583
|
return {
|
|
47840
47584
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47849,9 +47593,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
47849
47593
|
|
|
47850
47594
|
// src/funcs/universalPortfolio.ts
|
|
47851
47595
|
function universalPortfolio(client, request, options) {
|
|
47852
|
-
return new APIPromise($
|
|
47596
|
+
return new APIPromise($do54(client, request, options));
|
|
47853
47597
|
}
|
|
47854
|
-
async function $
|
|
47598
|
+
async function $do54(client, request, options) {
|
|
47855
47599
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47856
47600
|
if (!parsed.ok) {
|
|
47857
47601
|
return [parsed, { status: "invalid" }];
|
|
@@ -47925,12 +47669,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
47925
47669
|
});
|
|
47926
47670
|
|
|
47927
47671
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
47928
|
-
var
|
|
47672
|
+
var args54, tool$universalPortfolio;
|
|
47929
47673
|
var init_universalPortfolio2 = __esm(() => {
|
|
47930
47674
|
init_universalPortfolio();
|
|
47931
47675
|
init_operations();
|
|
47932
47676
|
init_tools();
|
|
47933
|
-
|
|
47677
|
+
args54 = {
|
|
47934
47678
|
request: GenericPortfolioRequest$inboundSchema
|
|
47935
47679
|
};
|
|
47936
47680
|
tool$universalPortfolio = {
|
|
@@ -47941,9 +47685,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
47941
47685
|
|
|
47942
47686
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
47943
47687
|
balances, including their respective values and quantities.`,
|
|
47944
|
-
args:
|
|
47945
|
-
tool: async (client,
|
|
47946
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
47688
|
+
args: args54,
|
|
47689
|
+
tool: async (client, args55, ctx) => {
|
|
47690
|
+
const [result, apiCall] = await universalPortfolio(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47947
47691
|
if (!result.ok) {
|
|
47948
47692
|
return {
|
|
47949
47693
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47958,9 +47702,9 @@ balances, including their respective values and quantities.`,
|
|
|
47958
47702
|
|
|
47959
47703
|
// src/funcs/universalSupportedTokens.ts
|
|
47960
47704
|
function universalSupportedTokens(client, request, options) {
|
|
47961
|
-
return new APIPromise($
|
|
47705
|
+
return new APIPromise($do55(client, request, options));
|
|
47962
47706
|
}
|
|
47963
|
-
async function $
|
|
47707
|
+
async function $do55(client, request, options) {
|
|
47964
47708
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47965
47709
|
if (!parsed.ok) {
|
|
47966
47710
|
return [parsed, { status: "invalid" }];
|
|
@@ -48033,12 +47777,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
48033
47777
|
});
|
|
48034
47778
|
|
|
48035
47779
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
48036
|
-
var
|
|
47780
|
+
var args55, tool$universalSupportedTokens;
|
|
48037
47781
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
48038
47782
|
init_universalSupportedTokens();
|
|
48039
47783
|
init_operations();
|
|
48040
47784
|
init_tools();
|
|
48041
|
-
|
|
47785
|
+
args55 = {
|
|
48042
47786
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
48043
47787
|
};
|
|
48044
47788
|
tool$universalSupportedTokens = {
|
|
@@ -48046,9 +47790,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
48046
47790
|
description: `List supported tokens
|
|
48047
47791
|
|
|
48048
47792
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
48049
|
-
args:
|
|
48050
|
-
tool: async (client,
|
|
48051
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
47793
|
+
args: args55,
|
|
47794
|
+
tool: async (client, args56, ctx) => {
|
|
47795
|
+
const [result, apiCall] = await universalSupportedTokens(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48052
47796
|
if (!result.ok) {
|
|
48053
47797
|
return {
|
|
48054
47798
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48063,9 +47807,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
48063
47807
|
|
|
48064
47808
|
// src/funcs/universalUnwrapWeth.ts
|
|
48065
47809
|
function universalUnwrapWeth(client, request, options) {
|
|
48066
|
-
return new APIPromise($
|
|
47810
|
+
return new APIPromise($do56(client, request, options));
|
|
48067
47811
|
}
|
|
48068
|
-
async function $
|
|
47812
|
+
async function $do56(client, request, options) {
|
|
48069
47813
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48070
47814
|
if (!parsed.ok) {
|
|
48071
47815
|
return [parsed, { status: "invalid" }];
|
|
@@ -48134,12 +47878,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
48134
47878
|
});
|
|
48135
47879
|
|
|
48136
47880
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
48137
|
-
var
|
|
47881
|
+
var args56, tool$universalUnwrapWeth;
|
|
48138
47882
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
48139
47883
|
init_universalUnwrapWeth();
|
|
48140
47884
|
init_components();
|
|
48141
47885
|
init_tools();
|
|
48142
|
-
|
|
47886
|
+
args56 = {
|
|
48143
47887
|
request: UnwrapWethRequest$inboundSchema
|
|
48144
47888
|
};
|
|
48145
47889
|
tool$universalUnwrapWeth = {
|
|
@@ -48148,9 +47892,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
48148
47892
|
|
|
48149
47893
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
48150
47894
|
can be used for gas and other native purposes.`,
|
|
48151
|
-
args:
|
|
48152
|
-
tool: async (client,
|
|
48153
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
47895
|
+
args: args56,
|
|
47896
|
+
tool: async (client, args57, ctx) => {
|
|
47897
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48154
47898
|
if (!result.ok) {
|
|
48155
47899
|
return {
|
|
48156
47900
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48165,9 +47909,9 @@ can be used for gas and other native purposes.`,
|
|
|
48165
47909
|
|
|
48166
47910
|
// src/funcs/universalVisualizePortfolio.ts
|
|
48167
47911
|
function universalVisualizePortfolio(client, request, options) {
|
|
48168
|
-
return new APIPromise($
|
|
47912
|
+
return new APIPromise($do57(client, request, options));
|
|
48169
47913
|
}
|
|
48170
|
-
async function $
|
|
47914
|
+
async function $do57(client, request, options) {
|
|
48171
47915
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48172
47916
|
if (!parsed.ok) {
|
|
48173
47917
|
return [parsed, { status: "invalid" }];
|
|
@@ -48241,12 +47985,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
48241
47985
|
});
|
|
48242
47986
|
|
|
48243
47987
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
48244
|
-
var
|
|
47988
|
+
var args57, tool$universalVisualizePortfolio;
|
|
48245
47989
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
48246
47990
|
init_universalVisualizePortfolio();
|
|
48247
47991
|
init_operations();
|
|
48248
47992
|
init_tools();
|
|
48249
|
-
|
|
47993
|
+
args57 = {
|
|
48250
47994
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
48251
47995
|
};
|
|
48252
47996
|
tool$universalVisualizePortfolio = {
|
|
@@ -48258,9 +48002,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
48258
48002
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
48259
48003
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
48260
48004
|
USD.`,
|
|
48261
|
-
args:
|
|
48262
|
-
tool: async (client,
|
|
48263
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
48005
|
+
args: args57,
|
|
48006
|
+
tool: async (client, args58, ctx) => {
|
|
48007
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48264
48008
|
if (!result.ok) {
|
|
48265
48009
|
return {
|
|
48266
48010
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48275,9 +48019,9 @@ USD.`,
|
|
|
48275
48019
|
|
|
48276
48020
|
// src/funcs/universalWrapEth.ts
|
|
48277
48021
|
function universalWrapEth(client, request, options) {
|
|
48278
|
-
return new APIPromise($
|
|
48022
|
+
return new APIPromise($do58(client, request, options));
|
|
48279
48023
|
}
|
|
48280
|
-
async function $
|
|
48024
|
+
async function $do58(client, request, options) {
|
|
48281
48025
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48282
48026
|
if (!parsed.ok) {
|
|
48283
48027
|
return [parsed, { status: "invalid" }];
|
|
@@ -48346,12 +48090,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
48346
48090
|
});
|
|
48347
48091
|
|
|
48348
48092
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
48349
|
-
var
|
|
48093
|
+
var args58, tool$universalWrapEth;
|
|
48350
48094
|
var init_universalWrapEth2 = __esm(() => {
|
|
48351
48095
|
init_universalWrapEth();
|
|
48352
48096
|
init_components();
|
|
48353
48097
|
init_tools();
|
|
48354
|
-
|
|
48098
|
+
args58 = {
|
|
48355
48099
|
request: WrapEthRequest$inboundSchema
|
|
48356
48100
|
};
|
|
48357
48101
|
tool$universalWrapEth = {
|
|
@@ -48360,9 +48104,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
48360
48104
|
|
|
48361
48105
|
Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
|
|
48362
48106
|
it to be traded on DeFi protocols.`,
|
|
48363
|
-
args:
|
|
48364
|
-
tool: async (client,
|
|
48365
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
48107
|
+
args: args58,
|
|
48108
|
+
tool: async (client, args59, ctx) => {
|
|
48109
|
+
const [result, apiCall] = await universalWrapEth(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48366
48110
|
if (!result.ok) {
|
|
48367
48111
|
return {
|
|
48368
48112
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48379,7 +48123,7 @@ it to be traded on DeFi protocols.`,
|
|
|
48379
48123
|
function createMCPServer(deps) {
|
|
48380
48124
|
const server = new McpServer({
|
|
48381
48125
|
name: "CompassApiSDK",
|
|
48382
|
-
version: "0.0.
|
|
48126
|
+
version: "0.0.23"
|
|
48383
48127
|
});
|
|
48384
48128
|
const client = new CompassApiSDKCore({
|
|
48385
48129
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -48393,6 +48137,7 @@ function createMCPServer(deps) {
|
|
|
48393
48137
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
48394
48138
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
48395
48139
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
48140
|
+
tool(tool$aaveV3ReserveOverview);
|
|
48396
48141
|
tool(tool$aaveV3Rate);
|
|
48397
48142
|
tool(tool$aaveV3TokenPrice);
|
|
48398
48143
|
tool(tool$aaveV3LiquidityChange);
|
|
@@ -48462,6 +48207,7 @@ var init_server2 = __esm(() => {
|
|
|
48462
48207
|
init_aaveV3LiquidityChange2();
|
|
48463
48208
|
init_aaveV3Rate2();
|
|
48464
48209
|
init_aaveV3Repay2();
|
|
48210
|
+
init_aaveV3ReserveOverview2();
|
|
48465
48211
|
init_aaveV3Supply2();
|
|
48466
48212
|
init_aaveV3TokenPrice2();
|
|
48467
48213
|
init_aaveV3UserPositionPerToken2();
|
|
@@ -49704,7 +49450,7 @@ var routes = an({
|
|
|
49704
49450
|
var app = He(routes, {
|
|
49705
49451
|
name: "mcp",
|
|
49706
49452
|
versionInfo: {
|
|
49707
|
-
currentVersion: "0.0.
|
|
49453
|
+
currentVersion: "0.0.23"
|
|
49708
49454
|
}
|
|
49709
49455
|
});
|
|
49710
49456
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49712,5 +49458,5 @@ export {
|
|
|
49712
49458
|
app
|
|
49713
49459
|
};
|
|
49714
49460
|
|
|
49715
|
-
//# debugId=
|
|
49461
|
+
//# debugId=767594FE01AB908D64756E2164756E21
|
|
49716
49462
|
//# sourceMappingURL=mcp-server.js.map
|