@compass-labs/api-sdk 0.5.2 → 0.5.4
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/README.md +2 -0
- package/bin/mcp-server.js +448 -261
- package/bin/mcp-server.js.map +14 -10
- package/dist/commonjs/funcs/pendleRedeemYield.d.ts +17 -0
- package/dist/commonjs/funcs/pendleRedeemYield.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleRedeemYield.js +118 -0
- package/dist/commonjs/funcs/pendleRedeemYield.js.map +1 -0
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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/pendleRedeemYield.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleRedeemYield.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleRedeemYield.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendleRedeemYield.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/pendleredeemyieldparams.d.ts +34 -0
- package/dist/commonjs/models/components/pendleredeemyieldparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendleredeemyieldparams.js +82 -0
- package/dist/commonjs/models/components/pendleredeemyieldparams.js.map +1 -0
- package/dist/commonjs/models/components/pendleredeemyieldrequest.d.ts +45 -0
- package/dist/commonjs/models/components/pendleredeemyieldrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendleredeemyieldrequest.js +87 -0
- package/dist/commonjs/models/components/pendleredeemyieldrequest.js.map +1 -0
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.d.ts +2 -2
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.js +2 -2
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.js.map +1 -1
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionrequest.d.ts +2 -2
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionrequest.js +2 -2
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionrequest.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +35 -188
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +39 -24
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/sdk/pendle.d.ts +7 -0
- package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
- package/dist/commonjs/sdk/pendle.js +10 -0
- package/dist/commonjs/sdk/pendle.js.map +1 -1
- package/dist/esm/funcs/pendleRedeemYield.d.ts +17 -0
- package/dist/esm/funcs/pendleRedeemYield.d.ts.map +1 -0
- package/dist/esm/funcs/pendleRedeemYield.js +82 -0
- package/dist/esm/funcs/pendleRedeemYield.js.map +1 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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/pendleRedeemYield.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleRedeemYield.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleRedeemYield.js +28 -0
- package/dist/esm/mcp-server/tools/pendleRedeemYield.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/pendleredeemyieldparams.d.ts +34 -0
- package/dist/esm/models/components/pendleredeemyieldparams.d.ts.map +1 -0
- package/dist/esm/models/components/pendleredeemyieldparams.js +44 -0
- package/dist/esm/models/components/pendleredeemyieldparams.js.map +1 -0
- package/dist/esm/models/components/pendleredeemyieldrequest.d.ts +45 -0
- package/dist/esm/models/components/pendleredeemyieldrequest.d.ts.map +1 -0
- package/dist/esm/models/components/pendleredeemyieldrequest.js +49 -0
- package/dist/esm/models/components/pendleredeemyieldrequest.js.map +1 -0
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.d.ts +2 -2
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.js +2 -2
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.js.map +1 -1
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionrequest.d.ts +2 -2
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionrequest.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionrequest.js +2 -2
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionrequest.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +35 -188
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +39 -24
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/sdk/pendle.d.ts +7 -0
- package/dist/esm/sdk/pendle.d.ts.map +1 -1
- package/dist/esm/sdk/pendle.js +10 -0
- package/dist/esm/sdk/pendle.js.map +1 -1
- package/docs/sdks/pendle/README.md +82 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/pendleRedeemYield.ts +165 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/pendleRedeemYield.ts +37 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/pendleredeemyieldparams.ts +86 -0
- package/src/models/components/pendleredeemyieldrequest.ts +101 -0
- package/src/models/components/uniswapincreaseliquidityprovisionparams.ts +6 -6
- package/src/models/components/uniswapincreaseliquidityprovisionrequest.ts +6 -6
- package/src/models/components/useroperation.ts +104 -54
- package/src/sdk/pendle.ts +18 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
|
|
|
34205
34205
|
SDK_METADATA = {
|
|
34206
34206
|
language: "typescript",
|
|
34207
34207
|
openapiDocVersion: "0.0.1",
|
|
34208
|
-
sdkVersion: "0.5.
|
|
34209
|
-
genVersion: "2.
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34208
|
+
sdkVersion: "0.5.4",
|
|
34209
|
+
genVersion: "2.618.0",
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.5.4 2.618.0 0.0.1 @compass-labs/api-sdk"
|
|
34211
34211
|
};
|
|
34212
34212
|
});
|
|
34213
34213
|
|
|
@@ -37997,6 +37997,35 @@ var init_pendlebuyytparams = __esm(() => {
|
|
|
37997
37997
|
})(PendleBuyYtParams$ ||= {});
|
|
37998
37998
|
});
|
|
37999
37999
|
|
|
38000
|
+
// src/models/components/pendleredeemyieldparams.ts
|
|
38001
|
+
var PendleRedeemYieldParams$inboundSchema, PendleRedeemYieldParams$outboundSchema, PendleRedeemYieldParams$;
|
|
38002
|
+
var init_pendleredeemyieldparams = __esm(() => {
|
|
38003
|
+
init_esm();
|
|
38004
|
+
init_primitives();
|
|
38005
|
+
PendleRedeemYieldParams$inboundSchema = objectType({
|
|
38006
|
+
action_type: literalType("PENDLE_REDEEM_YIELD").default("PENDLE_REDEEM_YIELD"),
|
|
38007
|
+
market_address: stringType()
|
|
38008
|
+
}).transform((v2) => {
|
|
38009
|
+
return remap(v2, {
|
|
38010
|
+
action_type: "actionType",
|
|
38011
|
+
market_address: "marketAddress"
|
|
38012
|
+
});
|
|
38013
|
+
});
|
|
38014
|
+
PendleRedeemYieldParams$outboundSchema = objectType({
|
|
38015
|
+
actionType: literalType("PENDLE_REDEEM_YIELD").default("PENDLE_REDEEM_YIELD"),
|
|
38016
|
+
marketAddress: stringType()
|
|
38017
|
+
}).transform((v2) => {
|
|
38018
|
+
return remap(v2, {
|
|
38019
|
+
actionType: "action_type",
|
|
38020
|
+
marketAddress: "market_address"
|
|
38021
|
+
});
|
|
38022
|
+
});
|
|
38023
|
+
((PendleRedeemYieldParams$) => {
|
|
38024
|
+
PendleRedeemYieldParams$.inboundSchema = PendleRedeemYieldParams$inboundSchema;
|
|
38025
|
+
PendleRedeemYieldParams$.outboundSchema = PendleRedeemYieldParams$outboundSchema;
|
|
38026
|
+
})(PendleRedeemYieldParams$ ||= {});
|
|
38027
|
+
});
|
|
38028
|
+
|
|
38000
38029
|
// src/models/components/pendlesellptparams.ts
|
|
38001
38030
|
var PendleSellPtParamsAmount$inboundSchema, PendleSellPtParamsAmount$outboundSchema, PendleSellPtParamsAmount$, PendleSellPtParams$inboundSchema, PendleSellPtParams$outboundSchema, PendleSellPtParams$;
|
|
38002
38031
|
var init_pendlesellptparams = __esm(() => {
|
|
@@ -38368,7 +38397,7 @@ var init_uniswapincreaseliquidityprovisionparams = __esm(() => {
|
|
|
38368
38397
|
UniswapIncreaseLiquidityProvisionParamsAmount1Min$.outboundSchema = UniswapIncreaseLiquidityProvisionParamsAmount1Min$outboundSchema;
|
|
38369
38398
|
})(UniswapIncreaseLiquidityProvisionParamsAmount1Min$ ||= {});
|
|
38370
38399
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema = objectType({
|
|
38371
|
-
action_type: literalType("
|
|
38400
|
+
action_type: literalType("UNISWAP_ADD_LIQUIDITY").default("UNISWAP_ADD_LIQUIDITY"),
|
|
38372
38401
|
token_id: numberType().int(),
|
|
38373
38402
|
amount0_desired: unionType([numberType(), stringType()]),
|
|
38374
38403
|
amount1_desired: unionType([numberType(), stringType()]),
|
|
@@ -38385,7 +38414,7 @@ var init_uniswapincreaseliquidityprovisionparams = __esm(() => {
|
|
|
38385
38414
|
});
|
|
38386
38415
|
});
|
|
38387
38416
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema = objectType({
|
|
38388
|
-
actionType: literalType("
|
|
38417
|
+
actionType: literalType("UNISWAP_ADD_LIQUIDITY").default("UNISWAP_ADD_LIQUIDITY"),
|
|
38389
38418
|
tokenId: numberType().int(),
|
|
38390
38419
|
amount0Desired: unionType([numberType(), stringType()]),
|
|
38391
38420
|
amount1Desired: unionType([numberType(), stringType()]),
|
|
@@ -38671,6 +38700,7 @@ var init_useroperation = __esm(() => {
|
|
|
38671
38700
|
init_morphowithdrawparams();
|
|
38672
38701
|
init_pendlebuyptparams();
|
|
38673
38702
|
init_pendlebuyytparams();
|
|
38703
|
+
init_pendleredeemyieldparams();
|
|
38674
38704
|
init_pendlesellptparams();
|
|
38675
38705
|
init_pendlesellytparams();
|
|
38676
38706
|
init_skybuyparams();
|
|
@@ -38686,6 +38716,7 @@ var init_useroperation = __esm(() => {
|
|
|
38686
38716
|
init_unwrapwethparams();
|
|
38687
38717
|
init_wrapethparams();
|
|
38688
38718
|
Body$inboundSchema = unionType([
|
|
38719
|
+
PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38689
38720
|
UnwrapWethParams$inboundSchema.and(objectType({ action_type: literalType("UNWRAP_WETH") }).transform((v2) => ({
|
|
38690
38721
|
actionType: v2.action_type
|
|
38691
38722
|
}))),
|
|
@@ -38693,7 +38724,7 @@ var init_useroperation = __esm(() => {
|
|
|
38693
38724
|
actionType: v2.action_type
|
|
38694
38725
|
}))),
|
|
38695
38726
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38696
|
-
action_type: literalType("
|
|
38727
|
+
action_type: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38697
38728
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38698
38729
|
MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38699
38730
|
PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
@@ -38720,7 +38751,9 @@ var init_useroperation = __esm(() => {
|
|
|
38720
38751
|
SkyWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("SKY_WITHDRAW") }).transform((v2) => ({
|
|
38721
38752
|
actionType: v2.action_type
|
|
38722
38753
|
}))),
|
|
38723
|
-
UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38754
|
+
UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38755
|
+
action_type: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38756
|
+
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38724
38757
|
AaveSupplyParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_SUPPLY") }).transform((v2) => ({
|
|
38725
38758
|
actionType: v2.action_type
|
|
38726
38759
|
}))),
|
|
@@ -38749,18 +38782,19 @@ var init_useroperation = __esm(() => {
|
|
|
38749
38782
|
MorphoWithdrawCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38750
38783
|
AerodromeSlipstreamBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("AERODROME_SLIPSTREAM_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38751
38784
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38752
|
-
action_type: literalType("
|
|
38785
|
+
action_type: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
38753
38786
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38754
38787
|
AerodromeSlipstreamSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38755
38788
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38756
38789
|
UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38757
38790
|
UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38758
38791
|
AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38759
|
-
action_type: literalType("
|
|
38792
|
+
action_type: literalType("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION")
|
|
38760
38793
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38761
|
-
UniswapMintLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("
|
|
38794
|
+
UniswapMintLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_MINT_LIQUIDITY_PROVISION") }).transform((v2) => ({ actionType: v2.action_type })))
|
|
38762
38795
|
]);
|
|
38763
38796
|
Body$outboundSchema = unionType([
|
|
38797
|
+
PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38764
38798
|
UnwrapWethParams$outboundSchema.and(objectType({ actionType: literalType("UNWRAP_WETH") }).transform((v2) => ({
|
|
38765
38799
|
action_type: v2.actionType
|
|
38766
38800
|
}))),
|
|
@@ -38768,7 +38802,7 @@ var init_useroperation = __esm(() => {
|
|
|
38768
38802
|
action_type: v2.actionType
|
|
38769
38803
|
}))),
|
|
38770
38804
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38771
|
-
actionType: literalType("
|
|
38805
|
+
actionType: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38772
38806
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38773
38807
|
MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38774
38808
|
PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
@@ -38795,7 +38829,9 @@ var init_useroperation = __esm(() => {
|
|
|
38795
38829
|
SkyWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("SKY_WITHDRAW") }).transform((v2) => ({
|
|
38796
38830
|
action_type: v2.actionType
|
|
38797
38831
|
}))),
|
|
38798
|
-
UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38832
|
+
UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38833
|
+
actionType: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38834
|
+
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38799
38835
|
AaveSupplyParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_SUPPLY") }).transform((v2) => ({
|
|
38800
38836
|
action_type: v2.actionType
|
|
38801
38837
|
}))),
|
|
@@ -38826,14 +38862,16 @@ var init_useroperation = __esm(() => {
|
|
|
38826
38862
|
MorphoWithdrawCollateralParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_WITHDRAW_COLLATERAL") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38827
38863
|
AerodromeSlipstreamBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("AERODROME_SLIPSTREAM_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38828
38864
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38829
|
-
actionType: literalType("
|
|
38865
|
+
actionType: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
38830
38866
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38831
38867
|
AerodromeSlipstreamSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38832
38868
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38833
38869
|
UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38834
38870
|
UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38835
|
-
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38836
|
-
|
|
38871
|
+
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38872
|
+
actionType: literalType("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION")
|
|
38873
|
+
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38874
|
+
UniswapMintLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_MINT_LIQUIDITY_PROVISION") }).transform((v2) => ({ action_type: v2.actionType })))
|
|
38837
38875
|
]);
|
|
38838
38876
|
((Body$) => {
|
|
38839
38877
|
Body$.inboundSchema = Body$inboundSchema;
|
|
@@ -38841,6 +38879,7 @@ var init_useroperation = __esm(() => {
|
|
|
38841
38879
|
})(Body$ ||= {});
|
|
38842
38880
|
UserOperation$inboundSchema = objectType({
|
|
38843
38881
|
body: unionType([
|
|
38882
|
+
PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38844
38883
|
UnwrapWethParams$inboundSchema.and(objectType({ action_type: literalType("UNWRAP_WETH") }).transform((v2) => ({
|
|
38845
38884
|
actionType: v2.action_type
|
|
38846
38885
|
}))),
|
|
@@ -38848,7 +38887,7 @@ var init_useroperation = __esm(() => {
|
|
|
38848
38887
|
actionType: v2.action_type
|
|
38849
38888
|
}))),
|
|
38850
38889
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38851
|
-
action_type: literalType("
|
|
38890
|
+
action_type: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38852
38891
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38853
38892
|
MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38854
38893
|
PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
@@ -38875,7 +38914,9 @@ var init_useroperation = __esm(() => {
|
|
|
38875
38914
|
SkyWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("SKY_WITHDRAW") }).transform((v2) => ({
|
|
38876
38915
|
actionType: v2.action_type
|
|
38877
38916
|
}))),
|
|
38878
|
-
UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38917
|
+
UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38918
|
+
action_type: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38919
|
+
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38879
38920
|
AaveSupplyParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_SUPPLY") }).transform((v2) => ({
|
|
38880
38921
|
actionType: v2.action_type
|
|
38881
38922
|
}))),
|
|
@@ -38904,20 +38945,21 @@ var init_useroperation = __esm(() => {
|
|
|
38904
38945
|
MorphoWithdrawCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38905
38946
|
AerodromeSlipstreamBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("AERODROME_SLIPSTREAM_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38906
38947
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38907
|
-
action_type: literalType("
|
|
38948
|
+
action_type: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
38908
38949
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38909
38950
|
AerodromeSlipstreamSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38910
38951
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38911
38952
|
UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38912
38953
|
UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38913
38954
|
AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38914
|
-
action_type: literalType("
|
|
38955
|
+
action_type: literalType("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION")
|
|
38915
38956
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38916
|
-
UniswapMintLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("
|
|
38957
|
+
UniswapMintLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_MINT_LIQUIDITY_PROVISION") }).transform((v2) => ({ actionType: v2.action_type })))
|
|
38917
38958
|
])
|
|
38918
38959
|
});
|
|
38919
38960
|
UserOperation$outboundSchema = objectType({
|
|
38920
38961
|
body: unionType([
|
|
38962
|
+
PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38921
38963
|
UnwrapWethParams$outboundSchema.and(objectType({ actionType: literalType("UNWRAP_WETH") }).transform((v2) => ({
|
|
38922
38964
|
action_type: v2.actionType
|
|
38923
38965
|
}))),
|
|
@@ -38925,7 +38967,7 @@ var init_useroperation = __esm(() => {
|
|
|
38925
38967
|
action_type: v2.actionType
|
|
38926
38968
|
}))),
|
|
38927
38969
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38928
|
-
actionType: literalType("
|
|
38970
|
+
actionType: literalType("AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38929
38971
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38930
38972
|
MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38931
38973
|
PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
@@ -38952,7 +38994,9 @@ var init_useroperation = __esm(() => {
|
|
|
38952
38994
|
SkyWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("SKY_WITHDRAW") }).transform((v2) => ({
|
|
38953
38995
|
action_type: v2.actionType
|
|
38954
38996
|
}))),
|
|
38955
|
-
UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38997
|
+
UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38998
|
+
actionType: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
|
|
38999
|
+
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38956
39000
|
AaveSupplyParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_SUPPLY") }).transform((v2) => ({
|
|
38957
39001
|
action_type: v2.actionType
|
|
38958
39002
|
}))),
|
|
@@ -38983,14 +39027,16 @@ var init_useroperation = __esm(() => {
|
|
|
38983
39027
|
MorphoWithdrawCollateralParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_WITHDRAW_COLLATERAL") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38984
39028
|
AerodromeSlipstreamBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("AERODROME_SLIPSTREAM_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38985
39029
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38986
|
-
actionType: literalType("
|
|
39030
|
+
actionType: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
38987
39031
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38988
39032
|
AerodromeSlipstreamSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("AERODROME_SLIPSTREAM_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38989
39033
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38990
39034
|
UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38991
39035
|
UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38992
|
-
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38993
|
-
|
|
39036
|
+
AerodromeSlipstreamMintLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
39037
|
+
actionType: literalType("AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION")
|
|
39038
|
+
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39039
|
+
UniswapMintLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_MINT_LIQUIDITY_PROVISION") }).transform((v2) => ({ action_type: v2.actionType })))
|
|
38994
39040
|
])
|
|
38995
39041
|
});
|
|
38996
39042
|
((UserOperation$) => {
|
|
@@ -40949,6 +40995,40 @@ var init_pendlelistuserpositionsresponse = __esm(() => {
|
|
|
40949
40995
|
})(PendleListUserPositionsResponse$ ||= {});
|
|
40950
40996
|
});
|
|
40951
40997
|
|
|
40998
|
+
// src/models/components/pendleredeemyieldrequest.ts
|
|
40999
|
+
var PendleRedeemYieldRequest$inboundSchema, PendleRedeemYieldRequest$outboundSchema, PendleRedeemYieldRequest$;
|
|
41000
|
+
var init_pendleredeemyieldrequest = __esm(() => {
|
|
41001
|
+
init_esm();
|
|
41002
|
+
init_primitives();
|
|
41003
|
+
init_chain();
|
|
41004
|
+
PendleRedeemYieldRequest$inboundSchema = objectType({
|
|
41005
|
+
action_type: literalType("PENDLE_REDEEM_YIELD").default("PENDLE_REDEEM_YIELD"),
|
|
41006
|
+
market_address: stringType(),
|
|
41007
|
+
chain: Chain$inboundSchema,
|
|
41008
|
+
sender: stringType()
|
|
41009
|
+
}).transform((v2) => {
|
|
41010
|
+
return remap(v2, {
|
|
41011
|
+
action_type: "actionType",
|
|
41012
|
+
market_address: "marketAddress"
|
|
41013
|
+
});
|
|
41014
|
+
});
|
|
41015
|
+
PendleRedeemYieldRequest$outboundSchema = objectType({
|
|
41016
|
+
actionType: literalType("PENDLE_REDEEM_YIELD").default("PENDLE_REDEEM_YIELD"),
|
|
41017
|
+
marketAddress: stringType(),
|
|
41018
|
+
chain: Chain$outboundSchema,
|
|
41019
|
+
sender: stringType()
|
|
41020
|
+
}).transform((v2) => {
|
|
41021
|
+
return remap(v2, {
|
|
41022
|
+
actionType: "action_type",
|
|
41023
|
+
marketAddress: "market_address"
|
|
41024
|
+
});
|
|
41025
|
+
});
|
|
41026
|
+
((PendleRedeemYieldRequest$) => {
|
|
41027
|
+
PendleRedeemYieldRequest$.inboundSchema = PendleRedeemYieldRequest$inboundSchema;
|
|
41028
|
+
PendleRedeemYieldRequest$.outboundSchema = PendleRedeemYieldRequest$outboundSchema;
|
|
41029
|
+
})(PendleRedeemYieldRequest$ ||= {});
|
|
41030
|
+
});
|
|
41031
|
+
|
|
40952
41032
|
// src/models/components/pendlesellptrequest.ts
|
|
40953
41033
|
var PendleSellPtRequestAmount$inboundSchema, PendleSellPtRequestAmount$outboundSchema, PendleSellPtRequestAmount$, PendleSellPtRequest$inboundSchema, PendleSellPtRequest$outboundSchema, PendleSellPtRequest$;
|
|
40954
41034
|
var init_pendlesellptrequest = __esm(() => {
|
|
@@ -41660,7 +41740,7 @@ var init_uniswapincreaseliquidityprovisionrequest = __esm(() => {
|
|
|
41660
41740
|
UniswapIncreaseLiquidityProvisionRequestAmount1Min$.outboundSchema = UniswapIncreaseLiquidityProvisionRequestAmount1Min$outboundSchema;
|
|
41661
41741
|
})(UniswapIncreaseLiquidityProvisionRequestAmount1Min$ ||= {});
|
|
41662
41742
|
UniswapIncreaseLiquidityProvisionRequest$inboundSchema = objectType({
|
|
41663
|
-
action_type: literalType("
|
|
41743
|
+
action_type: literalType("UNISWAP_ADD_LIQUIDITY").default("UNISWAP_ADD_LIQUIDITY"),
|
|
41664
41744
|
token_id: numberType().int(),
|
|
41665
41745
|
amount0_desired: unionType([numberType(), stringType()]),
|
|
41666
41746
|
amount1_desired: unionType([numberType(), stringType()]),
|
|
@@ -41679,7 +41759,7 @@ var init_uniswapincreaseliquidityprovisionrequest = __esm(() => {
|
|
|
41679
41759
|
});
|
|
41680
41760
|
});
|
|
41681
41761
|
UniswapIncreaseLiquidityProvisionRequest$outboundSchema = objectType({
|
|
41682
|
-
actionType: literalType("
|
|
41762
|
+
actionType: literalType("UNISWAP_ADD_LIQUIDITY").default("UNISWAP_ADD_LIQUIDITY"),
|
|
41683
41763
|
tokenId: numberType().int(),
|
|
41684
41764
|
amount0Desired: unionType([numberType(), stringType()]),
|
|
41685
41765
|
amount1Desired: unionType([numberType(), stringType()]),
|
|
@@ -42238,6 +42318,8 @@ var init_components = __esm(() => {
|
|
|
42238
42318
|
init_pendlelistmarketsresponse();
|
|
42239
42319
|
init_pendlelistuserpositionsresponse();
|
|
42240
42320
|
init_pendlemarket();
|
|
42321
|
+
init_pendleredeemyieldparams();
|
|
42322
|
+
init_pendleredeemyieldrequest();
|
|
42241
42323
|
init_pendlesellptparams();
|
|
42242
42324
|
init_pendlesellptrequest();
|
|
42243
42325
|
init_pendlesellytparams();
|
|
@@ -49240,11 +49322,114 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
|
49240
49322
|
};
|
|
49241
49323
|
});
|
|
49242
49324
|
|
|
49243
|
-
// src/funcs/
|
|
49244
|
-
function
|
|
49325
|
+
// src/funcs/pendleRedeemYield.ts
|
|
49326
|
+
function pendleRedeemYield(client, request, options) {
|
|
49245
49327
|
return new APIPromise($do41(client, request, options));
|
|
49246
49328
|
}
|
|
49247
49329
|
async function $do41(client, request, options) {
|
|
49330
|
+
const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49331
|
+
if (!parsed.ok) {
|
|
49332
|
+
return [parsed, { status: "invalid" }];
|
|
49333
|
+
}
|
|
49334
|
+
const payload = parsed.value;
|
|
49335
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
49336
|
+
const path = pathToFunc("/v0/pendle/redeem_yield")();
|
|
49337
|
+
const headers = new Headers(compactMap({
|
|
49338
|
+
"Content-Type": "application/json",
|
|
49339
|
+
Accept: "application/json"
|
|
49340
|
+
}));
|
|
49341
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
49342
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
49343
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
49344
|
+
const context = {
|
|
49345
|
+
options: client._options,
|
|
49346
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49347
|
+
operationID: "pendle_redeem_yield",
|
|
49348
|
+
oAuth2Scopes: [],
|
|
49349
|
+
resolvedSecurity: requestSecurity,
|
|
49350
|
+
securitySource: client._options.apiKeyAuth,
|
|
49351
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
49352
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
49353
|
+
};
|
|
49354
|
+
const requestRes = client._createRequest(context, {
|
|
49355
|
+
security: requestSecurity,
|
|
49356
|
+
method: "POST",
|
|
49357
|
+
baseURL: options?.serverURL,
|
|
49358
|
+
path,
|
|
49359
|
+
headers,
|
|
49360
|
+
body,
|
|
49361
|
+
userAgent: client._options.userAgent,
|
|
49362
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
49363
|
+
}, options);
|
|
49364
|
+
if (!requestRes.ok) {
|
|
49365
|
+
return [requestRes, { status: "invalid" }];
|
|
49366
|
+
}
|
|
49367
|
+
const req = requestRes.value;
|
|
49368
|
+
const doResult = await client._do(req, {
|
|
49369
|
+
context,
|
|
49370
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
49371
|
+
retryConfig: context.retryConfig,
|
|
49372
|
+
retryCodes: context.retryCodes
|
|
49373
|
+
});
|
|
49374
|
+
if (!doResult.ok) {
|
|
49375
|
+
return [doResult, { status: "request-error", request: req }];
|
|
49376
|
+
}
|
|
49377
|
+
const response = doResult.value;
|
|
49378
|
+
const responseFields = {
|
|
49379
|
+
HttpMeta: { Response: response, Request: req }
|
|
49380
|
+
};
|
|
49381
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
49382
|
+
if (!result.ok) {
|
|
49383
|
+
return [result, { status: "complete", request: req, response }];
|
|
49384
|
+
}
|
|
49385
|
+
return [result, { status: "complete", request: req, response }];
|
|
49386
|
+
}
|
|
49387
|
+
var init_pendleRedeemYield = __esm(() => {
|
|
49388
|
+
init_encodings();
|
|
49389
|
+
init_matchers();
|
|
49390
|
+
init_primitives();
|
|
49391
|
+
init_schemas();
|
|
49392
|
+
init_security();
|
|
49393
|
+
init_url();
|
|
49394
|
+
init_components();
|
|
49395
|
+
init_errors2();
|
|
49396
|
+
init_async();
|
|
49397
|
+
});
|
|
49398
|
+
|
|
49399
|
+
// src/mcp-server/tools/pendleRedeemYield.ts
|
|
49400
|
+
var args41, tool$pendleRedeemYield;
|
|
49401
|
+
var init_pendleRedeemYield2 = __esm(() => {
|
|
49402
|
+
init_pendleRedeemYield();
|
|
49403
|
+
init_components();
|
|
49404
|
+
init_tools();
|
|
49405
|
+
args41 = {
|
|
49406
|
+
request: PendleRedeemYieldRequest$inboundSchema
|
|
49407
|
+
};
|
|
49408
|
+
tool$pendleRedeemYield = {
|
|
49409
|
+
name: "pendle-redeem-yield",
|
|
49410
|
+
description: `Redeem Claimable Yield
|
|
49411
|
+
|
|
49412
|
+
Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
49413
|
+
args: args41,
|
|
49414
|
+
tool: async (client, args42, ctx) => {
|
|
49415
|
+
const [result, apiCall] = await pendleRedeemYield(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49416
|
+
if (!result.ok) {
|
|
49417
|
+
return {
|
|
49418
|
+
content: [{ type: "text", text: result.error.message }],
|
|
49419
|
+
isError: true
|
|
49420
|
+
};
|
|
49421
|
+
}
|
|
49422
|
+
const value = result.value;
|
|
49423
|
+
return formatResult(value, apiCall);
|
|
49424
|
+
}
|
|
49425
|
+
};
|
|
49426
|
+
});
|
|
49427
|
+
|
|
49428
|
+
// src/funcs/pendleSellPt.ts
|
|
49429
|
+
function pendleSellPt(client, request, options) {
|
|
49430
|
+
return new APIPromise($do42(client, request, options));
|
|
49431
|
+
}
|
|
49432
|
+
async function $do42(client, request, options) {
|
|
49248
49433
|
const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49249
49434
|
if (!parsed.ok) {
|
|
49250
49435
|
return [parsed, { status: "invalid" }];
|
|
@@ -49315,12 +49500,12 @@ var init_pendleSellPt = __esm(() => {
|
|
|
49315
49500
|
});
|
|
49316
49501
|
|
|
49317
49502
|
// src/mcp-server/tools/pendleSellPt.ts
|
|
49318
|
-
var
|
|
49503
|
+
var args42, tool$pendleSellPt;
|
|
49319
49504
|
var init_pendleSellPt2 = __esm(() => {
|
|
49320
49505
|
init_pendleSellPt();
|
|
49321
49506
|
init_components();
|
|
49322
49507
|
init_tools();
|
|
49323
|
-
|
|
49508
|
+
args42 = {
|
|
49324
49509
|
request: PendleSellPtRequest$inboundSchema
|
|
49325
49510
|
};
|
|
49326
49511
|
tool$pendleSellPt = {
|
|
@@ -49328,9 +49513,9 @@ var init_pendleSellPt2 = __esm(() => {
|
|
|
49328
49513
|
description: `Sell Principal Token (PT)
|
|
49329
49514
|
|
|
49330
49515
|
Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
49331
|
-
args:
|
|
49332
|
-
tool: async (client,
|
|
49333
|
-
const [result, apiCall] = await pendleSellPt(client,
|
|
49516
|
+
args: args42,
|
|
49517
|
+
tool: async (client, args43, ctx) => {
|
|
49518
|
+
const [result, apiCall] = await pendleSellPt(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49334
49519
|
if (!result.ok) {
|
|
49335
49520
|
return {
|
|
49336
49521
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49345,9 +49530,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
|
49345
49530
|
|
|
49346
49531
|
// src/funcs/pendleSellYt.ts
|
|
49347
49532
|
function pendleSellYt(client, request, options) {
|
|
49348
|
-
return new APIPromise($
|
|
49533
|
+
return new APIPromise($do43(client, request, options));
|
|
49349
49534
|
}
|
|
49350
|
-
async function $
|
|
49535
|
+
async function $do43(client, request, options) {
|
|
49351
49536
|
const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49352
49537
|
if (!parsed.ok) {
|
|
49353
49538
|
return [parsed, { status: "invalid" }];
|
|
@@ -49418,12 +49603,12 @@ var init_pendleSellYt = __esm(() => {
|
|
|
49418
49603
|
});
|
|
49419
49604
|
|
|
49420
49605
|
// src/mcp-server/tools/pendleSellYt.ts
|
|
49421
|
-
var
|
|
49606
|
+
var args43, tool$pendleSellYt;
|
|
49422
49607
|
var init_pendleSellYt2 = __esm(() => {
|
|
49423
49608
|
init_pendleSellYt();
|
|
49424
49609
|
init_components();
|
|
49425
49610
|
init_tools();
|
|
49426
|
-
|
|
49611
|
+
args43 = {
|
|
49427
49612
|
request: PendleSellYtRequest$inboundSchema
|
|
49428
49613
|
};
|
|
49429
49614
|
tool$pendleSellYt = {
|
|
@@ -49431,9 +49616,9 @@ var init_pendleSellYt2 = __esm(() => {
|
|
|
49431
49616
|
description: `Sell Yield Token (YT)
|
|
49432
49617
|
|
|
49433
49618
|
Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
49434
|
-
args:
|
|
49435
|
-
tool: async (client,
|
|
49436
|
-
const [result, apiCall] = await pendleSellYt(client,
|
|
49619
|
+
args: args43,
|
|
49620
|
+
tool: async (client, args44, ctx) => {
|
|
49621
|
+
const [result, apiCall] = await pendleSellYt(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49437
49622
|
if (!result.ok) {
|
|
49438
49623
|
return {
|
|
49439
49624
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49448,9 +49633,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
|
49448
49633
|
|
|
49449
49634
|
// src/funcs/skyBuy.ts
|
|
49450
49635
|
function skyBuy(client, request, options) {
|
|
49451
|
-
return new APIPromise($
|
|
49636
|
+
return new APIPromise($do44(client, request, options));
|
|
49452
49637
|
}
|
|
49453
|
-
async function $
|
|
49638
|
+
async function $do44(client, request, options) {
|
|
49454
49639
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49455
49640
|
if (!parsed.ok) {
|
|
49456
49641
|
return [parsed, { status: "invalid" }];
|
|
@@ -49521,12 +49706,12 @@ var init_skyBuy = __esm(() => {
|
|
|
49521
49706
|
});
|
|
49522
49707
|
|
|
49523
49708
|
// src/mcp-server/tools/skyBuy.ts
|
|
49524
|
-
var
|
|
49709
|
+
var args44, tool$skyBuy;
|
|
49525
49710
|
var init_skyBuy2 = __esm(() => {
|
|
49526
49711
|
init_skyBuy();
|
|
49527
49712
|
init_components();
|
|
49528
49713
|
init_tools();
|
|
49529
|
-
|
|
49714
|
+
args44 = {
|
|
49530
49715
|
request: SkyBuyRequest$inboundSchema
|
|
49531
49716
|
};
|
|
49532
49717
|
tool$skyBuy = {
|
|
@@ -49540,9 +49725,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
49540
49725
|
|
|
49541
49726
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
49542
49727
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
49543
|
-
args:
|
|
49544
|
-
tool: async (client,
|
|
49545
|
-
const [result, apiCall] = await skyBuy(client,
|
|
49728
|
+
args: args44,
|
|
49729
|
+
tool: async (client, args45, ctx) => {
|
|
49730
|
+
const [result, apiCall] = await skyBuy(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49546
49731
|
if (!result.ok) {
|
|
49547
49732
|
return {
|
|
49548
49733
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49557,9 +49742,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
49557
49742
|
|
|
49558
49743
|
// src/funcs/skyDeposit.ts
|
|
49559
49744
|
function skyDeposit(client, request, options) {
|
|
49560
|
-
return new APIPromise($
|
|
49745
|
+
return new APIPromise($do45(client, request, options));
|
|
49561
49746
|
}
|
|
49562
|
-
async function $
|
|
49747
|
+
async function $do45(client, request, options) {
|
|
49563
49748
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49564
49749
|
if (!parsed.ok) {
|
|
49565
49750
|
return [parsed, { status: "invalid" }];
|
|
@@ -49630,12 +49815,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
49630
49815
|
});
|
|
49631
49816
|
|
|
49632
49817
|
// src/mcp-server/tools/skyDeposit.ts
|
|
49633
|
-
var
|
|
49818
|
+
var args45, tool$skyDeposit;
|
|
49634
49819
|
var init_skyDeposit2 = __esm(() => {
|
|
49635
49820
|
init_skyDeposit();
|
|
49636
49821
|
init_components();
|
|
49637
49822
|
init_tools();
|
|
49638
|
-
|
|
49823
|
+
args45 = {
|
|
49639
49824
|
request: SkyDepositRequest$inboundSchema
|
|
49640
49825
|
};
|
|
49641
49826
|
tool$skyDeposit = {
|
|
@@ -49645,9 +49830,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
49645
49830
|
Deposit USDS for sUSDS to earn yield.
|
|
49646
49831
|
|
|
49647
49832
|
There are no fees.`,
|
|
49648
|
-
args:
|
|
49649
|
-
tool: async (client,
|
|
49650
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
49833
|
+
args: args45,
|
|
49834
|
+
tool: async (client, args46, ctx) => {
|
|
49835
|
+
const [result, apiCall] = await skyDeposit(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49651
49836
|
if (!result.ok) {
|
|
49652
49837
|
return {
|
|
49653
49838
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49662,9 +49847,9 @@ There are no fees.`,
|
|
|
49662
49847
|
|
|
49663
49848
|
// src/funcs/skyPosition.ts
|
|
49664
49849
|
function skyPosition(client, request, options) {
|
|
49665
|
-
return new APIPromise($
|
|
49850
|
+
return new APIPromise($do46(client, request, options));
|
|
49666
49851
|
}
|
|
49667
|
-
async function $
|
|
49852
|
+
async function $do46(client, request, options) {
|
|
49668
49853
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49669
49854
|
if (!parsed.ok) {
|
|
49670
49855
|
return [parsed, { status: "invalid" }];
|
|
@@ -49741,12 +49926,12 @@ var init_skyPosition = __esm(() => {
|
|
|
49741
49926
|
});
|
|
49742
49927
|
|
|
49743
49928
|
// src/mcp-server/tools/skyPosition.ts
|
|
49744
|
-
var
|
|
49929
|
+
var args46, tool$skyPosition;
|
|
49745
49930
|
var init_skyPosition2 = __esm(() => {
|
|
49746
49931
|
init_skyPosition();
|
|
49747
49932
|
init_operations();
|
|
49748
49933
|
init_tools();
|
|
49749
|
-
|
|
49934
|
+
args46 = {
|
|
49750
49935
|
request: SkyPositionRequest$inboundSchema
|
|
49751
49936
|
};
|
|
49752
49937
|
tool$skyPosition = {
|
|
@@ -49754,9 +49939,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
49754
49939
|
description: `Check USDS Position
|
|
49755
49940
|
|
|
49756
49941
|
Check the USDS overall position.`,
|
|
49757
|
-
args:
|
|
49758
|
-
tool: async (client,
|
|
49759
|
-
const [result, apiCall] = await skyPosition(client,
|
|
49942
|
+
args: args46,
|
|
49943
|
+
tool: async (client, args47, ctx) => {
|
|
49944
|
+
const [result, apiCall] = await skyPosition(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49760
49945
|
if (!result.ok) {
|
|
49761
49946
|
return {
|
|
49762
49947
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49771,9 +49956,9 @@ Check the USDS overall position.`,
|
|
|
49771
49956
|
|
|
49772
49957
|
// src/funcs/skySell.ts
|
|
49773
49958
|
function skySell(client, request, options) {
|
|
49774
|
-
return new APIPromise($
|
|
49959
|
+
return new APIPromise($do47(client, request, options));
|
|
49775
49960
|
}
|
|
49776
|
-
async function $
|
|
49961
|
+
async function $do47(client, request, options) {
|
|
49777
49962
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49778
49963
|
if (!parsed.ok) {
|
|
49779
49964
|
return [parsed, { status: "invalid" }];
|
|
@@ -49844,12 +50029,12 @@ var init_skySell = __esm(() => {
|
|
|
49844
50029
|
});
|
|
49845
50030
|
|
|
49846
50031
|
// src/mcp-server/tools/skySell.ts
|
|
49847
|
-
var
|
|
50032
|
+
var args47, tool$skySell;
|
|
49848
50033
|
var init_skySell2 = __esm(() => {
|
|
49849
50034
|
init_skySell();
|
|
49850
50035
|
init_components();
|
|
49851
50036
|
init_tools();
|
|
49852
|
-
|
|
50037
|
+
args47 = {
|
|
49853
50038
|
request: SkySellRequest$inboundSchema
|
|
49854
50039
|
};
|
|
49855
50040
|
tool$skySell = {
|
|
@@ -49863,9 +50048,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
49863
50048
|
|
|
49864
50049
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
49865
50050
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
49866
|
-
args:
|
|
49867
|
-
tool: async (client,
|
|
49868
|
-
const [result, apiCall] = await skySell(client,
|
|
50051
|
+
args: args47,
|
|
50052
|
+
tool: async (client, args48, ctx) => {
|
|
50053
|
+
const [result, apiCall] = await skySell(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49869
50054
|
if (!result.ok) {
|
|
49870
50055
|
return {
|
|
49871
50056
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49880,9 +50065,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
49880
50065
|
|
|
49881
50066
|
// src/funcs/skyWithdraw.ts
|
|
49882
50067
|
function skyWithdraw(client, request, options) {
|
|
49883
|
-
return new APIPromise($
|
|
50068
|
+
return new APIPromise($do48(client, request, options));
|
|
49884
50069
|
}
|
|
49885
|
-
async function $
|
|
50070
|
+
async function $do48(client, request, options) {
|
|
49886
50071
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49887
50072
|
if (!parsed.ok) {
|
|
49888
50073
|
return [parsed, { status: "invalid" }];
|
|
@@ -49953,12 +50138,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
49953
50138
|
});
|
|
49954
50139
|
|
|
49955
50140
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
49956
|
-
var
|
|
50141
|
+
var args48, tool$skyWithdraw;
|
|
49957
50142
|
var init_skyWithdraw2 = __esm(() => {
|
|
49958
50143
|
init_skyWithdraw();
|
|
49959
50144
|
init_components();
|
|
49960
50145
|
init_tools();
|
|
49961
|
-
|
|
50146
|
+
args48 = {
|
|
49962
50147
|
request: SkyWithdrawRequest$inboundSchema
|
|
49963
50148
|
};
|
|
49964
50149
|
tool$skyWithdraw = {
|
|
@@ -49966,9 +50151,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
49966
50151
|
description: `Withdraw USDS
|
|
49967
50152
|
|
|
49968
50153
|
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
49969
|
-
args:
|
|
49970
|
-
tool: async (client,
|
|
49971
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
50154
|
+
args: args48,
|
|
50155
|
+
tool: async (client, args49, ctx) => {
|
|
50156
|
+
const [result, apiCall] = await skyWithdraw(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49972
50157
|
if (!result.ok) {
|
|
49973
50158
|
return {
|
|
49974
50159
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49983,9 +50168,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
49983
50168
|
|
|
49984
50169
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
49985
50170
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
49986
|
-
return new APIPromise($
|
|
50171
|
+
return new APIPromise($do49(client, request, options));
|
|
49987
50172
|
}
|
|
49988
|
-
async function $
|
|
50173
|
+
async function $do49(client, request, options) {
|
|
49989
50174
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49990
50175
|
if (!parsed.ok) {
|
|
49991
50176
|
return [parsed, { status: "invalid" }];
|
|
@@ -50056,12 +50241,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
50056
50241
|
});
|
|
50057
50242
|
|
|
50058
50243
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
50059
|
-
var
|
|
50244
|
+
var args49, tool$smartAccountAccountBatchedUserOperations;
|
|
50060
50245
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
50061
50246
|
init_smartAccountAccountBatchedUserOperations();
|
|
50062
50247
|
init_components();
|
|
50063
50248
|
init_tools();
|
|
50064
|
-
|
|
50249
|
+
args49 = {
|
|
50065
50250
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
50066
50251
|
};
|
|
50067
50252
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -50069,9 +50254,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
50069
50254
|
description: `Get Smart Account Batched User Operations
|
|
50070
50255
|
|
|
50071
50256
|
Generate a list of user operations for smart account batching.`,
|
|
50072
|
-
args:
|
|
50073
|
-
tool: async (client,
|
|
50074
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
50257
|
+
args: args49,
|
|
50258
|
+
tool: async (client, args50, ctx) => {
|
|
50259
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50075
50260
|
if (!result.ok) {
|
|
50076
50261
|
return {
|
|
50077
50262
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50086,9 +50271,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
50086
50271
|
|
|
50087
50272
|
// src/funcs/tokenAddress.ts
|
|
50088
50273
|
function tokenAddress(client, request, options) {
|
|
50089
|
-
return new APIPromise($
|
|
50274
|
+
return new APIPromise($do50(client, request, options));
|
|
50090
50275
|
}
|
|
50091
|
-
async function $
|
|
50276
|
+
async function $do50(client, request, options) {
|
|
50092
50277
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50093
50278
|
if (!parsed.ok) {
|
|
50094
50279
|
return [parsed, { status: "invalid" }];
|
|
@@ -50165,12 +50350,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
50165
50350
|
});
|
|
50166
50351
|
|
|
50167
50352
|
// src/mcp-server/tools/tokenAddress.ts
|
|
50168
|
-
var
|
|
50353
|
+
var args50, tool$tokenAddress;
|
|
50169
50354
|
var init_tokenAddress2 = __esm(() => {
|
|
50170
50355
|
init_tokenAddress();
|
|
50171
50356
|
init_operations();
|
|
50172
50357
|
init_tools();
|
|
50173
|
-
|
|
50358
|
+
args50 = {
|
|
50174
50359
|
request: TokenAddressRequest$inboundSchema
|
|
50175
50360
|
};
|
|
50176
50361
|
tool$tokenAddress = {
|
|
@@ -50178,9 +50363,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
50178
50363
|
description: `Token Address
|
|
50179
50364
|
|
|
50180
50365
|
This endpoint retrieves the address for a token supported by us.`,
|
|
50181
|
-
args:
|
|
50182
|
-
tool: async (client,
|
|
50183
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
50366
|
+
args: args50,
|
|
50367
|
+
tool: async (client, args51, ctx) => {
|
|
50368
|
+
const [result, apiCall] = await tokenAddress(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50184
50369
|
if (!result.ok) {
|
|
50185
50370
|
return {
|
|
50186
50371
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50195,9 +50380,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
50195
50380
|
|
|
50196
50381
|
// src/funcs/tokenBalance.ts
|
|
50197
50382
|
function tokenBalance(client, request, options) {
|
|
50198
|
-
return new APIPromise($
|
|
50383
|
+
return new APIPromise($do51(client, request, options));
|
|
50199
50384
|
}
|
|
50200
|
-
async function $
|
|
50385
|
+
async function $do51(client, request, options) {
|
|
50201
50386
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50202
50387
|
if (!parsed.ok) {
|
|
50203
50388
|
return [parsed, { status: "invalid" }];
|
|
@@ -50275,12 +50460,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
50275
50460
|
});
|
|
50276
50461
|
|
|
50277
50462
|
// src/mcp-server/tools/tokenBalance.ts
|
|
50278
|
-
var
|
|
50463
|
+
var args51, tool$tokenBalance;
|
|
50279
50464
|
var init_tokenBalance2 = __esm(() => {
|
|
50280
50465
|
init_tokenBalance();
|
|
50281
50466
|
init_operations();
|
|
50282
50467
|
init_tools();
|
|
50283
|
-
|
|
50468
|
+
args51 = {
|
|
50284
50469
|
request: TokenBalanceRequest$inboundSchema
|
|
50285
50470
|
};
|
|
50286
50471
|
tool$tokenBalance = {
|
|
@@ -50288,9 +50473,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
50288
50473
|
description: `Token Balance
|
|
50289
50474
|
|
|
50290
50475
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
50291
|
-
args:
|
|
50292
|
-
tool: async (client,
|
|
50293
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
50476
|
+
args: args51,
|
|
50477
|
+
tool: async (client, args52, ctx) => {
|
|
50478
|
+
const [result, apiCall] = await tokenBalance(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50294
50479
|
if (!result.ok) {
|
|
50295
50480
|
return {
|
|
50296
50481
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50305,9 +50490,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
50305
50490
|
|
|
50306
50491
|
// src/funcs/tokenPrice.ts
|
|
50307
50492
|
function tokenPrice(client, request, options) {
|
|
50308
|
-
return new APIPromise($
|
|
50493
|
+
return new APIPromise($do52(client, request, options));
|
|
50309
50494
|
}
|
|
50310
|
-
async function $
|
|
50495
|
+
async function $do52(client, request, options) {
|
|
50311
50496
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50312
50497
|
if (!parsed.ok) {
|
|
50313
50498
|
return [parsed, { status: "invalid" }];
|
|
@@ -50383,12 +50568,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
50383
50568
|
});
|
|
50384
50569
|
|
|
50385
50570
|
// src/mcp-server/tools/tokenPrice.ts
|
|
50386
|
-
var
|
|
50571
|
+
var args52, tool$tokenPrice;
|
|
50387
50572
|
var init_tokenPrice2 = __esm(() => {
|
|
50388
50573
|
init_tokenPrice();
|
|
50389
50574
|
init_operations();
|
|
50390
50575
|
init_tools();
|
|
50391
|
-
|
|
50576
|
+
args52 = {
|
|
50392
50577
|
request: TokenPriceRequest$inboundSchema
|
|
50393
50578
|
};
|
|
50394
50579
|
tool$tokenPrice = {
|
|
@@ -50400,9 +50585,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
50400
50585
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
50401
50586
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
50402
50587
|
with the update frequency of the oracle.`,
|
|
50403
|
-
args:
|
|
50404
|
-
tool: async (client,
|
|
50405
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
50588
|
+
args: args52,
|
|
50589
|
+
tool: async (client, args53, ctx) => {
|
|
50590
|
+
const [result, apiCall] = await tokenPrice(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50406
50591
|
if (!result.ok) {
|
|
50407
50592
|
return {
|
|
50408
50593
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50417,9 +50602,9 @@ with the update frequency of the oracle.`,
|
|
|
50417
50602
|
|
|
50418
50603
|
// src/funcs/tokenTransfer.ts
|
|
50419
50604
|
function tokenTransfer(client, request, options) {
|
|
50420
|
-
return new APIPromise($
|
|
50605
|
+
return new APIPromise($do53(client, request, options));
|
|
50421
50606
|
}
|
|
50422
|
-
async function $
|
|
50607
|
+
async function $do53(client, request, options) {
|
|
50423
50608
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50424
50609
|
if (!parsed.ok) {
|
|
50425
50610
|
return [parsed, { status: "invalid" }];
|
|
@@ -50490,12 +50675,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
50490
50675
|
});
|
|
50491
50676
|
|
|
50492
50677
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
50493
|
-
var
|
|
50678
|
+
var args53, tool$tokenTransfer;
|
|
50494
50679
|
var init_tokenTransfer2 = __esm(() => {
|
|
50495
50680
|
init_tokenTransfer();
|
|
50496
50681
|
init_components();
|
|
50497
50682
|
init_tools();
|
|
50498
|
-
|
|
50683
|
+
args53 = {
|
|
50499
50684
|
request: TokenTransferRequest$inboundSchema
|
|
50500
50685
|
};
|
|
50501
50686
|
tool$tokenTransfer = {
|
|
@@ -50503,9 +50688,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
50503
50688
|
description: `Transfer ETH or ERC20 Tokens.
|
|
50504
50689
|
|
|
50505
50690
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
50506
|
-
args:
|
|
50507
|
-
tool: async (client,
|
|
50508
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
50691
|
+
args: args53,
|
|
50692
|
+
tool: async (client, args54, ctx) => {
|
|
50693
|
+
const [result, apiCall] = await tokenTransfer(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50509
50694
|
if (!result.ok) {
|
|
50510
50695
|
return {
|
|
50511
50696
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50520,9 +50705,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
50520
50705
|
|
|
50521
50706
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
50522
50707
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
50523
|
-
return new APIPromise($
|
|
50708
|
+
return new APIPromise($do54(client, request, options));
|
|
50524
50709
|
}
|
|
50525
|
-
async function $
|
|
50710
|
+
async function $do54(client, request, options) {
|
|
50526
50711
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50527
50712
|
if (!parsed.ok) {
|
|
50528
50713
|
return [parsed, { status: "invalid" }];
|
|
@@ -50593,12 +50778,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
50593
50778
|
});
|
|
50594
50779
|
|
|
50595
50780
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
50596
|
-
var
|
|
50781
|
+
var args54, tool$transactionBatchingAaveLoop;
|
|
50597
50782
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
50598
50783
|
init_transactionBatchingAaveLoop();
|
|
50599
50784
|
init_components();
|
|
50600
50785
|
init_tools();
|
|
50601
|
-
|
|
50786
|
+
args54 = {
|
|
50602
50787
|
request: AaveLoopRequest$inboundSchema
|
|
50603
50788
|
};
|
|
50604
50789
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -50616,9 +50801,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
50616
50801
|
- Supplies the swapped tokens
|
|
50617
50802
|
|
|
50618
50803
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
50619
|
-
args:
|
|
50620
|
-
tool: async (client,
|
|
50621
|
-
const [result, apiCall] = await transactionBatchingAaveLoop(client,
|
|
50804
|
+
args: args54,
|
|
50805
|
+
tool: async (client, args55, ctx) => {
|
|
50806
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50622
50807
|
if (!result.ok) {
|
|
50623
50808
|
return {
|
|
50624
50809
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50633,9 +50818,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
50633
50818
|
|
|
50634
50819
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
50635
50820
|
function transactionBatchingAuthorization(client, request, options) {
|
|
50636
|
-
return new APIPromise($
|
|
50821
|
+
return new APIPromise($do55(client, request, options));
|
|
50637
50822
|
}
|
|
50638
|
-
async function $
|
|
50823
|
+
async function $do55(client, request, options) {
|
|
50639
50824
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50640
50825
|
if (!parsed.ok) {
|
|
50641
50826
|
return [parsed, { status: "invalid" }];
|
|
@@ -50706,12 +50891,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
50706
50891
|
});
|
|
50707
50892
|
|
|
50708
50893
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
50709
|
-
var
|
|
50894
|
+
var args55, tool$transactionBatchingAuthorization;
|
|
50710
50895
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
50711
50896
|
init_transactionBatchingAuthorization();
|
|
50712
50897
|
init_components();
|
|
50713
50898
|
init_tools();
|
|
50714
|
-
|
|
50899
|
+
args55 = {
|
|
50715
50900
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
50716
50901
|
};
|
|
50717
50902
|
tool$transactionBatchingAuthorization = {
|
|
@@ -50724,9 +50909,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
50724
50909
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
50725
50910
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
50726
50911
|
targeting.`,
|
|
50727
|
-
args:
|
|
50728
|
-
tool: async (client,
|
|
50729
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
50912
|
+
args: args55,
|
|
50913
|
+
tool: async (client, args56, ctx) => {
|
|
50914
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50730
50915
|
if (!result.ok) {
|
|
50731
50916
|
return {
|
|
50732
50917
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50741,9 +50926,9 @@ targeting.`,
|
|
|
50741
50926
|
|
|
50742
50927
|
// src/funcs/transactionBatchingExecute.ts
|
|
50743
50928
|
function transactionBatchingExecute(client, request, options) {
|
|
50744
|
-
return new APIPromise($
|
|
50929
|
+
return new APIPromise($do56(client, request, options));
|
|
50745
50930
|
}
|
|
50746
|
-
async function $
|
|
50931
|
+
async function $do56(client, request, options) {
|
|
50747
50932
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50748
50933
|
if (!parsed.ok) {
|
|
50749
50934
|
return [parsed, { status: "invalid" }];
|
|
@@ -50814,12 +50999,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
50814
50999
|
});
|
|
50815
51000
|
|
|
50816
51001
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
50817
|
-
var
|
|
51002
|
+
var args56, tool$transactionBatchingExecute;
|
|
50818
51003
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
50819
51004
|
init_transactionBatchingExecute();
|
|
50820
51005
|
init_components();
|
|
50821
51006
|
init_tools();
|
|
50822
|
-
|
|
51007
|
+
args56 = {
|
|
50823
51008
|
request: MulticallExecuteRequest$inboundSchema
|
|
50824
51009
|
};
|
|
50825
51010
|
tool$transactionBatchingExecute = {
|
|
@@ -50832,9 +51017,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
50832
51017
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
50833
51018
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
50834
51019
|
prevent replay attacks.`,
|
|
50835
|
-
args:
|
|
50836
|
-
tool: async (client,
|
|
50837
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
51020
|
+
args: args56,
|
|
51021
|
+
tool: async (client, args57, ctx) => {
|
|
51022
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50838
51023
|
if (!result.ok) {
|
|
50839
51024
|
return {
|
|
50840
51025
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50849,9 +51034,9 @@ prevent replay attacks.`,
|
|
|
50849
51034
|
|
|
50850
51035
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
50851
51036
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
50852
|
-
return new APIPromise($
|
|
51037
|
+
return new APIPromise($do57(client, request, options));
|
|
50853
51038
|
}
|
|
50854
|
-
async function $
|
|
51039
|
+
async function $do57(client, request, options) {
|
|
50855
51040
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50856
51041
|
if (!parsed.ok) {
|
|
50857
51042
|
return [parsed, { status: "invalid" }];
|
|
@@ -50922,12 +51107,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
50922
51107
|
});
|
|
50923
51108
|
|
|
50924
51109
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
50925
|
-
var
|
|
51110
|
+
var args57, tool$uniswapV3LiquidityProvisionIncrease;
|
|
50926
51111
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
50927
51112
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
50928
51113
|
init_components();
|
|
50929
51114
|
init_tools();
|
|
50930
|
-
|
|
51115
|
+
args57 = {
|
|
50931
51116
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
50932
51117
|
};
|
|
50933
51118
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -50943,9 +51128,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
50943
51128
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
50944
51129
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
50945
51130
|
process.`,
|
|
50946
|
-
args:
|
|
50947
|
-
tool: async (client,
|
|
50948
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
51131
|
+
args: args57,
|
|
51132
|
+
tool: async (client, args58, ctx) => {
|
|
51133
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50949
51134
|
if (!result.ok) {
|
|
50950
51135
|
return {
|
|
50951
51136
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50960,9 +51145,9 @@ process.`,
|
|
|
50960
51145
|
|
|
50961
51146
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
50962
51147
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
50963
|
-
return new APIPromise($
|
|
51148
|
+
return new APIPromise($do58(client, request, options));
|
|
50964
51149
|
}
|
|
50965
|
-
async function $
|
|
51150
|
+
async function $do58(client, request, options) {
|
|
50966
51151
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50967
51152
|
if (!parsed.ok) {
|
|
50968
51153
|
return [parsed, { status: "invalid" }];
|
|
@@ -51039,12 +51224,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
51039
51224
|
});
|
|
51040
51225
|
|
|
51041
51226
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
51042
|
-
var
|
|
51227
|
+
var args58, tool$uniswapV3LiquidityProvisionInRange;
|
|
51043
51228
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
51044
51229
|
init_uniswapV3LiquidityProvisionInRange();
|
|
51045
51230
|
init_operations();
|
|
51046
51231
|
init_tools();
|
|
51047
|
-
|
|
51232
|
+
args58 = {
|
|
51048
51233
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
51049
51234
|
};
|
|
51050
51235
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -51059,9 +51244,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
51059
51244
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
51060
51245
|
they are actively participating in the trading activities within the liquidity pool
|
|
51061
51246
|
and earning trading fees.`,
|
|
51062
|
-
args:
|
|
51063
|
-
tool: async (client,
|
|
51064
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
51247
|
+
args: args58,
|
|
51248
|
+
tool: async (client, args59, ctx) => {
|
|
51249
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51065
51250
|
if (!result.ok) {
|
|
51066
51251
|
return {
|
|
51067
51252
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51076,9 +51261,9 @@ and earning trading fees.`,
|
|
|
51076
51261
|
|
|
51077
51262
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
51078
51263
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
51079
|
-
return new APIPromise($
|
|
51264
|
+
return new APIPromise($do59(client, request, options));
|
|
51080
51265
|
}
|
|
51081
|
-
async function $
|
|
51266
|
+
async function $do59(client, request, options) {
|
|
51082
51267
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51083
51268
|
if (!parsed.ok) {
|
|
51084
51269
|
return [parsed, { status: "invalid" }];
|
|
@@ -51149,12 +51334,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
51149
51334
|
});
|
|
51150
51335
|
|
|
51151
51336
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
51152
|
-
var
|
|
51337
|
+
var args59, tool$uniswapV3LiquidityProvisionMint;
|
|
51153
51338
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
51154
51339
|
init_uniswapV3LiquidityProvisionMint();
|
|
51155
51340
|
init_components();
|
|
51156
51341
|
init_tools();
|
|
51157
|
-
|
|
51342
|
+
args59 = {
|
|
51158
51343
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
51159
51344
|
};
|
|
51160
51345
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -51170,9 +51355,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
51170
51355
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
51171
51356
|
requires details such as the token pair, amount, and any additional parameters
|
|
51172
51357
|
needed for the minting process.`,
|
|
51173
|
-
args:
|
|
51174
|
-
tool: async (client,
|
|
51175
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
51358
|
+
args: args59,
|
|
51359
|
+
tool: async (client, args60, ctx) => {
|
|
51360
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51176
51361
|
if (!result.ok) {
|
|
51177
51362
|
return {
|
|
51178
51363
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51187,9 +51372,9 @@ needed for the minting process.`,
|
|
|
51187
51372
|
|
|
51188
51373
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
51189
51374
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
51190
|
-
return new APIPromise($
|
|
51375
|
+
return new APIPromise($do60(client, request, options));
|
|
51191
51376
|
}
|
|
51192
|
-
async function $
|
|
51377
|
+
async function $do60(client, request, options) {
|
|
51193
51378
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51194
51379
|
if (!parsed.ok) {
|
|
51195
51380
|
return [parsed, { status: "invalid" }];
|
|
@@ -51266,12 +51451,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
51266
51451
|
});
|
|
51267
51452
|
|
|
51268
51453
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
51269
|
-
var
|
|
51454
|
+
var args60, tool$uniswapV3LiquidityProvisionPositions;
|
|
51270
51455
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
51271
51456
|
init_uniswapV3LiquidityProvisionPositions();
|
|
51272
51457
|
init_operations();
|
|
51273
51458
|
init_tools();
|
|
51274
|
-
|
|
51459
|
+
args60 = {
|
|
51275
51460
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
51276
51461
|
};
|
|
51277
51462
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -51285,9 +51470,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
51285
51470
|
positions, including the total number of positions and relevant metadata. This
|
|
51286
51471
|
information is crucial for users to manage and analyze their liquidity provision
|
|
51287
51472
|
activities effectively.`,
|
|
51288
|
-
args:
|
|
51289
|
-
tool: async (client,
|
|
51290
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
51473
|
+
args: args60,
|
|
51474
|
+
tool: async (client, args61, ctx) => {
|
|
51475
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51291
51476
|
if (!result.ok) {
|
|
51292
51477
|
return {
|
|
51293
51478
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51302,9 +51487,9 @@ activities effectively.`,
|
|
|
51302
51487
|
|
|
51303
51488
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51304
51489
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
51305
|
-
return new APIPromise($
|
|
51490
|
+
return new APIPromise($do61(client, request, options));
|
|
51306
51491
|
}
|
|
51307
|
-
async function $
|
|
51492
|
+
async function $do61(client, request, options) {
|
|
51308
51493
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51309
51494
|
if (!parsed.ok) {
|
|
51310
51495
|
return [parsed, { status: "invalid" }];
|
|
@@ -51375,12 +51560,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
51375
51560
|
});
|
|
51376
51561
|
|
|
51377
51562
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51378
|
-
var
|
|
51563
|
+
var args61, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
51379
51564
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
51380
51565
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
51381
51566
|
init_components();
|
|
51382
51567
|
init_tools();
|
|
51383
|
-
|
|
51568
|
+
args61 = {
|
|
51384
51569
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
51385
51570
|
};
|
|
51386
51571
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -51397,9 +51582,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
51397
51582
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
51398
51583
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
51399
51584
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
51400
|
-
args:
|
|
51401
|
-
tool: async (client,
|
|
51402
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
51585
|
+
args: args61,
|
|
51586
|
+
tool: async (client, args62, ctx) => {
|
|
51587
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51403
51588
|
if (!result.ok) {
|
|
51404
51589
|
return {
|
|
51405
51590
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51414,9 +51599,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
51414
51599
|
|
|
51415
51600
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
51416
51601
|
function uniswapV3PoolPrice(client, request, options) {
|
|
51417
|
-
return new APIPromise($
|
|
51602
|
+
return new APIPromise($do62(client, request, options));
|
|
51418
51603
|
}
|
|
51419
|
-
async function $
|
|
51604
|
+
async function $do62(client, request, options) {
|
|
51420
51605
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51421
51606
|
if (!parsed.ok) {
|
|
51422
51607
|
return [parsed, { status: "invalid" }];
|
|
@@ -51495,12 +51680,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
51495
51680
|
});
|
|
51496
51681
|
|
|
51497
51682
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
51498
|
-
var
|
|
51683
|
+
var args62, tool$uniswapV3PoolPrice;
|
|
51499
51684
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
51500
51685
|
init_uniswapV3PoolPrice();
|
|
51501
51686
|
init_operations();
|
|
51502
51687
|
init_tools();
|
|
51503
|
-
|
|
51688
|
+
args62 = {
|
|
51504
51689
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
51505
51690
|
};
|
|
51506
51691
|
tool$uniswapV3PoolPrice = {
|
|
@@ -51510,9 +51695,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
51510
51695
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
51511
51696
|
|
|
51512
51697
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
51513
|
-
args:
|
|
51514
|
-
tool: async (client,
|
|
51515
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
51698
|
+
args: args62,
|
|
51699
|
+
tool: async (client, args63, ctx) => {
|
|
51700
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51516
51701
|
if (!result.ok) {
|
|
51517
51702
|
return {
|
|
51518
51703
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51527,9 +51712,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
51527
51712
|
|
|
51528
51713
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
51529
51714
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
51530
|
-
return new APIPromise($
|
|
51715
|
+
return new APIPromise($do63(client, request, options));
|
|
51531
51716
|
}
|
|
51532
|
-
async function $
|
|
51717
|
+
async function $do63(client, request, options) {
|
|
51533
51718
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51534
51719
|
if (!parsed.ok) {
|
|
51535
51720
|
return [parsed, { status: "invalid" }];
|
|
@@ -51609,12 +51794,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
51609
51794
|
});
|
|
51610
51795
|
|
|
51611
51796
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
51612
|
-
var
|
|
51797
|
+
var args63, tool$uniswapV3QuoteBuyExactly;
|
|
51613
51798
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
51614
51799
|
init_uniswapV3QuoteBuyExactly();
|
|
51615
51800
|
init_operations();
|
|
51616
51801
|
init_tools();
|
|
51617
|
-
|
|
51802
|
+
args63 = {
|
|
51618
51803
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
51619
51804
|
};
|
|
51620
51805
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -51626,9 +51811,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
51626
51811
|
|
|
51627
51812
|
It also provides the resulting price after the transaction. The calculation takes
|
|
51628
51813
|
into account the current pool state and the specified fee tier.`,
|
|
51629
|
-
args:
|
|
51630
|
-
tool: async (client,
|
|
51631
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
51814
|
+
args: args63,
|
|
51815
|
+
tool: async (client, args64, ctx) => {
|
|
51816
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51632
51817
|
if (!result.ok) {
|
|
51633
51818
|
return {
|
|
51634
51819
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51643,9 +51828,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
51643
51828
|
|
|
51644
51829
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
51645
51830
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
51646
|
-
return new APIPromise($
|
|
51831
|
+
return new APIPromise($do64(client, request, options));
|
|
51647
51832
|
}
|
|
51648
|
-
async function $
|
|
51833
|
+
async function $do64(client, request, options) {
|
|
51649
51834
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51650
51835
|
if (!parsed.ok) {
|
|
51651
51836
|
return [parsed, { status: "invalid" }];
|
|
@@ -51725,12 +51910,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
51725
51910
|
});
|
|
51726
51911
|
|
|
51727
51912
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
51728
|
-
var
|
|
51913
|
+
var args64, tool$uniswapV3QuoteSellExactly;
|
|
51729
51914
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
51730
51915
|
init_uniswapV3QuoteSellExactly();
|
|
51731
51916
|
init_operations();
|
|
51732
51917
|
init_tools();
|
|
51733
|
-
|
|
51918
|
+
args64 = {
|
|
51734
51919
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
51735
51920
|
};
|
|
51736
51921
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -51742,9 +51927,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
51742
51927
|
|
|
51743
51928
|
It also provides the resulting price after the transaction. The calculation takes
|
|
51744
51929
|
into account the current pool state and the specified fee tier.`,
|
|
51745
|
-
args:
|
|
51746
|
-
tool: async (client,
|
|
51747
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
51930
|
+
args: args64,
|
|
51931
|
+
tool: async (client, args65, ctx) => {
|
|
51932
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51748
51933
|
if (!result.ok) {
|
|
51749
51934
|
return {
|
|
51750
51935
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51759,9 +51944,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
51759
51944
|
|
|
51760
51945
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
51761
51946
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
51762
|
-
return new APIPromise($
|
|
51947
|
+
return new APIPromise($do65(client, request, options));
|
|
51763
51948
|
}
|
|
51764
|
-
async function $
|
|
51949
|
+
async function $do65(client, request, options) {
|
|
51765
51950
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51766
51951
|
if (!parsed.ok) {
|
|
51767
51952
|
return [parsed, { status: "invalid" }];
|
|
@@ -51832,12 +52017,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
51832
52017
|
});
|
|
51833
52018
|
|
|
51834
52019
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
51835
|
-
var
|
|
52020
|
+
var args65, tool$uniswapV3SwapBuyExactly;
|
|
51836
52021
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
51837
52022
|
init_uniswapV3SwapBuyExactly();
|
|
51838
52023
|
init_components();
|
|
51839
52024
|
init_tools();
|
|
51840
|
-
|
|
52025
|
+
args65 = {
|
|
51841
52026
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
51842
52027
|
};
|
|
51843
52028
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -51851,9 +52036,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
51851
52036
|
provide the necessary transaction details, including the token to buy, the token to
|
|
51852
52037
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
51853
52038
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
51854
|
-
args:
|
|
51855
|
-
tool: async (client,
|
|
51856
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
52039
|
+
args: args65,
|
|
52040
|
+
tool: async (client, args66, ctx) => {
|
|
52041
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51857
52042
|
if (!result.ok) {
|
|
51858
52043
|
return {
|
|
51859
52044
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51868,9 +52053,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
51868
52053
|
|
|
51869
52054
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
51870
52055
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
51871
|
-
return new APIPromise($
|
|
52056
|
+
return new APIPromise($do66(client, request, options));
|
|
51872
52057
|
}
|
|
51873
|
-
async function $
|
|
52058
|
+
async function $do66(client, request, options) {
|
|
51874
52059
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51875
52060
|
if (!parsed.ok) {
|
|
51876
52061
|
return [parsed, { status: "invalid" }];
|
|
@@ -51941,12 +52126,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
51941
52126
|
});
|
|
51942
52127
|
|
|
51943
52128
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
51944
|
-
var
|
|
52129
|
+
var args66, tool$uniswapV3SwapSellExactly;
|
|
51945
52130
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
51946
52131
|
init_uniswapV3SwapSellExactly();
|
|
51947
52132
|
init_components();
|
|
51948
52133
|
init_tools();
|
|
51949
|
-
|
|
52134
|
+
args66 = {
|
|
51950
52135
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
51951
52136
|
};
|
|
51952
52137
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -51960,9 +52145,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
51960
52145
|
provide the necessary transaction details, including the token to sell, the token to
|
|
51961
52146
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
51962
52147
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
51963
|
-
args:
|
|
51964
|
-
tool: async (client,
|
|
51965
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
52148
|
+
args: args66,
|
|
52149
|
+
tool: async (client, args67, ctx) => {
|
|
52150
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51966
52151
|
if (!result.ok) {
|
|
51967
52152
|
return {
|
|
51968
52153
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51977,9 +52162,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
51977
52162
|
|
|
51978
52163
|
// src/funcs/universalAllowance.ts
|
|
51979
52164
|
function universalAllowance(client, request, options) {
|
|
51980
|
-
return new APIPromise($
|
|
52165
|
+
return new APIPromise($do67(client, request, options));
|
|
51981
52166
|
}
|
|
51982
|
-
async function $
|
|
52167
|
+
async function $do67(client, request, options) {
|
|
51983
52168
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51984
52169
|
if (!parsed.ok) {
|
|
51985
52170
|
return [parsed, { status: "invalid" }];
|
|
@@ -52058,12 +52243,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
52058
52243
|
});
|
|
52059
52244
|
|
|
52060
52245
|
// src/mcp-server/tools/universalAllowance.ts
|
|
52061
|
-
var
|
|
52246
|
+
var args67, tool$universalAllowance;
|
|
52062
52247
|
var init_universalAllowance2 = __esm(() => {
|
|
52063
52248
|
init_universalAllowance();
|
|
52064
52249
|
init_operations();
|
|
52065
52250
|
init_tools();
|
|
52066
|
-
|
|
52251
|
+
args67 = {
|
|
52067
52252
|
request: GenericAllowanceRequest$inboundSchema
|
|
52068
52253
|
};
|
|
52069
52254
|
tool$universalAllowance = {
|
|
@@ -52077,9 +52262,9 @@ tokens on their behalf.
|
|
|
52077
52262
|
This is a crucial step before engaging in any transactions or operations within
|
|
52078
52263
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
52079
52264
|
the user's tokens securely and efficiently.`,
|
|
52080
|
-
args:
|
|
52081
|
-
tool: async (client,
|
|
52082
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
52265
|
+
args: args67,
|
|
52266
|
+
tool: async (client, args68, ctx) => {
|
|
52267
|
+
const [result, apiCall] = await universalAllowance(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52083
52268
|
if (!result.ok) {
|
|
52084
52269
|
return {
|
|
52085
52270
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52094,9 +52279,9 @@ the user's tokens securely and efficiently.`,
|
|
|
52094
52279
|
|
|
52095
52280
|
// src/funcs/universalAllowanceSet.ts
|
|
52096
52281
|
function universalAllowanceSet(client, request, options) {
|
|
52097
|
-
return new APIPromise($
|
|
52282
|
+
return new APIPromise($do68(client, request, options));
|
|
52098
52283
|
}
|
|
52099
|
-
async function $
|
|
52284
|
+
async function $do68(client, request, options) {
|
|
52100
52285
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52101
52286
|
if (!parsed.ok) {
|
|
52102
52287
|
return [parsed, { status: "invalid" }];
|
|
@@ -52167,12 +52352,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
52167
52352
|
});
|
|
52168
52353
|
|
|
52169
52354
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
52170
|
-
var
|
|
52355
|
+
var args68, tool$universalAllowanceSet;
|
|
52171
52356
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
52172
52357
|
init_universalAllowanceSet();
|
|
52173
52358
|
init_components();
|
|
52174
52359
|
init_tools();
|
|
52175
|
-
|
|
52360
|
+
args68 = {
|
|
52176
52361
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
52177
52362
|
};
|
|
52178
52363
|
tool$universalAllowanceSet = {
|
|
@@ -52186,9 +52371,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
52186
52371
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
52187
52372
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
52188
52373
|
within the DeFi ecosystem.`,
|
|
52189
|
-
args:
|
|
52190
|
-
tool: async (client,
|
|
52191
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
52374
|
+
args: args68,
|
|
52375
|
+
tool: async (client, args69, ctx) => {
|
|
52376
|
+
const [result, apiCall] = await universalAllowanceSet(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52192
52377
|
if (!result.ok) {
|
|
52193
52378
|
return {
|
|
52194
52379
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52203,9 +52388,9 @@ within the DeFi ecosystem.`,
|
|
|
52203
52388
|
|
|
52204
52389
|
// src/funcs/universalEns.ts
|
|
52205
52390
|
function universalEns(client, request, options) {
|
|
52206
|
-
return new APIPromise($
|
|
52391
|
+
return new APIPromise($do69(client, request, options));
|
|
52207
52392
|
}
|
|
52208
|
-
async function $
|
|
52393
|
+
async function $do69(client, request, options) {
|
|
52209
52394
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52210
52395
|
if (!parsed.ok) {
|
|
52211
52396
|
return [parsed, { status: "invalid" }];
|
|
@@ -52282,12 +52467,12 @@ var init_universalEns = __esm(() => {
|
|
|
52282
52467
|
});
|
|
52283
52468
|
|
|
52284
52469
|
// src/mcp-server/tools/universalEns.ts
|
|
52285
|
-
var
|
|
52470
|
+
var args69, tool$universalEns;
|
|
52286
52471
|
var init_universalEns2 = __esm(() => {
|
|
52287
52472
|
init_universalEns();
|
|
52288
52473
|
init_operations();
|
|
52289
52474
|
init_tools();
|
|
52290
|
-
|
|
52475
|
+
args69 = {
|
|
52291
52476
|
request: GenericEnsRequest$inboundSchema
|
|
52292
52477
|
};
|
|
52293
52478
|
tool$universalEns = {
|
|
@@ -52298,9 +52483,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
52298
52483
|
|
|
52299
52484
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
52300
52485
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
52301
|
-
args:
|
|
52302
|
-
tool: async (client,
|
|
52303
|
-
const [result, apiCall] = await universalEns(client,
|
|
52486
|
+
args: args69,
|
|
52487
|
+
tool: async (client, args70, ctx) => {
|
|
52488
|
+
const [result, apiCall] = await universalEns(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52304
52489
|
if (!result.ok) {
|
|
52305
52490
|
return {
|
|
52306
52491
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52315,9 +52500,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
52315
52500
|
|
|
52316
52501
|
// src/funcs/universalPortfolio.ts
|
|
52317
52502
|
function universalPortfolio(client, request, options) {
|
|
52318
|
-
return new APIPromise($
|
|
52503
|
+
return new APIPromise($do70(client, request, options));
|
|
52319
52504
|
}
|
|
52320
|
-
async function $
|
|
52505
|
+
async function $do70(client, request, options) {
|
|
52321
52506
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52322
52507
|
if (!parsed.ok) {
|
|
52323
52508
|
return [parsed, { status: "invalid" }];
|
|
@@ -52394,12 +52579,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
52394
52579
|
});
|
|
52395
52580
|
|
|
52396
52581
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
52397
|
-
var
|
|
52582
|
+
var args70, tool$universalPortfolio;
|
|
52398
52583
|
var init_universalPortfolio2 = __esm(() => {
|
|
52399
52584
|
init_universalPortfolio();
|
|
52400
52585
|
init_operations();
|
|
52401
52586
|
init_tools();
|
|
52402
|
-
|
|
52587
|
+
args70 = {
|
|
52403
52588
|
request: GenericPortfolioRequest$inboundSchema
|
|
52404
52589
|
};
|
|
52405
52590
|
tool$universalPortfolio = {
|
|
@@ -52410,9 +52595,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
52410
52595
|
|
|
52411
52596
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
52412
52597
|
balances, including their respective values and quantities.`,
|
|
52413
|
-
args:
|
|
52414
|
-
tool: async (client,
|
|
52415
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
52598
|
+
args: args70,
|
|
52599
|
+
tool: async (client, args71, ctx) => {
|
|
52600
|
+
const [result, apiCall] = await universalPortfolio(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52416
52601
|
if (!result.ok) {
|
|
52417
52602
|
return {
|
|
52418
52603
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52427,9 +52612,9 @@ balances, including their respective values and quantities.`,
|
|
|
52427
52612
|
|
|
52428
52613
|
// src/funcs/universalSupportedTokens.ts
|
|
52429
52614
|
function universalSupportedTokens(client, request, options) {
|
|
52430
|
-
return new APIPromise($
|
|
52615
|
+
return new APIPromise($do71(client, request, options));
|
|
52431
52616
|
}
|
|
52432
|
-
async function $
|
|
52617
|
+
async function $do71(client, request, options) {
|
|
52433
52618
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52434
52619
|
if (!parsed.ok) {
|
|
52435
52620
|
return [parsed, { status: "invalid" }];
|
|
@@ -52505,12 +52690,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
52505
52690
|
});
|
|
52506
52691
|
|
|
52507
52692
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
52508
|
-
var
|
|
52693
|
+
var args71, tool$universalSupportedTokens;
|
|
52509
52694
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
52510
52695
|
init_universalSupportedTokens();
|
|
52511
52696
|
init_operations();
|
|
52512
52697
|
init_tools();
|
|
52513
|
-
|
|
52698
|
+
args71 = {
|
|
52514
52699
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
52515
52700
|
};
|
|
52516
52701
|
tool$universalSupportedTokens = {
|
|
@@ -52518,9 +52703,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
52518
52703
|
description: `List supported tokens
|
|
52519
52704
|
|
|
52520
52705
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
52521
|
-
args:
|
|
52522
|
-
tool: async (client,
|
|
52523
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
52706
|
+
args: args71,
|
|
52707
|
+
tool: async (client, args72, ctx) => {
|
|
52708
|
+
const [result, apiCall] = await universalSupportedTokens(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52524
52709
|
if (!result.ok) {
|
|
52525
52710
|
return {
|
|
52526
52711
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52535,9 +52720,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
52535
52720
|
|
|
52536
52721
|
// src/funcs/universalUnwrapWeth.ts
|
|
52537
52722
|
function universalUnwrapWeth(client, request, options) {
|
|
52538
|
-
return new APIPromise($
|
|
52723
|
+
return new APIPromise($do72(client, request, options));
|
|
52539
52724
|
}
|
|
52540
|
-
async function $
|
|
52725
|
+
async function $do72(client, request, options) {
|
|
52541
52726
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52542
52727
|
if (!parsed.ok) {
|
|
52543
52728
|
return [parsed, { status: "invalid" }];
|
|
@@ -52608,12 +52793,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
52608
52793
|
});
|
|
52609
52794
|
|
|
52610
52795
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
52611
|
-
var
|
|
52796
|
+
var args72, tool$universalUnwrapWeth;
|
|
52612
52797
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
52613
52798
|
init_universalUnwrapWeth();
|
|
52614
52799
|
init_components();
|
|
52615
52800
|
init_tools();
|
|
52616
|
-
|
|
52801
|
+
args72 = {
|
|
52617
52802
|
request: UnwrapWethRequest$inboundSchema
|
|
52618
52803
|
};
|
|
52619
52804
|
tool$universalUnwrapWeth = {
|
|
@@ -52622,9 +52807,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
52622
52807
|
|
|
52623
52808
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
52624
52809
|
can be used for gas and other native purposes.`,
|
|
52625
|
-
args:
|
|
52626
|
-
tool: async (client,
|
|
52627
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
52810
|
+
args: args72,
|
|
52811
|
+
tool: async (client, args73, ctx) => {
|
|
52812
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52628
52813
|
if (!result.ok) {
|
|
52629
52814
|
return {
|
|
52630
52815
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52639,9 +52824,9 @@ can be used for gas and other native purposes.`,
|
|
|
52639
52824
|
|
|
52640
52825
|
// src/funcs/universalVisualizePortfolio.ts
|
|
52641
52826
|
function universalVisualizePortfolio(client, request, options) {
|
|
52642
|
-
return new APIPromise($
|
|
52827
|
+
return new APIPromise($do73(client, request, options));
|
|
52643
52828
|
}
|
|
52644
|
-
async function $
|
|
52829
|
+
async function $do73(client, request, options) {
|
|
52645
52830
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52646
52831
|
if (!parsed.ok) {
|
|
52647
52832
|
return [parsed, { status: "invalid" }];
|
|
@@ -52718,12 +52903,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
52718
52903
|
});
|
|
52719
52904
|
|
|
52720
52905
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
52721
|
-
var
|
|
52906
|
+
var args73, tool$universalVisualizePortfolio;
|
|
52722
52907
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
52723
52908
|
init_universalVisualizePortfolio();
|
|
52724
52909
|
init_operations();
|
|
52725
52910
|
init_tools();
|
|
52726
|
-
|
|
52911
|
+
args73 = {
|
|
52727
52912
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
52728
52913
|
};
|
|
52729
52914
|
tool$universalVisualizePortfolio = {
|
|
@@ -52735,9 +52920,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
52735
52920
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
52736
52921
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
52737
52922
|
USD.`,
|
|
52738
|
-
args:
|
|
52739
|
-
tool: async (client,
|
|
52740
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
52923
|
+
args: args73,
|
|
52924
|
+
tool: async (client, args74, ctx) => {
|
|
52925
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52741
52926
|
if (!result.ok) {
|
|
52742
52927
|
return {
|
|
52743
52928
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52752,9 +52937,9 @@ USD.`,
|
|
|
52752
52937
|
|
|
52753
52938
|
// src/funcs/universalWrapEth.ts
|
|
52754
52939
|
function universalWrapEth(client, request, options) {
|
|
52755
|
-
return new APIPromise($
|
|
52940
|
+
return new APIPromise($do74(client, request, options));
|
|
52756
52941
|
}
|
|
52757
|
-
async function $
|
|
52942
|
+
async function $do74(client, request, options) {
|
|
52758
52943
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52759
52944
|
if (!parsed.ok) {
|
|
52760
52945
|
return [parsed, { status: "invalid" }];
|
|
@@ -52825,12 +53010,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
52825
53010
|
});
|
|
52826
53011
|
|
|
52827
53012
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
52828
|
-
var
|
|
53013
|
+
var args74, tool$universalWrapEth;
|
|
52829
53014
|
var init_universalWrapEth2 = __esm(() => {
|
|
52830
53015
|
init_universalWrapEth();
|
|
52831
53016
|
init_components();
|
|
52832
53017
|
init_tools();
|
|
52833
|
-
|
|
53018
|
+
args74 = {
|
|
52834
53019
|
request: WrapEthRequest$inboundSchema
|
|
52835
53020
|
};
|
|
52836
53021
|
tool$universalWrapEth = {
|
|
@@ -52839,9 +53024,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
52839
53024
|
|
|
52840
53025
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
52841
53026
|
it to be traded on DeFi protocols.`,
|
|
52842
|
-
args:
|
|
52843
|
-
tool: async (client,
|
|
52844
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
53027
|
+
args: args74,
|
|
53028
|
+
tool: async (client, args75, ctx) => {
|
|
53029
|
+
const [result, apiCall] = await universalWrapEth(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52845
53030
|
if (!result.ok) {
|
|
52846
53031
|
return {
|
|
52847
53032
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52858,7 +53043,7 @@ it to be traded on DeFi protocols.`,
|
|
|
52858
53043
|
function createMCPServer(deps) {
|
|
52859
53044
|
const server = new McpServer({
|
|
52860
53045
|
name: "CompassApiSDK",
|
|
52861
|
-
version: "0.5.
|
|
53046
|
+
version: "0.5.4"
|
|
52862
53047
|
});
|
|
52863
53048
|
const client = new CompassApiSDKCore({
|
|
52864
53049
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -52941,6 +53126,7 @@ function createMCPServer(deps) {
|
|
|
52941
53126
|
tool(tool$pendleSellPt);
|
|
52942
53127
|
tool(tool$pendleBuyYt);
|
|
52943
53128
|
tool(tool$pendleSellYt);
|
|
53129
|
+
tool(tool$pendleRedeemYield);
|
|
52944
53130
|
tool(tool$transactionBatchingAuthorization);
|
|
52945
53131
|
tool(tool$transactionBatchingExecute);
|
|
52946
53132
|
tool(tool$transactionBatchingAaveLoop);
|
|
@@ -52992,6 +53178,7 @@ var init_server2 = __esm(() => {
|
|
|
52992
53178
|
init_pendleMarkets2();
|
|
52993
53179
|
init_pendlePosition2();
|
|
52994
53180
|
init_pendlePositions2();
|
|
53181
|
+
init_pendleRedeemYield2();
|
|
52995
53182
|
init_pendleSellPt2();
|
|
52996
53183
|
init_pendleSellYt2();
|
|
52997
53184
|
init_skyBuy2();
|
|
@@ -54215,7 +54402,7 @@ var routes = an({
|
|
|
54215
54402
|
var app = He(routes, {
|
|
54216
54403
|
name: "mcp",
|
|
54217
54404
|
versionInfo: {
|
|
54218
|
-
currentVersion: "0.5.
|
|
54405
|
+
currentVersion: "0.5.4"
|
|
54219
54406
|
}
|
|
54220
54407
|
});
|
|
54221
54408
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -54223,5 +54410,5 @@ export {
|
|
|
54223
54410
|
app
|
|
54224
54411
|
};
|
|
54225
54412
|
|
|
54226
|
-
//# debugId=
|
|
54413
|
+
//# debugId=77CC6228C9A0159F64756E2164756E21
|
|
54227
54414
|
//# sourceMappingURL=mcp-server.js.map
|