@compass-labs/api-sdk 0.1.5 → 0.1.7
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 +7 -0
- package/bin/mcp-server.js +735 -308
- package/bin/mcp-server.js.map +21 -12
- package/dist/commonjs/funcs/pendleMarket.d.ts +18 -0
- package/dist/commonjs/funcs/pendleMarket.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleMarket.js +122 -0
- package/dist/commonjs/funcs/pendleMarket.js.map +1 -0
- package/dist/commonjs/funcs/pendlePosition.d.ts +18 -0
- package/dist/commonjs/funcs/pendlePosition.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendlePosition.js +122 -0
- package/dist/commonjs/funcs/pendlePosition.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleMarket.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleMarket.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleMarket.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendleMarket.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendlePosition.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendlePosition.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendlePosition.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendlePosition.js.map +1 -0
- package/dist/commonjs/models/components/contractname.d.ts +12 -0
- package/dist/commonjs/models/components/contractname.d.ts.map +1 -1
- package/dist/commonjs/models/components/contractname.js +4 -0
- package/dist/commonjs/models/components/contractname.js.map +1 -1
- package/dist/commonjs/models/components/erc20data.d.ts +33 -0
- package/dist/commonjs/models/components/erc20data.d.ts.map +1 -0
- package/dist/commonjs/models/components/erc20data.js +73 -0
- package/dist/commonjs/models/components/erc20data.js.map +1 -0
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts +3 -0
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/increaseallowanceparams.js +1 -0
- package/dist/commonjs/models/components/increaseallowanceparams.js.map +1 -1
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts +3 -0
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/increaseallowancerequest.js +1 -0
- package/dist/commonjs/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts +46 -0
- package/dist/commonjs/models/components/pendlegetmarketresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlegetmarketresponse.js +93 -0
- package/dist/commonjs/models/components/pendlegetmarketresponse.js.map +1 -0
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts +67 -0
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.js +106 -0
- package/dist/commonjs/models/components/pendlegetuserpositionresponse.js.map +1 -0
- package/dist/commonjs/models/operations/genericallowance.d.ts +3 -0
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +1 -0
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/pendlemarket.d.ts +77 -0
- package/dist/commonjs/models/operations/pendlemarket.d.ts.map +1 -0
- package/dist/commonjs/models/operations/pendlemarket.js +107 -0
- package/dist/commonjs/models/operations/pendlemarket.js.map +1 -0
- package/dist/commonjs/models/operations/pendleposition.d.ts +77 -0
- package/dist/commonjs/models/operations/pendleposition.d.ts.map +1 -0
- package/dist/commonjs/models/operations/pendleposition.js +107 -0
- package/dist/commonjs/models/operations/pendleposition.js.map +1 -0
- package/dist/commonjs/sdk/pendle.d.ts +20 -0
- package/dist/commonjs/sdk/pendle.d.ts.map +1 -0
- package/dist/commonjs/sdk/pendle.js +32 -0
- package/dist/commonjs/sdk/pendle.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/pendleMarket.d.ts +18 -0
- package/dist/esm/funcs/pendleMarket.d.ts.map +1 -0
- package/dist/esm/funcs/pendleMarket.js +86 -0
- package/dist/esm/funcs/pendleMarket.js.map +1 -0
- package/dist/esm/funcs/pendlePosition.d.ts +18 -0
- package/dist/esm/funcs/pendlePosition.d.ts.map +1 -0
- package/dist/esm/funcs/pendlePosition.js +86 -0
- package/dist/esm/funcs/pendlePosition.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleMarket.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleMarket.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleMarket.js +28 -0
- package/dist/esm/mcp-server/tools/pendleMarket.js.map +1 -0
- package/dist/esm/mcp-server/tools/pendlePosition.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendlePosition.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendlePosition.js +28 -0
- package/dist/esm/mcp-server/tools/pendlePosition.js.map +1 -0
- package/dist/esm/models/components/contractname.d.ts +12 -0
- package/dist/esm/models/components/contractname.d.ts.map +1 -1
- package/dist/esm/models/components/contractname.js +4 -0
- package/dist/esm/models/components/contractname.js.map +1 -1
- package/dist/esm/models/components/erc20data.d.ts +33 -0
- package/dist/esm/models/components/erc20data.d.ts.map +1 -0
- package/dist/esm/models/components/erc20data.js +35 -0
- package/dist/esm/models/components/erc20data.js.map +1 -0
- package/dist/esm/models/components/increaseallowanceparams.d.ts +3 -0
- package/dist/esm/models/components/increaseallowanceparams.d.ts.map +1 -1
- package/dist/esm/models/components/increaseallowanceparams.js +1 -0
- package/dist/esm/models/components/increaseallowanceparams.js.map +1 -1
- package/dist/esm/models/components/increaseallowancerequest.d.ts +3 -0
- package/dist/esm/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/esm/models/components/increaseallowancerequest.js +1 -0
- package/dist/esm/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/pendlegetmarketresponse.d.ts +46 -0
- package/dist/esm/models/components/pendlegetmarketresponse.d.ts.map +1 -0
- package/dist/esm/models/components/pendlegetmarketresponse.js +55 -0
- package/dist/esm/models/components/pendlegetmarketresponse.js.map +1 -0
- package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts +67 -0
- package/dist/esm/models/components/pendlegetuserpositionresponse.d.ts.map +1 -0
- package/dist/esm/models/components/pendlegetuserpositionresponse.js +68 -0
- package/dist/esm/models/components/pendlegetuserpositionresponse.js.map +1 -0
- package/dist/esm/models/operations/genericallowance.d.ts +3 -0
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +1 -0
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/pendlemarket.d.ts +77 -0
- package/dist/esm/models/operations/pendlemarket.d.ts.map +1 -0
- package/dist/esm/models/operations/pendlemarket.js +69 -0
- package/dist/esm/models/operations/pendlemarket.js.map +1 -0
- package/dist/esm/models/operations/pendleposition.d.ts +77 -0
- package/dist/esm/models/operations/pendleposition.d.ts.map +1 -0
- package/dist/esm/models/operations/pendleposition.js +69 -0
- package/dist/esm/models/operations/pendleposition.js.map +1 -0
- package/dist/esm/sdk/pendle.d.ts +20 -0
- package/dist/esm/sdk/pendle.d.ts.map +1 -0
- package/dist/esm/sdk/pendle.js +28 -0
- package/dist/esm/sdk/pendle.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/sdks/pendle/README.md +171 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/pendleMarket.ts +170 -0
- package/src/funcs/pendlePosition.ts +170 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/pendleMarket.ts +37 -0
- package/src/mcp-server/tools/pendlePosition.ts +37 -0
- package/src/models/components/contractname.ts +4 -0
- package/src/models/components/erc20data.ts +70 -0
- package/src/models/components/increaseallowanceparams.ts +1 -0
- package/src/models/components/increaseallowancerequest.ts +1 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/pendlegetmarketresponse.ts +113 -0
- package/src/models/components/pendlegetuserpositionresponse.ts +145 -0
- package/src/models/operations/genericallowance.ts +1 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/pendlemarket.ts +135 -0
- package/src/models/operations/pendleposition.ts +135 -0
- package/src/sdk/pendle.ts +46 -0
- package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34229,9 +34229,9 @@ var init_config = __esm(() => {
|
|
|
34229
34229
|
SDK_METADATA = {
|
|
34230
34230
|
language: "typescript",
|
|
34231
34231
|
openapiDocVersion: "0.0.1",
|
|
34232
|
-
sdkVersion: "0.1.
|
|
34232
|
+
sdkVersion: "0.1.7",
|
|
34233
34233
|
genVersion: "2.610.0",
|
|
34234
|
-
userAgent: "speakeasy-sdk/typescript 0.1.
|
|
34234
|
+
userAgent: "speakeasy-sdk/typescript 0.1.7 2.610.0 0.0.1 @compass-labs/api-sdk"
|
|
34235
34235
|
};
|
|
34236
34236
|
});
|
|
34237
34237
|
|
|
@@ -37563,6 +37563,10 @@ var init_contractname = __esm(() => {
|
|
|
37563
37563
|
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
37564
37564
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
37565
37565
|
SkyUsdsVault: "SkyUsdsVault",
|
|
37566
|
+
PendleRouter: "PendleRouter",
|
|
37567
|
+
PendleMarket: "PendleMarket",
|
|
37568
|
+
PendleSy: "PendleSy",
|
|
37569
|
+
PendleYt: "PendleYt",
|
|
37566
37570
|
Multicall: "Multicall"
|
|
37567
37571
|
};
|
|
37568
37572
|
ContractName$inboundSchema = nativeEnumType(ContractName);
|
|
@@ -37626,7 +37630,8 @@ var init_increaseallowanceparams = __esm(() => {
|
|
|
37626
37630
|
Morpho: "Morpho",
|
|
37627
37631
|
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
37628
37632
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
37629
|
-
SkyUsdsVault: "SkyUsdsVault"
|
|
37633
|
+
SkyUsdsVault: "SkyUsdsVault",
|
|
37634
|
+
PendleRouter: "PendleRouter"
|
|
37630
37635
|
};
|
|
37631
37636
|
IncreaseAllowanceParamsContractName$inboundSchema = nativeEnumType(IncreaseAllowanceParamsContractName);
|
|
37632
37637
|
IncreaseAllowanceParamsContractName$outboundSchema = IncreaseAllowanceParamsContractName$inboundSchema;
|
|
@@ -39126,6 +39131,26 @@ var init_ensnameinforesponse = __esm(() => {
|
|
|
39126
39131
|
})(EnsNameInfoResponse$ ||= {});
|
|
39127
39132
|
});
|
|
39128
39133
|
|
|
39134
|
+
// src/models/components/erc20data.ts
|
|
39135
|
+
var Erc20Data$inboundSchema, Erc20Data$outboundSchema, Erc20Data$;
|
|
39136
|
+
var init_erc20data = __esm(() => {
|
|
39137
|
+
init_esm();
|
|
39138
|
+
Erc20Data$inboundSchema = objectType({
|
|
39139
|
+
address: stringType(),
|
|
39140
|
+
symbol: stringType(),
|
|
39141
|
+
name: stringType()
|
|
39142
|
+
});
|
|
39143
|
+
Erc20Data$outboundSchema = objectType({
|
|
39144
|
+
address: stringType(),
|
|
39145
|
+
symbol: stringType(),
|
|
39146
|
+
name: stringType()
|
|
39147
|
+
});
|
|
39148
|
+
((Erc20Data$) => {
|
|
39149
|
+
Erc20Data$.inboundSchema = Erc20Data$inboundSchema;
|
|
39150
|
+
Erc20Data$.outboundSchema = Erc20Data$outboundSchema;
|
|
39151
|
+
})(Erc20Data$ ||= {});
|
|
39152
|
+
});
|
|
39153
|
+
|
|
39129
39154
|
// src/models/components/image.ts
|
|
39130
39155
|
var Image$inboundSchema, Image$outboundSchema, Image$;
|
|
39131
39156
|
var init_image = __esm(() => {
|
|
@@ -39159,7 +39184,8 @@ var init_increaseallowancerequest = __esm(() => {
|
|
|
39159
39184
|
Morpho: "Morpho",
|
|
39160
39185
|
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
39161
39186
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
39162
|
-
SkyUsdsVault: "SkyUsdsVault"
|
|
39187
|
+
SkyUsdsVault: "SkyUsdsVault",
|
|
39188
|
+
PendleRouter: "PendleRouter"
|
|
39163
39189
|
};
|
|
39164
39190
|
IncreaseAllowanceRequestContractName$inboundSchema = nativeEnumType(IncreaseAllowanceRequestContractName);
|
|
39165
39191
|
IncreaseAllowanceRequestContractName$outboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
|
|
@@ -40072,6 +40098,99 @@ var init_multicallexecuterequest = __esm(() => {
|
|
|
40072
40098
|
})(MulticallExecuteRequest$ ||= {});
|
|
40073
40099
|
});
|
|
40074
40100
|
|
|
40101
|
+
// src/models/components/pendlegetmarketresponse.ts
|
|
40102
|
+
var PendleGetMarketResponse$inboundSchema, PendleGetMarketResponse$outboundSchema, PendleGetMarketResponse$;
|
|
40103
|
+
var init_pendlegetmarketresponse = __esm(() => {
|
|
40104
|
+
init_esm();
|
|
40105
|
+
init_primitives();
|
|
40106
|
+
init_erc20data();
|
|
40107
|
+
PendleGetMarketResponse$inboundSchema = objectType({
|
|
40108
|
+
implied_apy: stringType(),
|
|
40109
|
+
maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
40110
|
+
underlying_token: Erc20Data$inboundSchema,
|
|
40111
|
+
sy: Erc20Data$inboundSchema,
|
|
40112
|
+
pt: Erc20Data$inboundSchema,
|
|
40113
|
+
yt: Erc20Data$inboundSchema
|
|
40114
|
+
}).transform((v2) => {
|
|
40115
|
+
return remap(v2, {
|
|
40116
|
+
implied_apy: "impliedApy",
|
|
40117
|
+
maturity_date: "maturityDate",
|
|
40118
|
+
underlying_token: "underlyingToken"
|
|
40119
|
+
});
|
|
40120
|
+
});
|
|
40121
|
+
PendleGetMarketResponse$outboundSchema = objectType({
|
|
40122
|
+
impliedApy: stringType(),
|
|
40123
|
+
maturityDate: dateType().transform((v2) => v2.toISOString()),
|
|
40124
|
+
underlyingToken: Erc20Data$outboundSchema,
|
|
40125
|
+
sy: Erc20Data$outboundSchema,
|
|
40126
|
+
pt: Erc20Data$outboundSchema,
|
|
40127
|
+
yt: Erc20Data$outboundSchema
|
|
40128
|
+
}).transform((v2) => {
|
|
40129
|
+
return remap(v2, {
|
|
40130
|
+
impliedApy: "implied_apy",
|
|
40131
|
+
maturityDate: "maturity_date",
|
|
40132
|
+
underlyingToken: "underlying_token"
|
|
40133
|
+
});
|
|
40134
|
+
});
|
|
40135
|
+
((PendleGetMarketResponse$) => {
|
|
40136
|
+
PendleGetMarketResponse$.inboundSchema = PendleGetMarketResponse$inboundSchema;
|
|
40137
|
+
PendleGetMarketResponse$.outboundSchema = PendleGetMarketResponse$outboundSchema;
|
|
40138
|
+
})(PendleGetMarketResponse$ ||= {});
|
|
40139
|
+
});
|
|
40140
|
+
|
|
40141
|
+
// src/models/components/pendlegetuserpositionresponse.ts
|
|
40142
|
+
var PendleGetUserPositionResponse$inboundSchema, PendleGetUserPositionResponse$outboundSchema, PendleGetUserPositionResponse$;
|
|
40143
|
+
var init_pendlegetuserpositionresponse = __esm(() => {
|
|
40144
|
+
init_esm();
|
|
40145
|
+
init_primitives();
|
|
40146
|
+
PendleGetUserPositionResponse$inboundSchema = objectType({
|
|
40147
|
+
claimable_yield: stringType(),
|
|
40148
|
+
sy_balance: stringType(),
|
|
40149
|
+
pt_balance: stringType(),
|
|
40150
|
+
yt_balance: stringType(),
|
|
40151
|
+
underlying_token_balance: stringType(),
|
|
40152
|
+
underlying_token_name: stringType(),
|
|
40153
|
+
underlying_token_symbol: stringType(),
|
|
40154
|
+
maturity_date: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
40155
|
+
}).transform((v2) => {
|
|
40156
|
+
return remap(v2, {
|
|
40157
|
+
claimable_yield: "claimableYield",
|
|
40158
|
+
sy_balance: "syBalance",
|
|
40159
|
+
pt_balance: "ptBalance",
|
|
40160
|
+
yt_balance: "ytBalance",
|
|
40161
|
+
underlying_token_balance: "underlyingTokenBalance",
|
|
40162
|
+
underlying_token_name: "underlyingTokenName",
|
|
40163
|
+
underlying_token_symbol: "underlyingTokenSymbol",
|
|
40164
|
+
maturity_date: "maturityDate"
|
|
40165
|
+
});
|
|
40166
|
+
});
|
|
40167
|
+
PendleGetUserPositionResponse$outboundSchema = objectType({
|
|
40168
|
+
claimableYield: stringType(),
|
|
40169
|
+
syBalance: stringType(),
|
|
40170
|
+
ptBalance: stringType(),
|
|
40171
|
+
ytBalance: stringType(),
|
|
40172
|
+
underlyingTokenBalance: stringType(),
|
|
40173
|
+
underlyingTokenName: stringType(),
|
|
40174
|
+
underlyingTokenSymbol: stringType(),
|
|
40175
|
+
maturityDate: dateType().transform((v2) => v2.toISOString())
|
|
40176
|
+
}).transform((v2) => {
|
|
40177
|
+
return remap(v2, {
|
|
40178
|
+
claimableYield: "claimable_yield",
|
|
40179
|
+
syBalance: "sy_balance",
|
|
40180
|
+
ptBalance: "pt_balance",
|
|
40181
|
+
ytBalance: "yt_balance",
|
|
40182
|
+
underlyingTokenBalance: "underlying_token_balance",
|
|
40183
|
+
underlyingTokenName: "underlying_token_name",
|
|
40184
|
+
underlyingTokenSymbol: "underlying_token_symbol",
|
|
40185
|
+
maturityDate: "maturity_date"
|
|
40186
|
+
});
|
|
40187
|
+
});
|
|
40188
|
+
((PendleGetUserPositionResponse$) => {
|
|
40189
|
+
PendleGetUserPositionResponse$.inboundSchema = PendleGetUserPositionResponse$inboundSchema;
|
|
40190
|
+
PendleGetUserPositionResponse$.outboundSchema = PendleGetUserPositionResponse$outboundSchema;
|
|
40191
|
+
})(PendleGetUserPositionResponse$ ||= {});
|
|
40192
|
+
});
|
|
40193
|
+
|
|
40075
40194
|
// src/models/components/tokenbalance.ts
|
|
40076
40195
|
var TokenBalance$inboundSchema, TokenBalance$outboundSchema, TokenBalance$;
|
|
40077
40196
|
var init_tokenbalance = __esm(() => {
|
|
@@ -41183,6 +41302,7 @@ var init_components = __esm(() => {
|
|
|
41183
41302
|
init_contractname();
|
|
41184
41303
|
init_curator();
|
|
41185
41304
|
init_ensnameinforesponse();
|
|
41305
|
+
init_erc20data();
|
|
41186
41306
|
init_feeenum();
|
|
41187
41307
|
init_image();
|
|
41188
41308
|
init_increaseallowanceanyparams();
|
|
@@ -41221,6 +41341,8 @@ var init_components = __esm(() => {
|
|
|
41221
41341
|
init_multicallauthorizationrequest();
|
|
41222
41342
|
init_multicallauthorizationresponse();
|
|
41223
41343
|
init_multicallexecuterequest();
|
|
41344
|
+
init_pendlegetmarketresponse();
|
|
41345
|
+
init_pendlegetuserpositionresponse();
|
|
41224
41346
|
init_portfolio();
|
|
41225
41347
|
init_redeemunderlying();
|
|
41226
41348
|
init_repay();
|
|
@@ -42222,7 +42344,8 @@ var init_genericallowance = __esm(() => {
|
|
|
42222
42344
|
Morpho: "Morpho",
|
|
42223
42345
|
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
42224
42346
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
42225
|
-
SkyUsdsVault: "SkyUsdsVault"
|
|
42347
|
+
SkyUsdsVault: "SkyUsdsVault",
|
|
42348
|
+
PendleRouter: "PendleRouter"
|
|
42226
42349
|
};
|
|
42227
42350
|
GenericAllowanceChain$inboundSchema = nativeEnumType(GenericAllowanceChain);
|
|
42228
42351
|
GenericAllowanceChain$outboundSchema = GenericAllowanceChain$inboundSchema;
|
|
@@ -42662,6 +42785,90 @@ var init_morphovaults = __esm(() => {
|
|
|
42662
42785
|
})(MorphoVaultsRequest$ ||= {});
|
|
42663
42786
|
});
|
|
42664
42787
|
|
|
42788
|
+
// src/models/operations/pendlemarket.ts
|
|
42789
|
+
var PendleMarketChain, PendleMarketChain$inboundSchema, PendleMarketChain$outboundSchema, PendleMarketChain$, PendleMarketRequest$inboundSchema, PendleMarketRequest$outboundSchema, PendleMarketRequest$;
|
|
42790
|
+
var init_pendlemarket = __esm(() => {
|
|
42791
|
+
init_esm();
|
|
42792
|
+
init_primitives();
|
|
42793
|
+
PendleMarketChain = {
|
|
42794
|
+
BaseMainnet: "base:mainnet",
|
|
42795
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
42796
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
42797
|
+
};
|
|
42798
|
+
PendleMarketChain$inboundSchema = nativeEnumType(PendleMarketChain);
|
|
42799
|
+
PendleMarketChain$outboundSchema = PendleMarketChain$inboundSchema;
|
|
42800
|
+
((PendleMarketChain$) => {
|
|
42801
|
+
PendleMarketChain$.inboundSchema = PendleMarketChain$inboundSchema;
|
|
42802
|
+
PendleMarketChain$.outboundSchema = PendleMarketChain$outboundSchema;
|
|
42803
|
+
})(PendleMarketChain$ ||= {});
|
|
42804
|
+
PendleMarketRequest$inboundSchema = objectType({
|
|
42805
|
+
chain: PendleMarketChain$inboundSchema.default("ethereum:mainnet"),
|
|
42806
|
+
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
42807
|
+
market_address: stringType().default("0xdace1121e10500e9e29d071f01593fd76b000f08")
|
|
42808
|
+
}).transform((v2) => {
|
|
42809
|
+
return remap(v2, {
|
|
42810
|
+
user_address: "userAddress",
|
|
42811
|
+
market_address: "marketAddress"
|
|
42812
|
+
});
|
|
42813
|
+
});
|
|
42814
|
+
PendleMarketRequest$outboundSchema = objectType({
|
|
42815
|
+
chain: PendleMarketChain$outboundSchema.default("ethereum:mainnet"),
|
|
42816
|
+
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
42817
|
+
marketAddress: stringType().default("0xdace1121e10500e9e29d071f01593fd76b000f08")
|
|
42818
|
+
}).transform((v2) => {
|
|
42819
|
+
return remap(v2, {
|
|
42820
|
+
userAddress: "user_address",
|
|
42821
|
+
marketAddress: "market_address"
|
|
42822
|
+
});
|
|
42823
|
+
});
|
|
42824
|
+
((PendleMarketRequest$) => {
|
|
42825
|
+
PendleMarketRequest$.inboundSchema = PendleMarketRequest$inboundSchema;
|
|
42826
|
+
PendleMarketRequest$.outboundSchema = PendleMarketRequest$outboundSchema;
|
|
42827
|
+
})(PendleMarketRequest$ ||= {});
|
|
42828
|
+
});
|
|
42829
|
+
|
|
42830
|
+
// src/models/operations/pendleposition.ts
|
|
42831
|
+
var PendlePositionChain, PendlePositionChain$inboundSchema, PendlePositionChain$outboundSchema, PendlePositionChain$, PendlePositionRequest$inboundSchema, PendlePositionRequest$outboundSchema, PendlePositionRequest$;
|
|
42832
|
+
var init_pendleposition = __esm(() => {
|
|
42833
|
+
init_esm();
|
|
42834
|
+
init_primitives();
|
|
42835
|
+
PendlePositionChain = {
|
|
42836
|
+
BaseMainnet: "base:mainnet",
|
|
42837
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
42838
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
42839
|
+
};
|
|
42840
|
+
PendlePositionChain$inboundSchema = nativeEnumType(PendlePositionChain);
|
|
42841
|
+
PendlePositionChain$outboundSchema = PendlePositionChain$inboundSchema;
|
|
42842
|
+
((PendlePositionChain$) => {
|
|
42843
|
+
PendlePositionChain$.inboundSchema = PendlePositionChain$inboundSchema;
|
|
42844
|
+
PendlePositionChain$.outboundSchema = PendlePositionChain$outboundSchema;
|
|
42845
|
+
})(PendlePositionChain$ ||= {});
|
|
42846
|
+
PendlePositionRequest$inboundSchema = objectType({
|
|
42847
|
+
chain: PendlePositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
42848
|
+
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
42849
|
+
market_address: stringType().default("0xdace1121e10500e9e29d071f01593fd76b000f08")
|
|
42850
|
+
}).transform((v2) => {
|
|
42851
|
+
return remap(v2, {
|
|
42852
|
+
user_address: "userAddress",
|
|
42853
|
+
market_address: "marketAddress"
|
|
42854
|
+
});
|
|
42855
|
+
});
|
|
42856
|
+
PendlePositionRequest$outboundSchema = objectType({
|
|
42857
|
+
chain: PendlePositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
42858
|
+
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
42859
|
+
marketAddress: stringType().default("0xdace1121e10500e9e29d071f01593fd76b000f08")
|
|
42860
|
+
}).transform((v2) => {
|
|
42861
|
+
return remap(v2, {
|
|
42862
|
+
userAddress: "user_address",
|
|
42863
|
+
marketAddress: "market_address"
|
|
42864
|
+
});
|
|
42865
|
+
});
|
|
42866
|
+
((PendlePositionRequest$) => {
|
|
42867
|
+
PendlePositionRequest$.inboundSchema = PendlePositionRequest$inboundSchema;
|
|
42868
|
+
PendlePositionRequest$.outboundSchema = PendlePositionRequest$outboundSchema;
|
|
42869
|
+
})(PendlePositionRequest$ ||= {});
|
|
42870
|
+
});
|
|
42871
|
+
|
|
42665
42872
|
// src/models/operations/skyposition.ts
|
|
42666
42873
|
var SkyPositionRequest$inboundSchema, SkyPositionRequest$outboundSchema, SkyPositionRequest$;
|
|
42667
42874
|
var init_skyposition = __esm(() => {
|
|
@@ -43481,6 +43688,8 @@ var init_operations = __esm(() => {
|
|
|
43481
43688
|
init_morphovault2();
|
|
43482
43689
|
init_morphovaultposition();
|
|
43483
43690
|
init_morphovaults();
|
|
43691
|
+
init_pendlemarket();
|
|
43692
|
+
init_pendleposition();
|
|
43484
43693
|
init_skyposition();
|
|
43485
43694
|
init_tokenaddress();
|
|
43486
43695
|
init_tokenbalance2();
|
|
@@ -47269,20 +47478,24 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
47269
47478
|
};
|
|
47270
47479
|
});
|
|
47271
47480
|
|
|
47272
|
-
// src/funcs/
|
|
47273
|
-
function
|
|
47481
|
+
// src/funcs/pendleMarket.ts
|
|
47482
|
+
function pendleMarket(client, request, options) {
|
|
47274
47483
|
return new APIPromise($do35(client, request, options));
|
|
47275
47484
|
}
|
|
47276
47485
|
async function $do35(client, request, options) {
|
|
47277
|
-
const parsed = safeParse(request, (value) =>
|
|
47486
|
+
const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47278
47487
|
if (!parsed.ok) {
|
|
47279
47488
|
return [parsed, { status: "invalid" }];
|
|
47280
47489
|
}
|
|
47281
47490
|
const payload = parsed.value;
|
|
47282
|
-
const body =
|
|
47283
|
-
const path = pathToFunc("/v0/
|
|
47491
|
+
const body = null;
|
|
47492
|
+
const path = pathToFunc("/v0/pendle/market")();
|
|
47493
|
+
const query = encodeFormQuery({
|
|
47494
|
+
chain: payload.chain,
|
|
47495
|
+
market_address: payload.market_address,
|
|
47496
|
+
user_address: payload.user_address
|
|
47497
|
+
});
|
|
47284
47498
|
const headers = new Headers(compactMap({
|
|
47285
|
-
"Content-Type": "application/json",
|
|
47286
47499
|
Accept: "application/json"
|
|
47287
47500
|
}));
|
|
47288
47501
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -47290,7 +47503,7 @@ async function $do35(client, request, options) {
|
|
|
47290
47503
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47291
47504
|
const context = {
|
|
47292
47505
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47293
|
-
operationID: "
|
|
47506
|
+
operationID: "pendle_market",
|
|
47294
47507
|
oAuth2Scopes: [],
|
|
47295
47508
|
resolvedSecurity: requestSecurity,
|
|
47296
47509
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -47299,10 +47512,11 @@ async function $do35(client, request, options) {
|
|
|
47299
47512
|
};
|
|
47300
47513
|
const requestRes = client._createRequest(context, {
|
|
47301
47514
|
security: requestSecurity,
|
|
47302
|
-
method: "
|
|
47515
|
+
method: "GET",
|
|
47303
47516
|
baseURL: options?.serverURL,
|
|
47304
47517
|
path,
|
|
47305
47518
|
headers,
|
|
47519
|
+
query,
|
|
47306
47520
|
body,
|
|
47307
47521
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47308
47522
|
}, options);
|
|
@@ -47323,13 +47537,13 @@ async function $do35(client, request, options) {
|
|
|
47323
47537
|
const responseFields = {
|
|
47324
47538
|
HttpMeta: { Response: response, Request: req }
|
|
47325
47539
|
};
|
|
47326
|
-
const [result] = await match(json(200,
|
|
47540
|
+
const [result] = await match(json(200, PendleGetMarketResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47327
47541
|
if (!result.ok) {
|
|
47328
47542
|
return [result, { status: "complete", request: req, response }];
|
|
47329
47543
|
}
|
|
47330
47544
|
return [result, { status: "complete", request: req, response }];
|
|
47331
47545
|
}
|
|
47332
|
-
var
|
|
47546
|
+
var init_pendleMarket = __esm(() => {
|
|
47333
47547
|
init_encodings();
|
|
47334
47548
|
init_matchers();
|
|
47335
47549
|
init_primitives();
|
|
@@ -47338,32 +47552,27 @@ var init_skyBuy = __esm(() => {
|
|
|
47338
47552
|
init_url();
|
|
47339
47553
|
init_components();
|
|
47340
47554
|
init_errors2();
|
|
47555
|
+
init_operations();
|
|
47341
47556
|
init_async();
|
|
47342
47557
|
});
|
|
47343
47558
|
|
|
47344
|
-
// src/mcp-server/tools/
|
|
47345
|
-
var args35, tool$
|
|
47346
|
-
var
|
|
47347
|
-
|
|
47348
|
-
|
|
47559
|
+
// src/mcp-server/tools/pendleMarket.ts
|
|
47560
|
+
var args35, tool$pendleMarket;
|
|
47561
|
+
var init_pendleMarket2 = __esm(() => {
|
|
47562
|
+
init_pendleMarket();
|
|
47563
|
+
init_operations();
|
|
47349
47564
|
init_tools();
|
|
47350
47565
|
args35 = {
|
|
47351
|
-
request:
|
|
47566
|
+
request: PendleMarketRequest$inboundSchema
|
|
47352
47567
|
};
|
|
47353
|
-
tool$
|
|
47354
|
-
name: "
|
|
47355
|
-
description: `
|
|
47356
|
-
|
|
47357
|
-
Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
|
|
47358
|
-
|
|
47359
|
-
If buying with DAI, user will need to set an allowance on the DAI contract for the
|
|
47360
|
-
'SkyDaiUsdsConverter' contract beforehand.
|
|
47568
|
+
tool$pendleMarket = {
|
|
47569
|
+
name: "pendle-market",
|
|
47570
|
+
description: `Get Market Data
|
|
47361
47571
|
|
|
47362
|
-
|
|
47363
|
-
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
47572
|
+
Get market data.`,
|
|
47364
47573
|
args: args35,
|
|
47365
47574
|
tool: async (client, args36, ctx) => {
|
|
47366
|
-
const [result, apiCall] = await
|
|
47575
|
+
const [result, apiCall] = await pendleMarket(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47367
47576
|
if (!result.ok) {
|
|
47368
47577
|
return {
|
|
47369
47578
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47376,20 +47585,24 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
47376
47585
|
};
|
|
47377
47586
|
});
|
|
47378
47587
|
|
|
47379
|
-
// src/funcs/
|
|
47380
|
-
function
|
|
47588
|
+
// src/funcs/pendlePosition.ts
|
|
47589
|
+
function pendlePosition(client, request, options) {
|
|
47381
47590
|
return new APIPromise($do36(client, request, options));
|
|
47382
47591
|
}
|
|
47383
47592
|
async function $do36(client, request, options) {
|
|
47384
|
-
const parsed = safeParse(request, (value) =>
|
|
47593
|
+
const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47385
47594
|
if (!parsed.ok) {
|
|
47386
47595
|
return [parsed, { status: "invalid" }];
|
|
47387
47596
|
}
|
|
47388
47597
|
const payload = parsed.value;
|
|
47389
|
-
const body =
|
|
47390
|
-
const path = pathToFunc("/v0/
|
|
47598
|
+
const body = null;
|
|
47599
|
+
const path = pathToFunc("/v0/pendle/position")();
|
|
47600
|
+
const query = encodeFormQuery({
|
|
47601
|
+
chain: payload.chain,
|
|
47602
|
+
market_address: payload.market_address,
|
|
47603
|
+
user_address: payload.user_address
|
|
47604
|
+
});
|
|
47391
47605
|
const headers = new Headers(compactMap({
|
|
47392
|
-
"Content-Type": "application/json",
|
|
47393
47606
|
Accept: "application/json"
|
|
47394
47607
|
}));
|
|
47395
47608
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -47397,7 +47610,7 @@ async function $do36(client, request, options) {
|
|
|
47397
47610
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47398
47611
|
const context = {
|
|
47399
47612
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47400
|
-
operationID: "
|
|
47613
|
+
operationID: "pendle_position",
|
|
47401
47614
|
oAuth2Scopes: [],
|
|
47402
47615
|
resolvedSecurity: requestSecurity,
|
|
47403
47616
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -47406,10 +47619,11 @@ async function $do36(client, request, options) {
|
|
|
47406
47619
|
};
|
|
47407
47620
|
const requestRes = client._createRequest(context, {
|
|
47408
47621
|
security: requestSecurity,
|
|
47409
|
-
method: "
|
|
47622
|
+
method: "GET",
|
|
47410
47623
|
baseURL: options?.serverURL,
|
|
47411
47624
|
path,
|
|
47412
47625
|
headers,
|
|
47626
|
+
query,
|
|
47413
47627
|
body,
|
|
47414
47628
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47415
47629
|
}, options);
|
|
@@ -47430,13 +47644,13 @@ async function $do36(client, request, options) {
|
|
|
47430
47644
|
const responseFields = {
|
|
47431
47645
|
HttpMeta: { Response: response, Request: req }
|
|
47432
47646
|
};
|
|
47433
|
-
const [result] = await match(json(200,
|
|
47647
|
+
const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47434
47648
|
if (!result.ok) {
|
|
47435
47649
|
return [result, { status: "complete", request: req, response }];
|
|
47436
47650
|
}
|
|
47437
47651
|
return [result, { status: "complete", request: req, response }];
|
|
47438
47652
|
}
|
|
47439
|
-
var
|
|
47653
|
+
var init_pendlePosition = __esm(() => {
|
|
47440
47654
|
init_encodings();
|
|
47441
47655
|
init_matchers();
|
|
47442
47656
|
init_primitives();
|
|
@@ -47445,28 +47659,27 @@ var init_skyDeposit = __esm(() => {
|
|
|
47445
47659
|
init_url();
|
|
47446
47660
|
init_components();
|
|
47447
47661
|
init_errors2();
|
|
47662
|
+
init_operations();
|
|
47448
47663
|
init_async();
|
|
47449
47664
|
});
|
|
47450
47665
|
|
|
47451
|
-
// src/mcp-server/tools/
|
|
47452
|
-
var args36, tool$
|
|
47453
|
-
var
|
|
47454
|
-
|
|
47455
|
-
|
|
47666
|
+
// src/mcp-server/tools/pendlePosition.ts
|
|
47667
|
+
var args36, tool$pendlePosition;
|
|
47668
|
+
var init_pendlePosition2 = __esm(() => {
|
|
47669
|
+
init_pendlePosition();
|
|
47670
|
+
init_operations();
|
|
47456
47671
|
init_tools();
|
|
47457
47672
|
args36 = {
|
|
47458
|
-
request:
|
|
47673
|
+
request: PendlePositionRequest$inboundSchema
|
|
47459
47674
|
};
|
|
47460
|
-
tool$
|
|
47461
|
-
name: "
|
|
47462
|
-
description: `
|
|
47463
|
-
|
|
47464
|
-
Deposit USDS for sUSDS to earn yield.
|
|
47675
|
+
tool$pendlePosition = {
|
|
47676
|
+
name: "pendle-position",
|
|
47677
|
+
description: `Check User's Market Position
|
|
47465
47678
|
|
|
47466
|
-
|
|
47679
|
+
Check the SY, PT, and YT positions for a given market.`,
|
|
47467
47680
|
args: args36,
|
|
47468
47681
|
tool: async (client, args37, ctx) => {
|
|
47469
|
-
const [result, apiCall] = await
|
|
47682
|
+
const [result, apiCall] = await pendlePosition(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47470
47683
|
if (!result.ok) {
|
|
47471
47684
|
return {
|
|
47472
47685
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47479,23 +47692,20 @@ There are no fees.`,
|
|
|
47479
47692
|
};
|
|
47480
47693
|
});
|
|
47481
47694
|
|
|
47482
|
-
// src/funcs/
|
|
47483
|
-
function
|
|
47695
|
+
// src/funcs/skyBuy.ts
|
|
47696
|
+
function skyBuy(client, request, options) {
|
|
47484
47697
|
return new APIPromise($do37(client, request, options));
|
|
47485
47698
|
}
|
|
47486
47699
|
async function $do37(client, request, options) {
|
|
47487
|
-
const parsed = safeParse(request, (value) =>
|
|
47700
|
+
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47488
47701
|
if (!parsed.ok) {
|
|
47489
47702
|
return [parsed, { status: "invalid" }];
|
|
47490
47703
|
}
|
|
47491
47704
|
const payload = parsed.value;
|
|
47492
|
-
const body =
|
|
47493
|
-
const path = pathToFunc("/v0/sky/
|
|
47494
|
-
const query = encodeFormQuery({
|
|
47495
|
-
chain: payload.chain,
|
|
47496
|
-
user_address: payload.user_address
|
|
47497
|
-
});
|
|
47705
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
47706
|
+
const path = pathToFunc("/v0/sky/buy")();
|
|
47498
47707
|
const headers = new Headers(compactMap({
|
|
47708
|
+
"Content-Type": "application/json",
|
|
47499
47709
|
Accept: "application/json"
|
|
47500
47710
|
}));
|
|
47501
47711
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -47503,7 +47713,7 @@ async function $do37(client, request, options) {
|
|
|
47503
47713
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47504
47714
|
const context = {
|
|
47505
47715
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47506
|
-
operationID: "
|
|
47716
|
+
operationID: "sky_buy",
|
|
47507
47717
|
oAuth2Scopes: [],
|
|
47508
47718
|
resolvedSecurity: requestSecurity,
|
|
47509
47719
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -47512,11 +47722,10 @@ async function $do37(client, request, options) {
|
|
|
47512
47722
|
};
|
|
47513
47723
|
const requestRes = client._createRequest(context, {
|
|
47514
47724
|
security: requestSecurity,
|
|
47515
|
-
method: "
|
|
47725
|
+
method: "POST",
|
|
47516
47726
|
baseURL: options?.serverURL,
|
|
47517
47727
|
path,
|
|
47518
47728
|
headers,
|
|
47519
|
-
query,
|
|
47520
47729
|
body,
|
|
47521
47730
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47522
47731
|
}, options);
|
|
@@ -47537,13 +47746,13 @@ async function $do37(client, request, options) {
|
|
|
47537
47746
|
const responseFields = {
|
|
47538
47747
|
HttpMeta: { Response: response, Request: req }
|
|
47539
47748
|
};
|
|
47540
|
-
const [result] = await match(json(200,
|
|
47749
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47541
47750
|
if (!result.ok) {
|
|
47542
47751
|
return [result, { status: "complete", request: req, response }];
|
|
47543
47752
|
}
|
|
47544
47753
|
return [result, { status: "complete", request: req, response }];
|
|
47545
47754
|
}
|
|
47546
|
-
var
|
|
47755
|
+
var init_skyBuy = __esm(() => {
|
|
47547
47756
|
init_encodings();
|
|
47548
47757
|
init_matchers();
|
|
47549
47758
|
init_primitives();
|
|
@@ -47552,27 +47761,32 @@ var init_skyPosition = __esm(() => {
|
|
|
47552
47761
|
init_url();
|
|
47553
47762
|
init_components();
|
|
47554
47763
|
init_errors2();
|
|
47555
|
-
init_operations();
|
|
47556
47764
|
init_async();
|
|
47557
47765
|
});
|
|
47558
47766
|
|
|
47559
|
-
// src/mcp-server/tools/
|
|
47560
|
-
var args37, tool$
|
|
47561
|
-
var
|
|
47562
|
-
|
|
47563
|
-
|
|
47767
|
+
// src/mcp-server/tools/skyBuy.ts
|
|
47768
|
+
var args37, tool$skyBuy;
|
|
47769
|
+
var init_skyBuy2 = __esm(() => {
|
|
47770
|
+
init_skyBuy();
|
|
47771
|
+
init_components();
|
|
47564
47772
|
init_tools();
|
|
47565
47773
|
args37 = {
|
|
47566
|
-
request:
|
|
47774
|
+
request: SkyBuyRequest$inboundSchema
|
|
47567
47775
|
};
|
|
47568
|
-
tool$
|
|
47569
|
-
name: "sky-
|
|
47570
|
-
description: `
|
|
47776
|
+
tool$skyBuy = {
|
|
47777
|
+
name: "sky-buy",
|
|
47778
|
+
description: `Buy USDS
|
|
47571
47779
|
|
|
47572
|
-
|
|
47780
|
+
Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
|
|
47781
|
+
|
|
47782
|
+
If buying with DAI, user will need to set an allowance on the DAI contract for the
|
|
47783
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
47784
|
+
|
|
47785
|
+
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
47786
|
+
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
47573
47787
|
args: args37,
|
|
47574
47788
|
tool: async (client, args38, ctx) => {
|
|
47575
|
-
const [result, apiCall] = await
|
|
47789
|
+
const [result, apiCall] = await skyBuy(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47576
47790
|
if (!result.ok) {
|
|
47577
47791
|
return {
|
|
47578
47792
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47585,18 +47799,18 @@ Check the USDS overall position.`,
|
|
|
47585
47799
|
};
|
|
47586
47800
|
});
|
|
47587
47801
|
|
|
47588
|
-
// src/funcs/
|
|
47589
|
-
function
|
|
47802
|
+
// src/funcs/skyDeposit.ts
|
|
47803
|
+
function skyDeposit(client, request, options) {
|
|
47590
47804
|
return new APIPromise($do38(client, request, options));
|
|
47591
47805
|
}
|
|
47592
47806
|
async function $do38(client, request, options) {
|
|
47593
|
-
const parsed = safeParse(request, (value) =>
|
|
47807
|
+
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47594
47808
|
if (!parsed.ok) {
|
|
47595
47809
|
return [parsed, { status: "invalid" }];
|
|
47596
47810
|
}
|
|
47597
47811
|
const payload = parsed.value;
|
|
47598
47812
|
const body = encodeJSON("body", payload, { explode: true });
|
|
47599
|
-
const path = pathToFunc("/v0/sky/
|
|
47813
|
+
const path = pathToFunc("/v0/sky/deposit")();
|
|
47600
47814
|
const headers = new Headers(compactMap({
|
|
47601
47815
|
"Content-Type": "application/json",
|
|
47602
47816
|
Accept: "application/json"
|
|
@@ -47606,7 +47820,7 @@ async function $do38(client, request, options) {
|
|
|
47606
47820
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47607
47821
|
const context = {
|
|
47608
47822
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47609
|
-
operationID: "
|
|
47823
|
+
operationID: "sky_deposit",
|
|
47610
47824
|
oAuth2Scopes: [],
|
|
47611
47825
|
resolvedSecurity: requestSecurity,
|
|
47612
47826
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -47645,7 +47859,7 @@ async function $do38(client, request, options) {
|
|
|
47645
47859
|
}
|
|
47646
47860
|
return [result, { status: "complete", request: req, response }];
|
|
47647
47861
|
}
|
|
47648
|
-
var
|
|
47862
|
+
var init_skyDeposit = __esm(() => {
|
|
47649
47863
|
init_encodings();
|
|
47650
47864
|
init_matchers();
|
|
47651
47865
|
init_primitives();
|
|
@@ -47657,29 +47871,25 @@ var init_skySell = __esm(() => {
|
|
|
47657
47871
|
init_async();
|
|
47658
47872
|
});
|
|
47659
47873
|
|
|
47660
|
-
// src/mcp-server/tools/
|
|
47661
|
-
var args38, tool$
|
|
47662
|
-
var
|
|
47663
|
-
|
|
47874
|
+
// src/mcp-server/tools/skyDeposit.ts
|
|
47875
|
+
var args38, tool$skyDeposit;
|
|
47876
|
+
var init_skyDeposit2 = __esm(() => {
|
|
47877
|
+
init_skyDeposit();
|
|
47664
47878
|
init_components();
|
|
47665
47879
|
init_tools();
|
|
47666
47880
|
args38 = {
|
|
47667
|
-
request:
|
|
47881
|
+
request: SkyDepositRequest$inboundSchema
|
|
47668
47882
|
};
|
|
47669
|
-
tool$
|
|
47670
|
-
name: "sky-
|
|
47671
|
-
description: `
|
|
47672
|
-
|
|
47673
|
-
Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
|
|
47883
|
+
tool$skyDeposit = {
|
|
47884
|
+
name: "sky-deposit",
|
|
47885
|
+
description: `Deposit USDS
|
|
47674
47886
|
|
|
47675
|
-
|
|
47676
|
-
'SkyDaiUsdsConverter' contract beforehand.
|
|
47887
|
+
Deposit USDS for sUSDS to earn yield.
|
|
47677
47888
|
|
|
47678
|
-
|
|
47679
|
-
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
47889
|
+
There are no fees.`,
|
|
47680
47890
|
args: args38,
|
|
47681
47891
|
tool: async (client, args39, ctx) => {
|
|
47682
|
-
const [result, apiCall] = await
|
|
47892
|
+
const [result, apiCall] = await skyDeposit(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47683
47893
|
if (!result.ok) {
|
|
47684
47894
|
return {
|
|
47685
47895
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47692,20 +47902,23 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
47692
47902
|
};
|
|
47693
47903
|
});
|
|
47694
47904
|
|
|
47695
|
-
// src/funcs/
|
|
47696
|
-
function
|
|
47905
|
+
// src/funcs/skyPosition.ts
|
|
47906
|
+
function skyPosition(client, request, options) {
|
|
47697
47907
|
return new APIPromise($do39(client, request, options));
|
|
47698
47908
|
}
|
|
47699
47909
|
async function $do39(client, request, options) {
|
|
47700
|
-
const parsed = safeParse(request, (value) =>
|
|
47910
|
+
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47701
47911
|
if (!parsed.ok) {
|
|
47702
47912
|
return [parsed, { status: "invalid" }];
|
|
47703
47913
|
}
|
|
47704
47914
|
const payload = parsed.value;
|
|
47705
|
-
const body =
|
|
47706
|
-
const path = pathToFunc("/v0/sky/
|
|
47915
|
+
const body = null;
|
|
47916
|
+
const path = pathToFunc("/v0/sky/position")();
|
|
47917
|
+
const query = encodeFormQuery({
|
|
47918
|
+
chain: payload.chain,
|
|
47919
|
+
user_address: payload.user_address
|
|
47920
|
+
});
|
|
47707
47921
|
const headers = new Headers(compactMap({
|
|
47708
|
-
"Content-Type": "application/json",
|
|
47709
47922
|
Accept: "application/json"
|
|
47710
47923
|
}));
|
|
47711
47924
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -47713,7 +47926,7 @@ async function $do39(client, request, options) {
|
|
|
47713
47926
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47714
47927
|
const context = {
|
|
47715
47928
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47716
|
-
operationID: "
|
|
47929
|
+
operationID: "sky_position",
|
|
47717
47930
|
oAuth2Scopes: [],
|
|
47718
47931
|
resolvedSecurity: requestSecurity,
|
|
47719
47932
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -47722,10 +47935,11 @@ async function $do39(client, request, options) {
|
|
|
47722
47935
|
};
|
|
47723
47936
|
const requestRes = client._createRequest(context, {
|
|
47724
47937
|
security: requestSecurity,
|
|
47725
|
-
method: "
|
|
47938
|
+
method: "GET",
|
|
47726
47939
|
baseURL: options?.serverURL,
|
|
47727
47940
|
path,
|
|
47728
47941
|
headers,
|
|
47942
|
+
query,
|
|
47729
47943
|
body,
|
|
47730
47944
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47731
47945
|
}, options);
|
|
@@ -47746,13 +47960,13 @@ async function $do39(client, request, options) {
|
|
|
47746
47960
|
const responseFields = {
|
|
47747
47961
|
HttpMeta: { Response: response, Request: req }
|
|
47748
47962
|
};
|
|
47749
|
-
const [result] = await match(json(200,
|
|
47963
|
+
const [result] = await match(json(200, SkyCheckPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47750
47964
|
if (!result.ok) {
|
|
47751
47965
|
return [result, { status: "complete", request: req, response }];
|
|
47752
47966
|
}
|
|
47753
47967
|
return [result, { status: "complete", request: req, response }];
|
|
47754
47968
|
}
|
|
47755
|
-
var
|
|
47969
|
+
var init_skyPosition = __esm(() => {
|
|
47756
47970
|
init_encodings();
|
|
47757
47971
|
init_matchers();
|
|
47758
47972
|
init_primitives();
|
|
@@ -47761,26 +47975,27 @@ var init_skyWithdraw = __esm(() => {
|
|
|
47761
47975
|
init_url();
|
|
47762
47976
|
init_components();
|
|
47763
47977
|
init_errors2();
|
|
47978
|
+
init_operations();
|
|
47764
47979
|
init_async();
|
|
47765
47980
|
});
|
|
47766
47981
|
|
|
47767
|
-
// src/mcp-server/tools/
|
|
47768
|
-
var args39, tool$
|
|
47769
|
-
var
|
|
47770
|
-
|
|
47771
|
-
|
|
47982
|
+
// src/mcp-server/tools/skyPosition.ts
|
|
47983
|
+
var args39, tool$skyPosition;
|
|
47984
|
+
var init_skyPosition2 = __esm(() => {
|
|
47985
|
+
init_skyPosition();
|
|
47986
|
+
init_operations();
|
|
47772
47987
|
init_tools();
|
|
47773
47988
|
args39 = {
|
|
47774
|
-
request:
|
|
47989
|
+
request: SkyPositionRequest$inboundSchema
|
|
47775
47990
|
};
|
|
47776
|
-
tool$
|
|
47777
|
-
name: "sky-
|
|
47778
|
-
description: `
|
|
47991
|
+
tool$skyPosition = {
|
|
47992
|
+
name: "sky-position",
|
|
47993
|
+
description: `Check USDS Position
|
|
47779
47994
|
|
|
47780
|
-
|
|
47995
|
+
Check the USDS overall position.`,
|
|
47781
47996
|
args: args39,
|
|
47782
47997
|
tool: async (client, args40, ctx) => {
|
|
47783
|
-
const [result, apiCall] = await
|
|
47998
|
+
const [result, apiCall] = await skyPosition(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47784
47999
|
if (!result.ok) {
|
|
47785
48000
|
return {
|
|
47786
48001
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47793,11 +48008,219 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
47793
48008
|
};
|
|
47794
48009
|
});
|
|
47795
48010
|
|
|
47796
|
-
// src/funcs/
|
|
47797
|
-
function
|
|
48011
|
+
// src/funcs/skySell.ts
|
|
48012
|
+
function skySell(client, request, options) {
|
|
47798
48013
|
return new APIPromise($do40(client, request, options));
|
|
47799
48014
|
}
|
|
47800
48015
|
async function $do40(client, request, options) {
|
|
48016
|
+
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48017
|
+
if (!parsed.ok) {
|
|
48018
|
+
return [parsed, { status: "invalid" }];
|
|
48019
|
+
}
|
|
48020
|
+
const payload = parsed.value;
|
|
48021
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
48022
|
+
const path = pathToFunc("/v0/sky/sell")();
|
|
48023
|
+
const headers = new Headers(compactMap({
|
|
48024
|
+
"Content-Type": "application/json",
|
|
48025
|
+
Accept: "application/json"
|
|
48026
|
+
}));
|
|
48027
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
48028
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
48029
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48030
|
+
const context = {
|
|
48031
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48032
|
+
operationID: "sky_sell",
|
|
48033
|
+
oAuth2Scopes: [],
|
|
48034
|
+
resolvedSecurity: requestSecurity,
|
|
48035
|
+
securitySource: client._options.apiKeyAuth,
|
|
48036
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48037
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48038
|
+
};
|
|
48039
|
+
const requestRes = client._createRequest(context, {
|
|
48040
|
+
security: requestSecurity,
|
|
48041
|
+
method: "POST",
|
|
48042
|
+
baseURL: options?.serverURL,
|
|
48043
|
+
path,
|
|
48044
|
+
headers,
|
|
48045
|
+
body,
|
|
48046
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48047
|
+
}, options);
|
|
48048
|
+
if (!requestRes.ok) {
|
|
48049
|
+
return [requestRes, { status: "invalid" }];
|
|
48050
|
+
}
|
|
48051
|
+
const req = requestRes.value;
|
|
48052
|
+
const doResult = await client._do(req, {
|
|
48053
|
+
context,
|
|
48054
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
48055
|
+
retryConfig: context.retryConfig,
|
|
48056
|
+
retryCodes: context.retryCodes
|
|
48057
|
+
});
|
|
48058
|
+
if (!doResult.ok) {
|
|
48059
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48060
|
+
}
|
|
48061
|
+
const response = doResult.value;
|
|
48062
|
+
const responseFields = {
|
|
48063
|
+
HttpMeta: { Response: response, Request: req }
|
|
48064
|
+
};
|
|
48065
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48066
|
+
if (!result.ok) {
|
|
48067
|
+
return [result, { status: "complete", request: req, response }];
|
|
48068
|
+
}
|
|
48069
|
+
return [result, { status: "complete", request: req, response }];
|
|
48070
|
+
}
|
|
48071
|
+
var init_skySell = __esm(() => {
|
|
48072
|
+
init_encodings();
|
|
48073
|
+
init_matchers();
|
|
48074
|
+
init_primitives();
|
|
48075
|
+
init_schemas();
|
|
48076
|
+
init_security();
|
|
48077
|
+
init_url();
|
|
48078
|
+
init_components();
|
|
48079
|
+
init_errors2();
|
|
48080
|
+
init_async();
|
|
48081
|
+
});
|
|
48082
|
+
|
|
48083
|
+
// src/mcp-server/tools/skySell.ts
|
|
48084
|
+
var args40, tool$skySell;
|
|
48085
|
+
var init_skySell2 = __esm(() => {
|
|
48086
|
+
init_skySell();
|
|
48087
|
+
init_components();
|
|
48088
|
+
init_tools();
|
|
48089
|
+
args40 = {
|
|
48090
|
+
request: SkySellRequest$inboundSchema
|
|
48091
|
+
};
|
|
48092
|
+
tool$skySell = {
|
|
48093
|
+
name: "sky-sell",
|
|
48094
|
+
description: `Sell USDS
|
|
48095
|
+
|
|
48096
|
+
Sell USDS for DAI or USDC on a 1:1 basis. There are no fees.
|
|
48097
|
+
|
|
48098
|
+
If swapping to DAI, user will need to set an allowance on the USDS contract for the
|
|
48099
|
+
'SkyDaiUsdsConverter' contract beforehand.
|
|
48100
|
+
|
|
48101
|
+
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
48102
|
+
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
48103
|
+
args: args40,
|
|
48104
|
+
tool: async (client, args41, ctx) => {
|
|
48105
|
+
const [result, apiCall] = await skySell(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48106
|
+
if (!result.ok) {
|
|
48107
|
+
return {
|
|
48108
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48109
|
+
isError: true
|
|
48110
|
+
};
|
|
48111
|
+
}
|
|
48112
|
+
const value = result.value;
|
|
48113
|
+
return formatResult(value, apiCall);
|
|
48114
|
+
}
|
|
48115
|
+
};
|
|
48116
|
+
});
|
|
48117
|
+
|
|
48118
|
+
// src/funcs/skyWithdraw.ts
|
|
48119
|
+
function skyWithdraw(client, request, options) {
|
|
48120
|
+
return new APIPromise($do41(client, request, options));
|
|
48121
|
+
}
|
|
48122
|
+
async function $do41(client, request, options) {
|
|
48123
|
+
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48124
|
+
if (!parsed.ok) {
|
|
48125
|
+
return [parsed, { status: "invalid" }];
|
|
48126
|
+
}
|
|
48127
|
+
const payload = parsed.value;
|
|
48128
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
48129
|
+
const path = pathToFunc("/v0/sky/withdraw")();
|
|
48130
|
+
const headers = new Headers(compactMap({
|
|
48131
|
+
"Content-Type": "application/json",
|
|
48132
|
+
Accept: "application/json"
|
|
48133
|
+
}));
|
|
48134
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
48135
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
48136
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48137
|
+
const context = {
|
|
48138
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48139
|
+
operationID: "sky_withdraw",
|
|
48140
|
+
oAuth2Scopes: [],
|
|
48141
|
+
resolvedSecurity: requestSecurity,
|
|
48142
|
+
securitySource: client._options.apiKeyAuth,
|
|
48143
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48144
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48145
|
+
};
|
|
48146
|
+
const requestRes = client._createRequest(context, {
|
|
48147
|
+
security: requestSecurity,
|
|
48148
|
+
method: "POST",
|
|
48149
|
+
baseURL: options?.serverURL,
|
|
48150
|
+
path,
|
|
48151
|
+
headers,
|
|
48152
|
+
body,
|
|
48153
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48154
|
+
}, options);
|
|
48155
|
+
if (!requestRes.ok) {
|
|
48156
|
+
return [requestRes, { status: "invalid" }];
|
|
48157
|
+
}
|
|
48158
|
+
const req = requestRes.value;
|
|
48159
|
+
const doResult = await client._do(req, {
|
|
48160
|
+
context,
|
|
48161
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
48162
|
+
retryConfig: context.retryConfig,
|
|
48163
|
+
retryCodes: context.retryCodes
|
|
48164
|
+
});
|
|
48165
|
+
if (!doResult.ok) {
|
|
48166
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48167
|
+
}
|
|
48168
|
+
const response = doResult.value;
|
|
48169
|
+
const responseFields = {
|
|
48170
|
+
HttpMeta: { Response: response, Request: req }
|
|
48171
|
+
};
|
|
48172
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48173
|
+
if (!result.ok) {
|
|
48174
|
+
return [result, { status: "complete", request: req, response }];
|
|
48175
|
+
}
|
|
48176
|
+
return [result, { status: "complete", request: req, response }];
|
|
48177
|
+
}
|
|
48178
|
+
var init_skyWithdraw = __esm(() => {
|
|
48179
|
+
init_encodings();
|
|
48180
|
+
init_matchers();
|
|
48181
|
+
init_primitives();
|
|
48182
|
+
init_schemas();
|
|
48183
|
+
init_security();
|
|
48184
|
+
init_url();
|
|
48185
|
+
init_components();
|
|
48186
|
+
init_errors2();
|
|
48187
|
+
init_async();
|
|
48188
|
+
});
|
|
48189
|
+
|
|
48190
|
+
// src/mcp-server/tools/skyWithdraw.ts
|
|
48191
|
+
var args41, tool$skyWithdraw;
|
|
48192
|
+
var init_skyWithdraw2 = __esm(() => {
|
|
48193
|
+
init_skyWithdraw();
|
|
48194
|
+
init_components();
|
|
48195
|
+
init_tools();
|
|
48196
|
+
args41 = {
|
|
48197
|
+
request: SkyWithdrawRequest$inboundSchema
|
|
48198
|
+
};
|
|
48199
|
+
tool$skyWithdraw = {
|
|
48200
|
+
name: "sky-withdraw",
|
|
48201
|
+
description: `Withdraw USDS
|
|
48202
|
+
|
|
48203
|
+
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
48204
|
+
args: args41,
|
|
48205
|
+
tool: async (client, args42, ctx) => {
|
|
48206
|
+
const [result, apiCall] = await skyWithdraw(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48207
|
+
if (!result.ok) {
|
|
48208
|
+
return {
|
|
48209
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48210
|
+
isError: true
|
|
48211
|
+
};
|
|
48212
|
+
}
|
|
48213
|
+
const value = result.value;
|
|
48214
|
+
return formatResult(value, apiCall);
|
|
48215
|
+
}
|
|
48216
|
+
};
|
|
48217
|
+
});
|
|
48218
|
+
|
|
48219
|
+
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
48220
|
+
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
48221
|
+
return new APIPromise($do42(client, request, options));
|
|
48222
|
+
}
|
|
48223
|
+
async function $do42(client, request, options) {
|
|
47801
48224
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47802
48225
|
if (!parsed.ok) {
|
|
47803
48226
|
return [parsed, { status: "invalid" }];
|
|
@@ -47866,12 +48289,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
47866
48289
|
});
|
|
47867
48290
|
|
|
47868
48291
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
47869
|
-
var
|
|
48292
|
+
var args42, tool$smartAccountAccountBatchedUserOperations;
|
|
47870
48293
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
47871
48294
|
init_smartAccountAccountBatchedUserOperations();
|
|
47872
48295
|
init_components();
|
|
47873
48296
|
init_tools();
|
|
47874
|
-
|
|
48297
|
+
args42 = {
|
|
47875
48298
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
47876
48299
|
};
|
|
47877
48300
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -47879,9 +48302,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
47879
48302
|
description: `Get Smart Account Batched User Operations
|
|
47880
48303
|
|
|
47881
48304
|
Generate a list of user operations for smart account batching.`,
|
|
47882
|
-
args:
|
|
47883
|
-
tool: async (client,
|
|
47884
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
48305
|
+
args: args42,
|
|
48306
|
+
tool: async (client, args43, ctx) => {
|
|
48307
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47885
48308
|
if (!result.ok) {
|
|
47886
48309
|
return {
|
|
47887
48310
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47896,9 +48319,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
47896
48319
|
|
|
47897
48320
|
// src/funcs/tokenAddress.ts
|
|
47898
48321
|
function tokenAddress(client, request, options) {
|
|
47899
|
-
return new APIPromise($
|
|
48322
|
+
return new APIPromise($do43(client, request, options));
|
|
47900
48323
|
}
|
|
47901
|
-
async function $
|
|
48324
|
+
async function $do43(client, request, options) {
|
|
47902
48325
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47903
48326
|
if (!parsed.ok) {
|
|
47904
48327
|
return [parsed, { status: "invalid" }];
|
|
@@ -47972,12 +48395,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
47972
48395
|
});
|
|
47973
48396
|
|
|
47974
48397
|
// src/mcp-server/tools/tokenAddress.ts
|
|
47975
|
-
var
|
|
48398
|
+
var args43, tool$tokenAddress;
|
|
47976
48399
|
var init_tokenAddress2 = __esm(() => {
|
|
47977
48400
|
init_tokenAddress();
|
|
47978
48401
|
init_operations();
|
|
47979
48402
|
init_tools();
|
|
47980
|
-
|
|
48403
|
+
args43 = {
|
|
47981
48404
|
request: TokenAddressRequest$inboundSchema
|
|
47982
48405
|
};
|
|
47983
48406
|
tool$tokenAddress = {
|
|
@@ -47985,9 +48408,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
47985
48408
|
description: `Token Address
|
|
47986
48409
|
|
|
47987
48410
|
This endpoint retrieves the address for a token supported by us.`,
|
|
47988
|
-
args:
|
|
47989
|
-
tool: async (client,
|
|
47990
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
48411
|
+
args: args43,
|
|
48412
|
+
tool: async (client, args44, ctx) => {
|
|
48413
|
+
const [result, apiCall] = await tokenAddress(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47991
48414
|
if (!result.ok) {
|
|
47992
48415
|
return {
|
|
47993
48416
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48002,9 +48425,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
48002
48425
|
|
|
48003
48426
|
// src/funcs/tokenBalance.ts
|
|
48004
48427
|
function tokenBalance(client, request, options) {
|
|
48005
|
-
return new APIPromise($
|
|
48428
|
+
return new APIPromise($do44(client, request, options));
|
|
48006
48429
|
}
|
|
48007
|
-
async function $
|
|
48430
|
+
async function $do44(client, request, options) {
|
|
48008
48431
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48009
48432
|
if (!parsed.ok) {
|
|
48010
48433
|
return [parsed, { status: "invalid" }];
|
|
@@ -48079,12 +48502,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
48079
48502
|
});
|
|
48080
48503
|
|
|
48081
48504
|
// src/mcp-server/tools/tokenBalance.ts
|
|
48082
|
-
var
|
|
48505
|
+
var args44, tool$tokenBalance;
|
|
48083
48506
|
var init_tokenBalance2 = __esm(() => {
|
|
48084
48507
|
init_tokenBalance();
|
|
48085
48508
|
init_operations();
|
|
48086
48509
|
init_tools();
|
|
48087
|
-
|
|
48510
|
+
args44 = {
|
|
48088
48511
|
request: TokenBalanceRequest$inboundSchema
|
|
48089
48512
|
};
|
|
48090
48513
|
tool$tokenBalance = {
|
|
@@ -48092,9 +48515,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
48092
48515
|
description: `Token Balance
|
|
48093
48516
|
|
|
48094
48517
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
48095
|
-
args:
|
|
48096
|
-
tool: async (client,
|
|
48097
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
48518
|
+
args: args44,
|
|
48519
|
+
tool: async (client, args45, ctx) => {
|
|
48520
|
+
const [result, apiCall] = await tokenBalance(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48098
48521
|
if (!result.ok) {
|
|
48099
48522
|
return {
|
|
48100
48523
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48109,9 +48532,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
48109
48532
|
|
|
48110
48533
|
// src/funcs/tokenPrice.ts
|
|
48111
48534
|
function tokenPrice(client, request, options) {
|
|
48112
|
-
return new APIPromise($
|
|
48535
|
+
return new APIPromise($do45(client, request, options));
|
|
48113
48536
|
}
|
|
48114
|
-
async function $
|
|
48537
|
+
async function $do45(client, request, options) {
|
|
48115
48538
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48116
48539
|
if (!parsed.ok) {
|
|
48117
48540
|
return [parsed, { status: "invalid" }];
|
|
@@ -48185,12 +48608,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
48185
48608
|
});
|
|
48186
48609
|
|
|
48187
48610
|
// src/mcp-server/tools/tokenPrice.ts
|
|
48188
|
-
var
|
|
48611
|
+
var args45, tool$tokenPrice;
|
|
48189
48612
|
var init_tokenPrice2 = __esm(() => {
|
|
48190
48613
|
init_tokenPrice();
|
|
48191
48614
|
init_operations();
|
|
48192
48615
|
init_tools();
|
|
48193
|
-
|
|
48616
|
+
args45 = {
|
|
48194
48617
|
request: TokenPriceRequest$inboundSchema
|
|
48195
48618
|
};
|
|
48196
48619
|
tool$tokenPrice = {
|
|
@@ -48202,9 +48625,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
48202
48625
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
48203
48626
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
48204
48627
|
with the update frequency of the oracle.`,
|
|
48205
|
-
args:
|
|
48206
|
-
tool: async (client,
|
|
48207
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
48628
|
+
args: args45,
|
|
48629
|
+
tool: async (client, args46, ctx) => {
|
|
48630
|
+
const [result, apiCall] = await tokenPrice(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48208
48631
|
if (!result.ok) {
|
|
48209
48632
|
return {
|
|
48210
48633
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48219,9 +48642,9 @@ with the update frequency of the oracle.`,
|
|
|
48219
48642
|
|
|
48220
48643
|
// src/funcs/tokenTransfer.ts
|
|
48221
48644
|
function tokenTransfer(client, request, options) {
|
|
48222
|
-
return new APIPromise($
|
|
48645
|
+
return new APIPromise($do46(client, request, options));
|
|
48223
48646
|
}
|
|
48224
|
-
async function $
|
|
48647
|
+
async function $do46(client, request, options) {
|
|
48225
48648
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48226
48649
|
if (!parsed.ok) {
|
|
48227
48650
|
return [parsed, { status: "invalid" }];
|
|
@@ -48290,12 +48713,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
48290
48713
|
});
|
|
48291
48714
|
|
|
48292
48715
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
48293
|
-
var
|
|
48716
|
+
var args46, tool$tokenTransfer;
|
|
48294
48717
|
var init_tokenTransfer2 = __esm(() => {
|
|
48295
48718
|
init_tokenTransfer();
|
|
48296
48719
|
init_components();
|
|
48297
48720
|
init_tools();
|
|
48298
|
-
|
|
48721
|
+
args46 = {
|
|
48299
48722
|
request: TokenTransferRequest$inboundSchema
|
|
48300
48723
|
};
|
|
48301
48724
|
tool$tokenTransfer = {
|
|
@@ -48303,9 +48726,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
48303
48726
|
description: `Transfer ETH or ERC20 Tokens.
|
|
48304
48727
|
|
|
48305
48728
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
48306
|
-
args:
|
|
48307
|
-
tool: async (client,
|
|
48308
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
48729
|
+
args: args46,
|
|
48730
|
+
tool: async (client, args47, ctx) => {
|
|
48731
|
+
const [result, apiCall] = await tokenTransfer(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48309
48732
|
if (!result.ok) {
|
|
48310
48733
|
return {
|
|
48311
48734
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48320,9 +48743,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
48320
48743
|
|
|
48321
48744
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
48322
48745
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
48323
|
-
return new APIPromise($
|
|
48746
|
+
return new APIPromise($do47(client, request, options));
|
|
48324
48747
|
}
|
|
48325
|
-
async function $
|
|
48748
|
+
async function $do47(client, request, options) {
|
|
48326
48749
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48327
48750
|
if (!parsed.ok) {
|
|
48328
48751
|
return [parsed, { status: "invalid" }];
|
|
@@ -48391,12 +48814,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
48391
48814
|
});
|
|
48392
48815
|
|
|
48393
48816
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
48394
|
-
var
|
|
48817
|
+
var args47, tool$transactionBatchingAaveLoop;
|
|
48395
48818
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
48396
48819
|
init_transactionBatchingAaveLoop();
|
|
48397
48820
|
init_components();
|
|
48398
48821
|
init_tools();
|
|
48399
|
-
|
|
48822
|
+
args47 = {
|
|
48400
48823
|
request: AaveLoopRequest$inboundSchema
|
|
48401
48824
|
};
|
|
48402
48825
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -48414,9 +48837,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
48414
48837
|
- Supplies the swapped tokens
|
|
48415
48838
|
|
|
48416
48839
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
48417
|
-
args:
|
|
48418
|
-
tool: async (client,
|
|
48419
|
-
const [result, apiCall] = await transactionBatchingAaveLoop(client,
|
|
48840
|
+
args: args47,
|
|
48841
|
+
tool: async (client, args48, ctx) => {
|
|
48842
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48420
48843
|
if (!result.ok) {
|
|
48421
48844
|
return {
|
|
48422
48845
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48431,9 +48854,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
48431
48854
|
|
|
48432
48855
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
48433
48856
|
function transactionBatchingAuthorization(client, request, options) {
|
|
48434
|
-
return new APIPromise($
|
|
48857
|
+
return new APIPromise($do48(client, request, options));
|
|
48435
48858
|
}
|
|
48436
|
-
async function $
|
|
48859
|
+
async function $do48(client, request, options) {
|
|
48437
48860
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48438
48861
|
if (!parsed.ok) {
|
|
48439
48862
|
return [parsed, { status: "invalid" }];
|
|
@@ -48502,12 +48925,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
48502
48925
|
});
|
|
48503
48926
|
|
|
48504
48927
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
48505
|
-
var
|
|
48928
|
+
var args48, tool$transactionBatchingAuthorization;
|
|
48506
48929
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
48507
48930
|
init_transactionBatchingAuthorization();
|
|
48508
48931
|
init_components();
|
|
48509
48932
|
init_tools();
|
|
48510
|
-
|
|
48933
|
+
args48 = {
|
|
48511
48934
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
48512
48935
|
};
|
|
48513
48936
|
tool$transactionBatchingAuthorization = {
|
|
@@ -48520,9 +48943,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
48520
48943
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
48521
48944
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
48522
48945
|
targeting.`,
|
|
48523
|
-
args:
|
|
48524
|
-
tool: async (client,
|
|
48525
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
48946
|
+
args: args48,
|
|
48947
|
+
tool: async (client, args49, ctx) => {
|
|
48948
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48526
48949
|
if (!result.ok) {
|
|
48527
48950
|
return {
|
|
48528
48951
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48537,9 +48960,9 @@ targeting.`,
|
|
|
48537
48960
|
|
|
48538
48961
|
// src/funcs/transactionBatchingExecute.ts
|
|
48539
48962
|
function transactionBatchingExecute(client, request, options) {
|
|
48540
|
-
return new APIPromise($
|
|
48963
|
+
return new APIPromise($do49(client, request, options));
|
|
48541
48964
|
}
|
|
48542
|
-
async function $
|
|
48965
|
+
async function $do49(client, request, options) {
|
|
48543
48966
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48544
48967
|
if (!parsed.ok) {
|
|
48545
48968
|
return [parsed, { status: "invalid" }];
|
|
@@ -48608,12 +49031,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
48608
49031
|
});
|
|
48609
49032
|
|
|
48610
49033
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
48611
|
-
var
|
|
49034
|
+
var args49, tool$transactionBatchingExecute;
|
|
48612
49035
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
48613
49036
|
init_transactionBatchingExecute();
|
|
48614
49037
|
init_components();
|
|
48615
49038
|
init_tools();
|
|
48616
|
-
|
|
49039
|
+
args49 = {
|
|
48617
49040
|
request: MulticallExecuteRequest$inboundSchema
|
|
48618
49041
|
};
|
|
48619
49042
|
tool$transactionBatchingExecute = {
|
|
@@ -48626,9 +49049,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
48626
49049
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
48627
49050
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
48628
49051
|
prevent replay attacks.`,
|
|
48629
|
-
args:
|
|
48630
|
-
tool: async (client,
|
|
48631
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
49052
|
+
args: args49,
|
|
49053
|
+
tool: async (client, args50, ctx) => {
|
|
49054
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48632
49055
|
if (!result.ok) {
|
|
48633
49056
|
return {
|
|
48634
49057
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48643,9 +49066,9 @@ prevent replay attacks.`,
|
|
|
48643
49066
|
|
|
48644
49067
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
48645
49068
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
48646
|
-
return new APIPromise($
|
|
49069
|
+
return new APIPromise($do50(client, request, options));
|
|
48647
49070
|
}
|
|
48648
|
-
async function $
|
|
49071
|
+
async function $do50(client, request, options) {
|
|
48649
49072
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48650
49073
|
if (!parsed.ok) {
|
|
48651
49074
|
return [parsed, { status: "invalid" }];
|
|
@@ -48714,12 +49137,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
48714
49137
|
});
|
|
48715
49138
|
|
|
48716
49139
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
48717
|
-
var
|
|
49140
|
+
var args50, tool$uniswapV3LiquidityProvisionIncrease;
|
|
48718
49141
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
48719
49142
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
48720
49143
|
init_components();
|
|
48721
49144
|
init_tools();
|
|
48722
|
-
|
|
49145
|
+
args50 = {
|
|
48723
49146
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
48724
49147
|
};
|
|
48725
49148
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -48735,9 +49158,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
48735
49158
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
48736
49159
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
48737
49160
|
process.`,
|
|
48738
|
-
args:
|
|
48739
|
-
tool: async (client,
|
|
48740
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
49161
|
+
args: args50,
|
|
49162
|
+
tool: async (client, args51, ctx) => {
|
|
49163
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48741
49164
|
if (!result.ok) {
|
|
48742
49165
|
return {
|
|
48743
49166
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48752,9 +49175,9 @@ process.`,
|
|
|
48752
49175
|
|
|
48753
49176
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
48754
49177
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
48755
|
-
return new APIPromise($
|
|
49178
|
+
return new APIPromise($do51(client, request, options));
|
|
48756
49179
|
}
|
|
48757
|
-
async function $
|
|
49180
|
+
async function $do51(client, request, options) {
|
|
48758
49181
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48759
49182
|
if (!parsed.ok) {
|
|
48760
49183
|
return [parsed, { status: "invalid" }];
|
|
@@ -48828,12 +49251,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
48828
49251
|
});
|
|
48829
49252
|
|
|
48830
49253
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
48831
|
-
var
|
|
49254
|
+
var args51, tool$uniswapV3LiquidityProvisionInRange;
|
|
48832
49255
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
48833
49256
|
init_uniswapV3LiquidityProvisionInRange();
|
|
48834
49257
|
init_operations();
|
|
48835
49258
|
init_tools();
|
|
48836
|
-
|
|
49259
|
+
args51 = {
|
|
48837
49260
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
48838
49261
|
};
|
|
48839
49262
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -48848,9 +49271,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
48848
49271
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
48849
49272
|
they are actively participating in the trading activities within the liquidity pool
|
|
48850
49273
|
and earning trading fees.`,
|
|
48851
|
-
args:
|
|
48852
|
-
tool: async (client,
|
|
48853
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
49274
|
+
args: args51,
|
|
49275
|
+
tool: async (client, args52, ctx) => {
|
|
49276
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48854
49277
|
if (!result.ok) {
|
|
48855
49278
|
return {
|
|
48856
49279
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48865,9 +49288,9 @@ and earning trading fees.`,
|
|
|
48865
49288
|
|
|
48866
49289
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
48867
49290
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
48868
|
-
return new APIPromise($
|
|
49291
|
+
return new APIPromise($do52(client, request, options));
|
|
48869
49292
|
}
|
|
48870
|
-
async function $
|
|
49293
|
+
async function $do52(client, request, options) {
|
|
48871
49294
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48872
49295
|
if (!parsed.ok) {
|
|
48873
49296
|
return [parsed, { status: "invalid" }];
|
|
@@ -48936,12 +49359,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
48936
49359
|
});
|
|
48937
49360
|
|
|
48938
49361
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
48939
|
-
var
|
|
49362
|
+
var args52, tool$uniswapV3LiquidityProvisionMint;
|
|
48940
49363
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
48941
49364
|
init_uniswapV3LiquidityProvisionMint();
|
|
48942
49365
|
init_components();
|
|
48943
49366
|
init_tools();
|
|
48944
|
-
|
|
49367
|
+
args52 = {
|
|
48945
49368
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
48946
49369
|
};
|
|
48947
49370
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -48957,9 +49380,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
48957
49380
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
48958
49381
|
requires details such as the token pair, amount, and any additional parameters
|
|
48959
49382
|
needed for the minting process.`,
|
|
48960
|
-
args:
|
|
48961
|
-
tool: async (client,
|
|
48962
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
49383
|
+
args: args52,
|
|
49384
|
+
tool: async (client, args53, ctx) => {
|
|
49385
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48963
49386
|
if (!result.ok) {
|
|
48964
49387
|
return {
|
|
48965
49388
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48974,9 +49397,9 @@ needed for the minting process.`,
|
|
|
48974
49397
|
|
|
48975
49398
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
48976
49399
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
48977
|
-
return new APIPromise($
|
|
49400
|
+
return new APIPromise($do53(client, request, options));
|
|
48978
49401
|
}
|
|
48979
|
-
async function $
|
|
49402
|
+
async function $do53(client, request, options) {
|
|
48980
49403
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48981
49404
|
if (!parsed.ok) {
|
|
48982
49405
|
return [parsed, { status: "invalid" }];
|
|
@@ -49050,12 +49473,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
49050
49473
|
});
|
|
49051
49474
|
|
|
49052
49475
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
49053
|
-
var
|
|
49476
|
+
var args53, tool$uniswapV3LiquidityProvisionPositions;
|
|
49054
49477
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
49055
49478
|
init_uniswapV3LiquidityProvisionPositions();
|
|
49056
49479
|
init_operations();
|
|
49057
49480
|
init_tools();
|
|
49058
|
-
|
|
49481
|
+
args53 = {
|
|
49059
49482
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
49060
49483
|
};
|
|
49061
49484
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -49069,9 +49492,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
49069
49492
|
positions, including the total number of positions and relevant metadata. This
|
|
49070
49493
|
information is crucial for users to manage and analyze their liquidity provision
|
|
49071
49494
|
activities effectively.`,
|
|
49072
|
-
args:
|
|
49073
|
-
tool: async (client,
|
|
49074
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
49495
|
+
args: args53,
|
|
49496
|
+
tool: async (client, args54, ctx) => {
|
|
49497
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49075
49498
|
if (!result.ok) {
|
|
49076
49499
|
return {
|
|
49077
49500
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49086,9 +49509,9 @@ activities effectively.`,
|
|
|
49086
49509
|
|
|
49087
49510
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
49088
49511
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
49089
|
-
return new APIPromise($
|
|
49512
|
+
return new APIPromise($do54(client, request, options));
|
|
49090
49513
|
}
|
|
49091
|
-
async function $
|
|
49514
|
+
async function $do54(client, request, options) {
|
|
49092
49515
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49093
49516
|
if (!parsed.ok) {
|
|
49094
49517
|
return [parsed, { status: "invalid" }];
|
|
@@ -49157,12 +49580,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
49157
49580
|
});
|
|
49158
49581
|
|
|
49159
49582
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
49160
|
-
var
|
|
49583
|
+
var args54, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
49161
49584
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
49162
49585
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
49163
49586
|
init_components();
|
|
49164
49587
|
init_tools();
|
|
49165
|
-
|
|
49588
|
+
args54 = {
|
|
49166
49589
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
49167
49590
|
};
|
|
49168
49591
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -49179,9 +49602,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
49179
49602
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
49180
49603
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
49181
49604
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
49182
|
-
args:
|
|
49183
|
-
tool: async (client,
|
|
49184
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
49605
|
+
args: args54,
|
|
49606
|
+
tool: async (client, args55, ctx) => {
|
|
49607
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49185
49608
|
if (!result.ok) {
|
|
49186
49609
|
return {
|
|
49187
49610
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49196,9 +49619,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
49196
49619
|
|
|
49197
49620
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
49198
49621
|
function uniswapV3PoolPrice(client, request, options) {
|
|
49199
|
-
return new APIPromise($
|
|
49622
|
+
return new APIPromise($do55(client, request, options));
|
|
49200
49623
|
}
|
|
49201
|
-
async function $
|
|
49624
|
+
async function $do55(client, request, options) {
|
|
49202
49625
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49203
49626
|
if (!parsed.ok) {
|
|
49204
49627
|
return [parsed, { status: "invalid" }];
|
|
@@ -49274,12 +49697,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
49274
49697
|
});
|
|
49275
49698
|
|
|
49276
49699
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
49277
|
-
var
|
|
49700
|
+
var args55, tool$uniswapV3PoolPrice;
|
|
49278
49701
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
49279
49702
|
init_uniswapV3PoolPrice();
|
|
49280
49703
|
init_operations();
|
|
49281
49704
|
init_tools();
|
|
49282
|
-
|
|
49705
|
+
args55 = {
|
|
49283
49706
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
49284
49707
|
};
|
|
49285
49708
|
tool$uniswapV3PoolPrice = {
|
|
@@ -49289,9 +49712,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
49289
49712
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
49290
49713
|
|
|
49291
49714
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
49292
|
-
args:
|
|
49293
|
-
tool: async (client,
|
|
49294
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
49715
|
+
args: args55,
|
|
49716
|
+
tool: async (client, args56, ctx) => {
|
|
49717
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49295
49718
|
if (!result.ok) {
|
|
49296
49719
|
return {
|
|
49297
49720
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49306,9 +49729,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
49306
49729
|
|
|
49307
49730
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
49308
49731
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
49309
|
-
return new APIPromise($
|
|
49732
|
+
return new APIPromise($do56(client, request, options));
|
|
49310
49733
|
}
|
|
49311
|
-
async function $
|
|
49734
|
+
async function $do56(client, request, options) {
|
|
49312
49735
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49313
49736
|
if (!parsed.ok) {
|
|
49314
49737
|
return [parsed, { status: "invalid" }];
|
|
@@ -49385,12 +49808,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
49385
49808
|
});
|
|
49386
49809
|
|
|
49387
49810
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
49388
|
-
var
|
|
49811
|
+
var args56, tool$uniswapV3QuoteBuyExactly;
|
|
49389
49812
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
49390
49813
|
init_uniswapV3QuoteBuyExactly();
|
|
49391
49814
|
init_operations();
|
|
49392
49815
|
init_tools();
|
|
49393
|
-
|
|
49816
|
+
args56 = {
|
|
49394
49817
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
49395
49818
|
};
|
|
49396
49819
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -49402,9 +49825,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
49402
49825
|
|
|
49403
49826
|
It also provides the resulting price after the transaction. The calculation takes
|
|
49404
49827
|
into account the current pool state and the specified fee tier.`,
|
|
49405
|
-
args:
|
|
49406
|
-
tool: async (client,
|
|
49407
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
49828
|
+
args: args56,
|
|
49829
|
+
tool: async (client, args57, ctx) => {
|
|
49830
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49408
49831
|
if (!result.ok) {
|
|
49409
49832
|
return {
|
|
49410
49833
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49419,9 +49842,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
49419
49842
|
|
|
49420
49843
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
49421
49844
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
49422
|
-
return new APIPromise($
|
|
49845
|
+
return new APIPromise($do57(client, request, options));
|
|
49423
49846
|
}
|
|
49424
|
-
async function $
|
|
49847
|
+
async function $do57(client, request, options) {
|
|
49425
49848
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49426
49849
|
if (!parsed.ok) {
|
|
49427
49850
|
return [parsed, { status: "invalid" }];
|
|
@@ -49498,12 +49921,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
49498
49921
|
});
|
|
49499
49922
|
|
|
49500
49923
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
49501
|
-
var
|
|
49924
|
+
var args57, tool$uniswapV3QuoteSellExactly;
|
|
49502
49925
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
49503
49926
|
init_uniswapV3QuoteSellExactly();
|
|
49504
49927
|
init_operations();
|
|
49505
49928
|
init_tools();
|
|
49506
|
-
|
|
49929
|
+
args57 = {
|
|
49507
49930
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
49508
49931
|
};
|
|
49509
49932
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -49515,9 +49938,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
49515
49938
|
|
|
49516
49939
|
It also provides the resulting price after the transaction. The calculation takes
|
|
49517
49940
|
into account the current pool state and the specified fee tier.`,
|
|
49518
|
-
args:
|
|
49519
|
-
tool: async (client,
|
|
49520
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
49941
|
+
args: args57,
|
|
49942
|
+
tool: async (client, args58, ctx) => {
|
|
49943
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49521
49944
|
if (!result.ok) {
|
|
49522
49945
|
return {
|
|
49523
49946
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49532,9 +49955,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
49532
49955
|
|
|
49533
49956
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
49534
49957
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
49535
|
-
return new APIPromise($
|
|
49958
|
+
return new APIPromise($do58(client, request, options));
|
|
49536
49959
|
}
|
|
49537
|
-
async function $
|
|
49960
|
+
async function $do58(client, request, options) {
|
|
49538
49961
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49539
49962
|
if (!parsed.ok) {
|
|
49540
49963
|
return [parsed, { status: "invalid" }];
|
|
@@ -49603,12 +50026,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
49603
50026
|
});
|
|
49604
50027
|
|
|
49605
50028
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
49606
|
-
var
|
|
50029
|
+
var args58, tool$uniswapV3SwapBuyExactly;
|
|
49607
50030
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
49608
50031
|
init_uniswapV3SwapBuyExactly();
|
|
49609
50032
|
init_components();
|
|
49610
50033
|
init_tools();
|
|
49611
|
-
|
|
50034
|
+
args58 = {
|
|
49612
50035
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
49613
50036
|
};
|
|
49614
50037
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -49622,9 +50045,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
49622
50045
|
provide the necessary transaction details, including the token to buy, the token to
|
|
49623
50046
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
49624
50047
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
49625
|
-
args:
|
|
49626
|
-
tool: async (client,
|
|
49627
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
50048
|
+
args: args58,
|
|
50049
|
+
tool: async (client, args59, ctx) => {
|
|
50050
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49628
50051
|
if (!result.ok) {
|
|
49629
50052
|
return {
|
|
49630
50053
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49639,9 +50062,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
49639
50062
|
|
|
49640
50063
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
49641
50064
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
49642
|
-
return new APIPromise($
|
|
50065
|
+
return new APIPromise($do59(client, request, options));
|
|
49643
50066
|
}
|
|
49644
|
-
async function $
|
|
50067
|
+
async function $do59(client, request, options) {
|
|
49645
50068
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49646
50069
|
if (!parsed.ok) {
|
|
49647
50070
|
return [parsed, { status: "invalid" }];
|
|
@@ -49710,12 +50133,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
49710
50133
|
});
|
|
49711
50134
|
|
|
49712
50135
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
49713
|
-
var
|
|
50136
|
+
var args59, tool$uniswapV3SwapSellExactly;
|
|
49714
50137
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
49715
50138
|
init_uniswapV3SwapSellExactly();
|
|
49716
50139
|
init_components();
|
|
49717
50140
|
init_tools();
|
|
49718
|
-
|
|
50141
|
+
args59 = {
|
|
49719
50142
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
49720
50143
|
};
|
|
49721
50144
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -49729,9 +50152,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
49729
50152
|
provide the necessary transaction details, including the token to sell, the token to
|
|
49730
50153
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
49731
50154
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
49732
|
-
args:
|
|
49733
|
-
tool: async (client,
|
|
49734
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
50155
|
+
args: args59,
|
|
50156
|
+
tool: async (client, args60, ctx) => {
|
|
50157
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49735
50158
|
if (!result.ok) {
|
|
49736
50159
|
return {
|
|
49737
50160
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49746,9 +50169,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
49746
50169
|
|
|
49747
50170
|
// src/funcs/universalAllowance.ts
|
|
49748
50171
|
function universalAllowance(client, request, options) {
|
|
49749
|
-
return new APIPromise($
|
|
50172
|
+
return new APIPromise($do60(client, request, options));
|
|
49750
50173
|
}
|
|
49751
|
-
async function $
|
|
50174
|
+
async function $do60(client, request, options) {
|
|
49752
50175
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49753
50176
|
if (!parsed.ok) {
|
|
49754
50177
|
return [parsed, { status: "invalid" }];
|
|
@@ -49824,12 +50247,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
49824
50247
|
});
|
|
49825
50248
|
|
|
49826
50249
|
// src/mcp-server/tools/universalAllowance.ts
|
|
49827
|
-
var
|
|
50250
|
+
var args60, tool$universalAllowance;
|
|
49828
50251
|
var init_universalAllowance2 = __esm(() => {
|
|
49829
50252
|
init_universalAllowance();
|
|
49830
50253
|
init_operations();
|
|
49831
50254
|
init_tools();
|
|
49832
|
-
|
|
50255
|
+
args60 = {
|
|
49833
50256
|
request: GenericAllowanceRequest$inboundSchema
|
|
49834
50257
|
};
|
|
49835
50258
|
tool$universalAllowance = {
|
|
@@ -49843,9 +50266,9 @@ tokens on their behalf.
|
|
|
49843
50266
|
This is a crucial step before engaging in any transactions or operations within
|
|
49844
50267
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
49845
50268
|
the user's tokens securely and efficiently.`,
|
|
49846
|
-
args:
|
|
49847
|
-
tool: async (client,
|
|
49848
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
50269
|
+
args: args60,
|
|
50270
|
+
tool: async (client, args61, ctx) => {
|
|
50271
|
+
const [result, apiCall] = await universalAllowance(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49849
50272
|
if (!result.ok) {
|
|
49850
50273
|
return {
|
|
49851
50274
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49860,9 +50283,9 @@ the user's tokens securely and efficiently.`,
|
|
|
49860
50283
|
|
|
49861
50284
|
// src/funcs/universalAllowanceSet.ts
|
|
49862
50285
|
function universalAllowanceSet(client, request, options) {
|
|
49863
|
-
return new APIPromise($
|
|
50286
|
+
return new APIPromise($do61(client, request, options));
|
|
49864
50287
|
}
|
|
49865
|
-
async function $
|
|
50288
|
+
async function $do61(client, request, options) {
|
|
49866
50289
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49867
50290
|
if (!parsed.ok) {
|
|
49868
50291
|
return [parsed, { status: "invalid" }];
|
|
@@ -49931,12 +50354,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
49931
50354
|
});
|
|
49932
50355
|
|
|
49933
50356
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
49934
|
-
var
|
|
50357
|
+
var args61, tool$universalAllowanceSet;
|
|
49935
50358
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
49936
50359
|
init_universalAllowanceSet();
|
|
49937
50360
|
init_components();
|
|
49938
50361
|
init_tools();
|
|
49939
|
-
|
|
50362
|
+
args61 = {
|
|
49940
50363
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
49941
50364
|
};
|
|
49942
50365
|
tool$universalAllowanceSet = {
|
|
@@ -49950,9 +50373,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
49950
50373
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
49951
50374
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
49952
50375
|
within the DeFi ecosystem.`,
|
|
49953
|
-
args:
|
|
49954
|
-
tool: async (client,
|
|
49955
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
50376
|
+
args: args61,
|
|
50377
|
+
tool: async (client, args62, ctx) => {
|
|
50378
|
+
const [result, apiCall] = await universalAllowanceSet(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49956
50379
|
if (!result.ok) {
|
|
49957
50380
|
return {
|
|
49958
50381
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49967,9 +50390,9 @@ within the DeFi ecosystem.`,
|
|
|
49967
50390
|
|
|
49968
50391
|
// src/funcs/universalEns.ts
|
|
49969
50392
|
function universalEns(client, request, options) {
|
|
49970
|
-
return new APIPromise($
|
|
50393
|
+
return new APIPromise($do62(client, request, options));
|
|
49971
50394
|
}
|
|
49972
|
-
async function $
|
|
50395
|
+
async function $do62(client, request, options) {
|
|
49973
50396
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49974
50397
|
if (!parsed.ok) {
|
|
49975
50398
|
return [parsed, { status: "invalid" }];
|
|
@@ -50043,12 +50466,12 @@ var init_universalEns = __esm(() => {
|
|
|
50043
50466
|
});
|
|
50044
50467
|
|
|
50045
50468
|
// src/mcp-server/tools/universalEns.ts
|
|
50046
|
-
var
|
|
50469
|
+
var args62, tool$universalEns;
|
|
50047
50470
|
var init_universalEns2 = __esm(() => {
|
|
50048
50471
|
init_universalEns();
|
|
50049
50472
|
init_operations();
|
|
50050
50473
|
init_tools();
|
|
50051
|
-
|
|
50474
|
+
args62 = {
|
|
50052
50475
|
request: GenericEnsRequest$inboundSchema
|
|
50053
50476
|
};
|
|
50054
50477
|
tool$universalEns = {
|
|
@@ -50059,9 +50482,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
50059
50482
|
|
|
50060
50483
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
50061
50484
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
50062
|
-
args:
|
|
50063
|
-
tool: async (client,
|
|
50064
|
-
const [result, apiCall] = await universalEns(client,
|
|
50485
|
+
args: args62,
|
|
50486
|
+
tool: async (client, args63, ctx) => {
|
|
50487
|
+
const [result, apiCall] = await universalEns(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50065
50488
|
if (!result.ok) {
|
|
50066
50489
|
return {
|
|
50067
50490
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50076,9 +50499,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
50076
50499
|
|
|
50077
50500
|
// src/funcs/universalPortfolio.ts
|
|
50078
50501
|
function universalPortfolio(client, request, options) {
|
|
50079
|
-
return new APIPromise($
|
|
50502
|
+
return new APIPromise($do63(client, request, options));
|
|
50080
50503
|
}
|
|
50081
|
-
async function $
|
|
50504
|
+
async function $do63(client, request, options) {
|
|
50082
50505
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50083
50506
|
if (!parsed.ok) {
|
|
50084
50507
|
return [parsed, { status: "invalid" }];
|
|
@@ -50152,12 +50575,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
50152
50575
|
});
|
|
50153
50576
|
|
|
50154
50577
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
50155
|
-
var
|
|
50578
|
+
var args63, tool$universalPortfolio;
|
|
50156
50579
|
var init_universalPortfolio2 = __esm(() => {
|
|
50157
50580
|
init_universalPortfolio();
|
|
50158
50581
|
init_operations();
|
|
50159
50582
|
init_tools();
|
|
50160
|
-
|
|
50583
|
+
args63 = {
|
|
50161
50584
|
request: GenericPortfolioRequest$inboundSchema
|
|
50162
50585
|
};
|
|
50163
50586
|
tool$universalPortfolio = {
|
|
@@ -50168,9 +50591,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
50168
50591
|
|
|
50169
50592
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
50170
50593
|
balances, including their respective values and quantities.`,
|
|
50171
|
-
args:
|
|
50172
|
-
tool: async (client,
|
|
50173
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
50594
|
+
args: args63,
|
|
50595
|
+
tool: async (client, args64, ctx) => {
|
|
50596
|
+
const [result, apiCall] = await universalPortfolio(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50174
50597
|
if (!result.ok) {
|
|
50175
50598
|
return {
|
|
50176
50599
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50185,9 +50608,9 @@ balances, including their respective values and quantities.`,
|
|
|
50185
50608
|
|
|
50186
50609
|
// src/funcs/universalSupportedTokens.ts
|
|
50187
50610
|
function universalSupportedTokens(client, request, options) {
|
|
50188
|
-
return new APIPromise($
|
|
50611
|
+
return new APIPromise($do64(client, request, options));
|
|
50189
50612
|
}
|
|
50190
|
-
async function $
|
|
50613
|
+
async function $do64(client, request, options) {
|
|
50191
50614
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50192
50615
|
if (!parsed.ok) {
|
|
50193
50616
|
return [parsed, { status: "invalid" }];
|
|
@@ -50260,12 +50683,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
50260
50683
|
});
|
|
50261
50684
|
|
|
50262
50685
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
50263
|
-
var
|
|
50686
|
+
var args64, tool$universalSupportedTokens;
|
|
50264
50687
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
50265
50688
|
init_universalSupportedTokens();
|
|
50266
50689
|
init_operations();
|
|
50267
50690
|
init_tools();
|
|
50268
|
-
|
|
50691
|
+
args64 = {
|
|
50269
50692
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
50270
50693
|
};
|
|
50271
50694
|
tool$universalSupportedTokens = {
|
|
@@ -50273,9 +50696,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
50273
50696
|
description: `List supported tokens
|
|
50274
50697
|
|
|
50275
50698
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
50276
|
-
args:
|
|
50277
|
-
tool: async (client,
|
|
50278
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
50699
|
+
args: args64,
|
|
50700
|
+
tool: async (client, args65, ctx) => {
|
|
50701
|
+
const [result, apiCall] = await universalSupportedTokens(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50279
50702
|
if (!result.ok) {
|
|
50280
50703
|
return {
|
|
50281
50704
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50290,9 +50713,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
50290
50713
|
|
|
50291
50714
|
// src/funcs/universalUnwrapWeth.ts
|
|
50292
50715
|
function universalUnwrapWeth(client, request, options) {
|
|
50293
|
-
return new APIPromise($
|
|
50716
|
+
return new APIPromise($do65(client, request, options));
|
|
50294
50717
|
}
|
|
50295
|
-
async function $
|
|
50718
|
+
async function $do65(client, request, options) {
|
|
50296
50719
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50297
50720
|
if (!parsed.ok) {
|
|
50298
50721
|
return [parsed, { status: "invalid" }];
|
|
@@ -50361,12 +50784,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
50361
50784
|
});
|
|
50362
50785
|
|
|
50363
50786
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
50364
|
-
var
|
|
50787
|
+
var args65, tool$universalUnwrapWeth;
|
|
50365
50788
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
50366
50789
|
init_universalUnwrapWeth();
|
|
50367
50790
|
init_components();
|
|
50368
50791
|
init_tools();
|
|
50369
|
-
|
|
50792
|
+
args65 = {
|
|
50370
50793
|
request: UnwrapWethRequest$inboundSchema
|
|
50371
50794
|
};
|
|
50372
50795
|
tool$universalUnwrapWeth = {
|
|
@@ -50375,9 +50798,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
50375
50798
|
|
|
50376
50799
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
50377
50800
|
can be used for gas and other native purposes.`,
|
|
50378
|
-
args:
|
|
50379
|
-
tool: async (client,
|
|
50380
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
50801
|
+
args: args65,
|
|
50802
|
+
tool: async (client, args66, ctx) => {
|
|
50803
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50381
50804
|
if (!result.ok) {
|
|
50382
50805
|
return {
|
|
50383
50806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50392,9 +50815,9 @@ can be used for gas and other native purposes.`,
|
|
|
50392
50815
|
|
|
50393
50816
|
// src/funcs/universalVisualizePortfolio.ts
|
|
50394
50817
|
function universalVisualizePortfolio(client, request, options) {
|
|
50395
|
-
return new APIPromise($
|
|
50818
|
+
return new APIPromise($do66(client, request, options));
|
|
50396
50819
|
}
|
|
50397
|
-
async function $
|
|
50820
|
+
async function $do66(client, request, options) {
|
|
50398
50821
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50399
50822
|
if (!parsed.ok) {
|
|
50400
50823
|
return [parsed, { status: "invalid" }];
|
|
@@ -50468,12 +50891,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
50468
50891
|
});
|
|
50469
50892
|
|
|
50470
50893
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
50471
|
-
var
|
|
50894
|
+
var args66, tool$universalVisualizePortfolio;
|
|
50472
50895
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
50473
50896
|
init_universalVisualizePortfolio();
|
|
50474
50897
|
init_operations();
|
|
50475
50898
|
init_tools();
|
|
50476
|
-
|
|
50899
|
+
args66 = {
|
|
50477
50900
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
50478
50901
|
};
|
|
50479
50902
|
tool$universalVisualizePortfolio = {
|
|
@@ -50485,9 +50908,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
50485
50908
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
50486
50909
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
50487
50910
|
USD.`,
|
|
50488
|
-
args:
|
|
50489
|
-
tool: async (client,
|
|
50490
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
50911
|
+
args: args66,
|
|
50912
|
+
tool: async (client, args67, ctx) => {
|
|
50913
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50491
50914
|
if (!result.ok) {
|
|
50492
50915
|
return {
|
|
50493
50916
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50502,9 +50925,9 @@ USD.`,
|
|
|
50502
50925
|
|
|
50503
50926
|
// src/funcs/universalWrapEth.ts
|
|
50504
50927
|
function universalWrapEth(client, request, options) {
|
|
50505
|
-
return new APIPromise($
|
|
50928
|
+
return new APIPromise($do67(client, request, options));
|
|
50506
50929
|
}
|
|
50507
|
-
async function $
|
|
50930
|
+
async function $do67(client, request, options) {
|
|
50508
50931
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50509
50932
|
if (!parsed.ok) {
|
|
50510
50933
|
return [parsed, { status: "invalid" }];
|
|
@@ -50573,12 +50996,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
50573
50996
|
});
|
|
50574
50997
|
|
|
50575
50998
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
50576
|
-
var
|
|
50999
|
+
var args67, tool$universalWrapEth;
|
|
50577
51000
|
var init_universalWrapEth2 = __esm(() => {
|
|
50578
51001
|
init_universalWrapEth();
|
|
50579
51002
|
init_components();
|
|
50580
51003
|
init_tools();
|
|
50581
|
-
|
|
51004
|
+
args67 = {
|
|
50582
51005
|
request: WrapEthRequest$inboundSchema
|
|
50583
51006
|
};
|
|
50584
51007
|
tool$universalWrapEth = {
|
|
@@ -50587,9 +51010,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
50587
51010
|
|
|
50588
51011
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
50589
51012
|
it to be traded on DeFi protocols.`,
|
|
50590
|
-
args:
|
|
50591
|
-
tool: async (client,
|
|
50592
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
51013
|
+
args: args67,
|
|
51014
|
+
tool: async (client, args68, ctx) => {
|
|
51015
|
+
const [result, apiCall] = await universalWrapEth(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50593
51016
|
if (!result.ok) {
|
|
50594
51017
|
return {
|
|
50595
51018
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50606,7 +51029,7 @@ it to be traded on DeFi protocols.`,
|
|
|
50606
51029
|
function createMCPServer(deps) {
|
|
50607
51030
|
const server = new McpServer({
|
|
50608
51031
|
name: "CompassApiSDK",
|
|
50609
|
-
version: "0.1.
|
|
51032
|
+
version: "0.1.7"
|
|
50610
51033
|
});
|
|
50611
51034
|
const client = new CompassApiSDKCore({
|
|
50612
51035
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -50681,6 +51104,8 @@ function createMCPServer(deps) {
|
|
|
50681
51104
|
tool(tool$universalWrapEth);
|
|
50682
51105
|
tool(tool$universalUnwrapWeth);
|
|
50683
51106
|
tool(tool$universalAllowanceSet);
|
|
51107
|
+
tool(tool$pendlePosition);
|
|
51108
|
+
tool(tool$pendleMarket);
|
|
50684
51109
|
tool(tool$transactionBatchingAuthorization);
|
|
50685
51110
|
tool(tool$transactionBatchingExecute);
|
|
50686
51111
|
tool(tool$transactionBatchingAaveLoop);
|
|
@@ -50726,6 +51151,8 @@ var init_server2 = __esm(() => {
|
|
|
50726
51151
|
init_morphoVaults2();
|
|
50727
51152
|
init_morphoWithdraw2();
|
|
50728
51153
|
init_morphoWithdrawCollateral2();
|
|
51154
|
+
init_pendleMarket2();
|
|
51155
|
+
init_pendlePosition2();
|
|
50729
51156
|
init_skyBuy2();
|
|
50730
51157
|
init_skyDeposit2();
|
|
50731
51158
|
init_skyPosition2();
|
|
@@ -51947,7 +52374,7 @@ var routes = an({
|
|
|
51947
52374
|
var app = He(routes, {
|
|
51948
52375
|
name: "mcp",
|
|
51949
52376
|
versionInfo: {
|
|
51950
|
-
currentVersion: "0.1.
|
|
52377
|
+
currentVersion: "0.1.7"
|
|
51951
52378
|
}
|
|
51952
52379
|
});
|
|
51953
52380
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -51955,5 +52382,5 @@ export {
|
|
|
51955
52382
|
app
|
|
51956
52383
|
};
|
|
51957
52384
|
|
|
51958
|
-
//# debugId=
|
|
52385
|
+
//# debugId=2A07D85B3C9972AC64756E2164756E21
|
|
51959
52386
|
//# sourceMappingURL=mcp-server.js.map
|