@compass-labs/api-sdk 0.1.4 → 0.1.6
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 +5 -0
- package/bin/mcp-server.js +441 -260
- package/bin/mcp-server.js.map +15 -11
- package/dist/commonjs/funcs/pendleAccruedInterest.d.ts +15 -0
- package/dist/commonjs/funcs/pendleAccruedInterest.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleAccruedInterest.js +119 -0
- package/dist/commonjs/funcs/pendleAccruedInterest.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.js +62 -0
- package/dist/commonjs/mcp-server/tools/pendleAccruedInterest.js.map +1 -0
- package/dist/commonjs/models/components/contractname.d.ts +6 -0
- package/dist/commonjs/models/components/contractname.d.ts.map +1 -1
- package/dist/commonjs/models/components/contractname.js +2 -0
- package/dist/commonjs/models/components/contractname.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/pendleaccruedinterestresponse.d.ts +32 -0
- package/dist/commonjs/models/components/pendleaccruedinterestresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendleaccruedinterestresponse.js +78 -0
- package/dist/commonjs/models/components/pendleaccruedinterestresponse.js.map +1 -0
- package/dist/commonjs/models/components/txresponse.d.ts +3 -2
- package/dist/commonjs/models/components/txresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/txresponse.js +3 -0
- package/dist/commonjs/models/components/txresponse.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/pendleaccruedinterest.d.ts +77 -0
- package/dist/commonjs/models/operations/pendleaccruedinterest.d.ts.map +1 -0
- package/dist/commonjs/models/operations/pendleaccruedinterest.js +107 -0
- package/dist/commonjs/models/operations/pendleaccruedinterest.js.map +1 -0
- package/dist/commonjs/sdk/pendle.d.ts +10 -0
- package/dist/commonjs/sdk/pendle.d.ts.map +1 -0
- package/dist/commonjs/sdk/pendle.js +19 -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/pendleAccruedInterest.d.ts +15 -0
- package/dist/esm/funcs/pendleAccruedInterest.d.ts.map +1 -0
- package/dist/esm/funcs/pendleAccruedInterest.js +83 -0
- package/dist/esm/funcs/pendleAccruedInterest.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleAccruedInterest.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleAccruedInterest.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleAccruedInterest.js +26 -0
- package/dist/esm/mcp-server/tools/pendleAccruedInterest.js.map +1 -0
- package/dist/esm/models/components/contractname.d.ts +6 -0
- package/dist/esm/models/components/contractname.d.ts.map +1 -1
- package/dist/esm/models/components/contractname.js +2 -0
- package/dist/esm/models/components/contractname.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/pendleaccruedinterestresponse.d.ts +32 -0
- package/dist/esm/models/components/pendleaccruedinterestresponse.d.ts.map +1 -0
- package/dist/esm/models/components/pendleaccruedinterestresponse.js +40 -0
- package/dist/esm/models/components/pendleaccruedinterestresponse.js.map +1 -0
- package/dist/esm/models/components/txresponse.d.ts +3 -2
- package/dist/esm/models/components/txresponse.d.ts.map +1 -1
- package/dist/esm/models/components/txresponse.js +3 -0
- package/dist/esm/models/components/txresponse.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/pendleaccruedinterest.d.ts +77 -0
- package/dist/esm/models/operations/pendleaccruedinterest.d.ts.map +1 -0
- package/dist/esm/models/operations/pendleaccruedinterest.js +69 -0
- package/dist/esm/models/operations/pendleaccruedinterest.js.map +1 -0
- package/dist/esm/sdk/pendle.d.ts +10 -0
- package/dist/esm/sdk/pendle.d.ts.map +1 -0
- package/dist/esm/sdk/pendle.js +15 -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 +89 -0
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/pendleAccruedInterest.ts +168 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/pendleAccruedInterest.ts +35 -0
- package/src/models/components/contractname.ts +2 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/pendleaccruedinterestresponse.ts +80 -0
- package/src/models/components/txresponse.ts +14 -2
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/pendleaccruedinterest.ts +139 -0
- package/src/sdk/pendle.ts +25 -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.
|
|
34233
|
-
genVersion: "2.
|
|
34234
|
-
userAgent: "speakeasy-sdk/typescript 0.1.
|
|
34232
|
+
sdkVersion: "0.1.6",
|
|
34233
|
+
genVersion: "2.610.0",
|
|
34234
|
+
userAgent: "speakeasy-sdk/typescript 0.1.6 2.610.0 0.0.1 @compass-labs/api-sdk"
|
|
34235
34235
|
};
|
|
34236
34236
|
});
|
|
34237
34237
|
|
|
@@ -37563,6 +37563,8 @@ var init_contractname = __esm(() => {
|
|
|
37563
37563
|
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
37564
37564
|
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
37565
37565
|
SkyUsdsVault: "SkyUsdsVault",
|
|
37566
|
+
PendleYt: "PendleYt",
|
|
37567
|
+
PendleMarket: "PendleMarket",
|
|
37566
37568
|
Multicall: "Multicall"
|
|
37567
37569
|
};
|
|
37568
37570
|
ContractName$inboundSchema = nativeEnumType(ContractName);
|
|
@@ -40072,6 +40074,31 @@ var init_multicallexecuterequest = __esm(() => {
|
|
|
40072
40074
|
})(MulticallExecuteRequest$ ||= {});
|
|
40073
40075
|
});
|
|
40074
40076
|
|
|
40077
|
+
// src/models/components/pendleaccruedinterestresponse.ts
|
|
40078
|
+
var PendleAccruedInterestResponse$inboundSchema, PendleAccruedInterestResponse$outboundSchema, PendleAccruedInterestResponse$;
|
|
40079
|
+
var init_pendleaccruedinterestresponse = __esm(() => {
|
|
40080
|
+
init_esm();
|
|
40081
|
+
init_primitives();
|
|
40082
|
+
PendleAccruedInterestResponse$inboundSchema = objectType({
|
|
40083
|
+
accrued_interest: numberType().int()
|
|
40084
|
+
}).transform((v2) => {
|
|
40085
|
+
return remap(v2, {
|
|
40086
|
+
accrued_interest: "accruedInterest"
|
|
40087
|
+
});
|
|
40088
|
+
});
|
|
40089
|
+
PendleAccruedInterestResponse$outboundSchema = objectType({
|
|
40090
|
+
accruedInterest: numberType().int()
|
|
40091
|
+
}).transform((v2) => {
|
|
40092
|
+
return remap(v2, {
|
|
40093
|
+
accruedInterest: "accrued_interest"
|
|
40094
|
+
});
|
|
40095
|
+
});
|
|
40096
|
+
((PendleAccruedInterestResponse$) => {
|
|
40097
|
+
PendleAccruedInterestResponse$.inboundSchema = PendleAccruedInterestResponse$inboundSchema;
|
|
40098
|
+
PendleAccruedInterestResponse$.outboundSchema = PendleAccruedInterestResponse$outboundSchema;
|
|
40099
|
+
})(PendleAccruedInterestResponse$ ||= {});
|
|
40100
|
+
});
|
|
40101
|
+
|
|
40075
40102
|
// src/models/components/tokenbalance.ts
|
|
40076
40103
|
var TokenBalance$inboundSchema, TokenBalance$outboundSchema, TokenBalance$;
|
|
40077
40104
|
var init_tokenbalance = __esm(() => {
|
|
@@ -40465,6 +40492,41 @@ var init_tokentransferrequest = __esm(() => {
|
|
|
40465
40492
|
})(TokenTransferRequest$ ||= {});
|
|
40466
40493
|
});
|
|
40467
40494
|
|
|
40495
|
+
// src/models/components/unsignedmulticalltransaction.ts
|
|
40496
|
+
var UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, UnsignedMulticallTransaction$;
|
|
40497
|
+
var init_unsignedmulticalltransaction = __esm(() => {
|
|
40498
|
+
init_esm();
|
|
40499
|
+
init_signedauthorization();
|
|
40500
|
+
UnsignedMulticallTransaction$inboundSchema = objectType({
|
|
40501
|
+
chainId: numberType().int(),
|
|
40502
|
+
data: stringType(),
|
|
40503
|
+
from: stringType(),
|
|
40504
|
+
gas: numberType().int(),
|
|
40505
|
+
to: stringType(),
|
|
40506
|
+
value: numberType().int(),
|
|
40507
|
+
nonce: numberType().int(),
|
|
40508
|
+
maxFeePerGas: numberType().int(),
|
|
40509
|
+
maxPriorityFeePerGas: numberType().int(),
|
|
40510
|
+
authorizationList: arrayType(SignedAuthorization$inboundSchema).optional()
|
|
40511
|
+
});
|
|
40512
|
+
UnsignedMulticallTransaction$outboundSchema = objectType({
|
|
40513
|
+
chainId: numberType().int(),
|
|
40514
|
+
data: stringType(),
|
|
40515
|
+
from: stringType(),
|
|
40516
|
+
gas: numberType().int(),
|
|
40517
|
+
to: stringType(),
|
|
40518
|
+
value: numberType().int(),
|
|
40519
|
+
nonce: numberType().int(),
|
|
40520
|
+
maxFeePerGas: numberType().int(),
|
|
40521
|
+
maxPriorityFeePerGas: numberType().int(),
|
|
40522
|
+
authorizationList: arrayType(SignedAuthorization$outboundSchema).optional()
|
|
40523
|
+
});
|
|
40524
|
+
((UnsignedMulticallTransaction$) => {
|
|
40525
|
+
UnsignedMulticallTransaction$.inboundSchema = UnsignedMulticallTransaction$inboundSchema;
|
|
40526
|
+
UnsignedMulticallTransaction$.outboundSchema = UnsignedMulticallTransaction$outboundSchema;
|
|
40527
|
+
})(UnsignedMulticallTransaction$ ||= {});
|
|
40528
|
+
});
|
|
40529
|
+
|
|
40468
40530
|
// src/models/components/unsignedtransaction.ts
|
|
40469
40531
|
var UnsignedTransaction$inboundSchema, UnsignedTransaction$outboundSchema, UnsignedTransaction$;
|
|
40470
40532
|
var init_unsignedtransaction = __esm(() => {
|
|
@@ -40501,15 +40563,18 @@ var init_unsignedtransaction = __esm(() => {
|
|
|
40501
40563
|
var TxResponse$inboundSchema, TxResponse$outboundSchema, TxResponse$;
|
|
40502
40564
|
var init_txresponse = __esm(() => {
|
|
40503
40565
|
init_esm();
|
|
40566
|
+
init_unsignedmulticalltransaction();
|
|
40504
40567
|
init_unsignedtransaction();
|
|
40505
40568
|
init_useroperationresponse();
|
|
40506
40569
|
TxResponse$inboundSchema = unionType([
|
|
40507
40570
|
UserOperationResponse$inboundSchema,
|
|
40508
|
-
UnsignedTransaction$inboundSchema
|
|
40571
|
+
UnsignedTransaction$inboundSchema,
|
|
40572
|
+
UnsignedMulticallTransaction$inboundSchema
|
|
40509
40573
|
]);
|
|
40510
40574
|
TxResponse$outboundSchema = unionType([
|
|
40511
40575
|
UserOperationResponse$outboundSchema,
|
|
40512
|
-
UnsignedTransaction$outboundSchema
|
|
40576
|
+
UnsignedTransaction$outboundSchema,
|
|
40577
|
+
UnsignedMulticallTransaction$outboundSchema
|
|
40513
40578
|
]);
|
|
40514
40579
|
((TxResponse$) => {
|
|
40515
40580
|
TxResponse$.inboundSchema = TxResponse$inboundSchema;
|
|
@@ -41010,41 +41075,6 @@ var init_uniswapwithdrawliquidityprovisionrequest = __esm(() => {
|
|
|
41010
41075
|
})(UniswapWithdrawLiquidityProvisionRequest$ ||= {});
|
|
41011
41076
|
});
|
|
41012
41077
|
|
|
41013
|
-
// src/models/components/unsignedmulticalltransaction.ts
|
|
41014
|
-
var UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, UnsignedMulticallTransaction$;
|
|
41015
|
-
var init_unsignedmulticalltransaction = __esm(() => {
|
|
41016
|
-
init_esm();
|
|
41017
|
-
init_signedauthorization();
|
|
41018
|
-
UnsignedMulticallTransaction$inboundSchema = objectType({
|
|
41019
|
-
chainId: numberType().int(),
|
|
41020
|
-
data: stringType(),
|
|
41021
|
-
from: stringType(),
|
|
41022
|
-
gas: numberType().int(),
|
|
41023
|
-
to: stringType(),
|
|
41024
|
-
value: numberType().int(),
|
|
41025
|
-
nonce: numberType().int(),
|
|
41026
|
-
maxFeePerGas: numberType().int(),
|
|
41027
|
-
maxPriorityFeePerGas: numberType().int(),
|
|
41028
|
-
authorizationList: arrayType(SignedAuthorization$inboundSchema).optional()
|
|
41029
|
-
});
|
|
41030
|
-
UnsignedMulticallTransaction$outboundSchema = objectType({
|
|
41031
|
-
chainId: numberType().int(),
|
|
41032
|
-
data: stringType(),
|
|
41033
|
-
from: stringType(),
|
|
41034
|
-
gas: numberType().int(),
|
|
41035
|
-
to: stringType(),
|
|
41036
|
-
value: numberType().int(),
|
|
41037
|
-
nonce: numberType().int(),
|
|
41038
|
-
maxFeePerGas: numberType().int(),
|
|
41039
|
-
maxPriorityFeePerGas: numberType().int(),
|
|
41040
|
-
authorizationList: arrayType(SignedAuthorization$outboundSchema).optional()
|
|
41041
|
-
});
|
|
41042
|
-
((UnsignedMulticallTransaction$) => {
|
|
41043
|
-
UnsignedMulticallTransaction$.inboundSchema = UnsignedMulticallTransaction$inboundSchema;
|
|
41044
|
-
UnsignedMulticallTransaction$.outboundSchema = UnsignedMulticallTransaction$outboundSchema;
|
|
41045
|
-
})(UnsignedMulticallTransaction$ ||= {});
|
|
41046
|
-
});
|
|
41047
|
-
|
|
41048
41078
|
// src/models/components/unwrapwethrequest.ts
|
|
41049
41079
|
var UnwrapWethRequestAmount$inboundSchema, UnwrapWethRequestAmount$outboundSchema, UnwrapWethRequestAmount$, UnwrapWethRequest$inboundSchema, UnwrapWethRequest$outboundSchema, UnwrapWethRequest$;
|
|
41050
41080
|
var init_unwrapwethrequest = __esm(() => {
|
|
@@ -41218,6 +41248,7 @@ var init_components = __esm(() => {
|
|
|
41218
41248
|
init_multicallauthorizationrequest();
|
|
41219
41249
|
init_multicallauthorizationresponse();
|
|
41220
41250
|
init_multicallexecuterequest();
|
|
41251
|
+
init_pendleaccruedinterestresponse();
|
|
41221
41252
|
init_portfolio();
|
|
41222
41253
|
init_redeemunderlying();
|
|
41223
41254
|
init_repay();
|
|
@@ -42659,6 +42690,48 @@ var init_morphovaults = __esm(() => {
|
|
|
42659
42690
|
})(MorphoVaultsRequest$ ||= {});
|
|
42660
42691
|
});
|
|
42661
42692
|
|
|
42693
|
+
// src/models/operations/pendleaccruedinterest.ts
|
|
42694
|
+
var PendleAccruedInterestChain, PendleAccruedInterestChain$inboundSchema, PendleAccruedInterestChain$outboundSchema, PendleAccruedInterestChain$, PendleAccruedInterestRequest$inboundSchema, PendleAccruedInterestRequest$outboundSchema, PendleAccruedInterestRequest$;
|
|
42695
|
+
var init_pendleaccruedinterest = __esm(() => {
|
|
42696
|
+
init_esm();
|
|
42697
|
+
init_primitives();
|
|
42698
|
+
PendleAccruedInterestChain = {
|
|
42699
|
+
BaseMainnet: "base:mainnet",
|
|
42700
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
42701
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
42702
|
+
};
|
|
42703
|
+
PendleAccruedInterestChain$inboundSchema = nativeEnumType(PendleAccruedInterestChain);
|
|
42704
|
+
PendleAccruedInterestChain$outboundSchema = PendleAccruedInterestChain$inboundSchema;
|
|
42705
|
+
((PendleAccruedInterestChain$) => {
|
|
42706
|
+
PendleAccruedInterestChain$.inboundSchema = PendleAccruedInterestChain$inboundSchema;
|
|
42707
|
+
PendleAccruedInterestChain$.outboundSchema = PendleAccruedInterestChain$outboundSchema;
|
|
42708
|
+
})(PendleAccruedInterestChain$ ||= {});
|
|
42709
|
+
PendleAccruedInterestRequest$inboundSchema = objectType({
|
|
42710
|
+
chain: PendleAccruedInterestChain$inboundSchema.default("arbitrum:mainnet"),
|
|
42711
|
+
market_address: stringType().default("0xff4d6991658c5844856faef5da9232c252896fca"),
|
|
42712
|
+
user_address: stringType().default("0xebdddbafc3fc3742fe2a3cfec17a20a50e84d598")
|
|
42713
|
+
}).transform((v2) => {
|
|
42714
|
+
return remap(v2, {
|
|
42715
|
+
market_address: "marketAddress",
|
|
42716
|
+
user_address: "userAddress"
|
|
42717
|
+
});
|
|
42718
|
+
});
|
|
42719
|
+
PendleAccruedInterestRequest$outboundSchema = objectType({
|
|
42720
|
+
chain: PendleAccruedInterestChain$outboundSchema.default("arbitrum:mainnet"),
|
|
42721
|
+
marketAddress: stringType().default("0xff4d6991658c5844856faef5da9232c252896fca"),
|
|
42722
|
+
userAddress: stringType().default("0xebdddbafc3fc3742fe2a3cfec17a20a50e84d598")
|
|
42723
|
+
}).transform((v2) => {
|
|
42724
|
+
return remap(v2, {
|
|
42725
|
+
marketAddress: "market_address",
|
|
42726
|
+
userAddress: "user_address"
|
|
42727
|
+
});
|
|
42728
|
+
});
|
|
42729
|
+
((PendleAccruedInterestRequest$) => {
|
|
42730
|
+
PendleAccruedInterestRequest$.inboundSchema = PendleAccruedInterestRequest$inboundSchema;
|
|
42731
|
+
PendleAccruedInterestRequest$.outboundSchema = PendleAccruedInterestRequest$outboundSchema;
|
|
42732
|
+
})(PendleAccruedInterestRequest$ ||= {});
|
|
42733
|
+
});
|
|
42734
|
+
|
|
42662
42735
|
// src/models/operations/skyposition.ts
|
|
42663
42736
|
var SkyPositionRequest$inboundSchema, SkyPositionRequest$outboundSchema, SkyPositionRequest$;
|
|
42664
42737
|
var init_skyposition = __esm(() => {
|
|
@@ -43478,6 +43551,7 @@ var init_operations = __esm(() => {
|
|
|
43478
43551
|
init_morphovault2();
|
|
43479
43552
|
init_morphovaultposition();
|
|
43480
43553
|
init_morphovaults();
|
|
43554
|
+
init_pendleaccruedinterest();
|
|
43481
43555
|
init_skyposition();
|
|
43482
43556
|
init_tokenaddress();
|
|
43483
43557
|
init_tokenbalance2();
|
|
@@ -47266,11 +47340,116 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
47266
47340
|
};
|
|
47267
47341
|
});
|
|
47268
47342
|
|
|
47269
|
-
// src/funcs/
|
|
47270
|
-
function
|
|
47343
|
+
// src/funcs/pendleAccruedInterest.ts
|
|
47344
|
+
function pendleAccruedInterest(client, request, options) {
|
|
47271
47345
|
return new APIPromise($do35(client, request, options));
|
|
47272
47346
|
}
|
|
47273
47347
|
async function $do35(client, request, options) {
|
|
47348
|
+
const parsed = safeParse(request, (value) => PendleAccruedInterestRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47349
|
+
if (!parsed.ok) {
|
|
47350
|
+
return [parsed, { status: "invalid" }];
|
|
47351
|
+
}
|
|
47352
|
+
const payload = parsed.value;
|
|
47353
|
+
const body = null;
|
|
47354
|
+
const path = pathToFunc("/v0/pendle/accrued_interest")();
|
|
47355
|
+
const query = encodeFormQuery({
|
|
47356
|
+
chain: payload.chain,
|
|
47357
|
+
market_address: payload.market_address,
|
|
47358
|
+
user_address: payload.user_address
|
|
47359
|
+
});
|
|
47360
|
+
const headers = new Headers(compactMap({
|
|
47361
|
+
Accept: "application/json"
|
|
47362
|
+
}));
|
|
47363
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
47364
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
47365
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47366
|
+
const context = {
|
|
47367
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47368
|
+
operationID: "pendle_accrued_interest",
|
|
47369
|
+
oAuth2Scopes: [],
|
|
47370
|
+
resolvedSecurity: requestSecurity,
|
|
47371
|
+
securitySource: client._options.apiKeyAuth,
|
|
47372
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
47373
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
47374
|
+
};
|
|
47375
|
+
const requestRes = client._createRequest(context, {
|
|
47376
|
+
security: requestSecurity,
|
|
47377
|
+
method: "GET",
|
|
47378
|
+
baseURL: options?.serverURL,
|
|
47379
|
+
path,
|
|
47380
|
+
headers,
|
|
47381
|
+
query,
|
|
47382
|
+
body,
|
|
47383
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47384
|
+
}, options);
|
|
47385
|
+
if (!requestRes.ok) {
|
|
47386
|
+
return [requestRes, { status: "invalid" }];
|
|
47387
|
+
}
|
|
47388
|
+
const req = requestRes.value;
|
|
47389
|
+
const doResult = await client._do(req, {
|
|
47390
|
+
context,
|
|
47391
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
47392
|
+
retryConfig: context.retryConfig,
|
|
47393
|
+
retryCodes: context.retryCodes
|
|
47394
|
+
});
|
|
47395
|
+
if (!doResult.ok) {
|
|
47396
|
+
return [doResult, { status: "request-error", request: req }];
|
|
47397
|
+
}
|
|
47398
|
+
const response = doResult.value;
|
|
47399
|
+
const responseFields = {
|
|
47400
|
+
HttpMeta: { Response: response, Request: req }
|
|
47401
|
+
};
|
|
47402
|
+
const [result] = await match(json(200, PendleAccruedInterestResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47403
|
+
if (!result.ok) {
|
|
47404
|
+
return [result, { status: "complete", request: req, response }];
|
|
47405
|
+
}
|
|
47406
|
+
return [result, { status: "complete", request: req, response }];
|
|
47407
|
+
}
|
|
47408
|
+
var init_pendleAccruedInterest = __esm(() => {
|
|
47409
|
+
init_encodings();
|
|
47410
|
+
init_matchers();
|
|
47411
|
+
init_primitives();
|
|
47412
|
+
init_schemas();
|
|
47413
|
+
init_security();
|
|
47414
|
+
init_url();
|
|
47415
|
+
init_components();
|
|
47416
|
+
init_errors2();
|
|
47417
|
+
init_operations();
|
|
47418
|
+
init_async();
|
|
47419
|
+
});
|
|
47420
|
+
|
|
47421
|
+
// src/mcp-server/tools/pendleAccruedInterest.ts
|
|
47422
|
+
var args35, tool$pendleAccruedInterest;
|
|
47423
|
+
var init_pendleAccruedInterest2 = __esm(() => {
|
|
47424
|
+
init_pendleAccruedInterest();
|
|
47425
|
+
init_operations();
|
|
47426
|
+
init_tools();
|
|
47427
|
+
args35 = {
|
|
47428
|
+
request: PendleAccruedInterestRequest$inboundSchema
|
|
47429
|
+
};
|
|
47430
|
+
tool$pendleAccruedInterest = {
|
|
47431
|
+
name: "pendle-accrued-interest",
|
|
47432
|
+
description: `Get Accrued Interest`,
|
|
47433
|
+
args: args35,
|
|
47434
|
+
tool: async (client, args36, ctx) => {
|
|
47435
|
+
const [result, apiCall] = await pendleAccruedInterest(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47436
|
+
if (!result.ok) {
|
|
47437
|
+
return {
|
|
47438
|
+
content: [{ type: "text", text: result.error.message }],
|
|
47439
|
+
isError: true
|
|
47440
|
+
};
|
|
47441
|
+
}
|
|
47442
|
+
const value = result.value;
|
|
47443
|
+
return formatResult(value, apiCall);
|
|
47444
|
+
}
|
|
47445
|
+
};
|
|
47446
|
+
});
|
|
47447
|
+
|
|
47448
|
+
// src/funcs/skyBuy.ts
|
|
47449
|
+
function skyBuy(client, request, options) {
|
|
47450
|
+
return new APIPromise($do36(client, request, options));
|
|
47451
|
+
}
|
|
47452
|
+
async function $do36(client, request, options) {
|
|
47274
47453
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47275
47454
|
if (!parsed.ok) {
|
|
47276
47455
|
return [parsed, { status: "invalid" }];
|
|
@@ -47339,12 +47518,12 @@ var init_skyBuy = __esm(() => {
|
|
|
47339
47518
|
});
|
|
47340
47519
|
|
|
47341
47520
|
// src/mcp-server/tools/skyBuy.ts
|
|
47342
|
-
var
|
|
47521
|
+
var args36, tool$skyBuy;
|
|
47343
47522
|
var init_skyBuy2 = __esm(() => {
|
|
47344
47523
|
init_skyBuy();
|
|
47345
47524
|
init_components();
|
|
47346
47525
|
init_tools();
|
|
47347
|
-
|
|
47526
|
+
args36 = {
|
|
47348
47527
|
request: SkyBuyRequest$inboundSchema
|
|
47349
47528
|
};
|
|
47350
47529
|
tool$skyBuy = {
|
|
@@ -47358,9 +47537,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
47358
47537
|
|
|
47359
47538
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
47360
47539
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
47361
|
-
args:
|
|
47362
|
-
tool: async (client,
|
|
47363
|
-
const [result, apiCall] = await skyBuy(client,
|
|
47540
|
+
args: args36,
|
|
47541
|
+
tool: async (client, args37, ctx) => {
|
|
47542
|
+
const [result, apiCall] = await skyBuy(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47364
47543
|
if (!result.ok) {
|
|
47365
47544
|
return {
|
|
47366
47545
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47375,9 +47554,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
47375
47554
|
|
|
47376
47555
|
// src/funcs/skyDeposit.ts
|
|
47377
47556
|
function skyDeposit(client, request, options) {
|
|
47378
|
-
return new APIPromise($
|
|
47557
|
+
return new APIPromise($do37(client, request, options));
|
|
47379
47558
|
}
|
|
47380
|
-
async function $
|
|
47559
|
+
async function $do37(client, request, options) {
|
|
47381
47560
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47382
47561
|
if (!parsed.ok) {
|
|
47383
47562
|
return [parsed, { status: "invalid" }];
|
|
@@ -47446,12 +47625,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
47446
47625
|
});
|
|
47447
47626
|
|
|
47448
47627
|
// src/mcp-server/tools/skyDeposit.ts
|
|
47449
|
-
var
|
|
47628
|
+
var args37, tool$skyDeposit;
|
|
47450
47629
|
var init_skyDeposit2 = __esm(() => {
|
|
47451
47630
|
init_skyDeposit();
|
|
47452
47631
|
init_components();
|
|
47453
47632
|
init_tools();
|
|
47454
|
-
|
|
47633
|
+
args37 = {
|
|
47455
47634
|
request: SkyDepositRequest$inboundSchema
|
|
47456
47635
|
};
|
|
47457
47636
|
tool$skyDeposit = {
|
|
@@ -47461,9 +47640,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
47461
47640
|
Deposit USDS for sUSDS to earn yield.
|
|
47462
47641
|
|
|
47463
47642
|
There are no fees.`,
|
|
47464
|
-
args:
|
|
47465
|
-
tool: async (client,
|
|
47466
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
47643
|
+
args: args37,
|
|
47644
|
+
tool: async (client, args38, ctx) => {
|
|
47645
|
+
const [result, apiCall] = await skyDeposit(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47467
47646
|
if (!result.ok) {
|
|
47468
47647
|
return {
|
|
47469
47648
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47478,9 +47657,9 @@ There are no fees.`,
|
|
|
47478
47657
|
|
|
47479
47658
|
// src/funcs/skyPosition.ts
|
|
47480
47659
|
function skyPosition(client, request, options) {
|
|
47481
|
-
return new APIPromise($
|
|
47660
|
+
return new APIPromise($do38(client, request, options));
|
|
47482
47661
|
}
|
|
47483
|
-
async function $
|
|
47662
|
+
async function $do38(client, request, options) {
|
|
47484
47663
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47485
47664
|
if (!parsed.ok) {
|
|
47486
47665
|
return [parsed, { status: "invalid" }];
|
|
@@ -47554,12 +47733,12 @@ var init_skyPosition = __esm(() => {
|
|
|
47554
47733
|
});
|
|
47555
47734
|
|
|
47556
47735
|
// src/mcp-server/tools/skyPosition.ts
|
|
47557
|
-
var
|
|
47736
|
+
var args38, tool$skyPosition;
|
|
47558
47737
|
var init_skyPosition2 = __esm(() => {
|
|
47559
47738
|
init_skyPosition();
|
|
47560
47739
|
init_operations();
|
|
47561
47740
|
init_tools();
|
|
47562
|
-
|
|
47741
|
+
args38 = {
|
|
47563
47742
|
request: SkyPositionRequest$inboundSchema
|
|
47564
47743
|
};
|
|
47565
47744
|
tool$skyPosition = {
|
|
@@ -47567,9 +47746,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
47567
47746
|
description: `Check USDS Position
|
|
47568
47747
|
|
|
47569
47748
|
Check the USDS overall position.`,
|
|
47570
|
-
args:
|
|
47571
|
-
tool: async (client,
|
|
47572
|
-
const [result, apiCall] = await skyPosition(client,
|
|
47749
|
+
args: args38,
|
|
47750
|
+
tool: async (client, args39, ctx) => {
|
|
47751
|
+
const [result, apiCall] = await skyPosition(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47573
47752
|
if (!result.ok) {
|
|
47574
47753
|
return {
|
|
47575
47754
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47584,9 +47763,9 @@ Check the USDS overall position.`,
|
|
|
47584
47763
|
|
|
47585
47764
|
// src/funcs/skySell.ts
|
|
47586
47765
|
function skySell(client, request, options) {
|
|
47587
|
-
return new APIPromise($
|
|
47766
|
+
return new APIPromise($do39(client, request, options));
|
|
47588
47767
|
}
|
|
47589
|
-
async function $
|
|
47768
|
+
async function $do39(client, request, options) {
|
|
47590
47769
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47591
47770
|
if (!parsed.ok) {
|
|
47592
47771
|
return [parsed, { status: "invalid" }];
|
|
@@ -47655,12 +47834,12 @@ var init_skySell = __esm(() => {
|
|
|
47655
47834
|
});
|
|
47656
47835
|
|
|
47657
47836
|
// src/mcp-server/tools/skySell.ts
|
|
47658
|
-
var
|
|
47837
|
+
var args39, tool$skySell;
|
|
47659
47838
|
var init_skySell2 = __esm(() => {
|
|
47660
47839
|
init_skySell();
|
|
47661
47840
|
init_components();
|
|
47662
47841
|
init_tools();
|
|
47663
|
-
|
|
47842
|
+
args39 = {
|
|
47664
47843
|
request: SkySellRequest$inboundSchema
|
|
47665
47844
|
};
|
|
47666
47845
|
tool$skySell = {
|
|
@@ -47674,9 +47853,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
47674
47853
|
|
|
47675
47854
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
47676
47855
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
47677
|
-
args:
|
|
47678
|
-
tool: async (client,
|
|
47679
|
-
const [result, apiCall] = await skySell(client,
|
|
47856
|
+
args: args39,
|
|
47857
|
+
tool: async (client, args40, ctx) => {
|
|
47858
|
+
const [result, apiCall] = await skySell(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47680
47859
|
if (!result.ok) {
|
|
47681
47860
|
return {
|
|
47682
47861
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47691,9 +47870,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
47691
47870
|
|
|
47692
47871
|
// src/funcs/skyWithdraw.ts
|
|
47693
47872
|
function skyWithdraw(client, request, options) {
|
|
47694
|
-
return new APIPromise($
|
|
47873
|
+
return new APIPromise($do40(client, request, options));
|
|
47695
47874
|
}
|
|
47696
|
-
async function $
|
|
47875
|
+
async function $do40(client, request, options) {
|
|
47697
47876
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47698
47877
|
if (!parsed.ok) {
|
|
47699
47878
|
return [parsed, { status: "invalid" }];
|
|
@@ -47762,12 +47941,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
47762
47941
|
});
|
|
47763
47942
|
|
|
47764
47943
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
47765
|
-
var
|
|
47944
|
+
var args40, tool$skyWithdraw;
|
|
47766
47945
|
var init_skyWithdraw2 = __esm(() => {
|
|
47767
47946
|
init_skyWithdraw();
|
|
47768
47947
|
init_components();
|
|
47769
47948
|
init_tools();
|
|
47770
|
-
|
|
47949
|
+
args40 = {
|
|
47771
47950
|
request: SkyWithdrawRequest$inboundSchema
|
|
47772
47951
|
};
|
|
47773
47952
|
tool$skyWithdraw = {
|
|
@@ -47775,9 +47954,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
47775
47954
|
description: `Withdraw USDS
|
|
47776
47955
|
|
|
47777
47956
|
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
47778
|
-
args:
|
|
47779
|
-
tool: async (client,
|
|
47780
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
47957
|
+
args: args40,
|
|
47958
|
+
tool: async (client, args41, ctx) => {
|
|
47959
|
+
const [result, apiCall] = await skyWithdraw(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47781
47960
|
if (!result.ok) {
|
|
47782
47961
|
return {
|
|
47783
47962
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47792,9 +47971,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
47792
47971
|
|
|
47793
47972
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
47794
47973
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
47795
|
-
return new APIPromise($
|
|
47974
|
+
return new APIPromise($do41(client, request, options));
|
|
47796
47975
|
}
|
|
47797
|
-
async function $
|
|
47976
|
+
async function $do41(client, request, options) {
|
|
47798
47977
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47799
47978
|
if (!parsed.ok) {
|
|
47800
47979
|
return [parsed, { status: "invalid" }];
|
|
@@ -47863,12 +48042,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
47863
48042
|
});
|
|
47864
48043
|
|
|
47865
48044
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
47866
|
-
var
|
|
48045
|
+
var args41, tool$smartAccountAccountBatchedUserOperations;
|
|
47867
48046
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
47868
48047
|
init_smartAccountAccountBatchedUserOperations();
|
|
47869
48048
|
init_components();
|
|
47870
48049
|
init_tools();
|
|
47871
|
-
|
|
48050
|
+
args41 = {
|
|
47872
48051
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
47873
48052
|
};
|
|
47874
48053
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -47876,9 +48055,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
47876
48055
|
description: `Get Smart Account Batched User Operations
|
|
47877
48056
|
|
|
47878
48057
|
Generate a list of user operations for smart account batching.`,
|
|
47879
|
-
args:
|
|
47880
|
-
tool: async (client,
|
|
47881
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
48058
|
+
args: args41,
|
|
48059
|
+
tool: async (client, args42, ctx) => {
|
|
48060
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47882
48061
|
if (!result.ok) {
|
|
47883
48062
|
return {
|
|
47884
48063
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47893,9 +48072,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
47893
48072
|
|
|
47894
48073
|
// src/funcs/tokenAddress.ts
|
|
47895
48074
|
function tokenAddress(client, request, options) {
|
|
47896
|
-
return new APIPromise($
|
|
48075
|
+
return new APIPromise($do42(client, request, options));
|
|
47897
48076
|
}
|
|
47898
|
-
async function $
|
|
48077
|
+
async function $do42(client, request, options) {
|
|
47899
48078
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47900
48079
|
if (!parsed.ok) {
|
|
47901
48080
|
return [parsed, { status: "invalid" }];
|
|
@@ -47969,12 +48148,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
47969
48148
|
});
|
|
47970
48149
|
|
|
47971
48150
|
// src/mcp-server/tools/tokenAddress.ts
|
|
47972
|
-
var
|
|
48151
|
+
var args42, tool$tokenAddress;
|
|
47973
48152
|
var init_tokenAddress2 = __esm(() => {
|
|
47974
48153
|
init_tokenAddress();
|
|
47975
48154
|
init_operations();
|
|
47976
48155
|
init_tools();
|
|
47977
|
-
|
|
48156
|
+
args42 = {
|
|
47978
48157
|
request: TokenAddressRequest$inboundSchema
|
|
47979
48158
|
};
|
|
47980
48159
|
tool$tokenAddress = {
|
|
@@ -47982,9 +48161,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
47982
48161
|
description: `Token Address
|
|
47983
48162
|
|
|
47984
48163
|
This endpoint retrieves the address for a token supported by us.`,
|
|
47985
|
-
args:
|
|
47986
|
-
tool: async (client,
|
|
47987
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
48164
|
+
args: args42,
|
|
48165
|
+
tool: async (client, args43, ctx) => {
|
|
48166
|
+
const [result, apiCall] = await tokenAddress(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47988
48167
|
if (!result.ok) {
|
|
47989
48168
|
return {
|
|
47990
48169
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47999,9 +48178,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
47999
48178
|
|
|
48000
48179
|
// src/funcs/tokenBalance.ts
|
|
48001
48180
|
function tokenBalance(client, request, options) {
|
|
48002
|
-
return new APIPromise($
|
|
48181
|
+
return new APIPromise($do43(client, request, options));
|
|
48003
48182
|
}
|
|
48004
|
-
async function $
|
|
48183
|
+
async function $do43(client, request, options) {
|
|
48005
48184
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48006
48185
|
if (!parsed.ok) {
|
|
48007
48186
|
return [parsed, { status: "invalid" }];
|
|
@@ -48076,12 +48255,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
48076
48255
|
});
|
|
48077
48256
|
|
|
48078
48257
|
// src/mcp-server/tools/tokenBalance.ts
|
|
48079
|
-
var
|
|
48258
|
+
var args43, tool$tokenBalance;
|
|
48080
48259
|
var init_tokenBalance2 = __esm(() => {
|
|
48081
48260
|
init_tokenBalance();
|
|
48082
48261
|
init_operations();
|
|
48083
48262
|
init_tools();
|
|
48084
|
-
|
|
48263
|
+
args43 = {
|
|
48085
48264
|
request: TokenBalanceRequest$inboundSchema
|
|
48086
48265
|
};
|
|
48087
48266
|
tool$tokenBalance = {
|
|
@@ -48089,9 +48268,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
48089
48268
|
description: `Token Balance
|
|
48090
48269
|
|
|
48091
48270
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
48092
|
-
args:
|
|
48093
|
-
tool: async (client,
|
|
48094
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
48271
|
+
args: args43,
|
|
48272
|
+
tool: async (client, args44, ctx) => {
|
|
48273
|
+
const [result, apiCall] = await tokenBalance(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48095
48274
|
if (!result.ok) {
|
|
48096
48275
|
return {
|
|
48097
48276
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48106,9 +48285,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
48106
48285
|
|
|
48107
48286
|
// src/funcs/tokenPrice.ts
|
|
48108
48287
|
function tokenPrice(client, request, options) {
|
|
48109
|
-
return new APIPromise($
|
|
48288
|
+
return new APIPromise($do44(client, request, options));
|
|
48110
48289
|
}
|
|
48111
|
-
async function $
|
|
48290
|
+
async function $do44(client, request, options) {
|
|
48112
48291
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48113
48292
|
if (!parsed.ok) {
|
|
48114
48293
|
return [parsed, { status: "invalid" }];
|
|
@@ -48182,12 +48361,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
48182
48361
|
});
|
|
48183
48362
|
|
|
48184
48363
|
// src/mcp-server/tools/tokenPrice.ts
|
|
48185
|
-
var
|
|
48364
|
+
var args44, tool$tokenPrice;
|
|
48186
48365
|
var init_tokenPrice2 = __esm(() => {
|
|
48187
48366
|
init_tokenPrice();
|
|
48188
48367
|
init_operations();
|
|
48189
48368
|
init_tools();
|
|
48190
|
-
|
|
48369
|
+
args44 = {
|
|
48191
48370
|
request: TokenPriceRequest$inboundSchema
|
|
48192
48371
|
};
|
|
48193
48372
|
tool$tokenPrice = {
|
|
@@ -48199,9 +48378,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
48199
48378
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
48200
48379
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
48201
48380
|
with the update frequency of the oracle.`,
|
|
48202
|
-
args:
|
|
48203
|
-
tool: async (client,
|
|
48204
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
48381
|
+
args: args44,
|
|
48382
|
+
tool: async (client, args45, ctx) => {
|
|
48383
|
+
const [result, apiCall] = await tokenPrice(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48205
48384
|
if (!result.ok) {
|
|
48206
48385
|
return {
|
|
48207
48386
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48216,9 +48395,9 @@ with the update frequency of the oracle.`,
|
|
|
48216
48395
|
|
|
48217
48396
|
// src/funcs/tokenTransfer.ts
|
|
48218
48397
|
function tokenTransfer(client, request, options) {
|
|
48219
|
-
return new APIPromise($
|
|
48398
|
+
return new APIPromise($do45(client, request, options));
|
|
48220
48399
|
}
|
|
48221
|
-
async function $
|
|
48400
|
+
async function $do45(client, request, options) {
|
|
48222
48401
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48223
48402
|
if (!parsed.ok) {
|
|
48224
48403
|
return [parsed, { status: "invalid" }];
|
|
@@ -48287,12 +48466,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
48287
48466
|
});
|
|
48288
48467
|
|
|
48289
48468
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
48290
|
-
var
|
|
48469
|
+
var args45, tool$tokenTransfer;
|
|
48291
48470
|
var init_tokenTransfer2 = __esm(() => {
|
|
48292
48471
|
init_tokenTransfer();
|
|
48293
48472
|
init_components();
|
|
48294
48473
|
init_tools();
|
|
48295
|
-
|
|
48474
|
+
args45 = {
|
|
48296
48475
|
request: TokenTransferRequest$inboundSchema
|
|
48297
48476
|
};
|
|
48298
48477
|
tool$tokenTransfer = {
|
|
@@ -48300,9 +48479,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
48300
48479
|
description: `Transfer ETH or ERC20 Tokens.
|
|
48301
48480
|
|
|
48302
48481
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
48303
|
-
args:
|
|
48304
|
-
tool: async (client,
|
|
48305
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
48482
|
+
args: args45,
|
|
48483
|
+
tool: async (client, args46, ctx) => {
|
|
48484
|
+
const [result, apiCall] = await tokenTransfer(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48306
48485
|
if (!result.ok) {
|
|
48307
48486
|
return {
|
|
48308
48487
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48317,9 +48496,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
48317
48496
|
|
|
48318
48497
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
48319
48498
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
48320
|
-
return new APIPromise($
|
|
48499
|
+
return new APIPromise($do46(client, request, options));
|
|
48321
48500
|
}
|
|
48322
|
-
async function $
|
|
48501
|
+
async function $do46(client, request, options) {
|
|
48323
48502
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48324
48503
|
if (!parsed.ok) {
|
|
48325
48504
|
return [parsed, { status: "invalid" }];
|
|
@@ -48388,12 +48567,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
48388
48567
|
});
|
|
48389
48568
|
|
|
48390
48569
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
48391
|
-
var
|
|
48570
|
+
var args46, tool$transactionBatchingAaveLoop;
|
|
48392
48571
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
48393
48572
|
init_transactionBatchingAaveLoop();
|
|
48394
48573
|
init_components();
|
|
48395
48574
|
init_tools();
|
|
48396
|
-
|
|
48575
|
+
args46 = {
|
|
48397
48576
|
request: AaveLoopRequest$inboundSchema
|
|
48398
48577
|
};
|
|
48399
48578
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -48411,9 +48590,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
48411
48590
|
- Supplies the swapped tokens
|
|
48412
48591
|
|
|
48413
48592
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
48414
|
-
args:
|
|
48415
|
-
tool: async (client,
|
|
48416
|
-
const [result, apiCall] = await transactionBatchingAaveLoop(client,
|
|
48593
|
+
args: args46,
|
|
48594
|
+
tool: async (client, args47, ctx) => {
|
|
48595
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48417
48596
|
if (!result.ok) {
|
|
48418
48597
|
return {
|
|
48419
48598
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48428,9 +48607,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
48428
48607
|
|
|
48429
48608
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
48430
48609
|
function transactionBatchingAuthorization(client, request, options) {
|
|
48431
|
-
return new APIPromise($
|
|
48610
|
+
return new APIPromise($do47(client, request, options));
|
|
48432
48611
|
}
|
|
48433
|
-
async function $
|
|
48612
|
+
async function $do47(client, request, options) {
|
|
48434
48613
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48435
48614
|
if (!parsed.ok) {
|
|
48436
48615
|
return [parsed, { status: "invalid" }];
|
|
@@ -48499,12 +48678,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
48499
48678
|
});
|
|
48500
48679
|
|
|
48501
48680
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
48502
|
-
var
|
|
48681
|
+
var args47, tool$transactionBatchingAuthorization;
|
|
48503
48682
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
48504
48683
|
init_transactionBatchingAuthorization();
|
|
48505
48684
|
init_components();
|
|
48506
48685
|
init_tools();
|
|
48507
|
-
|
|
48686
|
+
args47 = {
|
|
48508
48687
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
48509
48688
|
};
|
|
48510
48689
|
tool$transactionBatchingAuthorization = {
|
|
@@ -48517,9 +48696,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
48517
48696
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
48518
48697
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
48519
48698
|
targeting.`,
|
|
48520
|
-
args:
|
|
48521
|
-
tool: async (client,
|
|
48522
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
48699
|
+
args: args47,
|
|
48700
|
+
tool: async (client, args48, ctx) => {
|
|
48701
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48523
48702
|
if (!result.ok) {
|
|
48524
48703
|
return {
|
|
48525
48704
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48534,9 +48713,9 @@ targeting.`,
|
|
|
48534
48713
|
|
|
48535
48714
|
// src/funcs/transactionBatchingExecute.ts
|
|
48536
48715
|
function transactionBatchingExecute(client, request, options) {
|
|
48537
|
-
return new APIPromise($
|
|
48716
|
+
return new APIPromise($do48(client, request, options));
|
|
48538
48717
|
}
|
|
48539
|
-
async function $
|
|
48718
|
+
async function $do48(client, request, options) {
|
|
48540
48719
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48541
48720
|
if (!parsed.ok) {
|
|
48542
48721
|
return [parsed, { status: "invalid" }];
|
|
@@ -48605,12 +48784,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
48605
48784
|
});
|
|
48606
48785
|
|
|
48607
48786
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
48608
|
-
var
|
|
48787
|
+
var args48, tool$transactionBatchingExecute;
|
|
48609
48788
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
48610
48789
|
init_transactionBatchingExecute();
|
|
48611
48790
|
init_components();
|
|
48612
48791
|
init_tools();
|
|
48613
|
-
|
|
48792
|
+
args48 = {
|
|
48614
48793
|
request: MulticallExecuteRequest$inboundSchema
|
|
48615
48794
|
};
|
|
48616
48795
|
tool$transactionBatchingExecute = {
|
|
@@ -48623,9 +48802,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
48623
48802
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
48624
48803
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
48625
48804
|
prevent replay attacks.`,
|
|
48626
|
-
args:
|
|
48627
|
-
tool: async (client,
|
|
48628
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
48805
|
+
args: args48,
|
|
48806
|
+
tool: async (client, args49, ctx) => {
|
|
48807
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48629
48808
|
if (!result.ok) {
|
|
48630
48809
|
return {
|
|
48631
48810
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48640,9 +48819,9 @@ prevent replay attacks.`,
|
|
|
48640
48819
|
|
|
48641
48820
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
48642
48821
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
48643
|
-
return new APIPromise($
|
|
48822
|
+
return new APIPromise($do49(client, request, options));
|
|
48644
48823
|
}
|
|
48645
|
-
async function $
|
|
48824
|
+
async function $do49(client, request, options) {
|
|
48646
48825
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48647
48826
|
if (!parsed.ok) {
|
|
48648
48827
|
return [parsed, { status: "invalid" }];
|
|
@@ -48711,12 +48890,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
48711
48890
|
});
|
|
48712
48891
|
|
|
48713
48892
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
48714
|
-
var
|
|
48893
|
+
var args49, tool$uniswapV3LiquidityProvisionIncrease;
|
|
48715
48894
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
48716
48895
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
48717
48896
|
init_components();
|
|
48718
48897
|
init_tools();
|
|
48719
|
-
|
|
48898
|
+
args49 = {
|
|
48720
48899
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
48721
48900
|
};
|
|
48722
48901
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -48732,9 +48911,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
48732
48911
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
48733
48912
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
48734
48913
|
process.`,
|
|
48735
|
-
args:
|
|
48736
|
-
tool: async (client,
|
|
48737
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
48914
|
+
args: args49,
|
|
48915
|
+
tool: async (client, args50, ctx) => {
|
|
48916
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48738
48917
|
if (!result.ok) {
|
|
48739
48918
|
return {
|
|
48740
48919
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48749,9 +48928,9 @@ process.`,
|
|
|
48749
48928
|
|
|
48750
48929
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
48751
48930
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
48752
|
-
return new APIPromise($
|
|
48931
|
+
return new APIPromise($do50(client, request, options));
|
|
48753
48932
|
}
|
|
48754
|
-
async function $
|
|
48933
|
+
async function $do50(client, request, options) {
|
|
48755
48934
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48756
48935
|
if (!parsed.ok) {
|
|
48757
48936
|
return [parsed, { status: "invalid" }];
|
|
@@ -48825,12 +49004,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
48825
49004
|
});
|
|
48826
49005
|
|
|
48827
49006
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
48828
|
-
var
|
|
49007
|
+
var args50, tool$uniswapV3LiquidityProvisionInRange;
|
|
48829
49008
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
48830
49009
|
init_uniswapV3LiquidityProvisionInRange();
|
|
48831
49010
|
init_operations();
|
|
48832
49011
|
init_tools();
|
|
48833
|
-
|
|
49012
|
+
args50 = {
|
|
48834
49013
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
48835
49014
|
};
|
|
48836
49015
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -48845,9 +49024,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
48845
49024
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
48846
49025
|
they are actively participating in the trading activities within the liquidity pool
|
|
48847
49026
|
and earning trading fees.`,
|
|
48848
|
-
args:
|
|
48849
|
-
tool: async (client,
|
|
48850
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
49027
|
+
args: args50,
|
|
49028
|
+
tool: async (client, args51, ctx) => {
|
|
49029
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48851
49030
|
if (!result.ok) {
|
|
48852
49031
|
return {
|
|
48853
49032
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48862,9 +49041,9 @@ and earning trading fees.`,
|
|
|
48862
49041
|
|
|
48863
49042
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
48864
49043
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
48865
|
-
return new APIPromise($
|
|
49044
|
+
return new APIPromise($do51(client, request, options));
|
|
48866
49045
|
}
|
|
48867
|
-
async function $
|
|
49046
|
+
async function $do51(client, request, options) {
|
|
48868
49047
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48869
49048
|
if (!parsed.ok) {
|
|
48870
49049
|
return [parsed, { status: "invalid" }];
|
|
@@ -48933,12 +49112,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
48933
49112
|
});
|
|
48934
49113
|
|
|
48935
49114
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
48936
|
-
var
|
|
49115
|
+
var args51, tool$uniswapV3LiquidityProvisionMint;
|
|
48937
49116
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
48938
49117
|
init_uniswapV3LiquidityProvisionMint();
|
|
48939
49118
|
init_components();
|
|
48940
49119
|
init_tools();
|
|
48941
|
-
|
|
49120
|
+
args51 = {
|
|
48942
49121
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
48943
49122
|
};
|
|
48944
49123
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -48954,9 +49133,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
48954
49133
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
48955
49134
|
requires details such as the token pair, amount, and any additional parameters
|
|
48956
49135
|
needed for the minting process.`,
|
|
48957
|
-
args:
|
|
48958
|
-
tool: async (client,
|
|
48959
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
49136
|
+
args: args51,
|
|
49137
|
+
tool: async (client, args52, ctx) => {
|
|
49138
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48960
49139
|
if (!result.ok) {
|
|
48961
49140
|
return {
|
|
48962
49141
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48971,9 +49150,9 @@ needed for the minting process.`,
|
|
|
48971
49150
|
|
|
48972
49151
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
48973
49152
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
48974
|
-
return new APIPromise($
|
|
49153
|
+
return new APIPromise($do52(client, request, options));
|
|
48975
49154
|
}
|
|
48976
|
-
async function $
|
|
49155
|
+
async function $do52(client, request, options) {
|
|
48977
49156
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48978
49157
|
if (!parsed.ok) {
|
|
48979
49158
|
return [parsed, { status: "invalid" }];
|
|
@@ -49047,12 +49226,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
49047
49226
|
});
|
|
49048
49227
|
|
|
49049
49228
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
49050
|
-
var
|
|
49229
|
+
var args52, tool$uniswapV3LiquidityProvisionPositions;
|
|
49051
49230
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
49052
49231
|
init_uniswapV3LiquidityProvisionPositions();
|
|
49053
49232
|
init_operations();
|
|
49054
49233
|
init_tools();
|
|
49055
|
-
|
|
49234
|
+
args52 = {
|
|
49056
49235
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
49057
49236
|
};
|
|
49058
49237
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -49066,9 +49245,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
49066
49245
|
positions, including the total number of positions and relevant metadata. This
|
|
49067
49246
|
information is crucial for users to manage and analyze their liquidity provision
|
|
49068
49247
|
activities effectively.`,
|
|
49069
|
-
args:
|
|
49070
|
-
tool: async (client,
|
|
49071
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
49248
|
+
args: args52,
|
|
49249
|
+
tool: async (client, args53, ctx) => {
|
|
49250
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49072
49251
|
if (!result.ok) {
|
|
49073
49252
|
return {
|
|
49074
49253
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49083,9 +49262,9 @@ activities effectively.`,
|
|
|
49083
49262
|
|
|
49084
49263
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
49085
49264
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
49086
|
-
return new APIPromise($
|
|
49265
|
+
return new APIPromise($do53(client, request, options));
|
|
49087
49266
|
}
|
|
49088
|
-
async function $
|
|
49267
|
+
async function $do53(client, request, options) {
|
|
49089
49268
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49090
49269
|
if (!parsed.ok) {
|
|
49091
49270
|
return [parsed, { status: "invalid" }];
|
|
@@ -49154,12 +49333,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
49154
49333
|
});
|
|
49155
49334
|
|
|
49156
49335
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
49157
|
-
var
|
|
49336
|
+
var args53, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
49158
49337
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
49159
49338
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
49160
49339
|
init_components();
|
|
49161
49340
|
init_tools();
|
|
49162
|
-
|
|
49341
|
+
args53 = {
|
|
49163
49342
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
49164
49343
|
};
|
|
49165
49344
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -49176,9 +49355,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
49176
49355
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
49177
49356
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
49178
49357
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
49179
|
-
args:
|
|
49180
|
-
tool: async (client,
|
|
49181
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
49358
|
+
args: args53,
|
|
49359
|
+
tool: async (client, args54, ctx) => {
|
|
49360
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49182
49361
|
if (!result.ok) {
|
|
49183
49362
|
return {
|
|
49184
49363
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49193,9 +49372,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
49193
49372
|
|
|
49194
49373
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
49195
49374
|
function uniswapV3PoolPrice(client, request, options) {
|
|
49196
|
-
return new APIPromise($
|
|
49375
|
+
return new APIPromise($do54(client, request, options));
|
|
49197
49376
|
}
|
|
49198
|
-
async function $
|
|
49377
|
+
async function $do54(client, request, options) {
|
|
49199
49378
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49200
49379
|
if (!parsed.ok) {
|
|
49201
49380
|
return [parsed, { status: "invalid" }];
|
|
@@ -49271,12 +49450,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
49271
49450
|
});
|
|
49272
49451
|
|
|
49273
49452
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
49274
|
-
var
|
|
49453
|
+
var args54, tool$uniswapV3PoolPrice;
|
|
49275
49454
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
49276
49455
|
init_uniswapV3PoolPrice();
|
|
49277
49456
|
init_operations();
|
|
49278
49457
|
init_tools();
|
|
49279
|
-
|
|
49458
|
+
args54 = {
|
|
49280
49459
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
49281
49460
|
};
|
|
49282
49461
|
tool$uniswapV3PoolPrice = {
|
|
@@ -49286,9 +49465,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
49286
49465
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
49287
49466
|
|
|
49288
49467
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
49289
|
-
args:
|
|
49290
|
-
tool: async (client,
|
|
49291
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
49468
|
+
args: args54,
|
|
49469
|
+
tool: async (client, args55, ctx) => {
|
|
49470
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49292
49471
|
if (!result.ok) {
|
|
49293
49472
|
return {
|
|
49294
49473
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49303,9 +49482,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
49303
49482
|
|
|
49304
49483
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
49305
49484
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
49306
|
-
return new APIPromise($
|
|
49485
|
+
return new APIPromise($do55(client, request, options));
|
|
49307
49486
|
}
|
|
49308
|
-
async function $
|
|
49487
|
+
async function $do55(client, request, options) {
|
|
49309
49488
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49310
49489
|
if (!parsed.ok) {
|
|
49311
49490
|
return [parsed, { status: "invalid" }];
|
|
@@ -49382,12 +49561,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
49382
49561
|
});
|
|
49383
49562
|
|
|
49384
49563
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
49385
|
-
var
|
|
49564
|
+
var args55, tool$uniswapV3QuoteBuyExactly;
|
|
49386
49565
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
49387
49566
|
init_uniswapV3QuoteBuyExactly();
|
|
49388
49567
|
init_operations();
|
|
49389
49568
|
init_tools();
|
|
49390
|
-
|
|
49569
|
+
args55 = {
|
|
49391
49570
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
49392
49571
|
};
|
|
49393
49572
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -49399,9 +49578,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
49399
49578
|
|
|
49400
49579
|
It also provides the resulting price after the transaction. The calculation takes
|
|
49401
49580
|
into account the current pool state and the specified fee tier.`,
|
|
49402
|
-
args:
|
|
49403
|
-
tool: async (client,
|
|
49404
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
49581
|
+
args: args55,
|
|
49582
|
+
tool: async (client, args56, ctx) => {
|
|
49583
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49405
49584
|
if (!result.ok) {
|
|
49406
49585
|
return {
|
|
49407
49586
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49416,9 +49595,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
49416
49595
|
|
|
49417
49596
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
49418
49597
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
49419
|
-
return new APIPromise($
|
|
49598
|
+
return new APIPromise($do56(client, request, options));
|
|
49420
49599
|
}
|
|
49421
|
-
async function $
|
|
49600
|
+
async function $do56(client, request, options) {
|
|
49422
49601
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49423
49602
|
if (!parsed.ok) {
|
|
49424
49603
|
return [parsed, { status: "invalid" }];
|
|
@@ -49495,12 +49674,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
49495
49674
|
});
|
|
49496
49675
|
|
|
49497
49676
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
49498
|
-
var
|
|
49677
|
+
var args56, tool$uniswapV3QuoteSellExactly;
|
|
49499
49678
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
49500
49679
|
init_uniswapV3QuoteSellExactly();
|
|
49501
49680
|
init_operations();
|
|
49502
49681
|
init_tools();
|
|
49503
|
-
|
|
49682
|
+
args56 = {
|
|
49504
49683
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
49505
49684
|
};
|
|
49506
49685
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -49512,9 +49691,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
49512
49691
|
|
|
49513
49692
|
It also provides the resulting price after the transaction. The calculation takes
|
|
49514
49693
|
into account the current pool state and the specified fee tier.`,
|
|
49515
|
-
args:
|
|
49516
|
-
tool: async (client,
|
|
49517
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
49694
|
+
args: args56,
|
|
49695
|
+
tool: async (client, args57, ctx) => {
|
|
49696
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49518
49697
|
if (!result.ok) {
|
|
49519
49698
|
return {
|
|
49520
49699
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49529,9 +49708,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
49529
49708
|
|
|
49530
49709
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
49531
49710
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
49532
|
-
return new APIPromise($
|
|
49711
|
+
return new APIPromise($do57(client, request, options));
|
|
49533
49712
|
}
|
|
49534
|
-
async function $
|
|
49713
|
+
async function $do57(client, request, options) {
|
|
49535
49714
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49536
49715
|
if (!parsed.ok) {
|
|
49537
49716
|
return [parsed, { status: "invalid" }];
|
|
@@ -49600,12 +49779,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
49600
49779
|
});
|
|
49601
49780
|
|
|
49602
49781
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
49603
|
-
var
|
|
49782
|
+
var args57, tool$uniswapV3SwapBuyExactly;
|
|
49604
49783
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
49605
49784
|
init_uniswapV3SwapBuyExactly();
|
|
49606
49785
|
init_components();
|
|
49607
49786
|
init_tools();
|
|
49608
|
-
|
|
49787
|
+
args57 = {
|
|
49609
49788
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
49610
49789
|
};
|
|
49611
49790
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -49619,9 +49798,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
49619
49798
|
provide the necessary transaction details, including the token to buy, the token to
|
|
49620
49799
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
49621
49800
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
49622
|
-
args:
|
|
49623
|
-
tool: async (client,
|
|
49624
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
49801
|
+
args: args57,
|
|
49802
|
+
tool: async (client, args58, ctx) => {
|
|
49803
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49625
49804
|
if (!result.ok) {
|
|
49626
49805
|
return {
|
|
49627
49806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49636,9 +49815,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
49636
49815
|
|
|
49637
49816
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
49638
49817
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
49639
|
-
return new APIPromise($
|
|
49818
|
+
return new APIPromise($do58(client, request, options));
|
|
49640
49819
|
}
|
|
49641
|
-
async function $
|
|
49820
|
+
async function $do58(client, request, options) {
|
|
49642
49821
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49643
49822
|
if (!parsed.ok) {
|
|
49644
49823
|
return [parsed, { status: "invalid" }];
|
|
@@ -49707,12 +49886,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
49707
49886
|
});
|
|
49708
49887
|
|
|
49709
49888
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
49710
|
-
var
|
|
49889
|
+
var args58, tool$uniswapV3SwapSellExactly;
|
|
49711
49890
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
49712
49891
|
init_uniswapV3SwapSellExactly();
|
|
49713
49892
|
init_components();
|
|
49714
49893
|
init_tools();
|
|
49715
|
-
|
|
49894
|
+
args58 = {
|
|
49716
49895
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
49717
49896
|
};
|
|
49718
49897
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -49726,9 +49905,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
49726
49905
|
provide the necessary transaction details, including the token to sell, the token to
|
|
49727
49906
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
49728
49907
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
49729
|
-
args:
|
|
49730
|
-
tool: async (client,
|
|
49731
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
49908
|
+
args: args58,
|
|
49909
|
+
tool: async (client, args59, ctx) => {
|
|
49910
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49732
49911
|
if (!result.ok) {
|
|
49733
49912
|
return {
|
|
49734
49913
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49743,9 +49922,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
49743
49922
|
|
|
49744
49923
|
// src/funcs/universalAllowance.ts
|
|
49745
49924
|
function universalAllowance(client, request, options) {
|
|
49746
|
-
return new APIPromise($
|
|
49925
|
+
return new APIPromise($do59(client, request, options));
|
|
49747
49926
|
}
|
|
49748
|
-
async function $
|
|
49927
|
+
async function $do59(client, request, options) {
|
|
49749
49928
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49750
49929
|
if (!parsed.ok) {
|
|
49751
49930
|
return [parsed, { status: "invalid" }];
|
|
@@ -49821,12 +50000,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
49821
50000
|
});
|
|
49822
50001
|
|
|
49823
50002
|
// src/mcp-server/tools/universalAllowance.ts
|
|
49824
|
-
var
|
|
50003
|
+
var args59, tool$universalAllowance;
|
|
49825
50004
|
var init_universalAllowance2 = __esm(() => {
|
|
49826
50005
|
init_universalAllowance();
|
|
49827
50006
|
init_operations();
|
|
49828
50007
|
init_tools();
|
|
49829
|
-
|
|
50008
|
+
args59 = {
|
|
49830
50009
|
request: GenericAllowanceRequest$inboundSchema
|
|
49831
50010
|
};
|
|
49832
50011
|
tool$universalAllowance = {
|
|
@@ -49840,9 +50019,9 @@ tokens on their behalf.
|
|
|
49840
50019
|
This is a crucial step before engaging in any transactions or operations within
|
|
49841
50020
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
49842
50021
|
the user's tokens securely and efficiently.`,
|
|
49843
|
-
args:
|
|
49844
|
-
tool: async (client,
|
|
49845
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
50022
|
+
args: args59,
|
|
50023
|
+
tool: async (client, args60, ctx) => {
|
|
50024
|
+
const [result, apiCall] = await universalAllowance(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49846
50025
|
if (!result.ok) {
|
|
49847
50026
|
return {
|
|
49848
50027
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49857,9 +50036,9 @@ the user's tokens securely and efficiently.`,
|
|
|
49857
50036
|
|
|
49858
50037
|
// src/funcs/universalAllowanceSet.ts
|
|
49859
50038
|
function universalAllowanceSet(client, request, options) {
|
|
49860
|
-
return new APIPromise($
|
|
50039
|
+
return new APIPromise($do60(client, request, options));
|
|
49861
50040
|
}
|
|
49862
|
-
async function $
|
|
50041
|
+
async function $do60(client, request, options) {
|
|
49863
50042
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49864
50043
|
if (!parsed.ok) {
|
|
49865
50044
|
return [parsed, { status: "invalid" }];
|
|
@@ -49928,12 +50107,12 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
49928
50107
|
});
|
|
49929
50108
|
|
|
49930
50109
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
49931
|
-
var
|
|
50110
|
+
var args60, tool$universalAllowanceSet;
|
|
49932
50111
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
49933
50112
|
init_universalAllowanceSet();
|
|
49934
50113
|
init_components();
|
|
49935
50114
|
init_tools();
|
|
49936
|
-
|
|
50115
|
+
args60 = {
|
|
49937
50116
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
49938
50117
|
};
|
|
49939
50118
|
tool$universalAllowanceSet = {
|
|
@@ -49947,9 +50126,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
49947
50126
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
49948
50127
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
49949
50128
|
within the DeFi ecosystem.`,
|
|
49950
|
-
args:
|
|
49951
|
-
tool: async (client,
|
|
49952
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
50129
|
+
args: args60,
|
|
50130
|
+
tool: async (client, args61, ctx) => {
|
|
50131
|
+
const [result, apiCall] = await universalAllowanceSet(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49953
50132
|
if (!result.ok) {
|
|
49954
50133
|
return {
|
|
49955
50134
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49964,9 +50143,9 @@ within the DeFi ecosystem.`,
|
|
|
49964
50143
|
|
|
49965
50144
|
// src/funcs/universalEns.ts
|
|
49966
50145
|
function universalEns(client, request, options) {
|
|
49967
|
-
return new APIPromise($
|
|
50146
|
+
return new APIPromise($do61(client, request, options));
|
|
49968
50147
|
}
|
|
49969
|
-
async function $
|
|
50148
|
+
async function $do61(client, request, options) {
|
|
49970
50149
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49971
50150
|
if (!parsed.ok) {
|
|
49972
50151
|
return [parsed, { status: "invalid" }];
|
|
@@ -50040,12 +50219,12 @@ var init_universalEns = __esm(() => {
|
|
|
50040
50219
|
});
|
|
50041
50220
|
|
|
50042
50221
|
// src/mcp-server/tools/universalEns.ts
|
|
50043
|
-
var
|
|
50222
|
+
var args61, tool$universalEns;
|
|
50044
50223
|
var init_universalEns2 = __esm(() => {
|
|
50045
50224
|
init_universalEns();
|
|
50046
50225
|
init_operations();
|
|
50047
50226
|
init_tools();
|
|
50048
|
-
|
|
50227
|
+
args61 = {
|
|
50049
50228
|
request: GenericEnsRequest$inboundSchema
|
|
50050
50229
|
};
|
|
50051
50230
|
tool$universalEns = {
|
|
@@ -50056,9 +50235,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
50056
50235
|
|
|
50057
50236
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
50058
50237
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
50059
|
-
args:
|
|
50060
|
-
tool: async (client,
|
|
50061
|
-
const [result, apiCall] = await universalEns(client,
|
|
50238
|
+
args: args61,
|
|
50239
|
+
tool: async (client, args62, ctx) => {
|
|
50240
|
+
const [result, apiCall] = await universalEns(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50062
50241
|
if (!result.ok) {
|
|
50063
50242
|
return {
|
|
50064
50243
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50073,9 +50252,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
50073
50252
|
|
|
50074
50253
|
// src/funcs/universalPortfolio.ts
|
|
50075
50254
|
function universalPortfolio(client, request, options) {
|
|
50076
|
-
return new APIPromise($
|
|
50255
|
+
return new APIPromise($do62(client, request, options));
|
|
50077
50256
|
}
|
|
50078
|
-
async function $
|
|
50257
|
+
async function $do62(client, request, options) {
|
|
50079
50258
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50080
50259
|
if (!parsed.ok) {
|
|
50081
50260
|
return [parsed, { status: "invalid" }];
|
|
@@ -50149,12 +50328,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
50149
50328
|
});
|
|
50150
50329
|
|
|
50151
50330
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
50152
|
-
var
|
|
50331
|
+
var args62, tool$universalPortfolio;
|
|
50153
50332
|
var init_universalPortfolio2 = __esm(() => {
|
|
50154
50333
|
init_universalPortfolio();
|
|
50155
50334
|
init_operations();
|
|
50156
50335
|
init_tools();
|
|
50157
|
-
|
|
50336
|
+
args62 = {
|
|
50158
50337
|
request: GenericPortfolioRequest$inboundSchema
|
|
50159
50338
|
};
|
|
50160
50339
|
tool$universalPortfolio = {
|
|
@@ -50165,9 +50344,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
50165
50344
|
|
|
50166
50345
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
50167
50346
|
balances, including their respective values and quantities.`,
|
|
50168
|
-
args:
|
|
50169
|
-
tool: async (client,
|
|
50170
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
50347
|
+
args: args62,
|
|
50348
|
+
tool: async (client, args63, ctx) => {
|
|
50349
|
+
const [result, apiCall] = await universalPortfolio(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50171
50350
|
if (!result.ok) {
|
|
50172
50351
|
return {
|
|
50173
50352
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50182,9 +50361,9 @@ balances, including their respective values and quantities.`,
|
|
|
50182
50361
|
|
|
50183
50362
|
// src/funcs/universalSupportedTokens.ts
|
|
50184
50363
|
function universalSupportedTokens(client, request, options) {
|
|
50185
|
-
return new APIPromise($
|
|
50364
|
+
return new APIPromise($do63(client, request, options));
|
|
50186
50365
|
}
|
|
50187
|
-
async function $
|
|
50366
|
+
async function $do63(client, request, options) {
|
|
50188
50367
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50189
50368
|
if (!parsed.ok) {
|
|
50190
50369
|
return [parsed, { status: "invalid" }];
|
|
@@ -50257,12 +50436,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
50257
50436
|
});
|
|
50258
50437
|
|
|
50259
50438
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
50260
|
-
var
|
|
50439
|
+
var args63, tool$universalSupportedTokens;
|
|
50261
50440
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
50262
50441
|
init_universalSupportedTokens();
|
|
50263
50442
|
init_operations();
|
|
50264
50443
|
init_tools();
|
|
50265
|
-
|
|
50444
|
+
args63 = {
|
|
50266
50445
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
50267
50446
|
};
|
|
50268
50447
|
tool$universalSupportedTokens = {
|
|
@@ -50270,9 +50449,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
50270
50449
|
description: `List supported tokens
|
|
50271
50450
|
|
|
50272
50451
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
50273
|
-
args:
|
|
50274
|
-
tool: async (client,
|
|
50275
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
50452
|
+
args: args63,
|
|
50453
|
+
tool: async (client, args64, ctx) => {
|
|
50454
|
+
const [result, apiCall] = await universalSupportedTokens(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50276
50455
|
if (!result.ok) {
|
|
50277
50456
|
return {
|
|
50278
50457
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50287,9 +50466,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
50287
50466
|
|
|
50288
50467
|
// src/funcs/universalUnwrapWeth.ts
|
|
50289
50468
|
function universalUnwrapWeth(client, request, options) {
|
|
50290
|
-
return new APIPromise($
|
|
50469
|
+
return new APIPromise($do64(client, request, options));
|
|
50291
50470
|
}
|
|
50292
|
-
async function $
|
|
50471
|
+
async function $do64(client, request, options) {
|
|
50293
50472
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50294
50473
|
if (!parsed.ok) {
|
|
50295
50474
|
return [parsed, { status: "invalid" }];
|
|
@@ -50358,12 +50537,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
50358
50537
|
});
|
|
50359
50538
|
|
|
50360
50539
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
50361
|
-
var
|
|
50540
|
+
var args64, tool$universalUnwrapWeth;
|
|
50362
50541
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
50363
50542
|
init_universalUnwrapWeth();
|
|
50364
50543
|
init_components();
|
|
50365
50544
|
init_tools();
|
|
50366
|
-
|
|
50545
|
+
args64 = {
|
|
50367
50546
|
request: UnwrapWethRequest$inboundSchema
|
|
50368
50547
|
};
|
|
50369
50548
|
tool$universalUnwrapWeth = {
|
|
@@ -50372,9 +50551,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
50372
50551
|
|
|
50373
50552
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
50374
50553
|
can be used for gas and other native purposes.`,
|
|
50375
|
-
args:
|
|
50376
|
-
tool: async (client,
|
|
50377
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
50554
|
+
args: args64,
|
|
50555
|
+
tool: async (client, args65, ctx) => {
|
|
50556
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50378
50557
|
if (!result.ok) {
|
|
50379
50558
|
return {
|
|
50380
50559
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50389,9 +50568,9 @@ can be used for gas and other native purposes.`,
|
|
|
50389
50568
|
|
|
50390
50569
|
// src/funcs/universalVisualizePortfolio.ts
|
|
50391
50570
|
function universalVisualizePortfolio(client, request, options) {
|
|
50392
|
-
return new APIPromise($
|
|
50571
|
+
return new APIPromise($do65(client, request, options));
|
|
50393
50572
|
}
|
|
50394
|
-
async function $
|
|
50573
|
+
async function $do65(client, request, options) {
|
|
50395
50574
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50396
50575
|
if (!parsed.ok) {
|
|
50397
50576
|
return [parsed, { status: "invalid" }];
|
|
@@ -50465,12 +50644,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
50465
50644
|
});
|
|
50466
50645
|
|
|
50467
50646
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
50468
|
-
var
|
|
50647
|
+
var args65, tool$universalVisualizePortfolio;
|
|
50469
50648
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
50470
50649
|
init_universalVisualizePortfolio();
|
|
50471
50650
|
init_operations();
|
|
50472
50651
|
init_tools();
|
|
50473
|
-
|
|
50652
|
+
args65 = {
|
|
50474
50653
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
50475
50654
|
};
|
|
50476
50655
|
tool$universalVisualizePortfolio = {
|
|
@@ -50482,9 +50661,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
50482
50661
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
50483
50662
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
50484
50663
|
USD.`,
|
|
50485
|
-
args:
|
|
50486
|
-
tool: async (client,
|
|
50487
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
50664
|
+
args: args65,
|
|
50665
|
+
tool: async (client, args66, ctx) => {
|
|
50666
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50488
50667
|
if (!result.ok) {
|
|
50489
50668
|
return {
|
|
50490
50669
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50499,9 +50678,9 @@ USD.`,
|
|
|
50499
50678
|
|
|
50500
50679
|
// src/funcs/universalWrapEth.ts
|
|
50501
50680
|
function universalWrapEth(client, request, options) {
|
|
50502
|
-
return new APIPromise($
|
|
50681
|
+
return new APIPromise($do66(client, request, options));
|
|
50503
50682
|
}
|
|
50504
|
-
async function $
|
|
50683
|
+
async function $do66(client, request, options) {
|
|
50505
50684
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50506
50685
|
if (!parsed.ok) {
|
|
50507
50686
|
return [parsed, { status: "invalid" }];
|
|
@@ -50570,12 +50749,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
50570
50749
|
});
|
|
50571
50750
|
|
|
50572
50751
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
50573
|
-
var
|
|
50752
|
+
var args66, tool$universalWrapEth;
|
|
50574
50753
|
var init_universalWrapEth2 = __esm(() => {
|
|
50575
50754
|
init_universalWrapEth();
|
|
50576
50755
|
init_components();
|
|
50577
50756
|
init_tools();
|
|
50578
|
-
|
|
50757
|
+
args66 = {
|
|
50579
50758
|
request: WrapEthRequest$inboundSchema
|
|
50580
50759
|
};
|
|
50581
50760
|
tool$universalWrapEth = {
|
|
@@ -50584,9 +50763,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
50584
50763
|
|
|
50585
50764
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
50586
50765
|
it to be traded on DeFi protocols.`,
|
|
50587
|
-
args:
|
|
50588
|
-
tool: async (client,
|
|
50589
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
50766
|
+
args: args66,
|
|
50767
|
+
tool: async (client, args67, ctx) => {
|
|
50768
|
+
const [result, apiCall] = await universalWrapEth(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50590
50769
|
if (!result.ok) {
|
|
50591
50770
|
return {
|
|
50592
50771
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50603,7 +50782,7 @@ it to be traded on DeFi protocols.`,
|
|
|
50603
50782
|
function createMCPServer(deps) {
|
|
50604
50783
|
const server = new McpServer({
|
|
50605
50784
|
name: "CompassApiSDK",
|
|
50606
|
-
version: "0.1.
|
|
50785
|
+
version: "0.1.6"
|
|
50607
50786
|
});
|
|
50608
50787
|
const client = new CompassApiSDKCore({
|
|
50609
50788
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -50682,6 +50861,7 @@ function createMCPServer(deps) {
|
|
|
50682
50861
|
tool(tool$transactionBatchingExecute);
|
|
50683
50862
|
tool(tool$transactionBatchingAaveLoop);
|
|
50684
50863
|
tool(tool$smartAccountAccountBatchedUserOperations);
|
|
50864
|
+
tool(tool$pendleAccruedInterest);
|
|
50685
50865
|
return server;
|
|
50686
50866
|
}
|
|
50687
50867
|
var init_server2 = __esm(() => {
|
|
@@ -50723,6 +50903,7 @@ var init_server2 = __esm(() => {
|
|
|
50723
50903
|
init_morphoVaults2();
|
|
50724
50904
|
init_morphoWithdraw2();
|
|
50725
50905
|
init_morphoWithdrawCollateral2();
|
|
50906
|
+
init_pendleAccruedInterest2();
|
|
50726
50907
|
init_skyBuy2();
|
|
50727
50908
|
init_skyDeposit2();
|
|
50728
50909
|
init_skyPosition2();
|
|
@@ -51944,7 +52125,7 @@ var routes = an({
|
|
|
51944
52125
|
var app = He(routes, {
|
|
51945
52126
|
name: "mcp",
|
|
51946
52127
|
versionInfo: {
|
|
51947
|
-
currentVersion: "0.1.
|
|
52128
|
+
currentVersion: "0.1.6"
|
|
51948
52129
|
}
|
|
51949
52130
|
});
|
|
51950
52131
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -51952,5 +52133,5 @@ export {
|
|
|
51952
52133
|
app
|
|
51953
52134
|
};
|
|
51954
52135
|
|
|
51955
|
-
//# debugId=
|
|
52136
|
+
//# debugId=8926F98FDF1ECE7E64756E2164756E21
|
|
51956
52137
|
//# sourceMappingURL=mcp-server.js.map
|