@compass-labs/api-sdk 0.0.20 → 0.0.22
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 +668 -892
- package/bin/mcp-server.js.map +18 -21
- package/dist/commonjs/funcs/aaveV3Rate.d.ts +31 -0
- package/dist/commonjs/funcs/aaveV3Rate.d.ts.map +1 -0
- package/dist/commonjs/funcs/aaveV3Rate.js +134 -0
- package/dist/commonjs/funcs/aaveV3Rate.js.map +1 -0
- package/dist/commonjs/funcs/skyBuy.d.ts +6 -2
- package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyBuy.js +6 -2
- package/dist/commonjs/funcs/skyBuy.js.map +1 -1
- package/dist/commonjs/funcs/skySell.d.ts +6 -2
- package/dist/commonjs/funcs/skySell.d.ts.map +1 -1
- package/dist/commonjs/funcs/skySell.js +6 -2
- package/dist/commonjs/funcs/skySell.js.map +1 -1
- 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/aaveV3Rate.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/aaveV3Rate.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/aaveV3Rate.js +77 -0
- package/dist/commonjs/mcp-server/tools/aaveV3Rate.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/skyBuy.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyBuy.js +6 -2
- package/dist/commonjs/mcp-server/tools/skyBuy.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/skySell.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skySell.js +6 -2
- package/dist/commonjs/mcp-server/tools/skySell.js.map +1 -1
- package/dist/commonjs/models/components/aaverateresponse.d.ts +57 -0
- package/dist/commonjs/models/components/aaverateresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/aaverateresponse.js +98 -0
- package/dist/commonjs/models/components/aaverateresponse.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/aaverate.d.ts +244 -0
- package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -0
- package/dist/commonjs/models/operations/aaverate.js +163 -0
- package/dist/commonjs/models/operations/aaverate.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 +20 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +23 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/commonjs/sdk/sky.d.ts +12 -4
- package/dist/commonjs/sdk/sky.d.ts.map +1 -1
- package/dist/commonjs/sdk/sky.js +12 -4
- package/dist/commonjs/sdk/sky.js.map +1 -1
- package/dist/esm/funcs/aaveV3Rate.d.ts +31 -0
- package/dist/esm/funcs/aaveV3Rate.d.ts.map +1 -0
- package/dist/esm/funcs/aaveV3Rate.js +98 -0
- package/dist/esm/funcs/aaveV3Rate.js.map +1 -0
- package/dist/esm/funcs/skyBuy.d.ts +6 -2
- package/dist/esm/funcs/skyBuy.d.ts.map +1 -1
- package/dist/esm/funcs/skyBuy.js +6 -2
- package/dist/esm/funcs/skyBuy.js.map +1 -1
- package/dist/esm/funcs/skySell.d.ts +6 -2
- package/dist/esm/funcs/skySell.d.ts.map +1 -1
- package/dist/esm/funcs/skySell.js +6 -2
- package/dist/esm/funcs/skySell.js.map +1 -1
- 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/aaveV3Rate.d.ts +8 -0
- package/dist/esm/mcp-server/tools/aaveV3Rate.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/aaveV3Rate.js +41 -0
- package/dist/esm/mcp-server/tools/aaveV3Rate.js.map +1 -0
- package/dist/esm/mcp-server/tools/skyBuy.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skyBuy.js +6 -2
- package/dist/esm/mcp-server/tools/skyBuy.js.map +1 -1
- package/dist/esm/mcp-server/tools/skySell.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skySell.js +6 -2
- package/dist/esm/mcp-server/tools/skySell.js.map +1 -1
- package/dist/esm/models/components/aaverateresponse.d.ts +57 -0
- package/dist/esm/models/components/aaverateresponse.d.ts.map +1 -0
- package/dist/esm/models/components/aaverateresponse.js +60 -0
- package/dist/esm/models/components/aaverateresponse.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/aaverate.d.ts +244 -0
- package/dist/esm/models/operations/aaverate.d.ts.map +1 -0
- package/dist/esm/models/operations/aaverate.js +125 -0
- package/dist/esm/models/operations/aaverate.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 +20 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +23 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/dist/esm/sdk/sky.d.ts +12 -4
- package/dist/esm/sdk/sky.d.ts.map +1 -1
- package/dist/esm/sdk/sky.js +12 -4
- package/dist/esm/sdk/sky.js.map +1 -1
- package/docs/sdks/aavev3/README.md +93 -0
- package/docs/sdks/sky/README.md +12 -4
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3Rate.ts +182 -0
- package/src/funcs/skyBuy.ts +6 -2
- package/src/funcs/skySell.ts +6 -2
- 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/aaveV3Rate.ts +50 -0
- package/src/mcp-server/tools/skyBuy.ts +6 -2
- package/src/mcp-server/tools/skySell.ts +6 -2
- package/src/models/components/aaverateresponse.ts +123 -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/aaverate.ts +199 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/aavev3.ts +31 -0
- package/src/sdk/sky.ts +12 -4
- 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.22",
|
|
34189
34189
|
genVersion: "2.598.22",
|
|
34190
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
34190
|
+
userAgent: "speakeasy-sdk/typescript 0.0.22 2.598.22 0.0.1 @compass-labs/api-sdk"
|
|
34191
34191
|
};
|
|
34192
34192
|
});
|
|
34193
34193
|
|
|
@@ -36029,6 +36029,51 @@ var init_aaveliquiditychangeresponse = __esm(() => {
|
|
|
36029
36029
|
})(AaveLiquidityChangeResponse$ ||= {});
|
|
36030
36030
|
});
|
|
36031
36031
|
|
|
36032
|
+
// src/models/components/aaverateresponse.ts
|
|
36033
|
+
var AaveRateResponse$inboundSchema, AaveRateResponse$outboundSchema, AaveRateResponse$;
|
|
36034
|
+
var init_aaverateresponse = __esm(() => {
|
|
36035
|
+
init_lib();
|
|
36036
|
+
init_primitives();
|
|
36037
|
+
AaveRateResponse$inboundSchema = objectType({
|
|
36038
|
+
supply_apy_variable_rate: stringType(),
|
|
36039
|
+
supply_apr_variable_rate: stringType(),
|
|
36040
|
+
borrow_apy_variable_rate: stringType(),
|
|
36041
|
+
borrow_apr_variable_rate: stringType(),
|
|
36042
|
+
borrow_apy_fixed_rate: stringType(),
|
|
36043
|
+
borrow_apr_fixed_rate: stringType()
|
|
36044
|
+
}).transform((v2) => {
|
|
36045
|
+
return remap(v2, {
|
|
36046
|
+
supply_apy_variable_rate: "supplyApyVariableRate",
|
|
36047
|
+
supply_apr_variable_rate: "supplyAprVariableRate",
|
|
36048
|
+
borrow_apy_variable_rate: "borrowApyVariableRate",
|
|
36049
|
+
borrow_apr_variable_rate: "borrowAprVariableRate",
|
|
36050
|
+
borrow_apy_fixed_rate: "borrowApyFixedRate",
|
|
36051
|
+
borrow_apr_fixed_rate: "borrowAprFixedRate"
|
|
36052
|
+
});
|
|
36053
|
+
});
|
|
36054
|
+
AaveRateResponse$outboundSchema = objectType({
|
|
36055
|
+
supplyApyVariableRate: stringType(),
|
|
36056
|
+
supplyAprVariableRate: stringType(),
|
|
36057
|
+
borrowApyVariableRate: stringType(),
|
|
36058
|
+
borrowAprVariableRate: stringType(),
|
|
36059
|
+
borrowApyFixedRate: stringType(),
|
|
36060
|
+
borrowAprFixedRate: stringType()
|
|
36061
|
+
}).transform((v2) => {
|
|
36062
|
+
return remap(v2, {
|
|
36063
|
+
supplyApyVariableRate: "supply_apy_variable_rate",
|
|
36064
|
+
supplyAprVariableRate: "supply_apr_variable_rate",
|
|
36065
|
+
borrowApyVariableRate: "borrow_apy_variable_rate",
|
|
36066
|
+
borrowAprVariableRate: "borrow_apr_variable_rate",
|
|
36067
|
+
borrowApyFixedRate: "borrow_apy_fixed_rate",
|
|
36068
|
+
borrowAprFixedRate: "borrow_apr_fixed_rate"
|
|
36069
|
+
});
|
|
36070
|
+
});
|
|
36071
|
+
((AaveRateResponse$) => {
|
|
36072
|
+
AaveRateResponse$.inboundSchema = AaveRateResponse$inboundSchema;
|
|
36073
|
+
AaveRateResponse$.outboundSchema = AaveRateResponse$outboundSchema;
|
|
36074
|
+
})(AaveRateResponse$ ||= {});
|
|
36075
|
+
});
|
|
36076
|
+
|
|
36032
36077
|
// src/models/components/aaverepayparams.ts
|
|
36033
36078
|
var AaveRepayParamsAmount$inboundSchema, AaveRepayParamsAmount$outboundSchema, AaveRepayParamsAmount$, AaveRepayParams$inboundSchema, AaveRepayParams$outboundSchema, AaveRepayParams$;
|
|
36034
36079
|
var init_aaverepayparams = __esm(() => {
|
|
@@ -36370,152 +36415,6 @@ var init_aavewithdrawrequest = __esm(() => {
|
|
|
36370
36415
|
})(AaveWithdrawRequest$ ||= {});
|
|
36371
36416
|
});
|
|
36372
36417
|
|
|
36373
|
-
// src/models/components/aerodromeaddliquidityethparams.ts
|
|
36374
|
-
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$;
|
|
36375
|
-
var init_aerodromeaddliquidityethparams = __esm(() => {
|
|
36376
|
-
init_lib();
|
|
36377
|
-
init_primitives();
|
|
36378
|
-
init_tokenenum();
|
|
36379
|
-
AmountTokenDesired$inboundSchema = unionType([numberType(), stringType()]);
|
|
36380
|
-
AmountTokenDesired$outboundSchema = unionType([numberType(), stringType()]);
|
|
36381
|
-
((AmountTokenDesired$) => {
|
|
36382
|
-
AmountTokenDesired$.inboundSchema = AmountTokenDesired$inboundSchema;
|
|
36383
|
-
AmountTokenDesired$.outboundSchema = AmountTokenDesired$outboundSchema;
|
|
36384
|
-
})(AmountTokenDesired$ ||= {});
|
|
36385
|
-
AmountEthDesired$inboundSchema = unionType([numberType(), stringType()]);
|
|
36386
|
-
AmountEthDesired$outboundSchema = unionType([numberType(), stringType()]);
|
|
36387
|
-
((AmountEthDesired$) => {
|
|
36388
|
-
AmountEthDesired$.inboundSchema = AmountEthDesired$inboundSchema;
|
|
36389
|
-
AmountEthDesired$.outboundSchema = AmountEthDesired$outboundSchema;
|
|
36390
|
-
})(AmountEthDesired$ ||= {});
|
|
36391
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36392
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36393
|
-
((AerodromeAddLiquidityEthParamsAmountTokenMin$) => {
|
|
36394
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin$.inboundSchema = AerodromeAddLiquidityEthParamsAmountTokenMin$inboundSchema;
|
|
36395
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin$.outboundSchema = AerodromeAddLiquidityEthParamsAmountTokenMin$outboundSchema;
|
|
36396
|
-
})(AerodromeAddLiquidityEthParamsAmountTokenMin$ ||= {});
|
|
36397
|
-
AerodromeAddLiquidityEthParamsAmountEthMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36398
|
-
AerodromeAddLiquidityEthParamsAmountEthMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36399
|
-
((AerodromeAddLiquidityEthParamsAmountEthMin$) => {
|
|
36400
|
-
AerodromeAddLiquidityEthParamsAmountEthMin$.inboundSchema = AerodromeAddLiquidityEthParamsAmountEthMin$inboundSchema;
|
|
36401
|
-
AerodromeAddLiquidityEthParamsAmountEthMin$.outboundSchema = AerodromeAddLiquidityEthParamsAmountEthMin$outboundSchema;
|
|
36402
|
-
})(AerodromeAddLiquidityEthParamsAmountEthMin$ ||= {});
|
|
36403
|
-
AerodromeAddLiquidityEthParams$inboundSchema = objectType({
|
|
36404
|
-
token: TokenEnum$inboundSchema,
|
|
36405
|
-
stable: booleanType(),
|
|
36406
|
-
amount_token_desired: unionType([numberType(), stringType()]),
|
|
36407
|
-
amount_eth_desired: unionType([numberType(), stringType()]),
|
|
36408
|
-
amount_token_min: unionType([numberType(), stringType()]),
|
|
36409
|
-
amount_eth_min: unionType([numberType(), stringType()]),
|
|
36410
|
-
to: nullableType(stringType()).optional(),
|
|
36411
|
-
deadline: nullableType(numberType().int())
|
|
36412
|
-
}).transform((v2) => {
|
|
36413
|
-
return remap(v2, {
|
|
36414
|
-
amount_token_desired: "amountTokenDesired",
|
|
36415
|
-
amount_eth_desired: "amountEthDesired",
|
|
36416
|
-
amount_token_min: "amountTokenMin",
|
|
36417
|
-
amount_eth_min: "amountEthMin"
|
|
36418
|
-
});
|
|
36419
|
-
});
|
|
36420
|
-
AerodromeAddLiquidityEthParams$outboundSchema = objectType({
|
|
36421
|
-
token: TokenEnum$outboundSchema,
|
|
36422
|
-
stable: booleanType(),
|
|
36423
|
-
amountTokenDesired: unionType([numberType(), stringType()]),
|
|
36424
|
-
amountEthDesired: unionType([numberType(), stringType()]),
|
|
36425
|
-
amountTokenMin: unionType([numberType(), stringType()]),
|
|
36426
|
-
amountEthMin: unionType([numberType(), stringType()]),
|
|
36427
|
-
to: nullableType(stringType()).optional(),
|
|
36428
|
-
deadline: nullableType(numberType().int())
|
|
36429
|
-
}).transform((v2) => {
|
|
36430
|
-
return remap(v2, {
|
|
36431
|
-
amountTokenDesired: "amount_token_desired",
|
|
36432
|
-
amountEthDesired: "amount_eth_desired",
|
|
36433
|
-
amountTokenMin: "amount_token_min",
|
|
36434
|
-
amountEthMin: "amount_eth_min"
|
|
36435
|
-
});
|
|
36436
|
-
});
|
|
36437
|
-
((AerodromeAddLiquidityEthParams$) => {
|
|
36438
|
-
AerodromeAddLiquidityEthParams$.inboundSchema = AerodromeAddLiquidityEthParams$inboundSchema;
|
|
36439
|
-
AerodromeAddLiquidityEthParams$.outboundSchema = AerodromeAddLiquidityEthParams$outboundSchema;
|
|
36440
|
-
})(AerodromeAddLiquidityEthParams$ ||= {});
|
|
36441
|
-
});
|
|
36442
|
-
|
|
36443
|
-
// src/models/components/aerodromeaddliquidityparams.ts
|
|
36444
|
-
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$;
|
|
36445
|
-
var init_aerodromeaddliquidityparams = __esm(() => {
|
|
36446
|
-
init_lib();
|
|
36447
|
-
init_primitives();
|
|
36448
|
-
init_tokenenum();
|
|
36449
|
-
AmountADesired$inboundSchema = unionType([numberType(), stringType()]);
|
|
36450
|
-
AmountADesired$outboundSchema = unionType([numberType(), stringType()]);
|
|
36451
|
-
((AmountADesired$) => {
|
|
36452
|
-
AmountADesired$.inboundSchema = AmountADesired$inboundSchema;
|
|
36453
|
-
AmountADesired$.outboundSchema = AmountADesired$outboundSchema;
|
|
36454
|
-
})(AmountADesired$ ||= {});
|
|
36455
|
-
AmountBDesired$inboundSchema = unionType([numberType(), stringType()]);
|
|
36456
|
-
AmountBDesired$outboundSchema = unionType([numberType(), stringType()]);
|
|
36457
|
-
((AmountBDesired$) => {
|
|
36458
|
-
AmountBDesired$.inboundSchema = AmountBDesired$inboundSchema;
|
|
36459
|
-
AmountBDesired$.outboundSchema = AmountBDesired$outboundSchema;
|
|
36460
|
-
})(AmountBDesired$ ||= {});
|
|
36461
|
-
AerodromeAddLiquidityParamsAmountAMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36462
|
-
AerodromeAddLiquidityParamsAmountAMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36463
|
-
((AerodromeAddLiquidityParamsAmountAMin$) => {
|
|
36464
|
-
AerodromeAddLiquidityParamsAmountAMin$.inboundSchema = AerodromeAddLiquidityParamsAmountAMin$inboundSchema;
|
|
36465
|
-
AerodromeAddLiquidityParamsAmountAMin$.outboundSchema = AerodromeAddLiquidityParamsAmountAMin$outboundSchema;
|
|
36466
|
-
})(AerodromeAddLiquidityParamsAmountAMin$ ||= {});
|
|
36467
|
-
AerodromeAddLiquidityParamsAmountBMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36468
|
-
AerodromeAddLiquidityParamsAmountBMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36469
|
-
((AerodromeAddLiquidityParamsAmountBMin$) => {
|
|
36470
|
-
AerodromeAddLiquidityParamsAmountBMin$.inboundSchema = AerodromeAddLiquidityParamsAmountBMin$inboundSchema;
|
|
36471
|
-
AerodromeAddLiquidityParamsAmountBMin$.outboundSchema = AerodromeAddLiquidityParamsAmountBMin$outboundSchema;
|
|
36472
|
-
})(AerodromeAddLiquidityParamsAmountBMin$ ||= {});
|
|
36473
|
-
AerodromeAddLiquidityParams$inboundSchema = objectType({
|
|
36474
|
-
token_a: TokenEnum$inboundSchema,
|
|
36475
|
-
token_b: TokenEnum$inboundSchema,
|
|
36476
|
-
stable: booleanType(),
|
|
36477
|
-
amount_a_desired: unionType([numberType(), stringType()]),
|
|
36478
|
-
amount_b_desired: unionType([numberType(), stringType()]),
|
|
36479
|
-
amount_a_min: unionType([numberType(), stringType()]),
|
|
36480
|
-
amount_b_min: unionType([numberType(), stringType()]),
|
|
36481
|
-
to: nullableType(stringType()).optional(),
|
|
36482
|
-
deadline: nullableType(numberType().int())
|
|
36483
|
-
}).transform((v2) => {
|
|
36484
|
-
return remap(v2, {
|
|
36485
|
-
token_a: "tokenA",
|
|
36486
|
-
token_b: "tokenB",
|
|
36487
|
-
amount_a_desired: "amountADesired",
|
|
36488
|
-
amount_b_desired: "amountBDesired",
|
|
36489
|
-
amount_a_min: "amountAMin",
|
|
36490
|
-
amount_b_min: "amountBMin"
|
|
36491
|
-
});
|
|
36492
|
-
});
|
|
36493
|
-
AerodromeAddLiquidityParams$outboundSchema = objectType({
|
|
36494
|
-
tokenA: TokenEnum$outboundSchema,
|
|
36495
|
-
tokenB: TokenEnum$outboundSchema,
|
|
36496
|
-
stable: booleanType(),
|
|
36497
|
-
amountADesired: unionType([numberType(), stringType()]),
|
|
36498
|
-
amountBDesired: unionType([numberType(), stringType()]),
|
|
36499
|
-
amountAMin: unionType([numberType(), stringType()]),
|
|
36500
|
-
amountBMin: unionType([numberType(), stringType()]),
|
|
36501
|
-
to: nullableType(stringType()).optional(),
|
|
36502
|
-
deadline: nullableType(numberType().int())
|
|
36503
|
-
}).transform((v2) => {
|
|
36504
|
-
return remap(v2, {
|
|
36505
|
-
tokenA: "token_a",
|
|
36506
|
-
tokenB: "token_b",
|
|
36507
|
-
amountADesired: "amount_a_desired",
|
|
36508
|
-
amountBDesired: "amount_b_desired",
|
|
36509
|
-
amountAMin: "amount_a_min",
|
|
36510
|
-
amountBMin: "amount_b_min"
|
|
36511
|
-
});
|
|
36512
|
-
});
|
|
36513
|
-
((AerodromeAddLiquidityParams$) => {
|
|
36514
|
-
AerodromeAddLiquidityParams$.inboundSchema = AerodromeAddLiquidityParams$inboundSchema;
|
|
36515
|
-
AerodromeAddLiquidityParams$.outboundSchema = AerodromeAddLiquidityParams$outboundSchema;
|
|
36516
|
-
})(AerodromeAddLiquidityParams$ ||= {});
|
|
36517
|
-
});
|
|
36518
|
-
|
|
36519
36418
|
// src/models/components/aerodromeposition.ts
|
|
36520
36419
|
var AerodromePosition$inboundSchema, AerodromePosition$outboundSchema, AerodromePosition$;
|
|
36521
36420
|
var init_aerodromeposition = __esm(() => {
|
|
@@ -36597,138 +36496,6 @@ var init_aerodromelppositionsresponse = __esm(() => {
|
|
|
36597
36496
|
})(AerodromeLPPositionsResponse$ ||= {});
|
|
36598
36497
|
});
|
|
36599
36498
|
|
|
36600
|
-
// src/models/components/aerodromeremoveliquidityethrequest.ts
|
|
36601
|
-
var AerodromeRemoveLiquidityEthRequestLiquidity$inboundSchema, AerodromeRemoveLiquidityEthRequestLiquidity$outboundSchema, AerodromeRemoveLiquidityEthRequestLiquidity$, AerodromeRemoveLiquidityEthRequestAmountTokenMin$inboundSchema, AerodromeRemoveLiquidityEthRequestAmountTokenMin$outboundSchema, AerodromeRemoveLiquidityEthRequestAmountTokenMin$, AerodromeRemoveLiquidityEthRequestAmountEthMin$inboundSchema, AerodromeRemoveLiquidityEthRequestAmountEthMin$outboundSchema, AerodromeRemoveLiquidityEthRequestAmountEthMin$, AerodromeRemoveLiquidityEthRequest$inboundSchema, AerodromeRemoveLiquidityEthRequest$outboundSchema, AerodromeRemoveLiquidityEthRequest$;
|
|
36602
|
-
var init_aerodromeremoveliquidityethrequest = __esm(() => {
|
|
36603
|
-
init_lib();
|
|
36604
|
-
init_primitives();
|
|
36605
|
-
init_chain();
|
|
36606
|
-
init_tokenenum();
|
|
36607
|
-
AerodromeRemoveLiquidityEthRequestLiquidity$inboundSchema = unionType([numberType(), stringType()]);
|
|
36608
|
-
AerodromeRemoveLiquidityEthRequestLiquidity$outboundSchema = unionType([numberType(), stringType()]);
|
|
36609
|
-
((AerodromeRemoveLiquidityEthRequestLiquidity$) => {
|
|
36610
|
-
AerodromeRemoveLiquidityEthRequestLiquidity$.inboundSchema = AerodromeRemoveLiquidityEthRequestLiquidity$inboundSchema;
|
|
36611
|
-
AerodromeRemoveLiquidityEthRequestLiquidity$.outboundSchema = AerodromeRemoveLiquidityEthRequestLiquidity$outboundSchema;
|
|
36612
|
-
})(AerodromeRemoveLiquidityEthRequestLiquidity$ ||= {});
|
|
36613
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36614
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36615
|
-
((AerodromeRemoveLiquidityEthRequestAmountTokenMin$) => {
|
|
36616
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin$.inboundSchema = AerodromeRemoveLiquidityEthRequestAmountTokenMin$inboundSchema;
|
|
36617
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin$.outboundSchema = AerodromeRemoveLiquidityEthRequestAmountTokenMin$outboundSchema;
|
|
36618
|
-
})(AerodromeRemoveLiquidityEthRequestAmountTokenMin$ ||= {});
|
|
36619
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36620
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36621
|
-
((AerodromeRemoveLiquidityEthRequestAmountEthMin$) => {
|
|
36622
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin$.inboundSchema = AerodromeRemoveLiquidityEthRequestAmountEthMin$inboundSchema;
|
|
36623
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin$.outboundSchema = AerodromeRemoveLiquidityEthRequestAmountEthMin$outboundSchema;
|
|
36624
|
-
})(AerodromeRemoveLiquidityEthRequestAmountEthMin$ ||= {});
|
|
36625
|
-
AerodromeRemoveLiquidityEthRequest$inboundSchema = objectType({
|
|
36626
|
-
chain: Chain$inboundSchema,
|
|
36627
|
-
sender: stringType(),
|
|
36628
|
-
token: TokenEnum$inboundSchema,
|
|
36629
|
-
stable: booleanType(),
|
|
36630
|
-
liquidity: unionType([numberType(), stringType()]),
|
|
36631
|
-
amount_token_min: unionType([numberType(), stringType()]),
|
|
36632
|
-
amount_eth_min: unionType([numberType(), stringType()]),
|
|
36633
|
-
to: nullableType(stringType()).optional(),
|
|
36634
|
-
deadline: nullableType(numberType().int())
|
|
36635
|
-
}).transform((v2) => {
|
|
36636
|
-
return remap(v2, {
|
|
36637
|
-
amount_token_min: "amountTokenMin",
|
|
36638
|
-
amount_eth_min: "amountEthMin"
|
|
36639
|
-
});
|
|
36640
|
-
});
|
|
36641
|
-
AerodromeRemoveLiquidityEthRequest$outboundSchema = objectType({
|
|
36642
|
-
chain: Chain$outboundSchema,
|
|
36643
|
-
sender: stringType(),
|
|
36644
|
-
token: TokenEnum$outboundSchema,
|
|
36645
|
-
stable: booleanType(),
|
|
36646
|
-
liquidity: unionType([numberType(), stringType()]),
|
|
36647
|
-
amountTokenMin: unionType([numberType(), stringType()]),
|
|
36648
|
-
amountEthMin: unionType([numberType(), stringType()]),
|
|
36649
|
-
to: nullableType(stringType()).optional(),
|
|
36650
|
-
deadline: nullableType(numberType().int())
|
|
36651
|
-
}).transform((v2) => {
|
|
36652
|
-
return remap(v2, {
|
|
36653
|
-
amountTokenMin: "amount_token_min",
|
|
36654
|
-
amountEthMin: "amount_eth_min"
|
|
36655
|
-
});
|
|
36656
|
-
});
|
|
36657
|
-
((AerodromeRemoveLiquidityEthRequest$) => {
|
|
36658
|
-
AerodromeRemoveLiquidityEthRequest$.inboundSchema = AerodromeRemoveLiquidityEthRequest$inboundSchema;
|
|
36659
|
-
AerodromeRemoveLiquidityEthRequest$.outboundSchema = AerodromeRemoveLiquidityEthRequest$outboundSchema;
|
|
36660
|
-
})(AerodromeRemoveLiquidityEthRequest$ ||= {});
|
|
36661
|
-
});
|
|
36662
|
-
|
|
36663
|
-
// src/models/components/aerodromeremoveliquidityrequest.ts
|
|
36664
|
-
var AerodromeRemoveLiquidityRequestLiquidity$inboundSchema, AerodromeRemoveLiquidityRequestLiquidity$outboundSchema, AerodromeRemoveLiquidityRequestLiquidity$, AerodromeRemoveLiquidityRequestAmountAMin$inboundSchema, AerodromeRemoveLiquidityRequestAmountAMin$outboundSchema, AerodromeRemoveLiquidityRequestAmountAMin$, AerodromeRemoveLiquidityRequestAmountBMin$inboundSchema, AerodromeRemoveLiquidityRequestAmountBMin$outboundSchema, AerodromeRemoveLiquidityRequestAmountBMin$, AerodromeRemoveLiquidityRequest$inboundSchema, AerodromeRemoveLiquidityRequest$outboundSchema, AerodromeRemoveLiquidityRequest$;
|
|
36665
|
-
var init_aerodromeremoveliquidityrequest = __esm(() => {
|
|
36666
|
-
init_lib();
|
|
36667
|
-
init_primitives();
|
|
36668
|
-
init_chain();
|
|
36669
|
-
init_tokenenum();
|
|
36670
|
-
AerodromeRemoveLiquidityRequestLiquidity$inboundSchema = unionType([numberType(), stringType()]);
|
|
36671
|
-
AerodromeRemoveLiquidityRequestLiquidity$outboundSchema = unionType([numberType(), stringType()]);
|
|
36672
|
-
((AerodromeRemoveLiquidityRequestLiquidity$) => {
|
|
36673
|
-
AerodromeRemoveLiquidityRequestLiquidity$.inboundSchema = AerodromeRemoveLiquidityRequestLiquidity$inboundSchema;
|
|
36674
|
-
AerodromeRemoveLiquidityRequestLiquidity$.outboundSchema = AerodromeRemoveLiquidityRequestLiquidity$outboundSchema;
|
|
36675
|
-
})(AerodromeRemoveLiquidityRequestLiquidity$ ||= {});
|
|
36676
|
-
AerodromeRemoveLiquidityRequestAmountAMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36677
|
-
AerodromeRemoveLiquidityRequestAmountAMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36678
|
-
((AerodromeRemoveLiquidityRequestAmountAMin$) => {
|
|
36679
|
-
AerodromeRemoveLiquidityRequestAmountAMin$.inboundSchema = AerodromeRemoveLiquidityRequestAmountAMin$inboundSchema;
|
|
36680
|
-
AerodromeRemoveLiquidityRequestAmountAMin$.outboundSchema = AerodromeRemoveLiquidityRequestAmountAMin$outboundSchema;
|
|
36681
|
-
})(AerodromeRemoveLiquidityRequestAmountAMin$ ||= {});
|
|
36682
|
-
AerodromeRemoveLiquidityRequestAmountBMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
36683
|
-
AerodromeRemoveLiquidityRequestAmountBMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
36684
|
-
((AerodromeRemoveLiquidityRequestAmountBMin$) => {
|
|
36685
|
-
AerodromeRemoveLiquidityRequestAmountBMin$.inboundSchema = AerodromeRemoveLiquidityRequestAmountBMin$inboundSchema;
|
|
36686
|
-
AerodromeRemoveLiquidityRequestAmountBMin$.outboundSchema = AerodromeRemoveLiquidityRequestAmountBMin$outboundSchema;
|
|
36687
|
-
})(AerodromeRemoveLiquidityRequestAmountBMin$ ||= {});
|
|
36688
|
-
AerodromeRemoveLiquidityRequest$inboundSchema = objectType({
|
|
36689
|
-
chain: Chain$inboundSchema,
|
|
36690
|
-
sender: stringType(),
|
|
36691
|
-
token_a: TokenEnum$inboundSchema,
|
|
36692
|
-
token_b: TokenEnum$inboundSchema,
|
|
36693
|
-
stable: booleanType(),
|
|
36694
|
-
liquidity: unionType([numberType(), stringType()]),
|
|
36695
|
-
amount_a_min: unionType([numberType(), stringType()]),
|
|
36696
|
-
amount_b_min: unionType([numberType(), stringType()]),
|
|
36697
|
-
to: nullableType(stringType()).optional(),
|
|
36698
|
-
deadline: nullableType(numberType().int())
|
|
36699
|
-
}).transform((v2) => {
|
|
36700
|
-
return remap(v2, {
|
|
36701
|
-
token_a: "tokenA",
|
|
36702
|
-
token_b: "tokenB",
|
|
36703
|
-
amount_a_min: "amountAMin",
|
|
36704
|
-
amount_b_min: "amountBMin"
|
|
36705
|
-
});
|
|
36706
|
-
});
|
|
36707
|
-
AerodromeRemoveLiquidityRequest$outboundSchema = objectType({
|
|
36708
|
-
chain: Chain$outboundSchema,
|
|
36709
|
-
sender: stringType(),
|
|
36710
|
-
tokenA: TokenEnum$outboundSchema,
|
|
36711
|
-
tokenB: TokenEnum$outboundSchema,
|
|
36712
|
-
stable: booleanType(),
|
|
36713
|
-
liquidity: unionType([numberType(), stringType()]),
|
|
36714
|
-
amountAMin: unionType([numberType(), stringType()]),
|
|
36715
|
-
amountBMin: unionType([numberType(), stringType()]),
|
|
36716
|
-
to: nullableType(stringType()).optional(),
|
|
36717
|
-
deadline: nullableType(numberType().int())
|
|
36718
|
-
}).transform((v2) => {
|
|
36719
|
-
return remap(v2, {
|
|
36720
|
-
tokenA: "token_a",
|
|
36721
|
-
tokenB: "token_b",
|
|
36722
|
-
amountAMin: "amount_a_min",
|
|
36723
|
-
amountBMin: "amount_b_min"
|
|
36724
|
-
});
|
|
36725
|
-
});
|
|
36726
|
-
((AerodromeRemoveLiquidityRequest$) => {
|
|
36727
|
-
AerodromeRemoveLiquidityRequest$.inboundSchema = AerodromeRemoveLiquidityRequest$inboundSchema;
|
|
36728
|
-
AerodromeRemoveLiquidityRequest$.outboundSchema = AerodromeRemoveLiquidityRequest$outboundSchema;
|
|
36729
|
-
})(AerodromeRemoveLiquidityRequest$ ||= {});
|
|
36730
|
-
});
|
|
36731
|
-
|
|
36732
36499
|
// src/models/components/aerodromeslipstreambuyexactlyparams.ts
|
|
36733
36500
|
var AerodromeSlipstreamBuyExactlyParamsAmountOut$inboundSchema, AerodromeSlipstreamBuyExactlyParamsAmountOut$outboundSchema, AerodromeSlipstreamBuyExactlyParamsAmountOut$, AerodromeSlipstreamBuyExactlyParamsAmountInMaximum$inboundSchema, AerodromeSlipstreamBuyExactlyParamsAmountInMaximum$outboundSchema, AerodromeSlipstreamBuyExactlyParamsAmountInMaximum$, AerodromeSlipstreamBuyExactlyParams$inboundSchema, AerodromeSlipstreamBuyExactlyParams$outboundSchema, AerodromeSlipstreamBuyExactlyParams$;
|
|
36734
36501
|
var init_aerodromeslipstreambuyexactlyparams = __esm(() => {
|
|
@@ -37364,160 +37131,6 @@ var init_aerodromeslipstreamwithdrawliquidityprovisionrequest = __esm(() => {
|
|
|
37364
37131
|
})(AerodromeSlipstreamWithdrawLiquidityProvisionRequest$ ||= {});
|
|
37365
37132
|
});
|
|
37366
37133
|
|
|
37367
|
-
// src/models/components/aerodromeswapethfortokenparams.ts
|
|
37368
|
-
var AerodromeSwapEthForTokenParamsAmountIn$inboundSchema, AerodromeSwapEthForTokenParamsAmountIn$outboundSchema, AerodromeSwapEthForTokenParamsAmountIn$, AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema, AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema, AerodromeSwapEthForTokenParamsAmountOutMin$, AerodromeSwapEthForTokenParams$inboundSchema, AerodromeSwapEthForTokenParams$outboundSchema, AerodromeSwapEthForTokenParams$;
|
|
37369
|
-
var init_aerodromeswapethfortokenparams = __esm(() => {
|
|
37370
|
-
init_lib();
|
|
37371
|
-
init_primitives();
|
|
37372
|
-
init_tokenenum();
|
|
37373
|
-
AerodromeSwapEthForTokenParamsAmountIn$inboundSchema = unionType([numberType(), stringType()]);
|
|
37374
|
-
AerodromeSwapEthForTokenParamsAmountIn$outboundSchema = unionType([numberType(), stringType()]);
|
|
37375
|
-
((AerodromeSwapEthForTokenParamsAmountIn$) => {
|
|
37376
|
-
AerodromeSwapEthForTokenParamsAmountIn$.inboundSchema = AerodromeSwapEthForTokenParamsAmountIn$inboundSchema;
|
|
37377
|
-
AerodromeSwapEthForTokenParamsAmountIn$.outboundSchema = AerodromeSwapEthForTokenParamsAmountIn$outboundSchema;
|
|
37378
|
-
})(AerodromeSwapEthForTokenParamsAmountIn$ ||= {});
|
|
37379
|
-
AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
37380
|
-
AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
37381
|
-
((AerodromeSwapEthForTokenParamsAmountOutMin$) => {
|
|
37382
|
-
AerodromeSwapEthForTokenParamsAmountOutMin$.inboundSchema = AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema;
|
|
37383
|
-
AerodromeSwapEthForTokenParamsAmountOutMin$.outboundSchema = AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema;
|
|
37384
|
-
})(AerodromeSwapEthForTokenParamsAmountOutMin$ ||= {});
|
|
37385
|
-
AerodromeSwapEthForTokenParams$inboundSchema = objectType({
|
|
37386
|
-
token_out: TokenEnum$inboundSchema,
|
|
37387
|
-
amount_in: unionType([numberType(), stringType()]),
|
|
37388
|
-
amount_out_min: unionType([numberType(), stringType()]),
|
|
37389
|
-
stable: booleanType(),
|
|
37390
|
-
to: nullableType(stringType()).optional()
|
|
37391
|
-
}).transform((v2) => {
|
|
37392
|
-
return remap(v2, {
|
|
37393
|
-
token_out: "tokenOut",
|
|
37394
|
-
amount_in: "amountIn",
|
|
37395
|
-
amount_out_min: "amountOutMin"
|
|
37396
|
-
});
|
|
37397
|
-
});
|
|
37398
|
-
AerodromeSwapEthForTokenParams$outboundSchema = objectType({
|
|
37399
|
-
tokenOut: TokenEnum$outboundSchema,
|
|
37400
|
-
amountIn: unionType([numberType(), stringType()]),
|
|
37401
|
-
amountOutMin: unionType([numberType(), stringType()]),
|
|
37402
|
-
stable: booleanType(),
|
|
37403
|
-
to: nullableType(stringType()).optional()
|
|
37404
|
-
}).transform((v2) => {
|
|
37405
|
-
return remap(v2, {
|
|
37406
|
-
tokenOut: "token_out",
|
|
37407
|
-
amountIn: "amount_in",
|
|
37408
|
-
amountOutMin: "amount_out_min"
|
|
37409
|
-
});
|
|
37410
|
-
});
|
|
37411
|
-
((AerodromeSwapEthForTokenParams$) => {
|
|
37412
|
-
AerodromeSwapEthForTokenParams$.inboundSchema = AerodromeSwapEthForTokenParams$inboundSchema;
|
|
37413
|
-
AerodromeSwapEthForTokenParams$.outboundSchema = AerodromeSwapEthForTokenParams$outboundSchema;
|
|
37414
|
-
})(AerodromeSwapEthForTokenParams$ ||= {});
|
|
37415
|
-
});
|
|
37416
|
-
|
|
37417
|
-
// src/models/components/aerodromeswaptokenforethparams.ts
|
|
37418
|
-
var AerodromeSwapTokenForEthParamsAmountIn$inboundSchema, AerodromeSwapTokenForEthParamsAmountIn$outboundSchema, AerodromeSwapTokenForEthParamsAmountIn$, AerodromeSwapTokenForEthParamsAmountOutMin$inboundSchema, AerodromeSwapTokenForEthParamsAmountOutMin$outboundSchema, AerodromeSwapTokenForEthParamsAmountOutMin$, AerodromeSwapTokenForEthParams$inboundSchema, AerodromeSwapTokenForEthParams$outboundSchema, AerodromeSwapTokenForEthParams$;
|
|
37419
|
-
var init_aerodromeswaptokenforethparams = __esm(() => {
|
|
37420
|
-
init_lib();
|
|
37421
|
-
init_primitives();
|
|
37422
|
-
init_tokenenum();
|
|
37423
|
-
AerodromeSwapTokenForEthParamsAmountIn$inboundSchema = unionType([numberType(), stringType()]);
|
|
37424
|
-
AerodromeSwapTokenForEthParamsAmountIn$outboundSchema = unionType([numberType(), stringType()]);
|
|
37425
|
-
((AerodromeSwapTokenForEthParamsAmountIn$) => {
|
|
37426
|
-
AerodromeSwapTokenForEthParamsAmountIn$.inboundSchema = AerodromeSwapTokenForEthParamsAmountIn$inboundSchema;
|
|
37427
|
-
AerodromeSwapTokenForEthParamsAmountIn$.outboundSchema = AerodromeSwapTokenForEthParamsAmountIn$outboundSchema;
|
|
37428
|
-
})(AerodromeSwapTokenForEthParamsAmountIn$ ||= {});
|
|
37429
|
-
AerodromeSwapTokenForEthParamsAmountOutMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
37430
|
-
AerodromeSwapTokenForEthParamsAmountOutMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
37431
|
-
((AerodromeSwapTokenForEthParamsAmountOutMin$) => {
|
|
37432
|
-
AerodromeSwapTokenForEthParamsAmountOutMin$.inboundSchema = AerodromeSwapTokenForEthParamsAmountOutMin$inboundSchema;
|
|
37433
|
-
AerodromeSwapTokenForEthParamsAmountOutMin$.outboundSchema = AerodromeSwapTokenForEthParamsAmountOutMin$outboundSchema;
|
|
37434
|
-
})(AerodromeSwapTokenForEthParamsAmountOutMin$ ||= {});
|
|
37435
|
-
AerodromeSwapTokenForEthParams$inboundSchema = objectType({
|
|
37436
|
-
token_in: TokenEnum$inboundSchema,
|
|
37437
|
-
amount_in: unionType([numberType(), stringType()]),
|
|
37438
|
-
amount_out_min: unionType([numberType(), stringType()]),
|
|
37439
|
-
stable: booleanType(),
|
|
37440
|
-
to: nullableType(stringType()).optional()
|
|
37441
|
-
}).transform((v2) => {
|
|
37442
|
-
return remap(v2, {
|
|
37443
|
-
token_in: "tokenIn",
|
|
37444
|
-
amount_in: "amountIn",
|
|
37445
|
-
amount_out_min: "amountOutMin"
|
|
37446
|
-
});
|
|
37447
|
-
});
|
|
37448
|
-
AerodromeSwapTokenForEthParams$outboundSchema = objectType({
|
|
37449
|
-
tokenIn: TokenEnum$outboundSchema,
|
|
37450
|
-
amountIn: unionType([numberType(), stringType()]),
|
|
37451
|
-
amountOutMin: unionType([numberType(), stringType()]),
|
|
37452
|
-
stable: booleanType(),
|
|
37453
|
-
to: nullableType(stringType()).optional()
|
|
37454
|
-
}).transform((v2) => {
|
|
37455
|
-
return remap(v2, {
|
|
37456
|
-
tokenIn: "token_in",
|
|
37457
|
-
amountIn: "amount_in",
|
|
37458
|
-
amountOutMin: "amount_out_min"
|
|
37459
|
-
});
|
|
37460
|
-
});
|
|
37461
|
-
((AerodromeSwapTokenForEthParams$) => {
|
|
37462
|
-
AerodromeSwapTokenForEthParams$.inboundSchema = AerodromeSwapTokenForEthParams$inboundSchema;
|
|
37463
|
-
AerodromeSwapTokenForEthParams$.outboundSchema = AerodromeSwapTokenForEthParams$outboundSchema;
|
|
37464
|
-
})(AerodromeSwapTokenForEthParams$ ||= {});
|
|
37465
|
-
});
|
|
37466
|
-
|
|
37467
|
-
// src/models/components/aerodromeswaptokensparams.ts
|
|
37468
|
-
var AerodromeSwapTokensParamsAmountIn$inboundSchema, AerodromeSwapTokensParamsAmountIn$outboundSchema, AerodromeSwapTokensParamsAmountIn$, AerodromeSwapTokensParamsAmountOutMin$inboundSchema, AerodromeSwapTokensParamsAmountOutMin$outboundSchema, AerodromeSwapTokensParamsAmountOutMin$, AerodromeSwapTokensParams$inboundSchema, AerodromeSwapTokensParams$outboundSchema, AerodromeSwapTokensParams$;
|
|
37469
|
-
var init_aerodromeswaptokensparams = __esm(() => {
|
|
37470
|
-
init_lib();
|
|
37471
|
-
init_primitives();
|
|
37472
|
-
init_tokenenum();
|
|
37473
|
-
AerodromeSwapTokensParamsAmountIn$inboundSchema = unionType([numberType(), stringType()]);
|
|
37474
|
-
AerodromeSwapTokensParamsAmountIn$outboundSchema = unionType([numberType(), stringType()]);
|
|
37475
|
-
((AerodromeSwapTokensParamsAmountIn$) => {
|
|
37476
|
-
AerodromeSwapTokensParamsAmountIn$.inboundSchema = AerodromeSwapTokensParamsAmountIn$inboundSchema;
|
|
37477
|
-
AerodromeSwapTokensParamsAmountIn$.outboundSchema = AerodromeSwapTokensParamsAmountIn$outboundSchema;
|
|
37478
|
-
})(AerodromeSwapTokensParamsAmountIn$ ||= {});
|
|
37479
|
-
AerodromeSwapTokensParamsAmountOutMin$inboundSchema = unionType([numberType(), stringType()]);
|
|
37480
|
-
AerodromeSwapTokensParamsAmountOutMin$outboundSchema = unionType([numberType(), stringType()]);
|
|
37481
|
-
((AerodromeSwapTokensParamsAmountOutMin$) => {
|
|
37482
|
-
AerodromeSwapTokensParamsAmountOutMin$.inboundSchema = AerodromeSwapTokensParamsAmountOutMin$inboundSchema;
|
|
37483
|
-
AerodromeSwapTokensParamsAmountOutMin$.outboundSchema = AerodromeSwapTokensParamsAmountOutMin$outboundSchema;
|
|
37484
|
-
})(AerodromeSwapTokensParamsAmountOutMin$ ||= {});
|
|
37485
|
-
AerodromeSwapTokensParams$inboundSchema = objectType({
|
|
37486
|
-
token_in: TokenEnum$inboundSchema,
|
|
37487
|
-
token_out: TokenEnum$inboundSchema,
|
|
37488
|
-
amount_in: unionType([numberType(), stringType()]),
|
|
37489
|
-
amount_out_min: unionType([numberType(), stringType()]),
|
|
37490
|
-
stable: booleanType(),
|
|
37491
|
-
to: nullableType(stringType()).optional()
|
|
37492
|
-
}).transform((v2) => {
|
|
37493
|
-
return remap(v2, {
|
|
37494
|
-
token_in: "tokenIn",
|
|
37495
|
-
token_out: "tokenOut",
|
|
37496
|
-
amount_in: "amountIn",
|
|
37497
|
-
amount_out_min: "amountOutMin"
|
|
37498
|
-
});
|
|
37499
|
-
});
|
|
37500
|
-
AerodromeSwapTokensParams$outboundSchema = objectType({
|
|
37501
|
-
tokenIn: TokenEnum$outboundSchema,
|
|
37502
|
-
tokenOut: TokenEnum$outboundSchema,
|
|
37503
|
-
amountIn: unionType([numberType(), stringType()]),
|
|
37504
|
-
amountOutMin: unionType([numberType(), stringType()]),
|
|
37505
|
-
stable: booleanType(),
|
|
37506
|
-
to: nullableType(stringType()).optional()
|
|
37507
|
-
}).transform((v2) => {
|
|
37508
|
-
return remap(v2, {
|
|
37509
|
-
tokenIn: "token_in",
|
|
37510
|
-
tokenOut: "token_out",
|
|
37511
|
-
amountIn: "amount_in",
|
|
37512
|
-
amountOutMin: "amount_out_min"
|
|
37513
|
-
});
|
|
37514
|
-
});
|
|
37515
|
-
((AerodromeSwapTokensParams$) => {
|
|
37516
|
-
AerodromeSwapTokensParams$.inboundSchema = AerodromeSwapTokensParams$inboundSchema;
|
|
37517
|
-
AerodromeSwapTokensParams$.outboundSchema = AerodromeSwapTokensParams$outboundSchema;
|
|
37518
|
-
})(AerodromeSwapTokensParams$ ||= {});
|
|
37519
|
-
});
|
|
37520
|
-
|
|
37521
37134
|
// src/models/components/allowanceinforesponse.ts
|
|
37522
37135
|
var AllowanceInfoResponse$inboundSchema, AllowanceInfoResponse$outboundSchema, AllowanceInfoResponse$;
|
|
37523
37136
|
var init_allowanceinforesponse = __esm(() => {
|
|
@@ -38416,13 +38029,6 @@ var init_multicallactiontype = __esm(() => {
|
|
|
38416
38029
|
AaveRepay: "AAVE_REPAY",
|
|
38417
38030
|
AaveSupply: "AAVE_SUPPLY",
|
|
38418
38031
|
AaveWithdraw: "AAVE_WITHDRAW",
|
|
38419
|
-
AerodromeBasicAddLiquidity: "AERODROME_BASIC_ADD_LIQUIDITY",
|
|
38420
|
-
AerodromeBasicAddLiquidityEth: "AERODROME_BASIC_ADD_LIQUIDITY_ETH",
|
|
38421
|
-
AerodromeBasicRemoveLiquidity: "AERODROME_BASIC_REMOVE_LIQUIDITY",
|
|
38422
|
-
AerodromeBasicRemoveLiquidityEth: "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH",
|
|
38423
|
-
AerodromeBasicSwapEthForToken: "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN",
|
|
38424
|
-
AerodromeBasicSwapToken: "AERODROME_BASIC_SWAP_TOKEN",
|
|
38425
|
-
AerodromeBasicSwapTokenForEth: "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH",
|
|
38426
38032
|
AerodromeSlipstreamBuyExactly: "AERODROME_SLIPSTREAM_BUY_EXACTLY",
|
|
38427
38033
|
AerodromeSlipstreamIncreaseLiquidity: "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY",
|
|
38428
38034
|
AerodromeSlipstreamMintLiquidity: "AERODROME_SLIPSTREAM_MINT_LIQUIDITY",
|
|
@@ -38806,18 +38412,11 @@ var init_multicallaction = __esm(() => {
|
|
|
38806
38412
|
init_aaverepayparams();
|
|
38807
38413
|
init_aavesupplyparams();
|
|
38808
38414
|
init_aavewithdrawparams();
|
|
38809
|
-
init_aerodromeaddliquidityethparams();
|
|
38810
|
-
init_aerodromeaddliquidityparams();
|
|
38811
|
-
init_aerodromeremoveliquidityethrequest();
|
|
38812
|
-
init_aerodromeremoveliquidityrequest();
|
|
38813
38415
|
init_aerodromeslipstreambuyexactlyparams();
|
|
38814
38416
|
init_aerodromeslipstreamincreaseliquidityprovisionparams();
|
|
38815
38417
|
init_aerodromeslipstreammintliquidityprovisionparams();
|
|
38816
38418
|
init_aerodromeslipstreamsellexactlyparams();
|
|
38817
38419
|
init_aerodromeslipstreamwithdrawliquidityprovisionparams();
|
|
38818
|
-
init_aerodromeswapethfortokenparams();
|
|
38819
|
-
init_aerodromeswaptokenforethparams();
|
|
38820
|
-
init_aerodromeswaptokensparams();
|
|
38821
38420
|
init_increaseallowanceanyparams();
|
|
38822
38421
|
init_increaseallowanceparams();
|
|
38823
38422
|
init_multicallactiontype();
|
|
@@ -38841,19 +38440,12 @@ var init_multicallaction = __esm(() => {
|
|
|
38841
38440
|
IncreaseAllowanceAnyParams$inboundSchema,
|
|
38842
38441
|
AaveBorrowParams$inboundSchema,
|
|
38843
38442
|
AaveRepayParams$inboundSchema,
|
|
38844
|
-
AerodromeSwapEthForTokenParams$inboundSchema,
|
|
38845
|
-
AerodromeSwapTokenForEthParams$inboundSchema,
|
|
38846
38443
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema,
|
|
38847
38444
|
AerodromeSlipstreamBuyExactlyParams$inboundSchema,
|
|
38848
38445
|
AerodromeSlipstreamSellExactlyParams$inboundSchema,
|
|
38849
38446
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema,
|
|
38850
|
-
AerodromeSwapTokensParams$inboundSchema,
|
|
38851
38447
|
UniswapBuyExactlyParams$inboundSchema,
|
|
38852
38448
|
UniswapSellExactlyParams$inboundSchema,
|
|
38853
|
-
AerodromeAddLiquidityEthParams$inboundSchema,
|
|
38854
|
-
AerodromeAddLiquidityParams$inboundSchema,
|
|
38855
|
-
AerodromeRemoveLiquidityEthRequest$inboundSchema,
|
|
38856
|
-
AerodromeRemoveLiquidityRequest$inboundSchema,
|
|
38857
38449
|
AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema,
|
|
38858
38450
|
UniswapMintLiquidityProvisionParams$inboundSchema
|
|
38859
38451
|
]);
|
|
@@ -38869,19 +38461,12 @@ var init_multicallaction = __esm(() => {
|
|
|
38869
38461
|
IncreaseAllowanceAnyParams$outboundSchema,
|
|
38870
38462
|
AaveBorrowParams$outboundSchema,
|
|
38871
38463
|
AaveRepayParams$outboundSchema,
|
|
38872
|
-
AerodromeSwapEthForTokenParams$outboundSchema,
|
|
38873
|
-
AerodromeSwapTokenForEthParams$outboundSchema,
|
|
38874
38464
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema,
|
|
38875
38465
|
AerodromeSlipstreamBuyExactlyParams$outboundSchema,
|
|
38876
38466
|
AerodromeSlipstreamSellExactlyParams$outboundSchema,
|
|
38877
38467
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema,
|
|
38878
|
-
AerodromeSwapTokensParams$outboundSchema,
|
|
38879
38468
|
UniswapBuyExactlyParams$outboundSchema,
|
|
38880
38469
|
UniswapSellExactlyParams$outboundSchema,
|
|
38881
|
-
AerodromeAddLiquidityEthParams$outboundSchema,
|
|
38882
|
-
AerodromeAddLiquidityParams$outboundSchema,
|
|
38883
|
-
AerodromeRemoveLiquidityEthRequest$outboundSchema,
|
|
38884
|
-
AerodromeRemoveLiquidityRequest$outboundSchema,
|
|
38885
38470
|
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema,
|
|
38886
38471
|
UniswapMintLiquidityProvisionParams$outboundSchema
|
|
38887
38472
|
]);
|
|
@@ -38903,19 +38488,12 @@ var init_multicallaction = __esm(() => {
|
|
|
38903
38488
|
IncreaseAllowanceAnyParams$inboundSchema,
|
|
38904
38489
|
AaveBorrowParams$inboundSchema,
|
|
38905
38490
|
AaveRepayParams$inboundSchema,
|
|
38906
|
-
AerodromeSwapEthForTokenParams$inboundSchema,
|
|
38907
|
-
AerodromeSwapTokenForEthParams$inboundSchema,
|
|
38908
38491
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema,
|
|
38909
38492
|
AerodromeSlipstreamBuyExactlyParams$inboundSchema,
|
|
38910
38493
|
AerodromeSlipstreamSellExactlyParams$inboundSchema,
|
|
38911
38494
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema,
|
|
38912
|
-
AerodromeSwapTokensParams$inboundSchema,
|
|
38913
38495
|
UniswapBuyExactlyParams$inboundSchema,
|
|
38914
38496
|
UniswapSellExactlyParams$inboundSchema,
|
|
38915
|
-
AerodromeAddLiquidityEthParams$inboundSchema,
|
|
38916
|
-
AerodromeAddLiquidityParams$inboundSchema,
|
|
38917
|
-
AerodromeRemoveLiquidityEthRequest$inboundSchema,
|
|
38918
|
-
AerodromeRemoveLiquidityRequest$inboundSchema,
|
|
38919
38497
|
AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema,
|
|
38920
38498
|
UniswapMintLiquidityProvisionParams$inboundSchema
|
|
38921
38499
|
])
|
|
@@ -38938,19 +38516,12 @@ var init_multicallaction = __esm(() => {
|
|
|
38938
38516
|
IncreaseAllowanceAnyParams$outboundSchema,
|
|
38939
38517
|
AaveBorrowParams$outboundSchema,
|
|
38940
38518
|
AaveRepayParams$outboundSchema,
|
|
38941
|
-
AerodromeSwapEthForTokenParams$outboundSchema,
|
|
38942
|
-
AerodromeSwapTokenForEthParams$outboundSchema,
|
|
38943
38519
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema,
|
|
38944
38520
|
AerodromeSlipstreamBuyExactlyParams$outboundSchema,
|
|
38945
38521
|
AerodromeSlipstreamSellExactlyParams$outboundSchema,
|
|
38946
38522
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema,
|
|
38947
|
-
AerodromeSwapTokensParams$outboundSchema,
|
|
38948
38523
|
UniswapBuyExactlyParams$outboundSchema,
|
|
38949
38524
|
UniswapSellExactlyParams$outboundSchema,
|
|
38950
|
-
AerodromeAddLiquidityEthParams$outboundSchema,
|
|
38951
|
-
AerodromeAddLiquidityParams$outboundSchema,
|
|
38952
|
-
AerodromeRemoveLiquidityEthRequest$outboundSchema,
|
|
38953
|
-
AerodromeRemoveLiquidityRequest$outboundSchema,
|
|
38954
38525
|
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema,
|
|
38955
38526
|
UniswapMintLiquidityProvisionParams$outboundSchema
|
|
38956
38527
|
])
|
|
@@ -40124,6 +39695,7 @@ var init_components = __esm(() => {
|
|
|
40124
39695
|
init_aavehistoricaltransactionbase();
|
|
40125
39696
|
init_aavehistoricaltransactionsresponse();
|
|
40126
39697
|
init_aaveliquiditychangeresponse();
|
|
39698
|
+
init_aaverateresponse();
|
|
40127
39699
|
init_aaverepayparams();
|
|
40128
39700
|
init_aaverepayrequest();
|
|
40129
39701
|
init_aavesupplyparams();
|
|
@@ -40134,12 +39706,8 @@ var init_components = __esm(() => {
|
|
|
40134
39706
|
init_aavewithdrawparams();
|
|
40135
39707
|
init_aavewithdrawrequest();
|
|
40136
39708
|
init_action();
|
|
40137
|
-
init_aerodromeaddliquidityethparams();
|
|
40138
|
-
init_aerodromeaddliquidityparams();
|
|
40139
39709
|
init_aerodromelppositionsresponse();
|
|
40140
39710
|
init_aerodromeposition();
|
|
40141
|
-
init_aerodromeremoveliquidityethrequest();
|
|
40142
|
-
init_aerodromeremoveliquidityrequest();
|
|
40143
39711
|
init_aerodromeslipstreambuyexactlyparams();
|
|
40144
39712
|
init_aerodromeslipstreambuyexactlyrequest();
|
|
40145
39713
|
init_aerodromeslipstreamincreaseliquidityprovisionparams();
|
|
@@ -40151,9 +39719,6 @@ var init_components = __esm(() => {
|
|
|
40151
39719
|
init_aerodromeslipstreamsellexactlyrequest();
|
|
40152
39720
|
init_aerodromeslipstreamwithdrawliquidityprovisionparams();
|
|
40153
39721
|
init_aerodromeslipstreamwithdrawliquidityprovisionrequest();
|
|
40154
|
-
init_aerodromeswapethfortokenparams();
|
|
40155
|
-
init_aerodromeswaptokenforethparams();
|
|
40156
|
-
init_aerodromeswaptokensparams();
|
|
40157
39722
|
init_allowanceinforesponse();
|
|
40158
39723
|
init_borrow();
|
|
40159
39724
|
init_chain();
|
|
@@ -40546,6 +40111,87 @@ var init_aaveliquiditychange = __esm(() => {
|
|
|
40546
40111
|
})(AaveLiquidityChangeRequest$ ||= {});
|
|
40547
40112
|
});
|
|
40548
40113
|
|
|
40114
|
+
// src/models/operations/aaverate.ts
|
|
40115
|
+
var AaveRateChain, AaveRateToken, AaveRateChain$inboundSchema, AaveRateChain$outboundSchema, AaveRateChain$, AaveRateToken$inboundSchema, AaveRateToken$outboundSchema, AaveRateToken$, AaveRateRequest$inboundSchema, AaveRateRequest$outboundSchema, AaveRateRequest$;
|
|
40116
|
+
var init_aaverate = __esm(() => {
|
|
40117
|
+
init_lib();
|
|
40118
|
+
AaveRateChain = {
|
|
40119
|
+
BaseMainnet: "base:mainnet",
|
|
40120
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
40121
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
40122
|
+
};
|
|
40123
|
+
AaveRateToken = {
|
|
40124
|
+
OneINCH: "1INCH",
|
|
40125
|
+
Aave: "AAVE",
|
|
40126
|
+
Bal: "BAL",
|
|
40127
|
+
CbBTC: "cbBTC",
|
|
40128
|
+
CbETH: "cbETH",
|
|
40129
|
+
Crv: "CRV",
|
|
40130
|
+
CrvUSD: "crvUSD",
|
|
40131
|
+
Dai: "DAI",
|
|
40132
|
+
Ens: "ENS",
|
|
40133
|
+
ETHx: "ETHx",
|
|
40134
|
+
Frax: "FRAX",
|
|
40135
|
+
Fxs: "FXS",
|
|
40136
|
+
Gho: "GHO",
|
|
40137
|
+
Knc: "KNC",
|
|
40138
|
+
Ldo: "LDO",
|
|
40139
|
+
Link: "LINK",
|
|
40140
|
+
Lusd: "LUSD",
|
|
40141
|
+
Mkr: "MKR",
|
|
40142
|
+
OsETH: "osETH",
|
|
40143
|
+
Pyusd: "PYUSD",
|
|
40144
|
+
RETH: "rETH",
|
|
40145
|
+
Rpl: "RPL",
|
|
40146
|
+
RsETH: "rsETH",
|
|
40147
|
+
SDAI: "sDAI",
|
|
40148
|
+
Snx: "SNX",
|
|
40149
|
+
Stg: "STG",
|
|
40150
|
+
SUSDe: "sUSDe",
|
|
40151
|
+
TBTC: "tBTC",
|
|
40152
|
+
Uni: "UNI",
|
|
40153
|
+
Usdc: "USDC",
|
|
40154
|
+
USDe: "USDe",
|
|
40155
|
+
Usds: "USDS",
|
|
40156
|
+
Usdt: "USDT",
|
|
40157
|
+
Wbtc: "WBTC",
|
|
40158
|
+
WeETH: "weETH",
|
|
40159
|
+
Weth: "WETH",
|
|
40160
|
+
WstETH: "wstETH",
|
|
40161
|
+
Arb: "ARB",
|
|
40162
|
+
Eurs: "EURS",
|
|
40163
|
+
Mai: "MAI",
|
|
40164
|
+
USDCe: "USDCe",
|
|
40165
|
+
Aero: "AERO",
|
|
40166
|
+
Eur: "EUR",
|
|
40167
|
+
Virtual: "VIRTUAL"
|
|
40168
|
+
};
|
|
40169
|
+
AaveRateChain$inboundSchema = nativeEnumType(AaveRateChain);
|
|
40170
|
+
AaveRateChain$outboundSchema = AaveRateChain$inboundSchema;
|
|
40171
|
+
((AaveRateChain$) => {
|
|
40172
|
+
AaveRateChain$.inboundSchema = AaveRateChain$inboundSchema;
|
|
40173
|
+
AaveRateChain$.outboundSchema = AaveRateChain$outboundSchema;
|
|
40174
|
+
})(AaveRateChain$ ||= {});
|
|
40175
|
+
AaveRateToken$inboundSchema = nativeEnumType(AaveRateToken);
|
|
40176
|
+
AaveRateToken$outboundSchema = AaveRateToken$inboundSchema;
|
|
40177
|
+
((AaveRateToken$) => {
|
|
40178
|
+
AaveRateToken$.inboundSchema = AaveRateToken$inboundSchema;
|
|
40179
|
+
AaveRateToken$.outboundSchema = AaveRateToken$outboundSchema;
|
|
40180
|
+
})(AaveRateToken$ ||= {});
|
|
40181
|
+
AaveRateRequest$inboundSchema = objectType({
|
|
40182
|
+
chain: AaveRateChain$inboundSchema.default("arbitrum:mainnet"),
|
|
40183
|
+
token: AaveRateToken$inboundSchema.default("USDC")
|
|
40184
|
+
});
|
|
40185
|
+
AaveRateRequest$outboundSchema = objectType({
|
|
40186
|
+
chain: AaveRateChain$outboundSchema.default("arbitrum:mainnet"),
|
|
40187
|
+
token: AaveRateToken$outboundSchema.default("USDC")
|
|
40188
|
+
});
|
|
40189
|
+
((AaveRateRequest$) => {
|
|
40190
|
+
AaveRateRequest$.inboundSchema = AaveRateRequest$inboundSchema;
|
|
40191
|
+
AaveRateRequest$.outboundSchema = AaveRateRequest$outboundSchema;
|
|
40192
|
+
})(AaveRateRequest$ ||= {});
|
|
40193
|
+
});
|
|
40194
|
+
|
|
40549
40195
|
// src/models/operations/aavetokenprice.ts
|
|
40550
40196
|
var AaveTokenPriceChain, AaveTokenPriceToken, AaveTokenPriceChain$inboundSchema, AaveTokenPriceChain$outboundSchema, AaveTokenPriceChain$, AaveTokenPriceToken$inboundSchema, AaveTokenPriceToken$outboundSchema, AaveTokenPriceToken$, AaveTokenPriceRequest$inboundSchema, AaveTokenPriceRequest$outboundSchema, AaveTokenPriceRequest$;
|
|
40551
40197
|
var init_aavetokenprice = __esm(() => {
|
|
@@ -42115,6 +41761,7 @@ var init_uniswapquotesellexactly = __esm(() => {
|
|
|
42115
41761
|
var init_operations = __esm(() => {
|
|
42116
41762
|
init_aavehistoricaltransactions();
|
|
42117
41763
|
init_aaveliquiditychange();
|
|
41764
|
+
init_aaverate();
|
|
42118
41765
|
init_aavetokenprice();
|
|
42119
41766
|
init_aaveuserpositionpertoken();
|
|
42120
41767
|
init_aaveuserpositionsummary();
|
|
@@ -42371,20 +42018,23 @@ true if the liquidity index is negative.`,
|
|
|
42371
42018
|
};
|
|
42372
42019
|
});
|
|
42373
42020
|
|
|
42374
|
-
// src/funcs/
|
|
42375
|
-
function
|
|
42021
|
+
// src/funcs/aaveV3Rate.ts
|
|
42022
|
+
function aaveV3Rate(client, request, options) {
|
|
42376
42023
|
return new APIPromise($do4(client, request, options));
|
|
42377
42024
|
}
|
|
42378
42025
|
async function $do4(client, request, options) {
|
|
42379
|
-
const parsed = safeParse(request, (value) =>
|
|
42026
|
+
const parsed = safeParse(request, (value) => AaveRateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42380
42027
|
if (!parsed.ok) {
|
|
42381
42028
|
return [parsed, { status: "invalid" }];
|
|
42382
42029
|
}
|
|
42383
42030
|
const payload = parsed.value;
|
|
42384
|
-
const body =
|
|
42385
|
-
const path = pathToFunc("/v0/aave/
|
|
42031
|
+
const body = null;
|
|
42032
|
+
const path = pathToFunc("/v0/aave/rate/get")();
|
|
42033
|
+
const query = encodeFormQuery({
|
|
42034
|
+
chain: payload.chain,
|
|
42035
|
+
token: payload.token
|
|
42036
|
+
});
|
|
42386
42037
|
const headers = new Headers(compactMap({
|
|
42387
|
-
"Content-Type": "application/json",
|
|
42388
42038
|
Accept: "application/json"
|
|
42389
42039
|
}));
|
|
42390
42040
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -42392,7 +42042,7 @@ async function $do4(client, request, options) {
|
|
|
42392
42042
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42393
42043
|
const context = {
|
|
42394
42044
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42395
|
-
operationID: "
|
|
42045
|
+
operationID: "aave_rate",
|
|
42396
42046
|
oAuth2Scopes: [],
|
|
42397
42047
|
resolvedSecurity: requestSecurity,
|
|
42398
42048
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -42401,10 +42051,11 @@ async function $do4(client, request, options) {
|
|
|
42401
42051
|
};
|
|
42402
42052
|
const requestRes = client._createRequest(context, {
|
|
42403
42053
|
security: requestSecurity,
|
|
42404
|
-
method: "
|
|
42054
|
+
method: "GET",
|
|
42405
42055
|
baseURL: options?.serverURL,
|
|
42406
42056
|
path,
|
|
42407
42057
|
headers,
|
|
42058
|
+
query,
|
|
42408
42059
|
body,
|
|
42409
42060
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42410
42061
|
}, options);
|
|
@@ -42425,13 +42076,13 @@ async function $do4(client, request, options) {
|
|
|
42425
42076
|
const responseFields = {
|
|
42426
42077
|
HttpMeta: { Response: response, Request: req }
|
|
42427
42078
|
};
|
|
42428
|
-
const [result] = await match(json(200,
|
|
42079
|
+
const [result] = await match(json(200, AaveRateResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42429
42080
|
if (!result.ok) {
|
|
42430
42081
|
return [result, { status: "complete", request: req, response }];
|
|
42431
42082
|
}
|
|
42432
42083
|
return [result, { status: "complete", request: req, response }];
|
|
42433
42084
|
}
|
|
42434
|
-
var
|
|
42085
|
+
var init_aaveV3Rate = __esm(() => {
|
|
42435
42086
|
init_encodings();
|
|
42436
42087
|
init_matchers();
|
|
42437
42088
|
init_primitives();
|
|
@@ -42440,33 +42091,40 @@ var init_aaveV3Repay = __esm(() => {
|
|
|
42440
42091
|
init_url();
|
|
42441
42092
|
init_components();
|
|
42442
42093
|
init_errors();
|
|
42094
|
+
init_operations();
|
|
42443
42095
|
init_async();
|
|
42444
42096
|
});
|
|
42445
42097
|
|
|
42446
|
-
// src/mcp-server/tools/
|
|
42447
|
-
var args4, tool$
|
|
42448
|
-
var
|
|
42449
|
-
|
|
42450
|
-
|
|
42098
|
+
// src/mcp-server/tools/aaveV3Rate.ts
|
|
42099
|
+
var args4, tool$aaveV3Rate;
|
|
42100
|
+
var init_aaveV3Rate2 = __esm(() => {
|
|
42101
|
+
init_aaveV3Rate();
|
|
42102
|
+
init_operations();
|
|
42451
42103
|
init_tools();
|
|
42452
42104
|
args4 = {
|
|
42453
|
-
request:
|
|
42105
|
+
request: AaveRateRequest$inboundSchema
|
|
42454
42106
|
};
|
|
42455
|
-
tool$
|
|
42456
|
-
name: "aave-v3-
|
|
42457
|
-
description: `
|
|
42107
|
+
tool$aaveV3Rate = {
|
|
42108
|
+
name: "aave-v3-rate",
|
|
42109
|
+
description: `Interest rates
|
|
42458
42110
|
|
|
42459
|
-
|
|
42460
|
-
|
|
42111
|
+
Returns the latest APY and APR rates for a specified token on Aave, for both
|
|
42112
|
+
deposits and loans.
|
|
42461
42113
|
|
|
42462
|
-
|
|
42463
|
-
|
|
42464
|
-
|
|
42465
|
-
|
|
42466
|
-
|
|
42114
|
+
**Annual percentage yield (APY)** is the yearly return/cost after continuous
|
|
42115
|
+
compounding of the per-second rate stored on-chain. This value is the same value as
|
|
42116
|
+
seen the on [app.aave.com](
|
|
42117
|
+
https://app.aave.com/)
|
|
42118
|
+
but more up-to-date as it is taken directly from the
|
|
42119
|
+
blockchain every time this endpoint is called.
|
|
42120
|
+
|
|
42121
|
+
**Annual percentage rate (APR)** is the yearly simple interest rate (no
|
|
42122
|
+
compounding).
|
|
42123
|
+
|
|
42124
|
+
For APY/APR on loans Aave offers both stable and fixed rates on certain tokens.`,
|
|
42467
42125
|
args: args4,
|
|
42468
42126
|
tool: async (client, args5, ctx) => {
|
|
42469
|
-
const [result, apiCall] = await
|
|
42127
|
+
const [result, apiCall] = await aaveV3Rate(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42470
42128
|
if (!result.ok) {
|
|
42471
42129
|
return {
|
|
42472
42130
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42479,18 +42137,18 @@ including the amount and the asset to be repaid.`,
|
|
|
42479
42137
|
};
|
|
42480
42138
|
});
|
|
42481
42139
|
|
|
42482
|
-
// src/funcs/
|
|
42483
|
-
function
|
|
42140
|
+
// src/funcs/aaveV3Repay.ts
|
|
42141
|
+
function aaveV3Repay(client, request, options) {
|
|
42484
42142
|
return new APIPromise($do5(client, request, options));
|
|
42485
42143
|
}
|
|
42486
42144
|
async function $do5(client, request, options) {
|
|
42487
|
-
const parsed = safeParse(request, (value) =>
|
|
42145
|
+
const parsed = safeParse(request, (value) => AaveRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42488
42146
|
if (!parsed.ok) {
|
|
42489
42147
|
return [parsed, { status: "invalid" }];
|
|
42490
42148
|
}
|
|
42491
42149
|
const payload = parsed.value;
|
|
42492
42150
|
const body = encodeJSON("body", payload, { explode: true });
|
|
42493
|
-
const path = pathToFunc("/v0/aave/
|
|
42151
|
+
const path = pathToFunc("/v0/aave/repay")();
|
|
42494
42152
|
const headers = new Headers(compactMap({
|
|
42495
42153
|
"Content-Type": "application/json",
|
|
42496
42154
|
Accept: "application/json"
|
|
@@ -42500,7 +42158,7 @@ async function $do5(client, request, options) {
|
|
|
42500
42158
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42501
42159
|
const context = {
|
|
42502
42160
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42503
|
-
operationID: "
|
|
42161
|
+
operationID: "aave_repay",
|
|
42504
42162
|
oAuth2Scopes: [],
|
|
42505
42163
|
resolvedSecurity: requestSecurity,
|
|
42506
42164
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -42539,7 +42197,7 @@ async function $do5(client, request, options) {
|
|
|
42539
42197
|
}
|
|
42540
42198
|
return [result, { status: "complete", request: req, response }];
|
|
42541
42199
|
}
|
|
42542
|
-
var
|
|
42200
|
+
var init_aaveV3Repay = __esm(() => {
|
|
42543
42201
|
init_encodings();
|
|
42544
42202
|
init_matchers();
|
|
42545
42203
|
init_primitives();
|
|
@@ -42551,20 +42209,128 @@ var init_aaveV3Supply = __esm(() => {
|
|
|
42551
42209
|
init_async();
|
|
42552
42210
|
});
|
|
42553
42211
|
|
|
42554
|
-
// src/mcp-server/tools/
|
|
42555
|
-
var args5, tool$
|
|
42556
|
-
var
|
|
42557
|
-
|
|
42212
|
+
// src/mcp-server/tools/aaveV3Repay.ts
|
|
42213
|
+
var args5, tool$aaveV3Repay;
|
|
42214
|
+
var init_aaveV3Repay2 = __esm(() => {
|
|
42215
|
+
init_aaveV3Repay();
|
|
42558
42216
|
init_components();
|
|
42559
42217
|
init_tools();
|
|
42560
42218
|
args5 = {
|
|
42561
|
-
request:
|
|
42219
|
+
request: AaveRepayRequest$inboundSchema
|
|
42562
42220
|
};
|
|
42563
|
-
tool$
|
|
42564
|
-
name: "aave-v3-
|
|
42565
|
-
description: `
|
|
42221
|
+
tool$aaveV3Repay = {
|
|
42222
|
+
name: "aave-v3-repay",
|
|
42223
|
+
description: `Repay loans
|
|
42566
42224
|
|
|
42567
|
-
|
|
42225
|
+
This endpoint allows users to repay a portion or the entirety of their borrowed
|
|
42226
|
+
tokens on the Aave platform.
|
|
42227
|
+
|
|
42228
|
+
By repaying borrowed amounts, users can improve their health factor, which is a
|
|
42229
|
+
measure of the safety of their loan position. A higher health factor reduces the
|
|
42230
|
+
risk of liquidation, ensuring a more secure borrowing experience. The endpoint
|
|
42231
|
+
requires specifying the chain and the details of the repayment transaction,
|
|
42232
|
+
including the amount and the asset to be repaid.`,
|
|
42233
|
+
args: args5,
|
|
42234
|
+
tool: async (client, args6, ctx) => {
|
|
42235
|
+
const [result, apiCall] = await aaveV3Repay(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42236
|
+
if (!result.ok) {
|
|
42237
|
+
return {
|
|
42238
|
+
content: [{ type: "text", text: result.error.message }],
|
|
42239
|
+
isError: true
|
|
42240
|
+
};
|
|
42241
|
+
}
|
|
42242
|
+
const value = result.value;
|
|
42243
|
+
return formatResult(value, apiCall);
|
|
42244
|
+
}
|
|
42245
|
+
};
|
|
42246
|
+
});
|
|
42247
|
+
|
|
42248
|
+
// src/funcs/aaveV3Supply.ts
|
|
42249
|
+
function aaveV3Supply(client, request, options) {
|
|
42250
|
+
return new APIPromise($do6(client, request, options));
|
|
42251
|
+
}
|
|
42252
|
+
async function $do6(client, request, options) {
|
|
42253
|
+
const parsed = safeParse(request, (value) => AaveSupplyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42254
|
+
if (!parsed.ok) {
|
|
42255
|
+
return [parsed, { status: "invalid" }];
|
|
42256
|
+
}
|
|
42257
|
+
const payload = parsed.value;
|
|
42258
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
42259
|
+
const path = pathToFunc("/v0/aave/supply")();
|
|
42260
|
+
const headers = new Headers(compactMap({
|
|
42261
|
+
"Content-Type": "application/json",
|
|
42262
|
+
Accept: "application/json"
|
|
42263
|
+
}));
|
|
42264
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
42265
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
42266
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
42267
|
+
const context = {
|
|
42268
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
42269
|
+
operationID: "aave_supply",
|
|
42270
|
+
oAuth2Scopes: [],
|
|
42271
|
+
resolvedSecurity: requestSecurity,
|
|
42272
|
+
securitySource: client._options.apiKeyAuth,
|
|
42273
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
42274
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
42275
|
+
};
|
|
42276
|
+
const requestRes = client._createRequest(context, {
|
|
42277
|
+
security: requestSecurity,
|
|
42278
|
+
method: "POST",
|
|
42279
|
+
baseURL: options?.serverURL,
|
|
42280
|
+
path,
|
|
42281
|
+
headers,
|
|
42282
|
+
body,
|
|
42283
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
42284
|
+
}, options);
|
|
42285
|
+
if (!requestRes.ok) {
|
|
42286
|
+
return [requestRes, { status: "invalid" }];
|
|
42287
|
+
}
|
|
42288
|
+
const req = requestRes.value;
|
|
42289
|
+
const doResult = await client._do(req, {
|
|
42290
|
+
context,
|
|
42291
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
42292
|
+
retryConfig: context.retryConfig,
|
|
42293
|
+
retryCodes: context.retryCodes
|
|
42294
|
+
});
|
|
42295
|
+
if (!doResult.ok) {
|
|
42296
|
+
return [doResult, { status: "request-error", request: req }];
|
|
42297
|
+
}
|
|
42298
|
+
const response = doResult.value;
|
|
42299
|
+
const responseFields = {
|
|
42300
|
+
HttpMeta: { Response: response, Request: req }
|
|
42301
|
+
};
|
|
42302
|
+
const [result] = await match(json(200, UnsignedTransaction$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42303
|
+
if (!result.ok) {
|
|
42304
|
+
return [result, { status: "complete", request: req, response }];
|
|
42305
|
+
}
|
|
42306
|
+
return [result, { status: "complete", request: req, response }];
|
|
42307
|
+
}
|
|
42308
|
+
var init_aaveV3Supply = __esm(() => {
|
|
42309
|
+
init_encodings();
|
|
42310
|
+
init_matchers();
|
|
42311
|
+
init_primitives();
|
|
42312
|
+
init_schemas();
|
|
42313
|
+
init_security();
|
|
42314
|
+
init_url();
|
|
42315
|
+
init_components();
|
|
42316
|
+
init_errors();
|
|
42317
|
+
init_async();
|
|
42318
|
+
});
|
|
42319
|
+
|
|
42320
|
+
// src/mcp-server/tools/aaveV3Supply.ts
|
|
42321
|
+
var args6, tool$aaveV3Supply;
|
|
42322
|
+
var init_aaveV3Supply2 = __esm(() => {
|
|
42323
|
+
init_aaveV3Supply();
|
|
42324
|
+
init_components();
|
|
42325
|
+
init_tools();
|
|
42326
|
+
args6 = {
|
|
42327
|
+
request: AaveSupplyRequest$inboundSchema
|
|
42328
|
+
};
|
|
42329
|
+
tool$aaveV3Supply = {
|
|
42330
|
+
name: "aave-v3-supply",
|
|
42331
|
+
description: `Supply/Lend
|
|
42332
|
+
|
|
42333
|
+
By supplying assets, users can earn interest on their deposits.
|
|
42568
42334
|
|
|
42569
42335
|
The supplied collateral can be used as a basis for borrowing other assets, allowing
|
|
42570
42336
|
users to leverage their positions. In combination with a trading protocol, this can
|
|
@@ -42573,9 +42339,9 @@ create leverage.
|
|
|
42573
42339
|
Overall, this endpoint is a critical component for users looking to maximize their
|
|
42574
42340
|
asset utility within the AAVEv3 ecosystem, providing both earning potential and
|
|
42575
42341
|
borrowing flexibility.`,
|
|
42576
|
-
args:
|
|
42577
|
-
tool: async (client,
|
|
42578
|
-
const [result, apiCall] = await aaveV3Supply(client,
|
|
42342
|
+
args: args6,
|
|
42343
|
+
tool: async (client, args7, ctx) => {
|
|
42344
|
+
const [result, apiCall] = await aaveV3Supply(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42579
42345
|
if (!result.ok) {
|
|
42580
42346
|
return {
|
|
42581
42347
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42590,9 +42356,9 @@ borrowing flexibility.`,
|
|
|
42590
42356
|
|
|
42591
42357
|
// src/funcs/aaveV3TokenPrice.ts
|
|
42592
42358
|
function aaveV3TokenPrice(client, request, options) {
|
|
42593
|
-
return new APIPromise($
|
|
42359
|
+
return new APIPromise($do7(client, request, options));
|
|
42594
42360
|
}
|
|
42595
|
-
async function $
|
|
42361
|
+
async function $do7(client, request, options) {
|
|
42596
42362
|
const parsed = safeParse(request, (value) => AaveTokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42597
42363
|
if (!parsed.ok) {
|
|
42598
42364
|
return [parsed, { status: "invalid" }];
|
|
@@ -42666,12 +42432,12 @@ var init_aaveV3TokenPrice = __esm(() => {
|
|
|
42666
42432
|
});
|
|
42667
42433
|
|
|
42668
42434
|
// src/mcp-server/tools/aaveV3TokenPrice.ts
|
|
42669
|
-
var
|
|
42435
|
+
var args7, tool$aaveV3TokenPrice;
|
|
42670
42436
|
var init_aaveV3TokenPrice2 = __esm(() => {
|
|
42671
42437
|
init_aaveV3TokenPrice();
|
|
42672
42438
|
init_operations();
|
|
42673
42439
|
init_tools();
|
|
42674
|
-
|
|
42440
|
+
args7 = {
|
|
42675
42441
|
request: AaveTokenPriceRequest$inboundSchema
|
|
42676
42442
|
};
|
|
42677
42443
|
tool$aaveV3TokenPrice = {
|
|
@@ -42686,9 +42452,9 @@ to-date information. The request requires the token identifier and the blockchai
|
|
|
42686
42452
|
network (chain) on which the token resides. The response provides the token price in
|
|
42687
42453
|
a standardized format, converted from Wei to the base currency decimals defined by
|
|
42688
42454
|
Aave.`,
|
|
42689
|
-
args:
|
|
42690
|
-
tool: async (client,
|
|
42691
|
-
const [result, apiCall] = await aaveV3TokenPrice(client,
|
|
42455
|
+
args: args7,
|
|
42456
|
+
tool: async (client, args8, ctx) => {
|
|
42457
|
+
const [result, apiCall] = await aaveV3TokenPrice(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42692
42458
|
if (!result.ok) {
|
|
42693
42459
|
return {
|
|
42694
42460
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42703,9 +42469,9 @@ Aave.`,
|
|
|
42703
42469
|
|
|
42704
42470
|
// src/funcs/aaveV3UserPositionPerToken.ts
|
|
42705
42471
|
function aaveV3UserPositionPerToken(client, request, options) {
|
|
42706
|
-
return new APIPromise($
|
|
42472
|
+
return new APIPromise($do8(client, request, options));
|
|
42707
42473
|
}
|
|
42708
|
-
async function $
|
|
42474
|
+
async function $do8(client, request, options) {
|
|
42709
42475
|
const parsed = safeParse(request, (value) => AaveUserPositionPerTokenRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42710
42476
|
if (!parsed.ok) {
|
|
42711
42477
|
return [parsed, { status: "invalid" }];
|
|
@@ -42780,12 +42546,12 @@ var init_aaveV3UserPositionPerToken = __esm(() => {
|
|
|
42780
42546
|
});
|
|
42781
42547
|
|
|
42782
42548
|
// src/mcp-server/tools/aaveV3UserPositionPerToken.ts
|
|
42783
|
-
var
|
|
42549
|
+
var args8, tool$aaveV3UserPositionPerToken;
|
|
42784
42550
|
var init_aaveV3UserPositionPerToken2 = __esm(() => {
|
|
42785
42551
|
init_aaveV3UserPositionPerToken();
|
|
42786
42552
|
init_operations();
|
|
42787
42553
|
init_tools();
|
|
42788
|
-
|
|
42554
|
+
args8 = {
|
|
42789
42555
|
request: AaveUserPositionPerTokenRequest$inboundSchema
|
|
42790
42556
|
};
|
|
42791
42557
|
tool$aaveV3UserPositionPerToken = {
|
|
@@ -42801,9 +42567,9 @@ stable borrow rate, stable borrow rate for new loans, variable borrow rate, and
|
|
|
42801
42567
|
liquidity rate. These metrics are calculated by aggregating data across all open
|
|
42802
42568
|
positions held by the user for the specified token, offering a detailed view of
|
|
42803
42569
|
their financial standing within the AAVE ecosystem.`,
|
|
42804
|
-
args:
|
|
42805
|
-
tool: async (client,
|
|
42806
|
-
const [result, apiCall] = await aaveV3UserPositionPerToken(client,
|
|
42570
|
+
args: args8,
|
|
42571
|
+
tool: async (client, args9, ctx) => {
|
|
42572
|
+
const [result, apiCall] = await aaveV3UserPositionPerToken(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42807
42573
|
if (!result.ok) {
|
|
42808
42574
|
return {
|
|
42809
42575
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42818,9 +42584,9 @@ their financial standing within the AAVE ecosystem.`,
|
|
|
42818
42584
|
|
|
42819
42585
|
// src/funcs/aaveV3UserPositionSummary.ts
|
|
42820
42586
|
function aaveV3UserPositionSummary(client, request, options) {
|
|
42821
|
-
return new APIPromise($
|
|
42587
|
+
return new APIPromise($do9(client, request, options));
|
|
42822
42588
|
}
|
|
42823
|
-
async function $
|
|
42589
|
+
async function $do9(client, request, options) {
|
|
42824
42590
|
const parsed = safeParse(request, (value) => AaveUserPositionSummaryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42825
42591
|
if (!parsed.ok) {
|
|
42826
42592
|
return [parsed, { status: "invalid" }];
|
|
@@ -42894,12 +42660,12 @@ var init_aaveV3UserPositionSummary = __esm(() => {
|
|
|
42894
42660
|
});
|
|
42895
42661
|
|
|
42896
42662
|
// src/mcp-server/tools/aaveV3UserPositionSummary.ts
|
|
42897
|
-
var
|
|
42663
|
+
var args9, tool$aaveV3UserPositionSummary;
|
|
42898
42664
|
var init_aaveV3UserPositionSummary2 = __esm(() => {
|
|
42899
42665
|
init_aaveV3UserPositionSummary();
|
|
42900
42666
|
init_operations();
|
|
42901
42667
|
init_tools();
|
|
42902
|
-
|
|
42668
|
+
args9 = {
|
|
42903
42669
|
request: AaveUserPositionSummaryRequest$inboundSchema
|
|
42904
42670
|
};
|
|
42905
42671
|
tool$aaveV3UserPositionSummary = {
|
|
@@ -42914,9 +42680,9 @@ debt accrued, available borrowing capacity, liquidation threshold, maximum loan-
|
|
|
42914
42680
|
value ratio, and the health factor of the user's account. These metrics are
|
|
42915
42681
|
calculated by aggregating data across all open positions held by the user, offering
|
|
42916
42682
|
a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
42917
|
-
args:
|
|
42918
|
-
tool: async (client,
|
|
42919
|
-
const [result, apiCall] = await aaveV3UserPositionSummary(client,
|
|
42683
|
+
args: args9,
|
|
42684
|
+
tool: async (client, args10, ctx) => {
|
|
42685
|
+
const [result, apiCall] = await aaveV3UserPositionSummary(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42920
42686
|
if (!result.ok) {
|
|
42921
42687
|
return {
|
|
42922
42688
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42931,9 +42697,9 @@ a holistic view of their financial standing within the AAVE ecosystem.`,
|
|
|
42931
42697
|
|
|
42932
42698
|
// src/funcs/aaveV3Withdraw.ts
|
|
42933
42699
|
function aaveV3Withdraw(client, request, options) {
|
|
42934
|
-
return new APIPromise($
|
|
42700
|
+
return new APIPromise($do10(client, request, options));
|
|
42935
42701
|
}
|
|
42936
|
-
async function $
|
|
42702
|
+
async function $do10(client, request, options) {
|
|
42937
42703
|
const parsed = safeParse(request, (value) => AaveWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42938
42704
|
if (!parsed.ok) {
|
|
42939
42705
|
return [parsed, { status: "invalid" }];
|
|
@@ -43002,12 +42768,12 @@ var init_aaveV3Withdraw = __esm(() => {
|
|
|
43002
42768
|
});
|
|
43003
42769
|
|
|
43004
42770
|
// src/mcp-server/tools/aaveV3Withdraw.ts
|
|
43005
|
-
var
|
|
42771
|
+
var args10, tool$aaveV3Withdraw;
|
|
43006
42772
|
var init_aaveV3Withdraw2 = __esm(() => {
|
|
43007
42773
|
init_aaveV3Withdraw();
|
|
43008
42774
|
init_components();
|
|
43009
42775
|
init_tools();
|
|
43010
|
-
|
|
42776
|
+
args10 = {
|
|
43011
42777
|
request: AaveWithdrawRequest$inboundSchema
|
|
43012
42778
|
};
|
|
43013
42779
|
tool$aaveV3Withdraw = {
|
|
@@ -43023,9 +42789,9 @@ for users to carefully consider their outstanding debts and the potential impact
|
|
|
43023
42789
|
their liquidation threshold before proceeding with a withdrawal. This endpoint is
|
|
43024
42790
|
designed to provide a seamless and efficient way to manage your collateral within
|
|
43025
42791
|
the Aave ecosystem.`,
|
|
43026
|
-
args:
|
|
43027
|
-
tool: async (client,
|
|
43028
|
-
const [result, apiCall] = await aaveV3Withdraw(client,
|
|
42792
|
+
args: args10,
|
|
42793
|
+
tool: async (client, args11, ctx) => {
|
|
42794
|
+
const [result, apiCall] = await aaveV3Withdraw(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43029
42795
|
if (!result.ok) {
|
|
43030
42796
|
return {
|
|
43031
42797
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43040,9 +42806,9 @@ the Aave ecosystem.`,
|
|
|
43040
42806
|
|
|
43041
42807
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43042
42808
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, request, options) {
|
|
43043
|
-
return new APIPromise($
|
|
42809
|
+
return new APIPromise($do11(client, request, options));
|
|
43044
42810
|
}
|
|
43045
|
-
async function $
|
|
42811
|
+
async function $do11(client, request, options) {
|
|
43046
42812
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43047
42813
|
if (!parsed.ok) {
|
|
43048
42814
|
return [parsed, { status: "invalid" }];
|
|
@@ -43111,12 +42877,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = __esm(() => {
|
|
|
43111
42877
|
});
|
|
43112
42878
|
|
|
43113
42879
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts
|
|
43114
|
-
var
|
|
42880
|
+
var args11, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease;
|
|
43115
42881
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease2 = __esm(() => {
|
|
43116
42882
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease();
|
|
43117
42883
|
init_components();
|
|
43118
42884
|
init_tools();
|
|
43119
|
-
|
|
42885
|
+
args11 = {
|
|
43120
42886
|
request: AerodromeSlipstreamIncreaseLiquidityProvisionRequest$inboundSchema
|
|
43121
42887
|
};
|
|
43122
42888
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease = {
|
|
@@ -43134,9 +42900,9 @@ users with updated information about their enhanced position. This functionality
|
|
|
43134
42900
|
vital for users aiming to optimize their liquidity provision strategy, enabling them
|
|
43135
42901
|
to adapt to market conditions and maximize their returns in decentralized finance
|
|
43136
42902
|
(DeFi) markets.`,
|
|
43137
|
-
args:
|
|
43138
|
-
tool: async (client,
|
|
43139
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client,
|
|
42903
|
+
args: args11,
|
|
42904
|
+
tool: async (client, args12, ctx) => {
|
|
42905
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43140
42906
|
if (!result.ok) {
|
|
43141
42907
|
return {
|
|
43142
42908
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43151,9 +42917,9 @@ to adapt to market conditions and maximize their returns in decentralized financ
|
|
|
43151
42917
|
|
|
43152
42918
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43153
42919
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, request, options) {
|
|
43154
|
-
return new APIPromise($
|
|
42920
|
+
return new APIPromise($do12(client, request, options));
|
|
43155
42921
|
}
|
|
43156
|
-
async function $
|
|
42922
|
+
async function $do12(client, request, options) {
|
|
43157
42923
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43158
42924
|
if (!parsed.ok) {
|
|
43159
42925
|
return [parsed, { status: "invalid" }];
|
|
@@ -43222,12 +42988,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint = __esm(() => {
|
|
|
43222
42988
|
});
|
|
43223
42989
|
|
|
43224
42990
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts
|
|
43225
|
-
var
|
|
42991
|
+
var args12, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint;
|
|
43226
42992
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint2 = __esm(() => {
|
|
43227
42993
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionMint();
|
|
43228
42994
|
init_components();
|
|
43229
42995
|
init_tools();
|
|
43230
|
-
|
|
42996
|
+
args12 = {
|
|
43231
42997
|
request: AerodromeSlipstreamMintLiquidityProvisionRequest$inboundSchema
|
|
43232
42998
|
};
|
|
43233
42999
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionMint = {
|
|
@@ -43243,9 +43009,9 @@ confirm the successful creation of the LP position, providing users with the
|
|
|
43243
43009
|
necessary information to manage their newly minted position. This functionality is
|
|
43244
43010
|
crucial for users looking to expand their liquidity provision activities, offering
|
|
43245
43011
|
them the opportunity to engage in decentralized finance (DeFi) markets effectively.`,
|
|
43246
|
-
args:
|
|
43247
|
-
tool: async (client,
|
|
43248
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client,
|
|
43012
|
+
args: args12,
|
|
43013
|
+
tool: async (client, args13, ctx) => {
|
|
43014
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionMint(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43249
43015
|
if (!result.ok) {
|
|
43250
43016
|
return {
|
|
43251
43017
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43260,9 +43026,9 @@ them the opportunity to engage in decentralized finance (DeFi) markets effective
|
|
|
43260
43026
|
|
|
43261
43027
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43262
43028
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, request, options) {
|
|
43263
|
-
return new APIPromise($
|
|
43029
|
+
return new APIPromise($do13(client, request, options));
|
|
43264
43030
|
}
|
|
43265
|
-
async function $
|
|
43031
|
+
async function $do13(client, request, options) {
|
|
43266
43032
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43267
43033
|
if (!parsed.ok) {
|
|
43268
43034
|
return [parsed, { status: "invalid" }];
|
|
@@ -43336,12 +43102,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = __esm(() =>
|
|
|
43336
43102
|
});
|
|
43337
43103
|
|
|
43338
43104
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionPositions.ts
|
|
43339
|
-
var
|
|
43105
|
+
var args13, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions;
|
|
43340
43106
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions2 = __esm(() => {
|
|
43341
43107
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionPositions();
|
|
43342
43108
|
init_operations();
|
|
43343
43109
|
init_tools();
|
|
43344
|
-
|
|
43110
|
+
args13 = {
|
|
43345
43111
|
request: AerodromeSlipstreamLiquidityProvisionPositionsRequest$inboundSchema
|
|
43346
43112
|
};
|
|
43347
43113
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionPositions = {
|
|
@@ -43357,9 +43123,9 @@ AerodromeLPPositionsInfo, provides a structured representation of the LP positio
|
|
|
43357
43123
|
data, ensuring clarity and ease of use. This functionality is essential for users
|
|
43358
43124
|
managing their liquidity provision activities, enabling them to make informed
|
|
43359
43125
|
decisions based on their current positions.`,
|
|
43360
|
-
args:
|
|
43361
|
-
tool: async (client,
|
|
43362
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client,
|
|
43126
|
+
args: args13,
|
|
43127
|
+
tool: async (client, args14, ctx) => {
|
|
43128
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionPositions(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43363
43129
|
if (!result.ok) {
|
|
43364
43130
|
return {
|
|
43365
43131
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43374,9 +43140,9 @@ decisions based on their current positions.`,
|
|
|
43374
43140
|
|
|
43375
43141
|
// src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
43376
43142
|
function aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, request, options) {
|
|
43377
|
-
return new APIPromise($
|
|
43143
|
+
return new APIPromise($do14(client, request, options));
|
|
43378
43144
|
}
|
|
43379
|
-
async function $
|
|
43145
|
+
async function $do14(client, request, options) {
|
|
43380
43146
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43381
43147
|
if (!parsed.ok) {
|
|
43382
43148
|
return [parsed, { status: "invalid" }];
|
|
@@ -43445,12 +43211,12 @@ var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = __esm(() => {
|
|
|
43445
43211
|
});
|
|
43446
43212
|
|
|
43447
43213
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts
|
|
43448
|
-
var
|
|
43214
|
+
var args14, tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw;
|
|
43449
43215
|
var init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw2 = __esm(() => {
|
|
43450
43216
|
init_aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw();
|
|
43451
43217
|
init_components();
|
|
43452
43218
|
init_tools();
|
|
43453
|
-
|
|
43219
|
+
args14 = {
|
|
43454
43220
|
request: AerodromeSlipstreamWithdrawLiquidityProvisionRequest$inboundSchema
|
|
43455
43221
|
};
|
|
43456
43222
|
tool$aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw = {
|
|
@@ -43468,9 +43234,9 @@ wish to exit their liquidity provision activities, enabling them to reclaim thei
|
|
|
43468
43234
|
assets and potentially reallocate them to other investment opportunities. The
|
|
43469
43235
|
endpoint ensures a smooth and secure withdrawal process, facilitating users'
|
|
43470
43236
|
strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
43471
|
-
args:
|
|
43472
|
-
tool: async (client,
|
|
43473
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client,
|
|
43237
|
+
args: args14,
|
|
43238
|
+
tool: async (client, args15, ctx) => {
|
|
43239
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43474
43240
|
if (!result.ok) {
|
|
43475
43241
|
return {
|
|
43476
43242
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43485,9 +43251,9 @@ strategic management of their decentralized finance (DeFi) portfolios.`,
|
|
|
43485
43251
|
|
|
43486
43252
|
// src/funcs/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43487
43253
|
function aerodromeSlipstreamSlipstreamPoolPrice(client, request, options) {
|
|
43488
|
-
return new APIPromise($
|
|
43254
|
+
return new APIPromise($do15(client, request, options));
|
|
43489
43255
|
}
|
|
43490
|
-
async function $
|
|
43256
|
+
async function $do15(client, request, options) {
|
|
43491
43257
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43492
43258
|
if (!parsed.ok) {
|
|
43493
43259
|
return [parsed, { status: "invalid" }];
|
|
@@ -43563,12 +43329,12 @@ var init_aerodromeSlipstreamSlipstreamPoolPrice = __esm(() => {
|
|
|
43563
43329
|
});
|
|
43564
43330
|
|
|
43565
43331
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamPoolPrice.ts
|
|
43566
|
-
var
|
|
43332
|
+
var args15, tool$aerodromeSlipstreamSlipstreamPoolPrice;
|
|
43567
43333
|
var init_aerodromeSlipstreamSlipstreamPoolPrice2 = __esm(() => {
|
|
43568
43334
|
init_aerodromeSlipstreamSlipstreamPoolPrice();
|
|
43569
43335
|
init_operations();
|
|
43570
43336
|
init_tools();
|
|
43571
|
-
|
|
43337
|
+
args15 = {
|
|
43572
43338
|
request: AerodromeSlipstreamPoolPriceRequest$inboundSchema
|
|
43573
43339
|
};
|
|
43574
43340
|
tool$aerodromeSlipstreamSlipstreamPoolPrice = {
|
|
@@ -43581,9 +43347,9 @@ you can purchase for 1 token1.
|
|
|
43581
43347
|
Note that this is an instantaneous price and may change during any trade. For a more
|
|
43582
43348
|
accurate representation of the trade ratios between the two assets, consider using
|
|
43583
43349
|
the quote endpoint.`,
|
|
43584
|
-
args:
|
|
43585
|
-
tool: async (client,
|
|
43586
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client,
|
|
43350
|
+
args: args15,
|
|
43351
|
+
tool: async (client, args16, ctx) => {
|
|
43352
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamPoolPrice(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43587
43353
|
if (!result.ok) {
|
|
43588
43354
|
return {
|
|
43589
43355
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43598,9 +43364,9 @@ the quote endpoint.`,
|
|
|
43598
43364
|
|
|
43599
43365
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43600
43366
|
function aerodromeSlipstreamSlipstreamSwapBuyExactly(client, request, options) {
|
|
43601
|
-
return new APIPromise($
|
|
43367
|
+
return new APIPromise($do16(client, request, options));
|
|
43602
43368
|
}
|
|
43603
|
-
async function $
|
|
43369
|
+
async function $do16(client, request, options) {
|
|
43604
43370
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43605
43371
|
if (!parsed.ok) {
|
|
43606
43372
|
return [parsed, { status: "invalid" }];
|
|
@@ -43669,12 +43435,12 @@ var init_aerodromeSlipstreamSlipstreamSwapBuyExactly = __esm(() => {
|
|
|
43669
43435
|
});
|
|
43670
43436
|
|
|
43671
43437
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts
|
|
43672
|
-
var
|
|
43438
|
+
var args16, tool$aerodromeSlipstreamSlipstreamSwapBuyExactly;
|
|
43673
43439
|
var init_aerodromeSlipstreamSlipstreamSwapBuyExactly2 = __esm(() => {
|
|
43674
43440
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly();
|
|
43675
43441
|
init_components();
|
|
43676
43442
|
init_tools();
|
|
43677
|
-
|
|
43443
|
+
args16 = {
|
|
43678
43444
|
request: AerodromeSlipstreamBuyExactlyRequest$inboundSchema
|
|
43679
43445
|
};
|
|
43680
43446
|
tool$aerodromeSlipstreamSlipstreamSwapBuyExactly = {
|
|
@@ -43691,9 +43457,9 @@ in mind and are willing to provide the corresponding input token amount. The
|
|
|
43691
43457
|
transaction is executed with consideration of current market conditions, including
|
|
43692
43458
|
liquidity and price impact, ensuring that the trade is completed efficiently and
|
|
43693
43459
|
effectively.`,
|
|
43694
|
-
args:
|
|
43695
|
-
tool: async (client,
|
|
43696
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client,
|
|
43460
|
+
args: args16,
|
|
43461
|
+
tool: async (client, args17, ctx) => {
|
|
43462
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapBuyExactly(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43697
43463
|
if (!result.ok) {
|
|
43698
43464
|
return {
|
|
43699
43465
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43708,9 +43474,9 @@ effectively.`,
|
|
|
43708
43474
|
|
|
43709
43475
|
// src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
43710
43476
|
function aerodromeSlipstreamSlipstreamSwapSellExactly(client, request, options) {
|
|
43711
|
-
return new APIPromise($
|
|
43477
|
+
return new APIPromise($do17(client, request, options));
|
|
43712
43478
|
}
|
|
43713
|
-
async function $
|
|
43479
|
+
async function $do17(client, request, options) {
|
|
43714
43480
|
const parsed = safeParse(request, (value) => AerodromeSlipstreamSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43715
43481
|
if (!parsed.ok) {
|
|
43716
43482
|
return [parsed, { status: "invalid" }];
|
|
@@ -43779,12 +43545,12 @@ var init_aerodromeSlipstreamSlipstreamSwapSellExactly = __esm(() => {
|
|
|
43779
43545
|
});
|
|
43780
43546
|
|
|
43781
43547
|
// src/mcp-server/tools/aerodromeSlipstreamSlipstreamSwapSellExactly.ts
|
|
43782
|
-
var
|
|
43548
|
+
var args17, tool$aerodromeSlipstreamSlipstreamSwapSellExactly;
|
|
43783
43549
|
var init_aerodromeSlipstreamSlipstreamSwapSellExactly2 = __esm(() => {
|
|
43784
43550
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly();
|
|
43785
43551
|
init_components();
|
|
43786
43552
|
init_tools();
|
|
43787
|
-
|
|
43553
|
+
args17 = {
|
|
43788
43554
|
request: AerodromeSlipstreamSellExactlyRequest$inboundSchema
|
|
43789
43555
|
};
|
|
43790
43556
|
tool$aerodromeSlipstreamSlipstreamSwapSellExactly = {
|
|
@@ -43800,9 +43566,9 @@ received. The operation ensures that the trade is conducted within the constrain
|
|
|
43800
43566
|
of the current market conditions, taking into account the liquidity and price
|
|
43801
43567
|
impact. This endpoint is suitable for users who want to sell a precise quantity of a
|
|
43802
43568
|
token and are willing to accept the resulting amount of the other token.`,
|
|
43803
|
-
args:
|
|
43804
|
-
tool: async (client,
|
|
43805
|
-
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client,
|
|
43569
|
+
args: args17,
|
|
43570
|
+
tool: async (client, args18, ctx) => {
|
|
43571
|
+
const [result, apiCall] = await aerodromeSlipstreamSlipstreamSwapSellExactly(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43806
43572
|
if (!result.ok) {
|
|
43807
43573
|
return {
|
|
43808
43574
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43817,9 +43583,9 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
43817
43583
|
|
|
43818
43584
|
// src/funcs/morphoAllowance.ts
|
|
43819
43585
|
function morphoAllowance(client, request, options) {
|
|
43820
|
-
return new APIPromise($
|
|
43586
|
+
return new APIPromise($do18(client, request, options));
|
|
43821
43587
|
}
|
|
43822
|
-
async function $
|
|
43588
|
+
async function $do18(client, request, options) {
|
|
43823
43589
|
const parsed = safeParse(request, (value) => MorphoSetVaultAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43824
43590
|
if (!parsed.ok) {
|
|
43825
43591
|
return [parsed, { status: "invalid" }];
|
|
@@ -43888,12 +43654,12 @@ var init_morphoAllowance = __esm(() => {
|
|
|
43888
43654
|
});
|
|
43889
43655
|
|
|
43890
43656
|
// src/mcp-server/tools/morphoAllowance.ts
|
|
43891
|
-
var
|
|
43657
|
+
var args18, tool$morphoAllowance;
|
|
43892
43658
|
var init_morphoAllowance2 = __esm(() => {
|
|
43893
43659
|
init_morphoAllowance();
|
|
43894
43660
|
init_components();
|
|
43895
43661
|
init_tools();
|
|
43896
|
-
|
|
43662
|
+
args18 = {
|
|
43897
43663
|
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
43898
43664
|
};
|
|
43899
43665
|
tool$morphoAllowance = {
|
|
@@ -43905,9 +43671,9 @@ Set an allowance for a Morpho vault. You must set this for at least the amount y
|
|
|
43905
43671
|
Each vault has only one associated token that can be deposited.
|
|
43906
43672
|
|
|
43907
43673
|
Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
43908
|
-
args:
|
|
43909
|
-
tool: async (client,
|
|
43910
|
-
const [result, apiCall] = await morphoAllowance(client,
|
|
43674
|
+
args: args18,
|
|
43675
|
+
tool: async (client, args19, ctx) => {
|
|
43676
|
+
const [result, apiCall] = await morphoAllowance(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43911
43677
|
if (!result.ok) {
|
|
43912
43678
|
return {
|
|
43913
43679
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43922,9 +43688,9 @@ Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
|
43922
43688
|
|
|
43923
43689
|
// src/funcs/morphoBorrow.ts
|
|
43924
43690
|
function morphoBorrow(client, request, options) {
|
|
43925
|
-
return new APIPromise($
|
|
43691
|
+
return new APIPromise($do19(client, request, options));
|
|
43926
43692
|
}
|
|
43927
|
-
async function $
|
|
43693
|
+
async function $do19(client, request, options) {
|
|
43928
43694
|
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43929
43695
|
if (!parsed.ok) {
|
|
43930
43696
|
return [parsed, { status: "invalid" }];
|
|
@@ -43993,12 +43759,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
43993
43759
|
});
|
|
43994
43760
|
|
|
43995
43761
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
43996
|
-
var
|
|
43762
|
+
var args19, tool$morphoBorrow;
|
|
43997
43763
|
var init_morphoBorrow2 = __esm(() => {
|
|
43998
43764
|
init_morphoBorrow();
|
|
43999
43765
|
init_components();
|
|
44000
43766
|
init_tools();
|
|
44001
|
-
|
|
43767
|
+
args19 = {
|
|
44002
43768
|
request: MorphoBorrowRequest$inboundSchema
|
|
44003
43769
|
};
|
|
44004
43770
|
tool$morphoBorrow = {
|
|
@@ -44014,9 +43780,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44014
43780
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44015
43781
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44016
43782
|
as long as the blockchain it is deployed on is live.`,
|
|
44017
|
-
args:
|
|
44018
|
-
tool: async (client,
|
|
44019
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
43783
|
+
args: args19,
|
|
43784
|
+
tool: async (client, args20, ctx) => {
|
|
43785
|
+
const [result, apiCall] = await morphoBorrow(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44020
43786
|
if (!result.ok) {
|
|
44021
43787
|
return {
|
|
44022
43788
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44031,9 +43797,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44031
43797
|
|
|
44032
43798
|
// src/funcs/morphoDeposit.ts
|
|
44033
43799
|
function morphoDeposit(client, request, options) {
|
|
44034
|
-
return new APIPromise($
|
|
43800
|
+
return new APIPromise($do20(client, request, options));
|
|
44035
43801
|
}
|
|
44036
|
-
async function $
|
|
43802
|
+
async function $do20(client, request, options) {
|
|
44037
43803
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44038
43804
|
if (!parsed.ok) {
|
|
44039
43805
|
return [parsed, { status: "invalid" }];
|
|
@@ -44102,12 +43868,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
44102
43868
|
});
|
|
44103
43869
|
|
|
44104
43870
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
44105
|
-
var
|
|
43871
|
+
var args20, tool$morphoDeposit;
|
|
44106
43872
|
var init_morphoDeposit2 = __esm(() => {
|
|
44107
43873
|
init_morphoDeposit();
|
|
44108
43874
|
init_components();
|
|
44109
43875
|
init_tools();
|
|
44110
|
-
|
|
43876
|
+
args20 = {
|
|
44111
43877
|
request: MorphoDepositRequest$inboundSchema
|
|
44112
43878
|
};
|
|
44113
43879
|
tool$morphoDeposit = {
|
|
@@ -44125,9 +43891,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
44125
43891
|
exposure for all deposited assets so users don't need to make these decisions
|
|
44126
43892
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
44127
43893
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
44128
|
-
args:
|
|
44129
|
-
tool: async (client,
|
|
44130
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
43894
|
+
args: args20,
|
|
43895
|
+
tool: async (client, args21, ctx) => {
|
|
43896
|
+
const [result, apiCall] = await morphoDeposit(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44131
43897
|
if (!result.ok) {
|
|
44132
43898
|
return {
|
|
44133
43899
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44142,9 +43908,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
44142
43908
|
|
|
44143
43909
|
// src/funcs/morphoMarketPosition.ts
|
|
44144
43910
|
function morphoMarketPosition(client, request, options) {
|
|
44145
|
-
return new APIPromise($
|
|
43911
|
+
return new APIPromise($do21(client, request, options));
|
|
44146
43912
|
}
|
|
44147
|
-
async function $
|
|
43913
|
+
async function $do21(client, request, options) {
|
|
44148
43914
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44149
43915
|
if (!parsed.ok) {
|
|
44150
43916
|
return [parsed, { status: "invalid" }];
|
|
@@ -44219,12 +43985,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
44219
43985
|
});
|
|
44220
43986
|
|
|
44221
43987
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
44222
|
-
var
|
|
43988
|
+
var args21, tool$morphoMarketPosition;
|
|
44223
43989
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
44224
43990
|
init_morphoMarketPosition();
|
|
44225
43991
|
init_operations();
|
|
44226
43992
|
init_tools();
|
|
44227
|
-
|
|
43993
|
+
args21 = {
|
|
44228
43994
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
44229
43995
|
};
|
|
44230
43996
|
tool$morphoMarketPosition = {
|
|
@@ -44233,9 +43999,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
44233
43999
|
|
|
44234
44000
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
44235
44001
|
market.`,
|
|
44236
|
-
args:
|
|
44237
|
-
tool: async (client,
|
|
44238
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
44002
|
+
args: args21,
|
|
44003
|
+
tool: async (client, args22, ctx) => {
|
|
44004
|
+
const [result, apiCall] = await morphoMarketPosition(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44239
44005
|
if (!result.ok) {
|
|
44240
44006
|
return {
|
|
44241
44007
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44250,9 +44016,9 @@ market.`,
|
|
|
44250
44016
|
|
|
44251
44017
|
// src/funcs/morphoMarkets.ts
|
|
44252
44018
|
function morphoMarkets(client, request, options) {
|
|
44253
|
-
return new APIPromise($
|
|
44019
|
+
return new APIPromise($do22(client, request, options));
|
|
44254
44020
|
}
|
|
44255
|
-
async function $
|
|
44021
|
+
async function $do22(client, request, options) {
|
|
44256
44022
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44257
44023
|
if (!parsed.ok) {
|
|
44258
44024
|
return [parsed, { status: "invalid" }];
|
|
@@ -44327,12 +44093,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
44327
44093
|
});
|
|
44328
44094
|
|
|
44329
44095
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
44330
|
-
var
|
|
44096
|
+
var args22, tool$morphoMarkets;
|
|
44331
44097
|
var init_morphoMarkets2 = __esm(() => {
|
|
44332
44098
|
init_morphoMarkets();
|
|
44333
44099
|
init_operations();
|
|
44334
44100
|
init_tools();
|
|
44335
|
-
|
|
44101
|
+
args22 = {
|
|
44336
44102
|
request: MorphoMarketsRequest$inboundSchema
|
|
44337
44103
|
};
|
|
44338
44104
|
tool$morphoMarkets = {
|
|
@@ -44343,9 +44109,9 @@ Query a list of markets you can borrow from.
|
|
|
44343
44109
|
|
|
44344
44110
|
Each market has one unique token that can be borrowed against one unique token that
|
|
44345
44111
|
can be used as collateral.`,
|
|
44346
|
-
args:
|
|
44347
|
-
tool: async (client,
|
|
44348
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
44112
|
+
args: args22,
|
|
44113
|
+
tool: async (client, args23, ctx) => {
|
|
44114
|
+
const [result, apiCall] = await morphoMarkets(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44349
44115
|
if (!result.ok) {
|
|
44350
44116
|
return {
|
|
44351
44117
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44360,9 +44126,9 @@ can be used as collateral.`,
|
|
|
44360
44126
|
|
|
44361
44127
|
// src/funcs/morphoRepay.ts
|
|
44362
44128
|
function morphoRepay(client, request, options) {
|
|
44363
|
-
return new APIPromise($
|
|
44129
|
+
return new APIPromise($do23(client, request, options));
|
|
44364
44130
|
}
|
|
44365
|
-
async function $
|
|
44131
|
+
async function $do23(client, request, options) {
|
|
44366
44132
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44367
44133
|
if (!parsed.ok) {
|
|
44368
44134
|
return [parsed, { status: "invalid" }];
|
|
@@ -44431,12 +44197,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
44431
44197
|
});
|
|
44432
44198
|
|
|
44433
44199
|
// src/mcp-server/tools/morphoRepay.ts
|
|
44434
|
-
var
|
|
44200
|
+
var args23, tool$morphoRepay;
|
|
44435
44201
|
var init_morphoRepay2 = __esm(() => {
|
|
44436
44202
|
init_morphoRepay();
|
|
44437
44203
|
init_components();
|
|
44438
44204
|
init_tools();
|
|
44439
|
-
|
|
44205
|
+
args23 = {
|
|
44440
44206
|
request: MorphoRepayRequest$inboundSchema
|
|
44441
44207
|
};
|
|
44442
44208
|
tool$morphoRepay = {
|
|
@@ -44449,9 +44215,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44449
44215
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44450
44216
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44451
44217
|
as long as the blockchain it is deployed on is live.`,
|
|
44452
|
-
args:
|
|
44453
|
-
tool: async (client,
|
|
44454
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
44218
|
+
args: args23,
|
|
44219
|
+
tool: async (client, args24, ctx) => {
|
|
44220
|
+
const [result, apiCall] = await morphoRepay(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44455
44221
|
if (!result.ok) {
|
|
44456
44222
|
return {
|
|
44457
44223
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44466,9 +44232,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44466
44232
|
|
|
44467
44233
|
// src/funcs/morphoSupplyCollateral.ts
|
|
44468
44234
|
function morphoSupplyCollateral(client, request, options) {
|
|
44469
|
-
return new APIPromise($
|
|
44235
|
+
return new APIPromise($do24(client, request, options));
|
|
44470
44236
|
}
|
|
44471
|
-
async function $
|
|
44237
|
+
async function $do24(client, request, options) {
|
|
44472
44238
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44473
44239
|
if (!parsed.ok) {
|
|
44474
44240
|
return [parsed, { status: "invalid" }];
|
|
@@ -44537,12 +44303,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
44537
44303
|
});
|
|
44538
44304
|
|
|
44539
44305
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
44540
|
-
var
|
|
44306
|
+
var args24, tool$morphoSupplyCollateral;
|
|
44541
44307
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
44542
44308
|
init_morphoSupplyCollateral();
|
|
44543
44309
|
init_components();
|
|
44544
44310
|
init_tools();
|
|
44545
|
-
|
|
44311
|
+
args24 = {
|
|
44546
44312
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
44547
44313
|
};
|
|
44548
44314
|
tool$morphoSupplyCollateral = {
|
|
@@ -44555,9 +44321,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44555
44321
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44556
44322
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44557
44323
|
as long as the blockchain it is deployed on is live.`,
|
|
44558
|
-
args:
|
|
44559
|
-
tool: async (client,
|
|
44560
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
44324
|
+
args: args24,
|
|
44325
|
+
tool: async (client, args25, ctx) => {
|
|
44326
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44561
44327
|
if (!result.ok) {
|
|
44562
44328
|
return {
|
|
44563
44329
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44572,9 +44338,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
44572
44338
|
|
|
44573
44339
|
// src/funcs/morphoVaultPosition.ts
|
|
44574
44340
|
function morphoVaultPosition(client, request, options) {
|
|
44575
|
-
return new APIPromise($
|
|
44341
|
+
return new APIPromise($do25(client, request, options));
|
|
44576
44342
|
}
|
|
44577
|
-
async function $
|
|
44343
|
+
async function $do25(client, request, options) {
|
|
44578
44344
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44579
44345
|
if (!parsed.ok) {
|
|
44580
44346
|
return [parsed, { status: "invalid" }];
|
|
@@ -44649,12 +44415,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
44649
44415
|
});
|
|
44650
44416
|
|
|
44651
44417
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
44652
|
-
var
|
|
44418
|
+
var args25, tool$morphoVaultPosition;
|
|
44653
44419
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
44654
44420
|
init_morphoVaultPosition();
|
|
44655
44421
|
init_operations();
|
|
44656
44422
|
init_tools();
|
|
44657
|
-
|
|
44423
|
+
args25 = {
|
|
44658
44424
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
44659
44425
|
};
|
|
44660
44426
|
tool$morphoVaultPosition = {
|
|
@@ -44663,9 +44429,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
44663
44429
|
|
|
44664
44430
|
Check how many shares you own and the equivalent token amount of a given
|
|
44665
44431
|
vault.`,
|
|
44666
|
-
args:
|
|
44667
|
-
tool: async (client,
|
|
44668
|
-
const [result, apiCall] = await morphoVaultPosition(client,
|
|
44432
|
+
args: args25,
|
|
44433
|
+
tool: async (client, args26, ctx) => {
|
|
44434
|
+
const [result, apiCall] = await morphoVaultPosition(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44669
44435
|
if (!result.ok) {
|
|
44670
44436
|
return {
|
|
44671
44437
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44680,9 +44446,9 @@ vault.`,
|
|
|
44680
44446
|
|
|
44681
44447
|
// src/funcs/morphoVaults.ts
|
|
44682
44448
|
function morphoVaults(client, request, options) {
|
|
44683
|
-
return new APIPromise($
|
|
44449
|
+
return new APIPromise($do26(client, request, options));
|
|
44684
44450
|
}
|
|
44685
|
-
async function $
|
|
44451
|
+
async function $do26(client, request, options) {
|
|
44686
44452
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44687
44453
|
if (!parsed.ok) {
|
|
44688
44454
|
return [parsed, { status: "invalid" }];
|
|
@@ -44756,12 +44522,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
44756
44522
|
});
|
|
44757
44523
|
|
|
44758
44524
|
// src/mcp-server/tools/morphoVaults.ts
|
|
44759
|
-
var
|
|
44525
|
+
var args26, tool$morphoVaults;
|
|
44760
44526
|
var init_morphoVaults2 = __esm(() => {
|
|
44761
44527
|
init_morphoVaults();
|
|
44762
44528
|
init_operations();
|
|
44763
44529
|
init_tools();
|
|
44764
|
-
|
|
44530
|
+
args26 = {
|
|
44765
44531
|
request: MorphoVaultsRequest$inboundSchema
|
|
44766
44532
|
};
|
|
44767
44533
|
tool$morphoVaults = {
|
|
@@ -44773,9 +44539,9 @@ Query a list of vaults you can deposit into.
|
|
|
44773
44539
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
44774
44540
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
44775
44541
|
exchange value increasing over time.`,
|
|
44776
|
-
args:
|
|
44777
|
-
tool: async (client,
|
|
44778
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
44542
|
+
args: args26,
|
|
44543
|
+
tool: async (client, args27, ctx) => {
|
|
44544
|
+
const [result, apiCall] = await morphoVaults(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44779
44545
|
if (!result.ok) {
|
|
44780
44546
|
return {
|
|
44781
44547
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44790,9 +44556,9 @@ exchange value increasing over time.`,
|
|
|
44790
44556
|
|
|
44791
44557
|
// src/funcs/morphoWithdraw.ts
|
|
44792
44558
|
function morphoWithdraw(client, request, options) {
|
|
44793
|
-
return new APIPromise($
|
|
44559
|
+
return new APIPromise($do27(client, request, options));
|
|
44794
44560
|
}
|
|
44795
|
-
async function $
|
|
44561
|
+
async function $do27(client, request, options) {
|
|
44796
44562
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44797
44563
|
if (!parsed.ok) {
|
|
44798
44564
|
return [parsed, { status: "invalid" }];
|
|
@@ -44861,12 +44627,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
44861
44627
|
});
|
|
44862
44628
|
|
|
44863
44629
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
44864
|
-
var
|
|
44630
|
+
var args27, tool$morphoWithdraw;
|
|
44865
44631
|
var init_morphoWithdraw2 = __esm(() => {
|
|
44866
44632
|
init_morphoWithdraw();
|
|
44867
44633
|
init_components();
|
|
44868
44634
|
init_tools();
|
|
44869
|
-
|
|
44635
|
+
args27 = {
|
|
44870
44636
|
request: MorphoWithdrawRequest$inboundSchema
|
|
44871
44637
|
};
|
|
44872
44638
|
tool$morphoWithdraw = {
|
|
@@ -44884,9 +44650,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
44884
44650
|
exposure for all deposited assets so users don't need to make these decisions
|
|
44885
44651
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
44886
44652
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
44887
|
-
args:
|
|
44888
|
-
tool: async (client,
|
|
44889
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
44653
|
+
args: args27,
|
|
44654
|
+
tool: async (client, args28, ctx) => {
|
|
44655
|
+
const [result, apiCall] = await morphoWithdraw(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44890
44656
|
if (!result.ok) {
|
|
44891
44657
|
return {
|
|
44892
44658
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44901,9 +44667,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
44901
44667
|
|
|
44902
44668
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
44903
44669
|
function morphoWithdrawCollateral(client, request, options) {
|
|
44904
|
-
return new APIPromise($
|
|
44670
|
+
return new APIPromise($do28(client, request, options));
|
|
44905
44671
|
}
|
|
44906
|
-
async function $
|
|
44672
|
+
async function $do28(client, request, options) {
|
|
44907
44673
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44908
44674
|
if (!parsed.ok) {
|
|
44909
44675
|
return [parsed, { status: "invalid" }];
|
|
@@ -44972,12 +44738,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
44972
44738
|
});
|
|
44973
44739
|
|
|
44974
44740
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
44975
|
-
var
|
|
44741
|
+
var args28, tool$morphoWithdrawCollateral;
|
|
44976
44742
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
44977
44743
|
init_morphoWithdrawCollateral();
|
|
44978
44744
|
init_components();
|
|
44979
44745
|
init_tools();
|
|
44980
|
-
|
|
44746
|
+
args28 = {
|
|
44981
44747
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
44982
44748
|
};
|
|
44983
44749
|
tool$morphoWithdrawCollateral = {
|
|
@@ -44990,9 +44756,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
44990
44756
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
44991
44757
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
44992
44758
|
as long as the blockchain it is deployed on is live.`,
|
|
44993
|
-
args:
|
|
44994
|
-
tool: async (client,
|
|
44995
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
44759
|
+
args: args28,
|
|
44760
|
+
tool: async (client, args29, ctx) => {
|
|
44761
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44996
44762
|
if (!result.ok) {
|
|
44997
44763
|
return {
|
|
44998
44764
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45007,9 +44773,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
45007
44773
|
|
|
45008
44774
|
// src/funcs/skyBuy.ts
|
|
45009
44775
|
function skyBuy(client, request, options) {
|
|
45010
|
-
return new APIPromise($
|
|
44776
|
+
return new APIPromise($do29(client, request, options));
|
|
45011
44777
|
}
|
|
45012
|
-
async function $
|
|
44778
|
+
async function $do29(client, request, options) {
|
|
45013
44779
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45014
44780
|
if (!parsed.ok) {
|
|
45015
44781
|
return [parsed, { status: "invalid" }];
|
|
@@ -45078,24 +44844,28 @@ var init_skyBuy = __esm(() => {
|
|
|
45078
44844
|
});
|
|
45079
44845
|
|
|
45080
44846
|
// src/mcp-server/tools/skyBuy.ts
|
|
45081
|
-
var
|
|
44847
|
+
var args29, tool$skyBuy;
|
|
45082
44848
|
var init_skyBuy2 = __esm(() => {
|
|
45083
44849
|
init_skyBuy();
|
|
45084
44850
|
init_components();
|
|
45085
44851
|
init_tools();
|
|
45086
|
-
|
|
44852
|
+
args29 = {
|
|
45087
44853
|
request: SkyBuyRequest$inboundSchema
|
|
45088
44854
|
};
|
|
45089
44855
|
tool$skyBuy = {
|
|
45090
44856
|
name: "sky-buy",
|
|
45091
44857
|
description: `Buy USDS
|
|
45092
44858
|
|
|
45093
|
-
Buy USDS with DAI or USDC on a 1:1 basis.
|
|
44859
|
+
Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
|
|
45094
44860
|
|
|
45095
|
-
|
|
45096
|
-
|
|
45097
|
-
|
|
45098
|
-
|
|
44861
|
+
If buying with DAI, user will need to set an allowance on the DAI contract for the
|
|
44862
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
44863
|
+
|
|
44864
|
+
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
44865
|
+
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
44866
|
+
args: args29,
|
|
44867
|
+
tool: async (client, args30, ctx) => {
|
|
44868
|
+
const [result, apiCall] = await skyBuy(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45099
44869
|
if (!result.ok) {
|
|
45100
44870
|
return {
|
|
45101
44871
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45110,9 +44880,9 @@ There are no fees.`,
|
|
|
45110
44880
|
|
|
45111
44881
|
// src/funcs/skyDeposit.ts
|
|
45112
44882
|
function skyDeposit(client, request, options) {
|
|
45113
|
-
return new APIPromise($
|
|
44883
|
+
return new APIPromise($do30(client, request, options));
|
|
45114
44884
|
}
|
|
45115
|
-
async function $
|
|
44885
|
+
async function $do30(client, request, options) {
|
|
45116
44886
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45117
44887
|
if (!parsed.ok) {
|
|
45118
44888
|
return [parsed, { status: "invalid" }];
|
|
@@ -45181,12 +44951,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
45181
44951
|
});
|
|
45182
44952
|
|
|
45183
44953
|
// src/mcp-server/tools/skyDeposit.ts
|
|
45184
|
-
var
|
|
44954
|
+
var args30, tool$skyDeposit;
|
|
45185
44955
|
var init_skyDeposit2 = __esm(() => {
|
|
45186
44956
|
init_skyDeposit();
|
|
45187
44957
|
init_components();
|
|
45188
44958
|
init_tools();
|
|
45189
|
-
|
|
44959
|
+
args30 = {
|
|
45190
44960
|
request: SkyDepositRequest$inboundSchema
|
|
45191
44961
|
};
|
|
45192
44962
|
tool$skyDeposit = {
|
|
@@ -45196,9 +44966,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
45196
44966
|
Deposit USDS for sUSDS to earn yield.
|
|
45197
44967
|
|
|
45198
44968
|
There are no fees.`,
|
|
45199
|
-
args:
|
|
45200
|
-
tool: async (client,
|
|
45201
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
44969
|
+
args: args30,
|
|
44970
|
+
tool: async (client, args31, ctx) => {
|
|
44971
|
+
const [result, apiCall] = await skyDeposit(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45202
44972
|
if (!result.ok) {
|
|
45203
44973
|
return {
|
|
45204
44974
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45213,9 +44983,9 @@ There are no fees.`,
|
|
|
45213
44983
|
|
|
45214
44984
|
// src/funcs/skyPosition.ts
|
|
45215
44985
|
function skyPosition(client, request, options) {
|
|
45216
|
-
return new APIPromise($
|
|
44986
|
+
return new APIPromise($do31(client, request, options));
|
|
45217
44987
|
}
|
|
45218
|
-
async function $
|
|
44988
|
+
async function $do31(client, request, options) {
|
|
45219
44989
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45220
44990
|
if (!parsed.ok) {
|
|
45221
44991
|
return [parsed, { status: "invalid" }];
|
|
@@ -45289,12 +45059,12 @@ var init_skyPosition = __esm(() => {
|
|
|
45289
45059
|
});
|
|
45290
45060
|
|
|
45291
45061
|
// src/mcp-server/tools/skyPosition.ts
|
|
45292
|
-
var
|
|
45062
|
+
var args31, tool$skyPosition;
|
|
45293
45063
|
var init_skyPosition2 = __esm(() => {
|
|
45294
45064
|
init_skyPosition();
|
|
45295
45065
|
init_operations();
|
|
45296
45066
|
init_tools();
|
|
45297
|
-
|
|
45067
|
+
args31 = {
|
|
45298
45068
|
request: SkyPositionRequest$inboundSchema
|
|
45299
45069
|
};
|
|
45300
45070
|
tool$skyPosition = {
|
|
@@ -45302,9 +45072,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
45302
45072
|
description: `Check USDS Position
|
|
45303
45073
|
|
|
45304
45074
|
Check the USDS overall position.`,
|
|
45305
|
-
args:
|
|
45306
|
-
tool: async (client,
|
|
45307
|
-
const [result, apiCall] = await skyPosition(client,
|
|
45075
|
+
args: args31,
|
|
45076
|
+
tool: async (client, args32, ctx) => {
|
|
45077
|
+
const [result, apiCall] = await skyPosition(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45308
45078
|
if (!result.ok) {
|
|
45309
45079
|
return {
|
|
45310
45080
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45319,9 +45089,9 @@ Check the USDS overall position.`,
|
|
|
45319
45089
|
|
|
45320
45090
|
// src/funcs/skySell.ts
|
|
45321
45091
|
function skySell(client, request, options) {
|
|
45322
|
-
return new APIPromise($
|
|
45092
|
+
return new APIPromise($do32(client, request, options));
|
|
45323
45093
|
}
|
|
45324
|
-
async function $
|
|
45094
|
+
async function $do32(client, request, options) {
|
|
45325
45095
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45326
45096
|
if (!parsed.ok) {
|
|
45327
45097
|
return [parsed, { status: "invalid" }];
|
|
@@ -45390,24 +45160,28 @@ var init_skySell = __esm(() => {
|
|
|
45390
45160
|
});
|
|
45391
45161
|
|
|
45392
45162
|
// src/mcp-server/tools/skySell.ts
|
|
45393
|
-
var
|
|
45163
|
+
var args32, tool$skySell;
|
|
45394
45164
|
var init_skySell2 = __esm(() => {
|
|
45395
45165
|
init_skySell();
|
|
45396
45166
|
init_components();
|
|
45397
45167
|
init_tools();
|
|
45398
|
-
|
|
45168
|
+
args32 = {
|
|
45399
45169
|
request: SkySellRequest$inboundSchema
|
|
45400
45170
|
};
|
|
45401
45171
|
tool$skySell = {
|
|
45402
45172
|
name: "sky-sell",
|
|
45403
45173
|
description: `Sell USDS
|
|
45404
45174
|
|
|
45405
|
-
Sell USDS for DAI or USDC on a 1:1 basis.
|
|
45175
|
+
Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
|
|
45406
45176
|
|
|
45407
|
-
|
|
45408
|
-
|
|
45409
|
-
|
|
45410
|
-
|
|
45177
|
+
If swapping to DAI, user will need to set an allowance on the USDS contract for the
|
|
45178
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
45179
|
+
|
|
45180
|
+
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
45181
|
+
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
45182
|
+
args: args32,
|
|
45183
|
+
tool: async (client, args33, ctx) => {
|
|
45184
|
+
const [result, apiCall] = await skySell(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45411
45185
|
if (!result.ok) {
|
|
45412
45186
|
return {
|
|
45413
45187
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45422,9 +45196,9 @@ There are no fees.`,
|
|
|
45422
45196
|
|
|
45423
45197
|
// src/funcs/skyWithdraw.ts
|
|
45424
45198
|
function skyWithdraw(client, request, options) {
|
|
45425
|
-
return new APIPromise($
|
|
45199
|
+
return new APIPromise($do33(client, request, options));
|
|
45426
45200
|
}
|
|
45427
|
-
async function $
|
|
45201
|
+
async function $do33(client, request, options) {
|
|
45428
45202
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45429
45203
|
if (!parsed.ok) {
|
|
45430
45204
|
return [parsed, { status: "invalid" }];
|
|
@@ -45493,12 +45267,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
45493
45267
|
});
|
|
45494
45268
|
|
|
45495
45269
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
45496
|
-
var
|
|
45270
|
+
var args33, tool$skyWithdraw;
|
|
45497
45271
|
var init_skyWithdraw2 = __esm(() => {
|
|
45498
45272
|
init_skyWithdraw();
|
|
45499
45273
|
init_components();
|
|
45500
45274
|
init_tools();
|
|
45501
|
-
|
|
45275
|
+
args33 = {
|
|
45502
45276
|
request: SkyWithdrawRequest$inboundSchema
|
|
45503
45277
|
};
|
|
45504
45278
|
tool$skyWithdraw = {
|
|
@@ -45508,9 +45282,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
45508
45282
|
Withdraw USDS for sUSDS to stop earning yield.
|
|
45509
45283
|
|
|
45510
45284
|
There are no fees.`,
|
|
45511
|
-
args:
|
|
45512
|
-
tool: async (client,
|
|
45513
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
45285
|
+
args: args33,
|
|
45286
|
+
tool: async (client, args34, ctx) => {
|
|
45287
|
+
const [result, apiCall] = await skyWithdraw(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45514
45288
|
if (!result.ok) {
|
|
45515
45289
|
return {
|
|
45516
45290
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45525,9 +45299,9 @@ There are no fees.`,
|
|
|
45525
45299
|
|
|
45526
45300
|
// src/funcs/tokenAddress.ts
|
|
45527
45301
|
function tokenAddress(client, request, options) {
|
|
45528
|
-
return new APIPromise($
|
|
45302
|
+
return new APIPromise($do34(client, request, options));
|
|
45529
45303
|
}
|
|
45530
|
-
async function $
|
|
45304
|
+
async function $do34(client, request, options) {
|
|
45531
45305
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45532
45306
|
if (!parsed.ok) {
|
|
45533
45307
|
return [parsed, { status: "invalid" }];
|
|
@@ -45601,12 +45375,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
45601
45375
|
});
|
|
45602
45376
|
|
|
45603
45377
|
// src/mcp-server/tools/tokenAddress.ts
|
|
45604
|
-
var
|
|
45378
|
+
var args34, tool$tokenAddress;
|
|
45605
45379
|
var init_tokenAddress2 = __esm(() => {
|
|
45606
45380
|
init_tokenAddress();
|
|
45607
45381
|
init_operations();
|
|
45608
45382
|
init_tools();
|
|
45609
|
-
|
|
45383
|
+
args34 = {
|
|
45610
45384
|
request: TokenAddressRequest$inboundSchema
|
|
45611
45385
|
};
|
|
45612
45386
|
tool$tokenAddress = {
|
|
@@ -45614,9 +45388,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
45614
45388
|
description: `Token Address
|
|
45615
45389
|
|
|
45616
45390
|
This endpoint retrieves the address for a token supported by us.`,
|
|
45617
|
-
args:
|
|
45618
|
-
tool: async (client,
|
|
45619
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
45391
|
+
args: args34,
|
|
45392
|
+
tool: async (client, args35, ctx) => {
|
|
45393
|
+
const [result, apiCall] = await tokenAddress(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45620
45394
|
if (!result.ok) {
|
|
45621
45395
|
return {
|
|
45622
45396
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45631,9 +45405,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
45631
45405
|
|
|
45632
45406
|
// src/funcs/tokenBalance.ts
|
|
45633
45407
|
function tokenBalance(client, request, options) {
|
|
45634
|
-
return new APIPromise($
|
|
45408
|
+
return new APIPromise($do35(client, request, options));
|
|
45635
45409
|
}
|
|
45636
|
-
async function $
|
|
45410
|
+
async function $do35(client, request, options) {
|
|
45637
45411
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45638
45412
|
if (!parsed.ok) {
|
|
45639
45413
|
return [parsed, { status: "invalid" }];
|
|
@@ -45708,12 +45482,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
45708
45482
|
});
|
|
45709
45483
|
|
|
45710
45484
|
// src/mcp-server/tools/tokenBalance.ts
|
|
45711
|
-
var
|
|
45485
|
+
var args35, tool$tokenBalance;
|
|
45712
45486
|
var init_tokenBalance2 = __esm(() => {
|
|
45713
45487
|
init_tokenBalance();
|
|
45714
45488
|
init_operations();
|
|
45715
45489
|
init_tools();
|
|
45716
|
-
|
|
45490
|
+
args35 = {
|
|
45717
45491
|
request: TokenBalanceRequest$inboundSchema
|
|
45718
45492
|
};
|
|
45719
45493
|
tool$tokenBalance = {
|
|
@@ -45721,9 +45495,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
45721
45495
|
description: `Token Balance
|
|
45722
45496
|
|
|
45723
45497
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
45724
|
-
args:
|
|
45725
|
-
tool: async (client,
|
|
45726
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
45498
|
+
args: args35,
|
|
45499
|
+
tool: async (client, args36, ctx) => {
|
|
45500
|
+
const [result, apiCall] = await tokenBalance(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45727
45501
|
if (!result.ok) {
|
|
45728
45502
|
return {
|
|
45729
45503
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45738,9 +45512,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
45738
45512
|
|
|
45739
45513
|
// src/funcs/tokenPrice.ts
|
|
45740
45514
|
function tokenPrice(client, request, options) {
|
|
45741
|
-
return new APIPromise($
|
|
45515
|
+
return new APIPromise($do36(client, request, options));
|
|
45742
45516
|
}
|
|
45743
|
-
async function $
|
|
45517
|
+
async function $do36(client, request, options) {
|
|
45744
45518
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45745
45519
|
if (!parsed.ok) {
|
|
45746
45520
|
return [parsed, { status: "invalid" }];
|
|
@@ -45814,12 +45588,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
45814
45588
|
});
|
|
45815
45589
|
|
|
45816
45590
|
// src/mcp-server/tools/tokenPrice.ts
|
|
45817
|
-
var
|
|
45591
|
+
var args36, tool$tokenPrice;
|
|
45818
45592
|
var init_tokenPrice2 = __esm(() => {
|
|
45819
45593
|
init_tokenPrice();
|
|
45820
45594
|
init_operations();
|
|
45821
45595
|
init_tools();
|
|
45822
|
-
|
|
45596
|
+
args36 = {
|
|
45823
45597
|
request: TokenPriceRequest$inboundSchema
|
|
45824
45598
|
};
|
|
45825
45599
|
tool$tokenPrice = {
|
|
@@ -45831,9 +45605,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
45831
45605
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
45832
45606
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
45833
45607
|
with the update frequency of the oracle.`,
|
|
45834
|
-
args:
|
|
45835
|
-
tool: async (client,
|
|
45836
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
45608
|
+
args: args36,
|
|
45609
|
+
tool: async (client, args37, ctx) => {
|
|
45610
|
+
const [result, apiCall] = await tokenPrice(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45837
45611
|
if (!result.ok) {
|
|
45838
45612
|
return {
|
|
45839
45613
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45848,9 +45622,9 @@ with the update frequency of the oracle.`,
|
|
|
45848
45622
|
|
|
45849
45623
|
// src/funcs/tokenTransfer.ts
|
|
45850
45624
|
function tokenTransfer(client, request, options) {
|
|
45851
|
-
return new APIPromise($
|
|
45625
|
+
return new APIPromise($do37(client, request, options));
|
|
45852
45626
|
}
|
|
45853
|
-
async function $
|
|
45627
|
+
async function $do37(client, request, options) {
|
|
45854
45628
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45855
45629
|
if (!parsed.ok) {
|
|
45856
45630
|
return [parsed, { status: "invalid" }];
|
|
@@ -45919,12 +45693,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
45919
45693
|
});
|
|
45920
45694
|
|
|
45921
45695
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
45922
|
-
var
|
|
45696
|
+
var args37, tool$tokenTransfer;
|
|
45923
45697
|
var init_tokenTransfer2 = __esm(() => {
|
|
45924
45698
|
init_tokenTransfer();
|
|
45925
45699
|
init_components();
|
|
45926
45700
|
init_tools();
|
|
45927
|
-
|
|
45701
|
+
args37 = {
|
|
45928
45702
|
request: TokenTransferRequest$inboundSchema
|
|
45929
45703
|
};
|
|
45930
45704
|
tool$tokenTransfer = {
|
|
@@ -45932,9 +45706,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
45932
45706
|
description: `Transfer ETH or ERC20 Tokens
|
|
45933
45707
|
|
|
45934
45708
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
45935
|
-
args:
|
|
45936
|
-
tool: async (client,
|
|
45937
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
45709
|
+
args: args37,
|
|
45710
|
+
tool: async (client, args38, ctx) => {
|
|
45711
|
+
const [result, apiCall] = await tokenTransfer(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45938
45712
|
if (!result.ok) {
|
|
45939
45713
|
return {
|
|
45940
45714
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45949,9 +45723,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
45949
45723
|
|
|
45950
45724
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
45951
45725
|
function transactionBatchingAuthorization(client, request, options) {
|
|
45952
|
-
return new APIPromise($
|
|
45726
|
+
return new APIPromise($do38(client, request, options));
|
|
45953
45727
|
}
|
|
45954
|
-
async function $
|
|
45728
|
+
async function $do38(client, request, options) {
|
|
45955
45729
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45956
45730
|
if (!parsed.ok) {
|
|
45957
45731
|
return [parsed, { status: "invalid" }];
|
|
@@ -46020,12 +45794,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
46020
45794
|
});
|
|
46021
45795
|
|
|
46022
45796
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
46023
|
-
var
|
|
45797
|
+
var args38, tool$transactionBatchingAuthorization;
|
|
46024
45798
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
46025
45799
|
init_transactionBatchingAuthorization();
|
|
46026
45800
|
init_components();
|
|
46027
45801
|
init_tools();
|
|
46028
|
-
|
|
45802
|
+
args38 = {
|
|
46029
45803
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
46030
45804
|
};
|
|
46031
45805
|
tool$transactionBatchingAuthorization = {
|
|
@@ -46038,9 +45812,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
46038
45812
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
46039
45813
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
46040
45814
|
targeting.`,
|
|
46041
|
-
args:
|
|
46042
|
-
tool: async (client,
|
|
46043
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
45815
|
+
args: args38,
|
|
45816
|
+
tool: async (client, args39, ctx) => {
|
|
45817
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46044
45818
|
if (!result.ok) {
|
|
46045
45819
|
return {
|
|
46046
45820
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46055,9 +45829,9 @@ targeting.`,
|
|
|
46055
45829
|
|
|
46056
45830
|
// src/funcs/transactionBatchingExecute.ts
|
|
46057
45831
|
function transactionBatchingExecute(client, request, options) {
|
|
46058
|
-
return new APIPromise($
|
|
45832
|
+
return new APIPromise($do39(client, request, options));
|
|
46059
45833
|
}
|
|
46060
|
-
async function $
|
|
45834
|
+
async function $do39(client, request, options) {
|
|
46061
45835
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46062
45836
|
if (!parsed.ok) {
|
|
46063
45837
|
return [parsed, { status: "invalid" }];
|
|
@@ -46126,12 +45900,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
46126
45900
|
});
|
|
46127
45901
|
|
|
46128
45902
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
46129
|
-
var
|
|
45903
|
+
var args39, tool$transactionBatchingExecute;
|
|
46130
45904
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
46131
45905
|
init_transactionBatchingExecute();
|
|
46132
45906
|
init_components();
|
|
46133
45907
|
init_tools();
|
|
46134
|
-
|
|
45908
|
+
args39 = {
|
|
46135
45909
|
request: MulticallExecuteRequest$inboundSchema
|
|
46136
45910
|
};
|
|
46137
45911
|
tool$transactionBatchingExecute = {
|
|
@@ -46144,9 +45918,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
46144
45918
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
46145
45919
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
46146
45920
|
prevent replay attacks.`,
|
|
46147
|
-
args:
|
|
46148
|
-
tool: async (client,
|
|
46149
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
45921
|
+
args: args39,
|
|
45922
|
+
tool: async (client, args40, ctx) => {
|
|
45923
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46150
45924
|
if (!result.ok) {
|
|
46151
45925
|
return {
|
|
46152
45926
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46161,9 +45935,9 @@ prevent replay attacks.`,
|
|
|
46161
45935
|
|
|
46162
45936
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
46163
45937
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
46164
|
-
return new APIPromise($
|
|
45938
|
+
return new APIPromise($do40(client, request, options));
|
|
46165
45939
|
}
|
|
46166
|
-
async function $
|
|
45940
|
+
async function $do40(client, request, options) {
|
|
46167
45941
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46168
45942
|
if (!parsed.ok) {
|
|
46169
45943
|
return [parsed, { status: "invalid" }];
|
|
@@ -46232,12 +46006,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
46232
46006
|
});
|
|
46233
46007
|
|
|
46234
46008
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
46235
|
-
var
|
|
46009
|
+
var args40, tool$uniswapV3LiquidityProvisionIncrease;
|
|
46236
46010
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
46237
46011
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
46238
46012
|
init_components();
|
|
46239
46013
|
init_tools();
|
|
46240
|
-
|
|
46014
|
+
args40 = {
|
|
46241
46015
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
46242
46016
|
};
|
|
46243
46017
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -46253,9 +46027,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
46253
46027
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
46254
46028
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
46255
46029
|
process.`,
|
|
46256
|
-
args:
|
|
46257
|
-
tool: async (client,
|
|
46258
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
46030
|
+
args: args40,
|
|
46031
|
+
tool: async (client, args41, ctx) => {
|
|
46032
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46259
46033
|
if (!result.ok) {
|
|
46260
46034
|
return {
|
|
46261
46035
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46270,9 +46044,9 @@ process.`,
|
|
|
46270
46044
|
|
|
46271
46045
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
46272
46046
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
46273
|
-
return new APIPromise($
|
|
46047
|
+
return new APIPromise($do41(client, request, options));
|
|
46274
46048
|
}
|
|
46275
|
-
async function $
|
|
46049
|
+
async function $do41(client, request, options) {
|
|
46276
46050
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46277
46051
|
if (!parsed.ok) {
|
|
46278
46052
|
return [parsed, { status: "invalid" }];
|
|
@@ -46346,12 +46120,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
46346
46120
|
});
|
|
46347
46121
|
|
|
46348
46122
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
46349
|
-
var
|
|
46123
|
+
var args41, tool$uniswapV3LiquidityProvisionInRange;
|
|
46350
46124
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
46351
46125
|
init_uniswapV3LiquidityProvisionInRange();
|
|
46352
46126
|
init_operations();
|
|
46353
46127
|
init_tools();
|
|
46354
|
-
|
|
46128
|
+
args41 = {
|
|
46355
46129
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
46356
46130
|
};
|
|
46357
46131
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -46366,9 +46140,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
46366
46140
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
46367
46141
|
they are actively participating in the trading activities within the liquidity pool
|
|
46368
46142
|
and earning trading fees.`,
|
|
46369
|
-
args:
|
|
46370
|
-
tool: async (client,
|
|
46371
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
46143
|
+
args: args41,
|
|
46144
|
+
tool: async (client, args42, ctx) => {
|
|
46145
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46372
46146
|
if (!result.ok) {
|
|
46373
46147
|
return {
|
|
46374
46148
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46383,9 +46157,9 @@ and earning trading fees.`,
|
|
|
46383
46157
|
|
|
46384
46158
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
46385
46159
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
46386
|
-
return new APIPromise($
|
|
46160
|
+
return new APIPromise($do42(client, request, options));
|
|
46387
46161
|
}
|
|
46388
|
-
async function $
|
|
46162
|
+
async function $do42(client, request, options) {
|
|
46389
46163
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46390
46164
|
if (!parsed.ok) {
|
|
46391
46165
|
return [parsed, { status: "invalid" }];
|
|
@@ -46454,12 +46228,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
46454
46228
|
});
|
|
46455
46229
|
|
|
46456
46230
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
46457
|
-
var
|
|
46231
|
+
var args42, tool$uniswapV3LiquidityProvisionMint;
|
|
46458
46232
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
46459
46233
|
init_uniswapV3LiquidityProvisionMint();
|
|
46460
46234
|
init_components();
|
|
46461
46235
|
init_tools();
|
|
46462
|
-
|
|
46236
|
+
args42 = {
|
|
46463
46237
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
46464
46238
|
};
|
|
46465
46239
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -46475,9 +46249,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
46475
46249
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
46476
46250
|
requires details such as the token pair, amount, and any additional parameters
|
|
46477
46251
|
needed for the minting process.`,
|
|
46478
|
-
args:
|
|
46479
|
-
tool: async (client,
|
|
46480
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
46252
|
+
args: args42,
|
|
46253
|
+
tool: async (client, args43, ctx) => {
|
|
46254
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46481
46255
|
if (!result.ok) {
|
|
46482
46256
|
return {
|
|
46483
46257
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46492,9 +46266,9 @@ needed for the minting process.`,
|
|
|
46492
46266
|
|
|
46493
46267
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
46494
46268
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
46495
|
-
return new APIPromise($
|
|
46269
|
+
return new APIPromise($do43(client, request, options));
|
|
46496
46270
|
}
|
|
46497
|
-
async function $
|
|
46271
|
+
async function $do43(client, request, options) {
|
|
46498
46272
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46499
46273
|
if (!parsed.ok) {
|
|
46500
46274
|
return [parsed, { status: "invalid" }];
|
|
@@ -46568,12 +46342,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
46568
46342
|
});
|
|
46569
46343
|
|
|
46570
46344
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
46571
|
-
var
|
|
46345
|
+
var args43, tool$uniswapV3LiquidityProvisionPositions;
|
|
46572
46346
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
46573
46347
|
init_uniswapV3LiquidityProvisionPositions();
|
|
46574
46348
|
init_operations();
|
|
46575
46349
|
init_tools();
|
|
46576
|
-
|
|
46350
|
+
args43 = {
|
|
46577
46351
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
46578
46352
|
};
|
|
46579
46353
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -46587,9 +46361,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
46587
46361
|
positions, including the total number of positions and relevant metadata. This
|
|
46588
46362
|
information is crucial for users to manage and analyze their liquidity provision
|
|
46589
46363
|
activities effectively.`,
|
|
46590
|
-
args:
|
|
46591
|
-
tool: async (client,
|
|
46592
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
46364
|
+
args: args43,
|
|
46365
|
+
tool: async (client, args44, ctx) => {
|
|
46366
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46593
46367
|
if (!result.ok) {
|
|
46594
46368
|
return {
|
|
46595
46369
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46604,9 +46378,9 @@ activities effectively.`,
|
|
|
46604
46378
|
|
|
46605
46379
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46606
46380
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
46607
|
-
return new APIPromise($
|
|
46381
|
+
return new APIPromise($do44(client, request, options));
|
|
46608
46382
|
}
|
|
46609
|
-
async function $
|
|
46383
|
+
async function $do44(client, request, options) {
|
|
46610
46384
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46611
46385
|
if (!parsed.ok) {
|
|
46612
46386
|
return [parsed, { status: "invalid" }];
|
|
@@ -46675,12 +46449,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
46675
46449
|
});
|
|
46676
46450
|
|
|
46677
46451
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
46678
|
-
var
|
|
46452
|
+
var args44, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
46679
46453
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
46680
46454
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
46681
46455
|
init_components();
|
|
46682
46456
|
init_tools();
|
|
46683
|
-
|
|
46457
|
+
args44 = {
|
|
46684
46458
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
46685
46459
|
};
|
|
46686
46460
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -46697,9 +46471,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
46697
46471
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
46698
46472
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
46699
46473
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
46700
|
-
args:
|
|
46701
|
-
tool: async (client,
|
|
46702
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
46474
|
+
args: args44,
|
|
46475
|
+
tool: async (client, args45, ctx) => {
|
|
46476
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46703
46477
|
if (!result.ok) {
|
|
46704
46478
|
return {
|
|
46705
46479
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46714,9 +46488,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
46714
46488
|
|
|
46715
46489
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
46716
46490
|
function uniswapV3PoolPrice(client, request, options) {
|
|
46717
|
-
return new APIPromise($
|
|
46491
|
+
return new APIPromise($do45(client, request, options));
|
|
46718
46492
|
}
|
|
46719
|
-
async function $
|
|
46493
|
+
async function $do45(client, request, options) {
|
|
46720
46494
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46721
46495
|
if (!parsed.ok) {
|
|
46722
46496
|
return [parsed, { status: "invalid" }];
|
|
@@ -46792,12 +46566,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
46792
46566
|
});
|
|
46793
46567
|
|
|
46794
46568
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
46795
|
-
var
|
|
46569
|
+
var args45, tool$uniswapV3PoolPrice;
|
|
46796
46570
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
46797
46571
|
init_uniswapV3PoolPrice();
|
|
46798
46572
|
init_operations();
|
|
46799
46573
|
init_tools();
|
|
46800
|
-
|
|
46574
|
+
args45 = {
|
|
46801
46575
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
46802
46576
|
};
|
|
46803
46577
|
tool$uniswapV3PoolPrice = {
|
|
@@ -46807,9 +46581,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
46807
46581
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
46808
46582
|
|
|
46809
46583
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
46810
|
-
args:
|
|
46811
|
-
tool: async (client,
|
|
46812
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
46584
|
+
args: args45,
|
|
46585
|
+
tool: async (client, args46, ctx) => {
|
|
46586
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46813
46587
|
if (!result.ok) {
|
|
46814
46588
|
return {
|
|
46815
46589
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46824,9 +46598,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
46824
46598
|
|
|
46825
46599
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
46826
46600
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
46827
|
-
return new APIPromise($
|
|
46601
|
+
return new APIPromise($do46(client, request, options));
|
|
46828
46602
|
}
|
|
46829
|
-
async function $
|
|
46603
|
+
async function $do46(client, request, options) {
|
|
46830
46604
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46831
46605
|
if (!parsed.ok) {
|
|
46832
46606
|
return [parsed, { status: "invalid" }];
|
|
@@ -46903,12 +46677,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
46903
46677
|
});
|
|
46904
46678
|
|
|
46905
46679
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
46906
|
-
var
|
|
46680
|
+
var args46, tool$uniswapV3QuoteBuyExactly;
|
|
46907
46681
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
46908
46682
|
init_uniswapV3QuoteBuyExactly();
|
|
46909
46683
|
init_operations();
|
|
46910
46684
|
init_tools();
|
|
46911
|
-
|
|
46685
|
+
args46 = {
|
|
46912
46686
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
46913
46687
|
};
|
|
46914
46688
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -46920,9 +46694,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
46920
46694
|
|
|
46921
46695
|
It also provides the resulting price after the transaction. The calculation takes
|
|
46922
46696
|
into account the current pool state and the specified fee tier.`,
|
|
46923
|
-
args:
|
|
46924
|
-
tool: async (client,
|
|
46925
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
46697
|
+
args: args46,
|
|
46698
|
+
tool: async (client, args47, ctx) => {
|
|
46699
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46926
46700
|
if (!result.ok) {
|
|
46927
46701
|
return {
|
|
46928
46702
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46937,9 +46711,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
46937
46711
|
|
|
46938
46712
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
46939
46713
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
46940
|
-
return new APIPromise($
|
|
46714
|
+
return new APIPromise($do47(client, request, options));
|
|
46941
46715
|
}
|
|
46942
|
-
async function $
|
|
46716
|
+
async function $do47(client, request, options) {
|
|
46943
46717
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46944
46718
|
if (!parsed.ok) {
|
|
46945
46719
|
return [parsed, { status: "invalid" }];
|
|
@@ -47016,12 +46790,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
47016
46790
|
});
|
|
47017
46791
|
|
|
47018
46792
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
47019
|
-
var
|
|
46793
|
+
var args47, tool$uniswapV3QuoteSellExactly;
|
|
47020
46794
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
47021
46795
|
init_uniswapV3QuoteSellExactly();
|
|
47022
46796
|
init_operations();
|
|
47023
46797
|
init_tools();
|
|
47024
|
-
|
|
46798
|
+
args47 = {
|
|
47025
46799
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
47026
46800
|
};
|
|
47027
46801
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -47033,9 +46807,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
47033
46807
|
|
|
47034
46808
|
It also provides the resulting price after the transaction. The calculation takes
|
|
47035
46809
|
into account the current pool state and the specified fee tier.`,
|
|
47036
|
-
args:
|
|
47037
|
-
tool: async (client,
|
|
47038
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
46810
|
+
args: args47,
|
|
46811
|
+
tool: async (client, args48, ctx) => {
|
|
46812
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47039
46813
|
if (!result.ok) {
|
|
47040
46814
|
return {
|
|
47041
46815
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47050,9 +46824,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
47050
46824
|
|
|
47051
46825
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
47052
46826
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
47053
|
-
return new APIPromise($
|
|
46827
|
+
return new APIPromise($do48(client, request, options));
|
|
47054
46828
|
}
|
|
47055
|
-
async function $
|
|
46829
|
+
async function $do48(client, request, options) {
|
|
47056
46830
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47057
46831
|
if (!parsed.ok) {
|
|
47058
46832
|
return [parsed, { status: "invalid" }];
|
|
@@ -47121,12 +46895,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
47121
46895
|
});
|
|
47122
46896
|
|
|
47123
46897
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
47124
|
-
var
|
|
46898
|
+
var args48, tool$uniswapV3SwapBuyExactly;
|
|
47125
46899
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
47126
46900
|
init_uniswapV3SwapBuyExactly();
|
|
47127
46901
|
init_components();
|
|
47128
46902
|
init_tools();
|
|
47129
|
-
|
|
46903
|
+
args48 = {
|
|
47130
46904
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
47131
46905
|
};
|
|
47132
46906
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -47140,9 +46914,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
47140
46914
|
provide the necessary transaction details, including the token to buy, the token to
|
|
47141
46915
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
47142
46916
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
47143
|
-
args:
|
|
47144
|
-
tool: async (client,
|
|
47145
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
46917
|
+
args: args48,
|
|
46918
|
+
tool: async (client, args49, ctx) => {
|
|
46919
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47146
46920
|
if (!result.ok) {
|
|
47147
46921
|
return {
|
|
47148
46922
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47157,9 +46931,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
47157
46931
|
|
|
47158
46932
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
47159
46933
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
47160
|
-
return new APIPromise($
|
|
46934
|
+
return new APIPromise($do49(client, request, options));
|
|
47161
46935
|
}
|
|
47162
|
-
async function $
|
|
46936
|
+
async function $do49(client, request, options) {
|
|
47163
46937
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47164
46938
|
if (!parsed.ok) {
|
|
47165
46939
|
return [parsed, { status: "invalid" }];
|
|
@@ -47228,12 +47002,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
47228
47002
|
});
|
|
47229
47003
|
|
|
47230
47004
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
47231
|
-
var
|
|
47005
|
+
var args49, tool$uniswapV3SwapSellExactly;
|
|
47232
47006
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
47233
47007
|
init_uniswapV3SwapSellExactly();
|
|
47234
47008
|
init_components();
|
|
47235
47009
|
init_tools();
|
|
47236
|
-
|
|
47010
|
+
args49 = {
|
|
47237
47011
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
47238
47012
|
};
|
|
47239
47013
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -47247,9 +47021,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
47247
47021
|
provide the necessary transaction details, including the token to sell, the token to
|
|
47248
47022
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
47249
47023
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
47250
|
-
args:
|
|
47251
|
-
tool: async (client,
|
|
47252
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
47024
|
+
args: args49,
|
|
47025
|
+
tool: async (client, args50, ctx) => {
|
|
47026
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47253
47027
|
if (!result.ok) {
|
|
47254
47028
|
return {
|
|
47255
47029
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47264,9 +47038,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
47264
47038
|
|
|
47265
47039
|
// src/funcs/universalAllowance.ts
|
|
47266
47040
|
function universalAllowance(client, request, options) {
|
|
47267
|
-
return new APIPromise($
|
|
47041
|
+
return new APIPromise($do50(client, request, options));
|
|
47268
47042
|
}
|
|
47269
|
-
async function $
|
|
47043
|
+
async function $do50(client, request, options) {
|
|
47270
47044
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47271
47045
|
if (!parsed.ok) {
|
|
47272
47046
|
return [parsed, { status: "invalid" }];
|
|
@@ -47342,12 +47116,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
47342
47116
|
});
|
|
47343
47117
|
|
|
47344
47118
|
// src/mcp-server/tools/universalAllowance.ts
|
|
47345
|
-
var
|
|
47119
|
+
var args50, tool$universalAllowance;
|
|
47346
47120
|
var init_universalAllowance2 = __esm(() => {
|
|
47347
47121
|
init_universalAllowance();
|
|
47348
47122
|
init_operations();
|
|
47349
47123
|
init_tools();
|
|
47350
|
-
|
|
47124
|
+
args50 = {
|
|
47351
47125
|
request: GenericAllowanceRequest$inboundSchema
|
|
47352
47126
|
};
|
|
47353
47127
|
tool$universalAllowance = {
|
|
@@ -47361,9 +47135,9 @@ tokens on their behalf.
|
|
|
47361
47135
|
This is a crucial step before engaging in any transactions or operations within
|
|
47362
47136
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
47363
47137
|
the user's tokens securely and efficiently.`,
|
|
47364
|
-
args:
|
|
47365
|
-
tool: async (client,
|
|
47366
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
47138
|
+
args: args50,
|
|
47139
|
+
tool: async (client, args51, ctx) => {
|
|
47140
|
+
const [result, apiCall] = await universalAllowance(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47367
47141
|
if (!result.ok) {
|
|
47368
47142
|
return {
|
|
47369
47143
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47378,9 +47152,9 @@ the user's tokens securely and efficiently.`,
|
|
|
47378
47152
|
|
|
47379
47153
|
// src/funcs/universalAllowanceSet.ts
|
|
47380
47154
|
function universalAllowanceSet(client, request, options) {
|
|
47381
|
-
return new APIPromise($
|
|
47155
|
+
return new APIPromise($do51(client, request, options));
|
|
47382
47156
|
}
|
|
47383
|
-
async function $
|
|
47157
|
+
async function $do51(client, request, options) {
|
|
47384
47158
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47385
47159
|
if (!parsed.ok) {
|
|
47386
47160
|
return [parsed, { status: "invalid" }];
|
|
@@ -47449,12 +47223,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
47449
47223
|
});
|
|
47450
47224
|
|
|
47451
47225
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
47452
|
-
var
|
|
47226
|
+
var args51, tool$universalAllowanceSet;
|
|
47453
47227
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
47454
47228
|
init_universalAllowanceSet();
|
|
47455
47229
|
init_components();
|
|
47456
47230
|
init_tools();
|
|
47457
|
-
|
|
47231
|
+
args51 = {
|
|
47458
47232
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
47459
47233
|
};
|
|
47460
47234
|
tool$universalAllowanceSet = {
|
|
@@ -47468,9 +47242,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
47468
47242
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
47469
47243
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
47470
47244
|
within the DeFi ecosystem.`,
|
|
47471
|
-
args:
|
|
47472
|
-
tool: async (client,
|
|
47473
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
47245
|
+
args: args51,
|
|
47246
|
+
tool: async (client, args52, ctx) => {
|
|
47247
|
+
const [result, apiCall] = await universalAllowanceSet(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47474
47248
|
if (!result.ok) {
|
|
47475
47249
|
return {
|
|
47476
47250
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47485,9 +47259,9 @@ within the DeFi ecosystem.`,
|
|
|
47485
47259
|
|
|
47486
47260
|
// src/funcs/universalEns.ts
|
|
47487
47261
|
function universalEns(client, request, options) {
|
|
47488
|
-
return new APIPromise($
|
|
47262
|
+
return new APIPromise($do52(client, request, options));
|
|
47489
47263
|
}
|
|
47490
|
-
async function $
|
|
47264
|
+
async function $do52(client, request, options) {
|
|
47491
47265
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47492
47266
|
if (!parsed.ok) {
|
|
47493
47267
|
return [parsed, { status: "invalid" }];
|
|
@@ -47561,12 +47335,12 @@ var init_universalEns = __esm(() => {
|
|
|
47561
47335
|
});
|
|
47562
47336
|
|
|
47563
47337
|
// src/mcp-server/tools/universalEns.ts
|
|
47564
|
-
var
|
|
47338
|
+
var args52, tool$universalEns;
|
|
47565
47339
|
var init_universalEns2 = __esm(() => {
|
|
47566
47340
|
init_universalEns();
|
|
47567
47341
|
init_operations();
|
|
47568
47342
|
init_tools();
|
|
47569
|
-
|
|
47343
|
+
args52 = {
|
|
47570
47344
|
request: GenericEnsRequest$inboundSchema
|
|
47571
47345
|
};
|
|
47572
47346
|
tool$universalEns = {
|
|
@@ -47577,9 +47351,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
47577
47351
|
|
|
47578
47352
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
47579
47353
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
47580
|
-
args:
|
|
47581
|
-
tool: async (client,
|
|
47582
|
-
const [result, apiCall] = await universalEns(client,
|
|
47354
|
+
args: args52,
|
|
47355
|
+
tool: async (client, args53, ctx) => {
|
|
47356
|
+
const [result, apiCall] = await universalEns(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47583
47357
|
if (!result.ok) {
|
|
47584
47358
|
return {
|
|
47585
47359
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47594,9 +47368,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
47594
47368
|
|
|
47595
47369
|
// src/funcs/universalPortfolio.ts
|
|
47596
47370
|
function universalPortfolio(client, request, options) {
|
|
47597
|
-
return new APIPromise($
|
|
47371
|
+
return new APIPromise($do53(client, request, options));
|
|
47598
47372
|
}
|
|
47599
|
-
async function $
|
|
47373
|
+
async function $do53(client, request, options) {
|
|
47600
47374
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47601
47375
|
if (!parsed.ok) {
|
|
47602
47376
|
return [parsed, { status: "invalid" }];
|
|
@@ -47670,12 +47444,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
47670
47444
|
});
|
|
47671
47445
|
|
|
47672
47446
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
47673
|
-
var
|
|
47447
|
+
var args53, tool$universalPortfolio;
|
|
47674
47448
|
var init_universalPortfolio2 = __esm(() => {
|
|
47675
47449
|
init_universalPortfolio();
|
|
47676
47450
|
init_operations();
|
|
47677
47451
|
init_tools();
|
|
47678
|
-
|
|
47452
|
+
args53 = {
|
|
47679
47453
|
request: GenericPortfolioRequest$inboundSchema
|
|
47680
47454
|
};
|
|
47681
47455
|
tool$universalPortfolio = {
|
|
@@ -47686,9 +47460,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
47686
47460
|
|
|
47687
47461
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
47688
47462
|
balances, including their respective values and quantities.`,
|
|
47689
|
-
args:
|
|
47690
|
-
tool: async (client,
|
|
47691
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
47463
|
+
args: args53,
|
|
47464
|
+
tool: async (client, args54, ctx) => {
|
|
47465
|
+
const [result, apiCall] = await universalPortfolio(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47692
47466
|
if (!result.ok) {
|
|
47693
47467
|
return {
|
|
47694
47468
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47703,9 +47477,9 @@ balances, including their respective values and quantities.`,
|
|
|
47703
47477
|
|
|
47704
47478
|
// src/funcs/universalSupportedTokens.ts
|
|
47705
47479
|
function universalSupportedTokens(client, request, options) {
|
|
47706
|
-
return new APIPromise($
|
|
47480
|
+
return new APIPromise($do54(client, request, options));
|
|
47707
47481
|
}
|
|
47708
|
-
async function $
|
|
47482
|
+
async function $do54(client, request, options) {
|
|
47709
47483
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47710
47484
|
if (!parsed.ok) {
|
|
47711
47485
|
return [parsed, { status: "invalid" }];
|
|
@@ -47778,12 +47552,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
47778
47552
|
});
|
|
47779
47553
|
|
|
47780
47554
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
47781
|
-
var
|
|
47555
|
+
var args54, tool$universalSupportedTokens;
|
|
47782
47556
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
47783
47557
|
init_universalSupportedTokens();
|
|
47784
47558
|
init_operations();
|
|
47785
47559
|
init_tools();
|
|
47786
|
-
|
|
47560
|
+
args54 = {
|
|
47787
47561
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
47788
47562
|
};
|
|
47789
47563
|
tool$universalSupportedTokens = {
|
|
@@ -47791,9 +47565,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
47791
47565
|
description: `List supported tokens
|
|
47792
47566
|
|
|
47793
47567
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
47794
|
-
args:
|
|
47795
|
-
tool: async (client,
|
|
47796
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
47568
|
+
args: args54,
|
|
47569
|
+
tool: async (client, args55, ctx) => {
|
|
47570
|
+
const [result, apiCall] = await universalSupportedTokens(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47797
47571
|
if (!result.ok) {
|
|
47798
47572
|
return {
|
|
47799
47573
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47808,9 +47582,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
47808
47582
|
|
|
47809
47583
|
// src/funcs/universalUnwrapWeth.ts
|
|
47810
47584
|
function universalUnwrapWeth(client, request, options) {
|
|
47811
|
-
return new APIPromise($
|
|
47585
|
+
return new APIPromise($do55(client, request, options));
|
|
47812
47586
|
}
|
|
47813
|
-
async function $
|
|
47587
|
+
async function $do55(client, request, options) {
|
|
47814
47588
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47815
47589
|
if (!parsed.ok) {
|
|
47816
47590
|
return [parsed, { status: "invalid" }];
|
|
@@ -47879,12 +47653,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
47879
47653
|
});
|
|
47880
47654
|
|
|
47881
47655
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
47882
|
-
var
|
|
47656
|
+
var args55, tool$universalUnwrapWeth;
|
|
47883
47657
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
47884
47658
|
init_universalUnwrapWeth();
|
|
47885
47659
|
init_components();
|
|
47886
47660
|
init_tools();
|
|
47887
|
-
|
|
47661
|
+
args55 = {
|
|
47888
47662
|
request: UnwrapWethRequest$inboundSchema
|
|
47889
47663
|
};
|
|
47890
47664
|
tool$universalUnwrapWeth = {
|
|
@@ -47893,9 +47667,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
47893
47667
|
|
|
47894
47668
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
47895
47669
|
can be used for gas and other native purposes.`,
|
|
47896
|
-
args:
|
|
47897
|
-
tool: async (client,
|
|
47898
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
47670
|
+
args: args55,
|
|
47671
|
+
tool: async (client, args56, ctx) => {
|
|
47672
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47899
47673
|
if (!result.ok) {
|
|
47900
47674
|
return {
|
|
47901
47675
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47910,9 +47684,9 @@ can be used for gas and other native purposes.`,
|
|
|
47910
47684
|
|
|
47911
47685
|
// src/funcs/universalVisualizePortfolio.ts
|
|
47912
47686
|
function universalVisualizePortfolio(client, request, options) {
|
|
47913
|
-
return new APIPromise($
|
|
47687
|
+
return new APIPromise($do56(client, request, options));
|
|
47914
47688
|
}
|
|
47915
|
-
async function $
|
|
47689
|
+
async function $do56(client, request, options) {
|
|
47916
47690
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47917
47691
|
if (!parsed.ok) {
|
|
47918
47692
|
return [parsed, { status: "invalid" }];
|
|
@@ -47986,12 +47760,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
47986
47760
|
});
|
|
47987
47761
|
|
|
47988
47762
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
47989
|
-
var
|
|
47763
|
+
var args56, tool$universalVisualizePortfolio;
|
|
47990
47764
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
47991
47765
|
init_universalVisualizePortfolio();
|
|
47992
47766
|
init_operations();
|
|
47993
47767
|
init_tools();
|
|
47994
|
-
|
|
47768
|
+
args56 = {
|
|
47995
47769
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
47996
47770
|
};
|
|
47997
47771
|
tool$universalVisualizePortfolio = {
|
|
@@ -48003,9 +47777,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
48003
47777
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
48004
47778
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
48005
47779
|
USD.`,
|
|
48006
|
-
args:
|
|
48007
|
-
tool: async (client,
|
|
48008
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
47780
|
+
args: args56,
|
|
47781
|
+
tool: async (client, args57, ctx) => {
|
|
47782
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48009
47783
|
if (!result.ok) {
|
|
48010
47784
|
return {
|
|
48011
47785
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48020,9 +47794,9 @@ USD.`,
|
|
|
48020
47794
|
|
|
48021
47795
|
// src/funcs/universalWrapEth.ts
|
|
48022
47796
|
function universalWrapEth(client, request, options) {
|
|
48023
|
-
return new APIPromise($
|
|
47797
|
+
return new APIPromise($do57(client, request, options));
|
|
48024
47798
|
}
|
|
48025
|
-
async function $
|
|
47799
|
+
async function $do57(client, request, options) {
|
|
48026
47800
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48027
47801
|
if (!parsed.ok) {
|
|
48028
47802
|
return [parsed, { status: "invalid" }];
|
|
@@ -48091,12 +47865,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
48091
47865
|
});
|
|
48092
47866
|
|
|
48093
47867
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
48094
|
-
var
|
|
47868
|
+
var args57, tool$universalWrapEth;
|
|
48095
47869
|
var init_universalWrapEth2 = __esm(() => {
|
|
48096
47870
|
init_universalWrapEth();
|
|
48097
47871
|
init_components();
|
|
48098
47872
|
init_tools();
|
|
48099
|
-
|
|
47873
|
+
args57 = {
|
|
48100
47874
|
request: WrapEthRequest$inboundSchema
|
|
48101
47875
|
};
|
|
48102
47876
|
tool$universalWrapEth = {
|
|
@@ -48105,9 +47879,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
48105
47879
|
|
|
48106
47880
|
Wrapping ETH creates an ERC-20 compliant form of ETH that is typically needed for
|
|
48107
47881
|
it to be traded on DeFi protocols.`,
|
|
48108
|
-
args:
|
|
48109
|
-
tool: async (client,
|
|
48110
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
47882
|
+
args: args57,
|
|
47883
|
+
tool: async (client, args58, ctx) => {
|
|
47884
|
+
const [result, apiCall] = await universalWrapEth(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48111
47885
|
if (!result.ok) {
|
|
48112
47886
|
return {
|
|
48113
47887
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48124,7 +47898,7 @@ it to be traded on DeFi protocols.`,
|
|
|
48124
47898
|
function createMCPServer(deps) {
|
|
48125
47899
|
const server = new McpServer({
|
|
48126
47900
|
name: "CompassApiSDK",
|
|
48127
|
-
version: "0.0.
|
|
47901
|
+
version: "0.0.22"
|
|
48128
47902
|
});
|
|
48129
47903
|
const client = new CompassApiSDKCore({
|
|
48130
47904
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -48138,6 +47912,7 @@ function createMCPServer(deps) {
|
|
|
48138
47912
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
48139
47913
|
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
48140
47914
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
47915
|
+
tool(tool$aaveV3Rate);
|
|
48141
47916
|
tool(tool$aaveV3TokenPrice);
|
|
48142
47917
|
tool(tool$aaveV3LiquidityChange);
|
|
48143
47918
|
tool(tool$aaveV3UserPositionSummary);
|
|
@@ -48204,6 +47979,7 @@ var init_server2 = __esm(() => {
|
|
|
48204
47979
|
init_aaveV3Borrow2();
|
|
48205
47980
|
init_aaveV3HistoricalTransactions2();
|
|
48206
47981
|
init_aaveV3LiquidityChange2();
|
|
47982
|
+
init_aaveV3Rate2();
|
|
48207
47983
|
init_aaveV3Repay2();
|
|
48208
47984
|
init_aaveV3Supply2();
|
|
48209
47985
|
init_aaveV3TokenPrice2();
|
|
@@ -49447,7 +49223,7 @@ var routes = an({
|
|
|
49447
49223
|
var app = He(routes, {
|
|
49448
49224
|
name: "mcp",
|
|
49449
49225
|
versionInfo: {
|
|
49450
|
-
currentVersion: "0.0.
|
|
49226
|
+
currentVersion: "0.0.22"
|
|
49451
49227
|
}
|
|
49452
49228
|
});
|
|
49453
49229
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49455,5 +49231,5 @@ export {
|
|
|
49455
49231
|
app
|
|
49456
49232
|
};
|
|
49457
49233
|
|
|
49458
|
-
//# debugId=
|
|
49234
|
+
//# debugId=8B8F3934CCA02DDD64756E2164756E21
|
|
49459
49235
|
//# sourceMappingURL=mcp-server.js.map
|