@compass-labs/api-sdk 0.5.21 → 0.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/bin/mcp-server.js +878 -760
- package/bin/mcp-server.js.map +20 -18
- package/dist/commonjs/funcs/universalAllowance.js +1 -1
- package/dist/commonjs/funcs/universalAllowance.js.map +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.d.ts +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.d.ts.map +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.js +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.js.map +1 -1
- package/dist/commonjs/funcs/vaultsERC4626Deposit.d.ts +20 -0
- package/dist/commonjs/funcs/vaultsERC4626Deposit.d.ts.map +1 -0
- package/dist/commonjs/funcs/{morphoAllowance.js → vaultsERC4626Deposit.js} +9 -11
- package/dist/commonjs/funcs/vaultsERC4626Deposit.js.map +1 -0
- package/dist/commonjs/funcs/vaultsERC4626Withdraw.d.ts +22 -0
- package/dist/commonjs/funcs/vaultsERC4626Withdraw.d.ts.map +1 -0
- package/dist/commonjs/funcs/vaultsERC4626Withdraw.js +122 -0
- package/dist/commonjs/funcs/vaultsERC4626Withdraw.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 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/universalAllowanceSet.d.ts +1 -1
- package/dist/commonjs/mcp-server/tools/universalAllowanceSet.js +1 -1
- package/dist/commonjs/mcp-server/tools/universalAllowanceSet.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vaultsERC4626Deposit.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vaultsERC4626Deposit.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{morphoAllowance.js → vaultsERC4626Deposit.js} +10 -12
- package/dist/commonjs/mcp-server/tools/vaultsERC4626Deposit.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vaultsERC4626Withdraw.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vaultsERC4626Withdraw.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vaultsERC4626Withdraw.js +68 -0
- package/dist/commonjs/mcp-server/tools/vaultsERC4626Withdraw.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +4 -4
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -4
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/setallowanceparams.d.ts +173 -0
- package/dist/commonjs/models/components/setallowanceparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/setallowanceparams.js +185 -0
- package/dist/commonjs/models/components/setallowanceparams.js.map +1 -0
- package/dist/commonjs/models/components/setallowancerequest.d.ts +184 -0
- package/dist/commonjs/models/components/setallowancerequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/setallowancerequest.js +193 -0
- package/dist/commonjs/models/components/setallowancerequest.js.map +1 -0
- package/dist/commonjs/models/components/useroperation.d.ts +9 -18
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +13 -14
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/models/components/vaultdepositrequest.d.ts +79 -0
- package/dist/commonjs/models/components/vaultdepositrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/vaultdepositrequest.js +114 -0
- package/dist/commonjs/models/components/vaultdepositrequest.js.map +1 -0
- package/dist/commonjs/models/components/vaultwithdrawrequest.d.ts +55 -0
- package/dist/commonjs/models/components/vaultwithdrawrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/vaultwithdrawrequest.js +91 -0
- package/dist/commonjs/models/components/vaultwithdrawrequest.js.map +1 -0
- package/dist/commonjs/models/operations/genericallowance.d.ts +32 -14
- package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/commonjs/models/operations/genericallowance.js +36 -25
- package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
- package/dist/commonjs/sdk/morpho.d.ts +0 -11
- package/dist/commonjs/sdk/morpho.d.ts.map +1 -1
- package/dist/commonjs/sdk/morpho.js +0 -14
- package/dist/commonjs/sdk/morpho.js.map +1 -1
- 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/commonjs/sdk/universal.d.ts +1 -1
- package/dist/commonjs/sdk/universal.d.ts.map +1 -1
- package/dist/commonjs/sdk/universal.js.map +1 -1
- package/dist/commonjs/sdk/vaultserc4626.d.ts +25 -0
- package/dist/commonjs/sdk/vaultserc4626.d.ts.map +1 -0
- package/dist/commonjs/sdk/vaultserc4626.js +38 -0
- package/dist/commonjs/sdk/vaultserc4626.js.map +1 -0
- package/dist/esm/funcs/universalAllowance.js +1 -1
- package/dist/esm/funcs/universalAllowance.js.map +1 -1
- package/dist/esm/funcs/universalAllowanceSet.d.ts +1 -1
- package/dist/esm/funcs/universalAllowanceSet.d.ts.map +1 -1
- package/dist/esm/funcs/universalAllowanceSet.js +1 -1
- package/dist/esm/funcs/universalAllowanceSet.js.map +1 -1
- package/dist/esm/funcs/vaultsERC4626Deposit.d.ts +20 -0
- package/dist/esm/funcs/vaultsERC4626Deposit.d.ts.map +1 -0
- package/dist/esm/funcs/{morphoAllowance.js → vaultsERC4626Deposit.js} +8 -10
- package/dist/esm/funcs/vaultsERC4626Deposit.js.map +1 -0
- package/dist/esm/funcs/vaultsERC4626Withdraw.d.ts +22 -0
- package/dist/esm/funcs/vaultsERC4626Withdraw.d.ts.map +1 -0
- package/dist/esm/funcs/vaultsERC4626Withdraw.js +86 -0
- package/dist/esm/funcs/vaultsERC4626Withdraw.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 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/universalAllowanceSet.d.ts +1 -1
- package/dist/esm/mcp-server/tools/universalAllowanceSet.js +1 -1
- package/dist/esm/mcp-server/tools/universalAllowanceSet.js.map +1 -1
- package/dist/esm/mcp-server/tools/vaultsERC4626Deposit.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vaultsERC4626Deposit.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vaultsERC4626Deposit.js +30 -0
- package/dist/esm/mcp-server/tools/vaultsERC4626Deposit.js.map +1 -0
- package/dist/esm/mcp-server/tools/vaultsERC4626Withdraw.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vaultsERC4626Withdraw.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vaultsERC4626Withdraw.js +32 -0
- package/dist/esm/mcp-server/tools/vaultsERC4626Withdraw.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +4 -4
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -4
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/setallowanceparams.d.ts +173 -0
- package/dist/esm/models/components/setallowanceparams.d.ts.map +1 -0
- package/dist/esm/models/components/setallowanceparams.js +141 -0
- package/dist/esm/models/components/setallowanceparams.js.map +1 -0
- package/dist/esm/models/components/setallowancerequest.d.ts +184 -0
- package/dist/esm/models/components/setallowancerequest.d.ts.map +1 -0
- package/dist/esm/models/components/setallowancerequest.js +149 -0
- package/dist/esm/models/components/setallowancerequest.js.map +1 -0
- package/dist/esm/models/components/useroperation.d.ts +9 -18
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +13 -14
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/models/components/vaultdepositrequest.d.ts +79 -0
- package/dist/esm/models/components/vaultdepositrequest.d.ts.map +1 -0
- package/dist/esm/models/components/vaultdepositrequest.js +74 -0
- package/dist/esm/models/components/vaultdepositrequest.js.map +1 -0
- package/dist/esm/models/components/vaultwithdrawrequest.d.ts +55 -0
- package/dist/esm/models/components/vaultwithdrawrequest.d.ts.map +1 -0
- package/dist/esm/models/components/vaultwithdrawrequest.js +53 -0
- package/dist/esm/models/components/vaultwithdrawrequest.js.map +1 -0
- package/dist/esm/models/operations/genericallowance.d.ts +32 -14
- package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
- package/dist/esm/models/operations/genericallowance.js +33 -24
- package/dist/esm/models/operations/genericallowance.js.map +1 -1
- package/dist/esm/sdk/morpho.d.ts +0 -11
- package/dist/esm/sdk/morpho.d.ts.map +1 -1
- package/dist/esm/sdk/morpho.js +0 -14
- package/dist/esm/sdk/morpho.js.map +1 -1
- 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/dist/esm/sdk/universal.d.ts +1 -1
- package/dist/esm/sdk/universal.d.ts.map +1 -1
- package/dist/esm/sdk/universal.js.map +1 -1
- package/dist/esm/sdk/vaultserc4626.d.ts +25 -0
- package/dist/esm/sdk/vaultserc4626.d.ts.map +1 -0
- package/dist/esm/sdk/vaultserc4626.js +34 -0
- package/dist/esm/sdk/vaultserc4626.js.map +1 -0
- package/docs/sdks/morpho/README.md +0 -84
- package/docs/sdks/smartaccount/README.md +2 -2
- package/docs/sdks/transactionbundler/README.md +2 -2
- package/docs/sdks/universal/README.md +5 -3
- package/docs/sdks/vaultserc4626/README.md +173 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/universalAllowance.ts +1 -1
- package/src/funcs/universalAllowanceSet.ts +3 -3
- package/src/funcs/{morphoAllowance.ts → vaultsERC4626Deposit.ts} +9 -12
- package/src/funcs/vaultsERC4626Withdraw.ts +173 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -3
- package/src/mcp-server/tools/universalAllowanceSet.ts +1 -1
- package/src/mcp-server/tools/{morphoAllowance.ts → vaultsERC4626Deposit.ts} +8 -10
- package/src/mcp-server/tools/vaultsERC4626Withdraw.ts +41 -0
- package/src/models/components/index.ts +4 -4
- package/src/models/components/setallowanceparams.ts +310 -0
- package/src/models/components/setallowancerequest.ts +328 -0
- package/src/models/components/useroperation.ts +30 -64
- package/src/models/components/vaultdepositrequest.ts +166 -0
- package/src/models/components/vaultwithdrawrequest.ts +113 -0
- package/src/models/operations/genericallowance.ts +63 -29
- package/src/sdk/morpho.ts +0 -22
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/universal.ts +1 -1
- package/src/sdk/vaultserc4626.ts +51 -0
- package/dist/commonjs/funcs/morphoAllowance.d.ts +0 -22
- package/dist/commonjs/funcs/morphoAllowance.d.ts.map +0 -1
- package/dist/commonjs/funcs/morphoAllowance.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/morphoAllowance.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/morphoAllowance.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/morphoAllowance.js.map +0 -1
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts +0 -155
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/increaseallowanceparams.js +0 -164
- package/dist/commonjs/models/components/increaseallowanceparams.js.map +0 -1
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts +0 -166
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/increaseallowancerequest.js +0 -169
- package/dist/commonjs/models/components/increaseallowancerequest.js.map +0 -1
- package/dist/commonjs/models/components/morphosetvaultallowanceparams.d.ts +0 -63
- package/dist/commonjs/models/components/morphosetvaultallowanceparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/morphosetvaultallowanceparams.js +0 -107
- package/dist/commonjs/models/components/morphosetvaultallowanceparams.js.map +0 -1
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts +0 -96
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.js +0 -130
- package/dist/commonjs/models/components/morphosetvaultallowancerequest.js.map +0 -1
- package/dist/esm/funcs/morphoAllowance.d.ts +0 -22
- package/dist/esm/funcs/morphoAllowance.d.ts.map +0 -1
- package/dist/esm/funcs/morphoAllowance.js.map +0 -1
- package/dist/esm/mcp-server/tools/morphoAllowance.d.ts +0 -8
- package/dist/esm/mcp-server/tools/morphoAllowance.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/morphoAllowance.js +0 -32
- package/dist/esm/mcp-server/tools/morphoAllowance.js.map +0 -1
- package/dist/esm/models/components/increaseallowanceparams.d.ts +0 -155
- package/dist/esm/models/components/increaseallowanceparams.d.ts.map +0 -1
- package/dist/esm/models/components/increaseallowanceparams.js +0 -122
- package/dist/esm/models/components/increaseallowanceparams.js.map +0 -1
- package/dist/esm/models/components/increaseallowancerequest.d.ts +0 -166
- package/dist/esm/models/components/increaseallowancerequest.d.ts.map +0 -1
- package/dist/esm/models/components/increaseallowancerequest.js +0 -127
- package/dist/esm/models/components/increaseallowancerequest.js.map +0 -1
- package/dist/esm/models/components/morphosetvaultallowanceparams.d.ts +0 -63
- package/dist/esm/models/components/morphosetvaultallowanceparams.d.ts.map +0 -1
- package/dist/esm/models/components/morphosetvaultallowanceparams.js +0 -67
- package/dist/esm/models/components/morphosetvaultallowanceparams.js.map +0 -1
- package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts +0 -96
- package/dist/esm/models/components/morphosetvaultallowancerequest.d.ts.map +0 -1
- package/dist/esm/models/components/morphosetvaultallowancerequest.js +0 -90
- package/dist/esm/models/components/morphosetvaultallowancerequest.js.map +0 -1
- package/src/models/components/increaseallowanceparams.ts +0 -266
- package/src/models/components/increaseallowancerequest.ts +0 -282
- package/src/models/components/morphosetvaultallowanceparams.ts +0 -155
- package/src/models/components/morphosetvaultallowancerequest.ts +0 -198
package/bin/mcp-server.js
CHANGED
|
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
|
|
|
34205
34205
|
SDK_METADATA = {
|
|
34206
34206
|
language: "typescript",
|
|
34207
34207
|
openapiDocVersion: "0.0.1",
|
|
34208
|
-
sdkVersion: "0.5.
|
|
34208
|
+
sdkVersion: "0.5.22",
|
|
34209
34209
|
genVersion: "2.632.2",
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.5.22 2.632.2 0.0.1 @compass-labs/api-sdk"
|
|
34211
34211
|
};
|
|
34212
34212
|
});
|
|
34213
34213
|
|
|
@@ -37663,71 +37663,6 @@ var init_allowanceinforesponse = __esm(() => {
|
|
|
37663
37663
|
})(AllowanceInfoResponse$ ||= {});
|
|
37664
37664
|
});
|
|
37665
37665
|
|
|
37666
|
-
// src/models/components/increaseallowanceparams.ts
|
|
37667
|
-
var IncreaseAllowanceParamsContractName, IncreaseAllowanceParamsToken$inboundSchema, IncreaseAllowanceParamsToken$outboundSchema, IncreaseAllowanceParamsToken$, IncreaseAllowanceParamsContractName$inboundSchema, IncreaseAllowanceParamsContractName$outboundSchema, IncreaseAllowanceParamsContractName$, IncreaseAllowanceParamsAmount$inboundSchema, IncreaseAllowanceParamsAmount$outboundSchema, IncreaseAllowanceParamsAmount$, IncreaseAllowanceParams$inboundSchema, IncreaseAllowanceParams$outboundSchema, IncreaseAllowanceParams$;
|
|
37668
|
-
var init_increaseallowanceparams = __esm(() => {
|
|
37669
|
-
init_esm();
|
|
37670
|
-
init_primitives();
|
|
37671
|
-
init_tokenenum();
|
|
37672
|
-
IncreaseAllowanceParamsContractName = {
|
|
37673
|
-
AaveV3Pool: "AaveV3Pool",
|
|
37674
|
-
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
37675
|
-
AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
|
|
37676
|
-
AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
|
|
37677
|
-
UniswapV3Router: "UniswapV3Router",
|
|
37678
|
-
UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
|
|
37679
|
-
Morpho: "Morpho",
|
|
37680
|
-
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
37681
|
-
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
37682
|
-
SkyUsdsVault: "SkyUsdsVault",
|
|
37683
|
-
PendleRouter: "PendleRouter"
|
|
37684
|
-
};
|
|
37685
|
-
IncreaseAllowanceParamsToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
37686
|
-
IncreaseAllowanceParamsToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
37687
|
-
((IncreaseAllowanceParamsToken$) => {
|
|
37688
|
-
IncreaseAllowanceParamsToken$.inboundSchema = IncreaseAllowanceParamsToken$inboundSchema;
|
|
37689
|
-
IncreaseAllowanceParamsToken$.outboundSchema = IncreaseAllowanceParamsToken$outboundSchema;
|
|
37690
|
-
})(IncreaseAllowanceParamsToken$ ||= {});
|
|
37691
|
-
IncreaseAllowanceParamsContractName$inboundSchema = nativeEnumType(IncreaseAllowanceParamsContractName);
|
|
37692
|
-
IncreaseAllowanceParamsContractName$outboundSchema = IncreaseAllowanceParamsContractName$inboundSchema;
|
|
37693
|
-
((IncreaseAllowanceParamsContractName$) => {
|
|
37694
|
-
IncreaseAllowanceParamsContractName$.inboundSchema = IncreaseAllowanceParamsContractName$inboundSchema;
|
|
37695
|
-
IncreaseAllowanceParamsContractName$.outboundSchema = IncreaseAllowanceParamsContractName$outboundSchema;
|
|
37696
|
-
})(IncreaseAllowanceParamsContractName$ ||= {});
|
|
37697
|
-
IncreaseAllowanceParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
37698
|
-
IncreaseAllowanceParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
37699
|
-
((IncreaseAllowanceParamsAmount$) => {
|
|
37700
|
-
IncreaseAllowanceParamsAmount$.inboundSchema = IncreaseAllowanceParamsAmount$inboundSchema;
|
|
37701
|
-
IncreaseAllowanceParamsAmount$.outboundSchema = IncreaseAllowanceParamsAmount$outboundSchema;
|
|
37702
|
-
})(IncreaseAllowanceParamsAmount$ ||= {});
|
|
37703
|
-
IncreaseAllowanceParams$inboundSchema = objectType({
|
|
37704
|
-
action_type: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
|
|
37705
|
-
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
37706
|
-
contract_name: IncreaseAllowanceParamsContractName$inboundSchema,
|
|
37707
|
-
amount: unionType([numberType(), stringType()])
|
|
37708
|
-
}).transform((v2) => {
|
|
37709
|
-
return remap(v2, {
|
|
37710
|
-
action_type: "actionType",
|
|
37711
|
-
contract_name: "contractName"
|
|
37712
|
-
});
|
|
37713
|
-
});
|
|
37714
|
-
IncreaseAllowanceParams$outboundSchema = objectType({
|
|
37715
|
-
actionType: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
|
|
37716
|
-
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
37717
|
-
contractName: IncreaseAllowanceParamsContractName$outboundSchema,
|
|
37718
|
-
amount: unionType([numberType(), stringType()])
|
|
37719
|
-
}).transform((v2) => {
|
|
37720
|
-
return remap(v2, {
|
|
37721
|
-
actionType: "action_type",
|
|
37722
|
-
contractName: "contract_name"
|
|
37723
|
-
});
|
|
37724
|
-
});
|
|
37725
|
-
((IncreaseAllowanceParams$) => {
|
|
37726
|
-
IncreaseAllowanceParams$.inboundSchema = IncreaseAllowanceParams$inboundSchema;
|
|
37727
|
-
IncreaseAllowanceParams$.outboundSchema = IncreaseAllowanceParams$outboundSchema;
|
|
37728
|
-
})(IncreaseAllowanceParams$ ||= {});
|
|
37729
|
-
});
|
|
37730
|
-
|
|
37731
37666
|
// src/models/components/morphoborrowparams.ts
|
|
37732
37667
|
var MorphoBorrowParamsAmount$inboundSchema, MorphoBorrowParamsAmount$outboundSchema, MorphoBorrowParamsAmount$, MorphoBorrowParams$inboundSchema, MorphoBorrowParams$outboundSchema, MorphoBorrowParams$;
|
|
37733
37668
|
var init_morphoborrowparams = __esm(() => {
|
|
@@ -37850,43 +37785,6 @@ var init_morphorepayparams = __esm(() => {
|
|
|
37850
37785
|
})(MorphoRepayParams$ ||= {});
|
|
37851
37786
|
});
|
|
37852
37787
|
|
|
37853
|
-
// src/models/components/morphosetvaultallowanceparams.ts
|
|
37854
|
-
var MorphoSetVaultAllowanceParamsAmount$inboundSchema, MorphoSetVaultAllowanceParamsAmount$outboundSchema, MorphoSetVaultAllowanceParamsAmount$, MorphoSetVaultAllowanceParams$inboundSchema, MorphoSetVaultAllowanceParams$outboundSchema, MorphoSetVaultAllowanceParams$;
|
|
37855
|
-
var init_morphosetvaultallowanceparams = __esm(() => {
|
|
37856
|
-
init_esm();
|
|
37857
|
-
init_primitives();
|
|
37858
|
-
MorphoSetVaultAllowanceParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
37859
|
-
MorphoSetVaultAllowanceParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
37860
|
-
((MorphoSetVaultAllowanceParamsAmount$) => {
|
|
37861
|
-
MorphoSetVaultAllowanceParamsAmount$.inboundSchema = MorphoSetVaultAllowanceParamsAmount$inboundSchema;
|
|
37862
|
-
MorphoSetVaultAllowanceParamsAmount$.outboundSchema = MorphoSetVaultAllowanceParamsAmount$outboundSchema;
|
|
37863
|
-
})(MorphoSetVaultAllowanceParamsAmount$ ||= {});
|
|
37864
|
-
MorphoSetVaultAllowanceParams$inboundSchema = objectType({
|
|
37865
|
-
action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
|
|
37866
|
-
vault_address: stringType(),
|
|
37867
|
-
amount: unionType([numberType(), stringType()])
|
|
37868
|
-
}).transform((v2) => {
|
|
37869
|
-
return remap(v2, {
|
|
37870
|
-
action_type: "actionType",
|
|
37871
|
-
vault_address: "vaultAddress"
|
|
37872
|
-
});
|
|
37873
|
-
});
|
|
37874
|
-
MorphoSetVaultAllowanceParams$outboundSchema = objectType({
|
|
37875
|
-
actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
|
|
37876
|
-
vaultAddress: stringType(),
|
|
37877
|
-
amount: unionType([numberType(), stringType()])
|
|
37878
|
-
}).transform((v2) => {
|
|
37879
|
-
return remap(v2, {
|
|
37880
|
-
actionType: "action_type",
|
|
37881
|
-
vaultAddress: "vault_address"
|
|
37882
|
-
});
|
|
37883
|
-
});
|
|
37884
|
-
((MorphoSetVaultAllowanceParams$) => {
|
|
37885
|
-
MorphoSetVaultAllowanceParams$.inboundSchema = MorphoSetVaultAllowanceParams$inboundSchema;
|
|
37886
|
-
MorphoSetVaultAllowanceParams$.outboundSchema = MorphoSetVaultAllowanceParams$outboundSchema;
|
|
37887
|
-
})(MorphoSetVaultAllowanceParams$ ||= {});
|
|
37888
|
-
});
|
|
37889
|
-
|
|
37890
37788
|
// src/models/components/morphosupplycollateralparams.ts
|
|
37891
37789
|
var MorphoSupplyCollateralParamsAmount$inboundSchema, MorphoSupplyCollateralParamsAmount$outboundSchema, MorphoSupplyCollateralParamsAmount$, MorphoSupplyCollateralParams$inboundSchema, MorphoSupplyCollateralParams$outboundSchema, MorphoSupplyCollateralParams$;
|
|
37892
37790
|
var init_morphosupplycollateralparams = __esm(() => {
|
|
@@ -38284,6 +38182,78 @@ var init_pendlesellytparams = __esm(() => {
|
|
|
38284
38182
|
})(PendleSellYtParams$ ||= {});
|
|
38285
38183
|
});
|
|
38286
38184
|
|
|
38185
|
+
// src/models/components/setallowanceparams.ts
|
|
38186
|
+
var SetAllowanceParamsContractEnum, SetAllowanceParamsToken$inboundSchema, SetAllowanceParamsToken$outboundSchema, SetAllowanceParamsToken$, SetAllowanceParamsContractEnum$inboundSchema, SetAllowanceParamsContractEnum$outboundSchema, SetAllowanceParamsContractEnum$, SetAllowanceParamsContractUnion$inboundSchema, SetAllowanceParamsContractUnion$outboundSchema, SetAllowanceParamsContractUnion$, SetAllowanceParamsAmount$inboundSchema, SetAllowanceParamsAmount$outboundSchema, SetAllowanceParamsAmount$, SetAllowanceParams$inboundSchema, SetAllowanceParams$outboundSchema, SetAllowanceParams$;
|
|
38187
|
+
var init_setallowanceparams = __esm(() => {
|
|
38188
|
+
init_esm();
|
|
38189
|
+
init_primitives();
|
|
38190
|
+
init_tokenenum();
|
|
38191
|
+
SetAllowanceParamsContractEnum = {
|
|
38192
|
+
AaveV3Pool: "AaveV3Pool",
|
|
38193
|
+
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
38194
|
+
AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
|
|
38195
|
+
AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
|
|
38196
|
+
UniswapV3Router: "UniswapV3Router",
|
|
38197
|
+
UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
|
|
38198
|
+
Morpho: "Morpho",
|
|
38199
|
+
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
38200
|
+
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
38201
|
+
SkyUsdsVault: "SkyUsdsVault",
|
|
38202
|
+
PendleRouter: "PendleRouter"
|
|
38203
|
+
};
|
|
38204
|
+
SetAllowanceParamsToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38205
|
+
SetAllowanceParamsToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38206
|
+
((SetAllowanceParamsToken$) => {
|
|
38207
|
+
SetAllowanceParamsToken$.inboundSchema = SetAllowanceParamsToken$inboundSchema;
|
|
38208
|
+
SetAllowanceParamsToken$.outboundSchema = SetAllowanceParamsToken$outboundSchema;
|
|
38209
|
+
})(SetAllowanceParamsToken$ ||= {});
|
|
38210
|
+
SetAllowanceParamsContractEnum$inboundSchema = nativeEnumType(SetAllowanceParamsContractEnum);
|
|
38211
|
+
SetAllowanceParamsContractEnum$outboundSchema = SetAllowanceParamsContractEnum$inboundSchema;
|
|
38212
|
+
((SetAllowanceParamsContractEnum$) => {
|
|
38213
|
+
SetAllowanceParamsContractEnum$.inboundSchema = SetAllowanceParamsContractEnum$inboundSchema;
|
|
38214
|
+
SetAllowanceParamsContractEnum$.outboundSchema = SetAllowanceParamsContractEnum$outboundSchema;
|
|
38215
|
+
})(SetAllowanceParamsContractEnum$ ||= {});
|
|
38216
|
+
SetAllowanceParamsContractUnion$inboundSchema = unionType([SetAllowanceParamsContractEnum$inboundSchema, stringType()]);
|
|
38217
|
+
SetAllowanceParamsContractUnion$outboundSchema = unionType([SetAllowanceParamsContractEnum$outboundSchema, stringType()]);
|
|
38218
|
+
((SetAllowanceParamsContractUnion$) => {
|
|
38219
|
+
SetAllowanceParamsContractUnion$.inboundSchema = SetAllowanceParamsContractUnion$inboundSchema;
|
|
38220
|
+
SetAllowanceParamsContractUnion$.outboundSchema = SetAllowanceParamsContractUnion$outboundSchema;
|
|
38221
|
+
})(SetAllowanceParamsContractUnion$ ||= {});
|
|
38222
|
+
SetAllowanceParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38223
|
+
SetAllowanceParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38224
|
+
((SetAllowanceParamsAmount$) => {
|
|
38225
|
+
SetAllowanceParamsAmount$.inboundSchema = SetAllowanceParamsAmount$inboundSchema;
|
|
38226
|
+
SetAllowanceParamsAmount$.outboundSchema = SetAllowanceParamsAmount$outboundSchema;
|
|
38227
|
+
})(SetAllowanceParamsAmount$ ||= {});
|
|
38228
|
+
SetAllowanceParams$inboundSchema = objectType({
|
|
38229
|
+
action_type: literalType("SET_ALLOWANCE").default("SET_ALLOWANCE"),
|
|
38230
|
+
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
38231
|
+
contract: unionType([SetAllowanceParamsContractEnum$inboundSchema, stringType()]),
|
|
38232
|
+
amount: unionType([numberType(), stringType()])
|
|
38233
|
+
}).transform((v2) => {
|
|
38234
|
+
return remap(v2, {
|
|
38235
|
+
action_type: "actionType"
|
|
38236
|
+
});
|
|
38237
|
+
});
|
|
38238
|
+
SetAllowanceParams$outboundSchema = objectType({
|
|
38239
|
+
actionType: literalType("SET_ALLOWANCE").default("SET_ALLOWANCE"),
|
|
38240
|
+
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
38241
|
+
contract: unionType([
|
|
38242
|
+
SetAllowanceParamsContractEnum$outboundSchema,
|
|
38243
|
+
stringType()
|
|
38244
|
+
]),
|
|
38245
|
+
amount: unionType([numberType(), stringType()])
|
|
38246
|
+
}).transform((v2) => {
|
|
38247
|
+
return remap(v2, {
|
|
38248
|
+
actionType: "action_type"
|
|
38249
|
+
});
|
|
38250
|
+
});
|
|
38251
|
+
((SetAllowanceParams$) => {
|
|
38252
|
+
SetAllowanceParams$.inboundSchema = SetAllowanceParams$inboundSchema;
|
|
38253
|
+
SetAllowanceParams$.outboundSchema = SetAllowanceParams$outboundSchema;
|
|
38254
|
+
})(SetAllowanceParams$ ||= {});
|
|
38255
|
+
});
|
|
38256
|
+
|
|
38287
38257
|
// src/models/components/skybuyparams.ts
|
|
38288
38258
|
var SkyBuyParamsTokenIn, SkyBuyParamsTokenIn$inboundSchema, SkyBuyParamsTokenIn$outboundSchema, SkyBuyParamsTokenIn$, SkyBuyParamsAmount$inboundSchema, SkyBuyParamsAmount$outboundSchema, SkyBuyParamsAmount$, SkyBuyParams$inboundSchema, SkyBuyParams$outboundSchema, SkyBuyParams$;
|
|
38289
38259
|
var init_skybuyparams = __esm(() => {
|
|
@@ -38874,11 +38844,9 @@ var init_useroperation = __esm(() => {
|
|
|
38874
38844
|
init_aerodromeslipstreammintliquidityprovisionparams();
|
|
38875
38845
|
init_aerodromeslipstreamsellexactlyparams();
|
|
38876
38846
|
init_aerodromeslipstreamwithdrawliquidityprovisionparams();
|
|
38877
|
-
init_increaseallowanceparams();
|
|
38878
38847
|
init_morphoborrowparams();
|
|
38879
38848
|
init_morphodepositparams();
|
|
38880
38849
|
init_morphorepayparams();
|
|
38881
|
-
init_morphosetvaultallowanceparams();
|
|
38882
38850
|
init_morphosupplycollateralparams();
|
|
38883
38851
|
init_morphowithdrawcollateralparams();
|
|
38884
38852
|
init_morphowithdrawparams();
|
|
@@ -38889,6 +38857,7 @@ var init_useroperation = __esm(() => {
|
|
|
38889
38857
|
init_pendleremoveliquidityparams();
|
|
38890
38858
|
init_pendlesellptparams();
|
|
38891
38859
|
init_pendlesellytparams();
|
|
38860
|
+
init_setallowanceparams();
|
|
38892
38861
|
init_skybuyparams();
|
|
38893
38862
|
init_skydepositparams();
|
|
38894
38863
|
init_skysellparams();
|
|
@@ -38923,7 +38892,6 @@ var init_useroperation = __esm(() => {
|
|
|
38923
38892
|
AaveWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_WITHDRAW") }).transform((v2) => ({
|
|
38924
38893
|
actionType: v2.action_type
|
|
38925
38894
|
}))),
|
|
38926
|
-
IncreaseAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("ALLOWANCE_INCREASE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38927
38895
|
PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38928
38896
|
PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
38929
38897
|
actionType: v2.action_type
|
|
@@ -38938,6 +38906,9 @@ var init_useroperation = __esm(() => {
|
|
|
38938
38906
|
PendleSellYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
|
|
38939
38907
|
actionType: v2.action_type
|
|
38940
38908
|
}))),
|
|
38909
|
+
SetAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("SET_ALLOWANCE") }).transform((v2) => ({
|
|
38910
|
+
actionType: v2.action_type
|
|
38911
|
+
}))),
|
|
38941
38912
|
TokenTransferErc20Params$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38942
38913
|
AaveSupplyParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_SUPPLY") }).transform((v2) => ({
|
|
38943
38914
|
actionType: v2.action_type
|
|
@@ -38954,7 +38925,6 @@ var init_useroperation = __esm(() => {
|
|
|
38954
38925
|
MorphoRepayParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_REPAY") }).transform((v2) => ({
|
|
38955
38926
|
actionType: v2.action_type
|
|
38956
38927
|
}))),
|
|
38957
|
-
MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38958
38928
|
MorphoSupplyCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SUPPLY_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38959
38929
|
MorphoWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38960
38930
|
MorphoWithdrawCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
@@ -39003,7 +38973,6 @@ var init_useroperation = __esm(() => {
|
|
|
39003
38973
|
AaveWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_WITHDRAW") }).transform((v2) => ({
|
|
39004
38974
|
action_type: v2.actionType
|
|
39005
38975
|
}))),
|
|
39006
|
-
IncreaseAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("ALLOWANCE_INCREASE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39007
38976
|
PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39008
38977
|
PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
39009
38978
|
action_type: v2.actionType
|
|
@@ -39018,6 +38987,9 @@ var init_useroperation = __esm(() => {
|
|
|
39018
38987
|
PendleSellYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
|
|
39019
38988
|
action_type: v2.actionType
|
|
39020
38989
|
}))),
|
|
38990
|
+
SetAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("SET_ALLOWANCE") }).transform((v2) => ({
|
|
38991
|
+
action_type: v2.actionType
|
|
38992
|
+
}))),
|
|
39021
38993
|
TokenTransferErc20Params$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39022
38994
|
AaveSupplyParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_SUPPLY") }).transform((v2) => ({
|
|
39023
38995
|
action_type: v2.actionType
|
|
@@ -39034,7 +39006,6 @@ var init_useroperation = __esm(() => {
|
|
|
39034
39006
|
MorphoRepayParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_REPAY") }).transform((v2) => ({
|
|
39035
39007
|
action_type: v2.actionType
|
|
39036
39008
|
}))),
|
|
39037
|
-
MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39038
39009
|
MorphoSupplyCollateralParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SUPPLY_COLLATERAL") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39039
39010
|
MorphoWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({
|
|
39040
39011
|
action_type: v2.actionType
|
|
@@ -39090,7 +39061,6 @@ var init_useroperation = __esm(() => {
|
|
|
39090
39061
|
AaveWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_WITHDRAW") }).transform((v2) => ({
|
|
39091
39062
|
actionType: v2.action_type
|
|
39092
39063
|
}))),
|
|
39093
|
-
IncreaseAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("ALLOWANCE_INCREASE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39094
39064
|
PendleAddLiquidityParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39095
39065
|
PendleBuyPtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
39096
39066
|
actionType: v2.action_type
|
|
@@ -39105,6 +39075,9 @@ var init_useroperation = __esm(() => {
|
|
|
39105
39075
|
PendleSellYtParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
|
|
39106
39076
|
actionType: v2.action_type
|
|
39107
39077
|
}))),
|
|
39078
|
+
SetAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("SET_ALLOWANCE") }).transform((v2) => ({
|
|
39079
|
+
actionType: v2.action_type
|
|
39080
|
+
}))),
|
|
39108
39081
|
TokenTransferErc20Params$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39109
39082
|
AaveSupplyParams$inboundSchema.and(objectType({ action_type: literalType("AAVE_SUPPLY") }).transform((v2) => ({
|
|
39110
39083
|
actionType: v2.action_type
|
|
@@ -39121,7 +39094,6 @@ var init_useroperation = __esm(() => {
|
|
|
39121
39094
|
MorphoRepayParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_REPAY") }).transform((v2) => ({
|
|
39122
39095
|
actionType: v2.action_type
|
|
39123
39096
|
}))),
|
|
39124
|
-
MorphoSetVaultAllowanceParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39125
39097
|
MorphoSupplyCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_SUPPLY_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39126
39098
|
MorphoWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39127
39099
|
MorphoWithdrawCollateralParams$inboundSchema.and(objectType({ action_type: literalType("MORPHO_WITHDRAW_COLLATERAL") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
@@ -39172,7 +39144,6 @@ var init_useroperation = __esm(() => {
|
|
|
39172
39144
|
AaveWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_WITHDRAW") }).transform((v2) => ({
|
|
39173
39145
|
action_type: v2.actionType
|
|
39174
39146
|
}))),
|
|
39175
|
-
IncreaseAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("ALLOWANCE_INCREASE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39176
39147
|
PendleAddLiquidityParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39177
39148
|
PendleBuyPtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_BUY_PT") }).transform((v2) => ({
|
|
39178
39149
|
action_type: v2.actionType
|
|
@@ -39187,6 +39158,9 @@ var init_useroperation = __esm(() => {
|
|
|
39187
39158
|
PendleSellYtParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_SELL_YT") }).transform((v2) => ({
|
|
39188
39159
|
action_type: v2.actionType
|
|
39189
39160
|
}))),
|
|
39161
|
+
SetAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("SET_ALLOWANCE") }).transform((v2) => ({
|
|
39162
|
+
action_type: v2.actionType
|
|
39163
|
+
}))),
|
|
39190
39164
|
TokenTransferErc20Params$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER_ERC20") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39191
39165
|
AaveSupplyParams$outboundSchema.and(objectType({ actionType: literalType("AAVE_SUPPLY") }).transform((v2) => ({
|
|
39192
39166
|
action_type: v2.actionType
|
|
@@ -39203,7 +39177,6 @@ var init_useroperation = __esm(() => {
|
|
|
39203
39177
|
MorphoRepayParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_REPAY") }).transform((v2) => ({
|
|
39204
39178
|
action_type: v2.actionType
|
|
39205
39179
|
}))),
|
|
39206
|
-
MorphoSetVaultAllowanceParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39207
39180
|
MorphoSupplyCollateralParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_SUPPLY_COLLATERAL") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39208
39181
|
MorphoWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("MORPHO_WITHDRAW") }).transform((v2) => ({
|
|
39209
39182
|
action_type: v2.actionType
|
|
@@ -39880,76 +39853,6 @@ var init_image = __esm(() => {
|
|
|
39880
39853
|
})(Image$ ||= {});
|
|
39881
39854
|
});
|
|
39882
39855
|
|
|
39883
|
-
// src/models/components/increaseallowancerequest.ts
|
|
39884
|
-
var IncreaseAllowanceRequestContractName, IncreaseAllowanceRequestToken$inboundSchema, IncreaseAllowanceRequestToken$outboundSchema, IncreaseAllowanceRequestToken$, IncreaseAllowanceRequestContractName$inboundSchema, IncreaseAllowanceRequestContractName$outboundSchema, IncreaseAllowanceRequestContractName$, IncreaseAllowanceRequestAmount$inboundSchema, IncreaseAllowanceRequestAmount$outboundSchema, IncreaseAllowanceRequestAmount$, IncreaseAllowanceRequest$inboundSchema, IncreaseAllowanceRequest$outboundSchema, IncreaseAllowanceRequest$;
|
|
39885
|
-
var init_increaseallowancerequest = __esm(() => {
|
|
39886
|
-
init_esm();
|
|
39887
|
-
init_primitives();
|
|
39888
|
-
init_chain();
|
|
39889
|
-
init_tokenenum();
|
|
39890
|
-
IncreaseAllowanceRequestContractName = {
|
|
39891
|
-
AaveV3Pool: "AaveV3Pool",
|
|
39892
|
-
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
39893
|
-
AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
|
|
39894
|
-
AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
|
|
39895
|
-
UniswapV3Router: "UniswapV3Router",
|
|
39896
|
-
UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
|
|
39897
|
-
Morpho: "Morpho",
|
|
39898
|
-
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
39899
|
-
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
39900
|
-
SkyUsdsVault: "SkyUsdsVault",
|
|
39901
|
-
PendleRouter: "PendleRouter"
|
|
39902
|
-
};
|
|
39903
|
-
IncreaseAllowanceRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
39904
|
-
IncreaseAllowanceRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
39905
|
-
((IncreaseAllowanceRequestToken$) => {
|
|
39906
|
-
IncreaseAllowanceRequestToken$.inboundSchema = IncreaseAllowanceRequestToken$inboundSchema;
|
|
39907
|
-
IncreaseAllowanceRequestToken$.outboundSchema = IncreaseAllowanceRequestToken$outboundSchema;
|
|
39908
|
-
})(IncreaseAllowanceRequestToken$ ||= {});
|
|
39909
|
-
IncreaseAllowanceRequestContractName$inboundSchema = nativeEnumType(IncreaseAllowanceRequestContractName);
|
|
39910
|
-
IncreaseAllowanceRequestContractName$outboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
|
|
39911
|
-
((IncreaseAllowanceRequestContractName$) => {
|
|
39912
|
-
IncreaseAllowanceRequestContractName$.inboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
|
|
39913
|
-
IncreaseAllowanceRequestContractName$.outboundSchema = IncreaseAllowanceRequestContractName$outboundSchema;
|
|
39914
|
-
})(IncreaseAllowanceRequestContractName$ ||= {});
|
|
39915
|
-
IncreaseAllowanceRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
39916
|
-
IncreaseAllowanceRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
39917
|
-
((IncreaseAllowanceRequestAmount$) => {
|
|
39918
|
-
IncreaseAllowanceRequestAmount$.inboundSchema = IncreaseAllowanceRequestAmount$inboundSchema;
|
|
39919
|
-
IncreaseAllowanceRequestAmount$.outboundSchema = IncreaseAllowanceRequestAmount$outboundSchema;
|
|
39920
|
-
})(IncreaseAllowanceRequestAmount$ ||= {});
|
|
39921
|
-
IncreaseAllowanceRequest$inboundSchema = objectType({
|
|
39922
|
-
action_type: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
|
|
39923
|
-
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
39924
|
-
contract_name: IncreaseAllowanceRequestContractName$inboundSchema,
|
|
39925
|
-
amount: unionType([numberType(), stringType()]),
|
|
39926
|
-
chain: Chain$inboundSchema,
|
|
39927
|
-
sender: stringType()
|
|
39928
|
-
}).transform((v2) => {
|
|
39929
|
-
return remap(v2, {
|
|
39930
|
-
action_type: "actionType",
|
|
39931
|
-
contract_name: "contractName"
|
|
39932
|
-
});
|
|
39933
|
-
});
|
|
39934
|
-
IncreaseAllowanceRequest$outboundSchema = objectType({
|
|
39935
|
-
actionType: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
|
|
39936
|
-
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
39937
|
-
contractName: IncreaseAllowanceRequestContractName$outboundSchema,
|
|
39938
|
-
amount: unionType([numberType(), stringType()]),
|
|
39939
|
-
chain: Chain$outboundSchema,
|
|
39940
|
-
sender: stringType()
|
|
39941
|
-
}).transform((v2) => {
|
|
39942
|
-
return remap(v2, {
|
|
39943
|
-
actionType: "action_type",
|
|
39944
|
-
contractName: "contract_name"
|
|
39945
|
-
});
|
|
39946
|
-
});
|
|
39947
|
-
((IncreaseAllowanceRequest$) => {
|
|
39948
|
-
IncreaseAllowanceRequest$.inboundSchema = IncreaseAllowanceRequest$inboundSchema;
|
|
39949
|
-
IncreaseAllowanceRequest$.outboundSchema = IncreaseAllowanceRequest$outboundSchema;
|
|
39950
|
-
})(IncreaseAllowanceRequest$ ||= {});
|
|
39951
|
-
});
|
|
39952
|
-
|
|
39953
39856
|
// src/models/components/liquidity.ts
|
|
39954
39857
|
var Liquidity$inboundSchema, Liquidity$outboundSchema, Liquidity$;
|
|
39955
39858
|
var init_liquidity = __esm(() => {
|
|
@@ -40577,57 +40480,6 @@ var init_morphorepayrequest = __esm(() => {
|
|
|
40577
40480
|
})(MorphoRepayRequest$ ||= {});
|
|
40578
40481
|
});
|
|
40579
40482
|
|
|
40580
|
-
// src/models/components/morphosetvaultallowancerequest.ts
|
|
40581
|
-
var MorphoSetVaultAllowanceRequestChain, MorphoSetVaultAllowanceRequestAmount$inboundSchema, MorphoSetVaultAllowanceRequestAmount$outboundSchema, MorphoSetVaultAllowanceRequestAmount$, MorphoSetVaultAllowanceRequestChain$inboundSchema, MorphoSetVaultAllowanceRequestChain$outboundSchema, MorphoSetVaultAllowanceRequestChain$, MorphoSetVaultAllowanceRequest$inboundSchema, MorphoSetVaultAllowanceRequest$outboundSchema, MorphoSetVaultAllowanceRequest$;
|
|
40582
|
-
var init_morphosetvaultallowancerequest = __esm(() => {
|
|
40583
|
-
init_esm();
|
|
40584
|
-
init_primitives();
|
|
40585
|
-
MorphoSetVaultAllowanceRequestChain = {
|
|
40586
|
-
EthereumMainnet: "ethereum:mainnet",
|
|
40587
|
-
BaseMainnet: "base:mainnet"
|
|
40588
|
-
};
|
|
40589
|
-
MorphoSetVaultAllowanceRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
40590
|
-
MorphoSetVaultAllowanceRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
40591
|
-
((MorphoSetVaultAllowanceRequestAmount$) => {
|
|
40592
|
-
MorphoSetVaultAllowanceRequestAmount$.inboundSchema = MorphoSetVaultAllowanceRequestAmount$inboundSchema;
|
|
40593
|
-
MorphoSetVaultAllowanceRequestAmount$.outboundSchema = MorphoSetVaultAllowanceRequestAmount$outboundSchema;
|
|
40594
|
-
})(MorphoSetVaultAllowanceRequestAmount$ ||= {});
|
|
40595
|
-
MorphoSetVaultAllowanceRequestChain$inboundSchema = nativeEnumType(MorphoSetVaultAllowanceRequestChain);
|
|
40596
|
-
MorphoSetVaultAllowanceRequestChain$outboundSchema = MorphoSetVaultAllowanceRequestChain$inboundSchema;
|
|
40597
|
-
((MorphoSetVaultAllowanceRequestChain$) => {
|
|
40598
|
-
MorphoSetVaultAllowanceRequestChain$.inboundSchema = MorphoSetVaultAllowanceRequestChain$inboundSchema;
|
|
40599
|
-
MorphoSetVaultAllowanceRequestChain$.outboundSchema = MorphoSetVaultAllowanceRequestChain$outboundSchema;
|
|
40600
|
-
})(MorphoSetVaultAllowanceRequestChain$ ||= {});
|
|
40601
|
-
MorphoSetVaultAllowanceRequest$inboundSchema = objectType({
|
|
40602
|
-
action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
|
|
40603
|
-
vault_address: stringType(),
|
|
40604
|
-
amount: unionType([numberType(), stringType()]),
|
|
40605
|
-
chain: MorphoSetVaultAllowanceRequestChain$inboundSchema,
|
|
40606
|
-
sender: stringType()
|
|
40607
|
-
}).transform((v2) => {
|
|
40608
|
-
return remap(v2, {
|
|
40609
|
-
action_type: "actionType",
|
|
40610
|
-
vault_address: "vaultAddress"
|
|
40611
|
-
});
|
|
40612
|
-
});
|
|
40613
|
-
MorphoSetVaultAllowanceRequest$outboundSchema = objectType({
|
|
40614
|
-
actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
|
|
40615
|
-
vaultAddress: stringType(),
|
|
40616
|
-
amount: unionType([numberType(), stringType()]),
|
|
40617
|
-
chain: MorphoSetVaultAllowanceRequestChain$outboundSchema,
|
|
40618
|
-
sender: stringType()
|
|
40619
|
-
}).transform((v2) => {
|
|
40620
|
-
return remap(v2, {
|
|
40621
|
-
actionType: "action_type",
|
|
40622
|
-
vaultAddress: "vault_address"
|
|
40623
|
-
});
|
|
40624
|
-
});
|
|
40625
|
-
((MorphoSetVaultAllowanceRequest$) => {
|
|
40626
|
-
MorphoSetVaultAllowanceRequest$.inboundSchema = MorphoSetVaultAllowanceRequest$inboundSchema;
|
|
40627
|
-
MorphoSetVaultAllowanceRequest$.outboundSchema = MorphoSetVaultAllowanceRequest$outboundSchema;
|
|
40628
|
-
})(MorphoSetVaultAllowanceRequest$ ||= {});
|
|
40629
|
-
});
|
|
40630
|
-
|
|
40631
40483
|
// src/models/components/morphosupplycollateralrequest.ts
|
|
40632
40484
|
var MorphoSupplyCollateralRequestChain, MorphoSupplyCollateralRequestAmount$inboundSchema, MorphoSupplyCollateralRequestAmount$outboundSchema, MorphoSupplyCollateralRequestAmount$, MorphoSupplyCollateralRequestChain$inboundSchema, MorphoSupplyCollateralRequestChain$outboundSchema, MorphoSupplyCollateralRequestChain$, MorphoSupplyCollateralRequest$inboundSchema, MorphoSupplyCollateralRequest$outboundSchema, MorphoSupplyCollateralRequest$;
|
|
40633
40485
|
var init_morphosupplycollateralrequest = __esm(() => {
|
|
@@ -41476,6 +41328,86 @@ var init_security2 = __esm(() => {
|
|
|
41476
41328
|
})(Security$ ||= {});
|
|
41477
41329
|
});
|
|
41478
41330
|
|
|
41331
|
+
// src/models/components/setallowancerequest.ts
|
|
41332
|
+
var SetAllowanceRequestContractEnum, SetAllowanceRequestToken$inboundSchema, SetAllowanceRequestToken$outboundSchema, SetAllowanceRequestToken$, SetAllowanceRequestContractEnum$inboundSchema, SetAllowanceRequestContractEnum$outboundSchema, SetAllowanceRequestContractEnum$, SetAllowanceRequestContractUnion$inboundSchema, SetAllowanceRequestContractUnion$outboundSchema, SetAllowanceRequestContractUnion$, SetAllowanceRequestAmount$inboundSchema, SetAllowanceRequestAmount$outboundSchema, SetAllowanceRequestAmount$, SetAllowanceRequest$inboundSchema, SetAllowanceRequest$outboundSchema, SetAllowanceRequest$;
|
|
41333
|
+
var init_setallowancerequest = __esm(() => {
|
|
41334
|
+
init_esm();
|
|
41335
|
+
init_primitives();
|
|
41336
|
+
init_chain();
|
|
41337
|
+
init_tokenenum();
|
|
41338
|
+
SetAllowanceRequestContractEnum = {
|
|
41339
|
+
AaveV3Pool: "AaveV3Pool",
|
|
41340
|
+
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
41341
|
+
AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
|
|
41342
|
+
AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
|
|
41343
|
+
UniswapV3Router: "UniswapV3Router",
|
|
41344
|
+
UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
|
|
41345
|
+
Morpho: "Morpho",
|
|
41346
|
+
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
41347
|
+
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
41348
|
+
SkyUsdsVault: "SkyUsdsVault",
|
|
41349
|
+
PendleRouter: "PendleRouter"
|
|
41350
|
+
};
|
|
41351
|
+
SetAllowanceRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
41352
|
+
SetAllowanceRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
41353
|
+
((SetAllowanceRequestToken$) => {
|
|
41354
|
+
SetAllowanceRequestToken$.inboundSchema = SetAllowanceRequestToken$inboundSchema;
|
|
41355
|
+
SetAllowanceRequestToken$.outboundSchema = SetAllowanceRequestToken$outboundSchema;
|
|
41356
|
+
})(SetAllowanceRequestToken$ ||= {});
|
|
41357
|
+
SetAllowanceRequestContractEnum$inboundSchema = nativeEnumType(SetAllowanceRequestContractEnum);
|
|
41358
|
+
SetAllowanceRequestContractEnum$outboundSchema = SetAllowanceRequestContractEnum$inboundSchema;
|
|
41359
|
+
((SetAllowanceRequestContractEnum$) => {
|
|
41360
|
+
SetAllowanceRequestContractEnum$.inboundSchema = SetAllowanceRequestContractEnum$inboundSchema;
|
|
41361
|
+
SetAllowanceRequestContractEnum$.outboundSchema = SetAllowanceRequestContractEnum$outboundSchema;
|
|
41362
|
+
})(SetAllowanceRequestContractEnum$ ||= {});
|
|
41363
|
+
SetAllowanceRequestContractUnion$inboundSchema = unionType([SetAllowanceRequestContractEnum$inboundSchema, stringType()]);
|
|
41364
|
+
SetAllowanceRequestContractUnion$outboundSchema = unionType([SetAllowanceRequestContractEnum$outboundSchema, stringType()]);
|
|
41365
|
+
((SetAllowanceRequestContractUnion$) => {
|
|
41366
|
+
SetAllowanceRequestContractUnion$.inboundSchema = SetAllowanceRequestContractUnion$inboundSchema;
|
|
41367
|
+
SetAllowanceRequestContractUnion$.outboundSchema = SetAllowanceRequestContractUnion$outboundSchema;
|
|
41368
|
+
})(SetAllowanceRequestContractUnion$ ||= {});
|
|
41369
|
+
SetAllowanceRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
41370
|
+
SetAllowanceRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
41371
|
+
((SetAllowanceRequestAmount$) => {
|
|
41372
|
+
SetAllowanceRequestAmount$.inboundSchema = SetAllowanceRequestAmount$inboundSchema;
|
|
41373
|
+
SetAllowanceRequestAmount$.outboundSchema = SetAllowanceRequestAmount$outboundSchema;
|
|
41374
|
+
})(SetAllowanceRequestAmount$ ||= {});
|
|
41375
|
+
SetAllowanceRequest$inboundSchema = objectType({
|
|
41376
|
+
action_type: literalType("SET_ALLOWANCE").default("SET_ALLOWANCE"),
|
|
41377
|
+
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
41378
|
+
contract: unionType([
|
|
41379
|
+
SetAllowanceRequestContractEnum$inboundSchema,
|
|
41380
|
+
stringType()
|
|
41381
|
+
]),
|
|
41382
|
+
amount: unionType([numberType(), stringType()]),
|
|
41383
|
+
chain: Chain$inboundSchema,
|
|
41384
|
+
sender: stringType()
|
|
41385
|
+
}).transform((v2) => {
|
|
41386
|
+
return remap(v2, {
|
|
41387
|
+
action_type: "actionType"
|
|
41388
|
+
});
|
|
41389
|
+
});
|
|
41390
|
+
SetAllowanceRequest$outboundSchema = objectType({
|
|
41391
|
+
actionType: literalType("SET_ALLOWANCE").default("SET_ALLOWANCE"),
|
|
41392
|
+
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
41393
|
+
contract: unionType([
|
|
41394
|
+
SetAllowanceRequestContractEnum$outboundSchema,
|
|
41395
|
+
stringType()
|
|
41396
|
+
]),
|
|
41397
|
+
amount: unionType([numberType(), stringType()]),
|
|
41398
|
+
chain: Chain$outboundSchema,
|
|
41399
|
+
sender: stringType()
|
|
41400
|
+
}).transform((v2) => {
|
|
41401
|
+
return remap(v2, {
|
|
41402
|
+
actionType: "action_type"
|
|
41403
|
+
});
|
|
41404
|
+
});
|
|
41405
|
+
((SetAllowanceRequest$) => {
|
|
41406
|
+
SetAllowanceRequest$.inboundSchema = SetAllowanceRequest$inboundSchema;
|
|
41407
|
+
SetAllowanceRequest$.outboundSchema = SetAllowanceRequest$outboundSchema;
|
|
41408
|
+
})(SetAllowanceRequest$ ||= {});
|
|
41409
|
+
});
|
|
41410
|
+
|
|
41479
41411
|
// src/models/components/skybuyrequest.ts
|
|
41480
41412
|
var SkyBuyRequestTokenIn, SkyBuyRequestTokenIn$inboundSchema, SkyBuyRequestTokenIn$outboundSchema, SkyBuyRequestTokenIn$, SkyBuyRequestAmount$inboundSchema, SkyBuyRequestAmount$outboundSchema, SkyBuyRequestAmount$, SkyBuyRequest$inboundSchema, SkyBuyRequest$outboundSchema, SkyBuyRequest$;
|
|
41481
41413
|
var init_skybuyrequest = __esm(() => {
|
|
@@ -42482,6 +42414,88 @@ var init_validationerror = __esm(() => {
|
|
|
42482
42414
|
})(ValidationError$ ||= {});
|
|
42483
42415
|
});
|
|
42484
42416
|
|
|
42417
|
+
// src/models/components/vaultdepositrequest.ts
|
|
42418
|
+
var VaultDepositRequestAmount$inboundSchema, VaultDepositRequestAmount$outboundSchema, VaultDepositRequestAmount$, VaultDepositRequest$inboundSchema, VaultDepositRequest$outboundSchema, VaultDepositRequest$;
|
|
42419
|
+
var init_vaultdepositrequest = __esm(() => {
|
|
42420
|
+
init_esm();
|
|
42421
|
+
init_primitives();
|
|
42422
|
+
init_chain();
|
|
42423
|
+
VaultDepositRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
42424
|
+
VaultDepositRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
42425
|
+
((VaultDepositRequestAmount$) => {
|
|
42426
|
+
VaultDepositRequestAmount$.inboundSchema = VaultDepositRequestAmount$inboundSchema;
|
|
42427
|
+
VaultDepositRequestAmount$.outboundSchema = VaultDepositRequestAmount$outboundSchema;
|
|
42428
|
+
})(VaultDepositRequestAmount$ ||= {});
|
|
42429
|
+
VaultDepositRequest$inboundSchema = objectType({
|
|
42430
|
+
action_type: literalType("VAULT_DEPOSIT").default("VAULT_DEPOSIT"),
|
|
42431
|
+
vault_address: stringType(),
|
|
42432
|
+
amount: unionType([numberType(), stringType()]),
|
|
42433
|
+
receiver: nullableType(stringType()).optional(),
|
|
42434
|
+
chain: Chain$inboundSchema,
|
|
42435
|
+
sender: stringType()
|
|
42436
|
+
}).transform((v2) => {
|
|
42437
|
+
return remap(v2, {
|
|
42438
|
+
action_type: "actionType",
|
|
42439
|
+
vault_address: "vaultAddress"
|
|
42440
|
+
});
|
|
42441
|
+
});
|
|
42442
|
+
VaultDepositRequest$outboundSchema = objectType({
|
|
42443
|
+
actionType: literalType("VAULT_DEPOSIT").default("VAULT_DEPOSIT"),
|
|
42444
|
+
vaultAddress: stringType(),
|
|
42445
|
+
amount: unionType([numberType(), stringType()]),
|
|
42446
|
+
receiver: nullableType(stringType()).optional(),
|
|
42447
|
+
chain: Chain$outboundSchema,
|
|
42448
|
+
sender: stringType()
|
|
42449
|
+
}).transform((v2) => {
|
|
42450
|
+
return remap(v2, {
|
|
42451
|
+
actionType: "action_type",
|
|
42452
|
+
vaultAddress: "vault_address"
|
|
42453
|
+
});
|
|
42454
|
+
});
|
|
42455
|
+
((VaultDepositRequest$) => {
|
|
42456
|
+
VaultDepositRequest$.inboundSchema = VaultDepositRequest$inboundSchema;
|
|
42457
|
+
VaultDepositRequest$.outboundSchema = VaultDepositRequest$outboundSchema;
|
|
42458
|
+
})(VaultDepositRequest$ ||= {});
|
|
42459
|
+
});
|
|
42460
|
+
|
|
42461
|
+
// src/models/components/vaultwithdrawrequest.ts
|
|
42462
|
+
var VaultWithdrawRequest$inboundSchema, VaultWithdrawRequest$outboundSchema, VaultWithdrawRequest$;
|
|
42463
|
+
var init_vaultwithdrawrequest = __esm(() => {
|
|
42464
|
+
init_esm();
|
|
42465
|
+
init_primitives();
|
|
42466
|
+
init_chain();
|
|
42467
|
+
VaultWithdrawRequest$inboundSchema = objectType({
|
|
42468
|
+
action_type: literalType("VAULT_WITHDRAW").default("VAULT_WITHDRAW"),
|
|
42469
|
+
vault_address: stringType(),
|
|
42470
|
+
amount: anyType().optional(),
|
|
42471
|
+
receiver: nullableType(stringType()).optional(),
|
|
42472
|
+
chain: Chain$inboundSchema,
|
|
42473
|
+
sender: stringType()
|
|
42474
|
+
}).transform((v2) => {
|
|
42475
|
+
return remap(v2, {
|
|
42476
|
+
action_type: "actionType",
|
|
42477
|
+
vault_address: "vaultAddress"
|
|
42478
|
+
});
|
|
42479
|
+
});
|
|
42480
|
+
VaultWithdrawRequest$outboundSchema = objectType({
|
|
42481
|
+
actionType: literalType("VAULT_WITHDRAW").default("VAULT_WITHDRAW"),
|
|
42482
|
+
vaultAddress: stringType(),
|
|
42483
|
+
amount: anyType().optional(),
|
|
42484
|
+
receiver: nullableType(stringType()).optional(),
|
|
42485
|
+
chain: Chain$outboundSchema,
|
|
42486
|
+
sender: stringType()
|
|
42487
|
+
}).transform((v2) => {
|
|
42488
|
+
return remap(v2, {
|
|
42489
|
+
actionType: "action_type",
|
|
42490
|
+
vaultAddress: "vault_address"
|
|
42491
|
+
});
|
|
42492
|
+
});
|
|
42493
|
+
((VaultWithdrawRequest$) => {
|
|
42494
|
+
VaultWithdrawRequest$.inboundSchema = VaultWithdrawRequest$inboundSchema;
|
|
42495
|
+
VaultWithdrawRequest$.outboundSchema = VaultWithdrawRequest$outboundSchema;
|
|
42496
|
+
})(VaultWithdrawRequest$ ||= {});
|
|
42497
|
+
});
|
|
42498
|
+
|
|
42485
42499
|
// src/models/components/wrapethrequest.ts
|
|
42486
42500
|
var WrapEthRequestAmount$inboundSchema, WrapEthRequestAmount$outboundSchema, WrapEthRequestAmount$, WrapEthRequest$inboundSchema, WrapEthRequest$outboundSchema, WrapEthRequest$;
|
|
42487
42501
|
var init_wrapethrequest = __esm(() => {
|
|
@@ -42580,8 +42594,6 @@ var init_components = __esm(() => {
|
|
|
42580
42594
|
init_erc20data();
|
|
42581
42595
|
init_feeenum();
|
|
42582
42596
|
init_image();
|
|
42583
|
-
init_increaseallowanceparams();
|
|
42584
|
-
init_increaseallowancerequest();
|
|
42585
42597
|
init_interestratemode();
|
|
42586
42598
|
init_liquidationcall();
|
|
42587
42599
|
init_liquidity();
|
|
@@ -42603,8 +42615,6 @@ var init_components = __esm(() => {
|
|
|
42603
42615
|
init_morphomarket();
|
|
42604
42616
|
init_morphorepayparams();
|
|
42605
42617
|
init_morphorepayrequest();
|
|
42606
|
-
init_morphosetvaultallowanceparams();
|
|
42607
|
-
init_morphosetvaultallowancerequest();
|
|
42608
42618
|
init_morphosupplycollateralparams();
|
|
42609
42619
|
init_morphosupplycollateralrequest();
|
|
42610
42620
|
init_morphovault();
|
|
@@ -42642,6 +42652,8 @@ var init_components = __esm(() => {
|
|
|
42642
42652
|
init_repay();
|
|
42643
42653
|
init_reserve();
|
|
42644
42654
|
init_security2();
|
|
42655
|
+
init_setallowanceparams();
|
|
42656
|
+
init_setallowancerequest();
|
|
42645
42657
|
init_signedauthorization();
|
|
42646
42658
|
init_skybuyparams();
|
|
42647
42659
|
init_skybuyrequest();
|
|
@@ -42689,7 +42701,9 @@ var init_components = __esm(() => {
|
|
|
42689
42701
|
init_userstate();
|
|
42690
42702
|
init_validationerror();
|
|
42691
42703
|
init_vault();
|
|
42704
|
+
init_vaultdepositrequest();
|
|
42692
42705
|
init_vaultposition();
|
|
42706
|
+
init_vaultwithdrawrequest();
|
|
42693
42707
|
init_weeklyapys();
|
|
42694
42708
|
init_wrapethparams();
|
|
42695
42709
|
init_wrapethrequest();
|
|
@@ -43597,17 +43611,16 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
|
|
|
43597
43611
|
});
|
|
43598
43612
|
|
|
43599
43613
|
// src/models/operations/genericallowance.ts
|
|
43600
|
-
var GenericAllowanceChain,
|
|
43614
|
+
var GenericAllowanceChain, ContractEnum, GenericAllowanceChain$inboundSchema, GenericAllowanceChain$outboundSchema, GenericAllowanceChain$, GenericAllowanceToken$inboundSchema, GenericAllowanceToken$outboundSchema, GenericAllowanceToken$, ContractEnum$inboundSchema, ContractEnum$outboundSchema, ContractEnum$, Contract$inboundSchema, Contract$outboundSchema, Contract$, GenericAllowanceRequest$inboundSchema, GenericAllowanceRequest$outboundSchema, GenericAllowanceRequest$;
|
|
43601
43615
|
var init_genericallowance = __esm(() => {
|
|
43602
43616
|
init_esm();
|
|
43603
|
-
init_primitives();
|
|
43604
43617
|
init_components();
|
|
43605
43618
|
GenericAllowanceChain = {
|
|
43606
43619
|
BaseMainnet: "base:mainnet",
|
|
43607
43620
|
EthereumMainnet: "ethereum:mainnet",
|
|
43608
43621
|
ArbitrumMainnet: "arbitrum:mainnet"
|
|
43609
43622
|
};
|
|
43610
|
-
|
|
43623
|
+
ContractEnum = {
|
|
43611
43624
|
AaveV3Pool: "AaveV3Pool",
|
|
43612
43625
|
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
43613
43626
|
AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
|
|
@@ -43632,31 +43645,29 @@ var init_genericallowance = __esm(() => {
|
|
|
43632
43645
|
GenericAllowanceToken$.inboundSchema = GenericAllowanceToken$inboundSchema;
|
|
43633
43646
|
GenericAllowanceToken$.outboundSchema = GenericAllowanceToken$outboundSchema;
|
|
43634
43647
|
})(GenericAllowanceToken$ ||= {});
|
|
43635
|
-
|
|
43636
|
-
|
|
43637
|
-
((
|
|
43638
|
-
|
|
43639
|
-
|
|
43640
|
-
})(
|
|
43648
|
+
ContractEnum$inboundSchema = nativeEnumType(ContractEnum);
|
|
43649
|
+
ContractEnum$outboundSchema = ContractEnum$inboundSchema;
|
|
43650
|
+
((ContractEnum$) => {
|
|
43651
|
+
ContractEnum$.inboundSchema = ContractEnum$inboundSchema;
|
|
43652
|
+
ContractEnum$.outboundSchema = ContractEnum$outboundSchema;
|
|
43653
|
+
})(ContractEnum$ ||= {});
|
|
43654
|
+
Contract$inboundSchema = unionType([ContractEnum$inboundSchema, stringType()]);
|
|
43655
|
+
Contract$outboundSchema = unionType([ContractEnum$outboundSchema, stringType()]);
|
|
43656
|
+
((Contract$) => {
|
|
43657
|
+
Contract$.inboundSchema = Contract$inboundSchema;
|
|
43658
|
+
Contract$.outboundSchema = Contract$outboundSchema;
|
|
43659
|
+
})(Contract$ ||= {});
|
|
43641
43660
|
GenericAllowanceRequest$inboundSchema = objectType({
|
|
43642
43661
|
chain: GenericAllowanceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
43643
43662
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
43644
43663
|
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
43645
|
-
|
|
43646
|
-
}).transform((v2) => {
|
|
43647
|
-
return remap(v2, {
|
|
43648
|
-
contract_name: "contractName"
|
|
43649
|
-
});
|
|
43664
|
+
contract: unionType([ContractEnum$inboundSchema, stringType()])
|
|
43650
43665
|
});
|
|
43651
43666
|
GenericAllowanceRequest$outboundSchema = objectType({
|
|
43652
43667
|
chain: GenericAllowanceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
43653
43668
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
43654
43669
|
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
43655
|
-
|
|
43656
|
-
}).transform((v2) => {
|
|
43657
|
-
return remap(v2, {
|
|
43658
|
-
contractName: "contract_name"
|
|
43659
|
-
});
|
|
43670
|
+
contract: unionType([ContractEnum$outboundSchema, stringType()])
|
|
43660
43671
|
});
|
|
43661
43672
|
((GenericAllowanceRequest$) => {
|
|
43662
43673
|
GenericAllowanceRequest$.inboundSchema = GenericAllowanceRequest$inboundSchema;
|
|
@@ -47334,18 +47345,18 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
47334
47345
|
};
|
|
47335
47346
|
});
|
|
47336
47347
|
|
|
47337
|
-
// src/funcs/
|
|
47338
|
-
function
|
|
47348
|
+
// src/funcs/morphoBorrow.ts
|
|
47349
|
+
function morphoBorrow(client, request, options) {
|
|
47339
47350
|
return new APIPromise($do21(client, request, options));
|
|
47340
47351
|
}
|
|
47341
47352
|
async function $do21(client, request, options) {
|
|
47342
|
-
const parsed = safeParse(request, (value) =>
|
|
47353
|
+
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47343
47354
|
if (!parsed.ok) {
|
|
47344
47355
|
return [parsed, { status: "invalid" }];
|
|
47345
47356
|
}
|
|
47346
47357
|
const payload = parsed.value;
|
|
47347
47358
|
const body = encodeJSON("body", payload, { explode: true });
|
|
47348
|
-
const path = pathToFunc("/v0/morpho/
|
|
47359
|
+
const path = pathToFunc("/v0/morpho/borrow")();
|
|
47349
47360
|
const headers = new Headers(compactMap({
|
|
47350
47361
|
"Content-Type": "application/json",
|
|
47351
47362
|
Accept: "application/json"
|
|
@@ -47356,7 +47367,7 @@ async function $do21(client, request, options) {
|
|
|
47356
47367
|
const context = {
|
|
47357
47368
|
options: client._options,
|
|
47358
47369
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47359
|
-
operationID: "
|
|
47370
|
+
operationID: "morpho_borrow",
|
|
47360
47371
|
oAuth2Scopes: [],
|
|
47361
47372
|
resolvedSecurity: requestSecurity,
|
|
47362
47373
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -47396,114 +47407,7 @@ async function $do21(client, request, options) {
|
|
|
47396
47407
|
}
|
|
47397
47408
|
return [result, { status: "complete", request: req, response }];
|
|
47398
47409
|
}
|
|
47399
|
-
var
|
|
47400
|
-
init_encodings();
|
|
47401
|
-
init_matchers();
|
|
47402
|
-
init_primitives();
|
|
47403
|
-
init_schemas();
|
|
47404
|
-
init_security();
|
|
47405
|
-
init_url();
|
|
47406
|
-
init_components();
|
|
47407
|
-
init_errors2();
|
|
47408
|
-
init_async();
|
|
47409
|
-
});
|
|
47410
|
-
|
|
47411
|
-
// src/mcp-server/tools/morphoAllowance.ts
|
|
47412
|
-
var args21, tool$morphoAllowance;
|
|
47413
|
-
var init_morphoAllowance2 = __esm(() => {
|
|
47414
|
-
init_morphoAllowance();
|
|
47415
|
-
init_components();
|
|
47416
|
-
init_tools();
|
|
47417
|
-
args21 = {
|
|
47418
|
-
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
47419
|
-
};
|
|
47420
|
-
tool$morphoAllowance = {
|
|
47421
|
-
name: "morpho-allowance",
|
|
47422
|
-
description: `Set Allowance for Vault
|
|
47423
|
-
|
|
47424
|
-
Set an allowance for a Morpho vault. You must set this for at least the amount you wish to deposit - before depositing.
|
|
47425
|
-
|
|
47426
|
-
Each vault has only one associated token that can be deposited.
|
|
47427
|
-
|
|
47428
|
-
Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
47429
|
-
args: args21,
|
|
47430
|
-
tool: async (client, args22, ctx) => {
|
|
47431
|
-
const [result, apiCall] = await morphoAllowance(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47432
|
-
if (!result.ok) {
|
|
47433
|
-
return {
|
|
47434
|
-
content: [{ type: "text", text: result.error.message }],
|
|
47435
|
-
isError: true
|
|
47436
|
-
};
|
|
47437
|
-
}
|
|
47438
|
-
const value = result.value;
|
|
47439
|
-
return formatResult(value, apiCall);
|
|
47440
|
-
}
|
|
47441
|
-
};
|
|
47442
|
-
});
|
|
47443
|
-
|
|
47444
|
-
// src/funcs/morphoBorrow.ts
|
|
47445
|
-
function morphoBorrow(client, request, options) {
|
|
47446
|
-
return new APIPromise($do22(client, request, options));
|
|
47447
|
-
}
|
|
47448
|
-
async function $do22(client, request, options) {
|
|
47449
|
-
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47450
|
-
if (!parsed.ok) {
|
|
47451
|
-
return [parsed, { status: "invalid" }];
|
|
47452
|
-
}
|
|
47453
|
-
const payload = parsed.value;
|
|
47454
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
47455
|
-
const path = pathToFunc("/v0/morpho/borrow")();
|
|
47456
|
-
const headers = new Headers(compactMap({
|
|
47457
|
-
"Content-Type": "application/json",
|
|
47458
|
-
Accept: "application/json"
|
|
47459
|
-
}));
|
|
47460
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
47461
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
47462
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47463
|
-
const context = {
|
|
47464
|
-
options: client._options,
|
|
47465
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47466
|
-
operationID: "morpho_borrow",
|
|
47467
|
-
oAuth2Scopes: [],
|
|
47468
|
-
resolvedSecurity: requestSecurity,
|
|
47469
|
-
securitySource: client._options.apiKeyAuth,
|
|
47470
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
47471
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
47472
|
-
};
|
|
47473
|
-
const requestRes = client._createRequest(context, {
|
|
47474
|
-
security: requestSecurity,
|
|
47475
|
-
method: "POST",
|
|
47476
|
-
baseURL: options?.serverURL,
|
|
47477
|
-
path,
|
|
47478
|
-
headers,
|
|
47479
|
-
body,
|
|
47480
|
-
userAgent: client._options.userAgent,
|
|
47481
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47482
|
-
}, options);
|
|
47483
|
-
if (!requestRes.ok) {
|
|
47484
|
-
return [requestRes, { status: "invalid" }];
|
|
47485
|
-
}
|
|
47486
|
-
const req = requestRes.value;
|
|
47487
|
-
const doResult = await client._do(req, {
|
|
47488
|
-
context,
|
|
47489
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
47490
|
-
retryConfig: context.retryConfig,
|
|
47491
|
-
retryCodes: context.retryCodes
|
|
47492
|
-
});
|
|
47493
|
-
if (!doResult.ok) {
|
|
47494
|
-
return [doResult, { status: "request-error", request: req }];
|
|
47495
|
-
}
|
|
47496
|
-
const response = doResult.value;
|
|
47497
|
-
const responseFields = {
|
|
47498
|
-
HttpMeta: { Response: response, Request: req }
|
|
47499
|
-
};
|
|
47500
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47501
|
-
if (!result.ok) {
|
|
47502
|
-
return [result, { status: "complete", request: req, response }];
|
|
47503
|
-
}
|
|
47504
|
-
return [result, { status: "complete", request: req, response }];
|
|
47505
|
-
}
|
|
47506
|
-
var init_morphoBorrow = __esm(() => {
|
|
47410
|
+
var init_morphoBorrow = __esm(() => {
|
|
47507
47411
|
init_encodings();
|
|
47508
47412
|
init_matchers();
|
|
47509
47413
|
init_primitives();
|
|
@@ -47516,12 +47420,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
47516
47420
|
});
|
|
47517
47421
|
|
|
47518
47422
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
47519
|
-
var
|
|
47423
|
+
var args21, tool$morphoBorrow;
|
|
47520
47424
|
var init_morphoBorrow2 = __esm(() => {
|
|
47521
47425
|
init_morphoBorrow();
|
|
47522
47426
|
init_components();
|
|
47523
47427
|
init_tools();
|
|
47524
|
-
|
|
47428
|
+
args21 = {
|
|
47525
47429
|
request: MorphoBorrowRequest$inboundSchema
|
|
47526
47430
|
};
|
|
47527
47431
|
tool$morphoBorrow = {
|
|
@@ -47537,9 +47441,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
47537
47441
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
47538
47442
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
47539
47443
|
as long as the blockchain it is deployed on is live.`,
|
|
47540
|
-
args:
|
|
47541
|
-
tool: async (client,
|
|
47542
|
-
const [result, apiCall] = await morphoBorrow(client,
|
|
47444
|
+
args: args21,
|
|
47445
|
+
tool: async (client, args22, ctx) => {
|
|
47446
|
+
const [result, apiCall] = await morphoBorrow(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47543
47447
|
if (!result.ok) {
|
|
47544
47448
|
return {
|
|
47545
47449
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47554,9 +47458,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
47554
47458
|
|
|
47555
47459
|
// src/funcs/morphoDeposit.ts
|
|
47556
47460
|
function morphoDeposit(client, request, options) {
|
|
47557
|
-
return new APIPromise($
|
|
47461
|
+
return new APIPromise($do22(client, request, options));
|
|
47558
47462
|
}
|
|
47559
|
-
async function $
|
|
47463
|
+
async function $do22(client, request, options) {
|
|
47560
47464
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47561
47465
|
if (!parsed.ok) {
|
|
47562
47466
|
return [parsed, { status: "invalid" }];
|
|
@@ -47627,12 +47531,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
47627
47531
|
});
|
|
47628
47532
|
|
|
47629
47533
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
47630
|
-
var
|
|
47534
|
+
var args22, tool$morphoDeposit;
|
|
47631
47535
|
var init_morphoDeposit2 = __esm(() => {
|
|
47632
47536
|
init_morphoDeposit();
|
|
47633
47537
|
init_components();
|
|
47634
47538
|
init_tools();
|
|
47635
|
-
|
|
47539
|
+
args22 = {
|
|
47636
47540
|
request: MorphoDepositRequest$inboundSchema
|
|
47637
47541
|
};
|
|
47638
47542
|
tool$morphoDeposit = {
|
|
@@ -47650,9 +47554,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
47650
47554
|
exposure for all deposited assets so users don't need to make these decisions
|
|
47651
47555
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
47652
47556
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
47653
|
-
args:
|
|
47654
|
-
tool: async (client,
|
|
47655
|
-
const [result, apiCall] = await morphoDeposit(client,
|
|
47557
|
+
args: args22,
|
|
47558
|
+
tool: async (client, args23, ctx) => {
|
|
47559
|
+
const [result, apiCall] = await morphoDeposit(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47656
47560
|
if (!result.ok) {
|
|
47657
47561
|
return {
|
|
47658
47562
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47667,9 +47571,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
47667
47571
|
|
|
47668
47572
|
// src/funcs/morphoMarket.ts
|
|
47669
47573
|
function morphoMarket(client, request, options) {
|
|
47670
|
-
return new APIPromise($
|
|
47574
|
+
return new APIPromise($do23(client, request, options));
|
|
47671
47575
|
}
|
|
47672
|
-
async function $
|
|
47576
|
+
async function $do23(client, request, options) {
|
|
47673
47577
|
const parsed = safeParse(request, (value) => MorphoMarketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47674
47578
|
if (!parsed.ok) {
|
|
47675
47579
|
return [parsed, { status: "invalid" }];
|
|
@@ -47745,12 +47649,12 @@ var init_morphoMarket = __esm(() => {
|
|
|
47745
47649
|
});
|
|
47746
47650
|
|
|
47747
47651
|
// src/mcp-server/tools/morphoMarket.ts
|
|
47748
|
-
var
|
|
47652
|
+
var args23, tool$morphoMarket;
|
|
47749
47653
|
var init_morphoMarket2 = __esm(() => {
|
|
47750
47654
|
init_morphoMarket();
|
|
47751
47655
|
init_operations();
|
|
47752
47656
|
init_tools();
|
|
47753
|
-
|
|
47657
|
+
args23 = {
|
|
47754
47658
|
request: MorphoMarketRequest$inboundSchema
|
|
47755
47659
|
};
|
|
47756
47660
|
tool$morphoMarket = {
|
|
@@ -47767,9 +47671,9 @@ Including:
|
|
|
47767
47671
|
- Utilization ratio
|
|
47768
47672
|
- Pertinent metadata
|
|
47769
47673
|
- Whitelist status`,
|
|
47770
|
-
args:
|
|
47771
|
-
tool: async (client,
|
|
47772
|
-
const [result, apiCall] = await morphoMarket(client,
|
|
47674
|
+
args: args23,
|
|
47675
|
+
tool: async (client, args24, ctx) => {
|
|
47676
|
+
const [result, apiCall] = await morphoMarket(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47773
47677
|
if (!result.ok) {
|
|
47774
47678
|
return {
|
|
47775
47679
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47784,9 +47688,9 @@ Including:
|
|
|
47784
47688
|
|
|
47785
47689
|
// src/funcs/morphoMarketPosition.ts
|
|
47786
47690
|
function morphoMarketPosition(client, request, options) {
|
|
47787
|
-
return new APIPromise($
|
|
47691
|
+
return new APIPromise($do24(client, request, options));
|
|
47788
47692
|
}
|
|
47789
|
-
async function $
|
|
47693
|
+
async function $do24(client, request, options) {
|
|
47790
47694
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47791
47695
|
if (!parsed.ok) {
|
|
47792
47696
|
return [parsed, { status: "invalid" }];
|
|
@@ -47863,12 +47767,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
47863
47767
|
});
|
|
47864
47768
|
|
|
47865
47769
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
47866
|
-
var
|
|
47770
|
+
var args24, tool$morphoMarketPosition;
|
|
47867
47771
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
47868
47772
|
init_morphoMarketPosition();
|
|
47869
47773
|
init_operations();
|
|
47870
47774
|
init_tools();
|
|
47871
|
-
|
|
47775
|
+
args24 = {
|
|
47872
47776
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
47873
47777
|
};
|
|
47874
47778
|
tool$morphoMarketPosition = {
|
|
@@ -47877,9 +47781,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
47877
47781
|
|
|
47878
47782
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
47879
47783
|
market.`,
|
|
47880
|
-
args:
|
|
47881
|
-
tool: async (client,
|
|
47882
|
-
const [result, apiCall] = await morphoMarketPosition(client,
|
|
47784
|
+
args: args24,
|
|
47785
|
+
tool: async (client, args25, ctx) => {
|
|
47786
|
+
const [result, apiCall] = await morphoMarketPosition(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47883
47787
|
if (!result.ok) {
|
|
47884
47788
|
return {
|
|
47885
47789
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47894,9 +47798,9 @@ market.`,
|
|
|
47894
47798
|
|
|
47895
47799
|
// src/funcs/morphoMarkets.ts
|
|
47896
47800
|
function morphoMarkets(client, request, options) {
|
|
47897
|
-
return new APIPromise($
|
|
47801
|
+
return new APIPromise($do25(client, request, options));
|
|
47898
47802
|
}
|
|
47899
|
-
async function $
|
|
47803
|
+
async function $do25(client, request, options) {
|
|
47900
47804
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47901
47805
|
if (!parsed.ok) {
|
|
47902
47806
|
return [parsed, { status: "invalid" }];
|
|
@@ -47973,12 +47877,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
47973
47877
|
});
|
|
47974
47878
|
|
|
47975
47879
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
47976
|
-
var
|
|
47880
|
+
var args25, tool$morphoMarkets;
|
|
47977
47881
|
var init_morphoMarkets2 = __esm(() => {
|
|
47978
47882
|
init_morphoMarkets();
|
|
47979
47883
|
init_operations();
|
|
47980
47884
|
init_tools();
|
|
47981
|
-
|
|
47885
|
+
args25 = {
|
|
47982
47886
|
request: MorphoMarketsRequest$inboundSchema
|
|
47983
47887
|
};
|
|
47984
47888
|
tool$morphoMarkets = {
|
|
@@ -47989,9 +47893,9 @@ Query a list of markets you can borrow from.
|
|
|
47989
47893
|
|
|
47990
47894
|
Each market has one unique token that can be borrowed against one unique token that
|
|
47991
47895
|
can be used as collateral.`,
|
|
47992
|
-
args:
|
|
47993
|
-
tool: async (client,
|
|
47994
|
-
const [result, apiCall] = await morphoMarkets(client,
|
|
47896
|
+
args: args25,
|
|
47897
|
+
tool: async (client, args26, ctx) => {
|
|
47898
|
+
const [result, apiCall] = await morphoMarkets(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47995
47899
|
if (!result.ok) {
|
|
47996
47900
|
return {
|
|
47997
47901
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48006,9 +47910,9 @@ can be used as collateral.`,
|
|
|
48006
47910
|
|
|
48007
47911
|
// src/funcs/morphoRepay.ts
|
|
48008
47912
|
function morphoRepay(client, request, options) {
|
|
48009
|
-
return new APIPromise($
|
|
47913
|
+
return new APIPromise($do26(client, request, options));
|
|
48010
47914
|
}
|
|
48011
|
-
async function $
|
|
47915
|
+
async function $do26(client, request, options) {
|
|
48012
47916
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48013
47917
|
if (!parsed.ok) {
|
|
48014
47918
|
return [parsed, { status: "invalid" }];
|
|
@@ -48079,12 +47983,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
48079
47983
|
});
|
|
48080
47984
|
|
|
48081
47985
|
// src/mcp-server/tools/morphoRepay.ts
|
|
48082
|
-
var
|
|
47986
|
+
var args26, tool$morphoRepay;
|
|
48083
47987
|
var init_morphoRepay2 = __esm(() => {
|
|
48084
47988
|
init_morphoRepay();
|
|
48085
47989
|
init_components();
|
|
48086
47990
|
init_tools();
|
|
48087
|
-
|
|
47991
|
+
args26 = {
|
|
48088
47992
|
request: MorphoRepayRequest$inboundSchema
|
|
48089
47993
|
};
|
|
48090
47994
|
tool$morphoRepay = {
|
|
@@ -48097,9 +48001,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
48097
48001
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
48098
48002
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
48099
48003
|
as long as the blockchain it is deployed on is live.`,
|
|
48100
|
-
args:
|
|
48101
|
-
tool: async (client,
|
|
48102
|
-
const [result, apiCall] = await morphoRepay(client,
|
|
48004
|
+
args: args26,
|
|
48005
|
+
tool: async (client, args27, ctx) => {
|
|
48006
|
+
const [result, apiCall] = await morphoRepay(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48103
48007
|
if (!result.ok) {
|
|
48104
48008
|
return {
|
|
48105
48009
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48114,9 +48018,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
48114
48018
|
|
|
48115
48019
|
// src/funcs/morphoSupplyCollateral.ts
|
|
48116
48020
|
function morphoSupplyCollateral(client, request, options) {
|
|
48117
|
-
return new APIPromise($
|
|
48021
|
+
return new APIPromise($do27(client, request, options));
|
|
48118
48022
|
}
|
|
48119
|
-
async function $
|
|
48023
|
+
async function $do27(client, request, options) {
|
|
48120
48024
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48121
48025
|
if (!parsed.ok) {
|
|
48122
48026
|
return [parsed, { status: "invalid" }];
|
|
@@ -48187,12 +48091,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
48187
48091
|
});
|
|
48188
48092
|
|
|
48189
48093
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
48190
|
-
var
|
|
48094
|
+
var args27, tool$morphoSupplyCollateral;
|
|
48191
48095
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
48192
48096
|
init_morphoSupplyCollateral();
|
|
48193
48097
|
init_components();
|
|
48194
48098
|
init_tools();
|
|
48195
|
-
|
|
48099
|
+
args27 = {
|
|
48196
48100
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
48197
48101
|
};
|
|
48198
48102
|
tool$morphoSupplyCollateral = {
|
|
@@ -48205,9 +48109,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
48205
48109
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
48206
48110
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
48207
48111
|
as long as the blockchain it is deployed on is live.`,
|
|
48208
|
-
args:
|
|
48209
|
-
tool: async (client,
|
|
48210
|
-
const [result, apiCall] = await morphoSupplyCollateral(client,
|
|
48112
|
+
args: args27,
|
|
48113
|
+
tool: async (client, args28, ctx) => {
|
|
48114
|
+
const [result, apiCall] = await morphoSupplyCollateral(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48211
48115
|
if (!result.ok) {
|
|
48212
48116
|
return {
|
|
48213
48117
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48222,9 +48126,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
48222
48126
|
|
|
48223
48127
|
// src/funcs/morphoUserPosition.ts
|
|
48224
48128
|
function morphoUserPosition(client, request, options) {
|
|
48225
|
-
return new APIPromise($
|
|
48129
|
+
return new APIPromise($do28(client, request, options));
|
|
48226
48130
|
}
|
|
48227
|
-
async function $
|
|
48131
|
+
async function $do28(client, request, options) {
|
|
48228
48132
|
const parsed = safeParse(request, (value) => MorphoUserPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48229
48133
|
if (!parsed.ok) {
|
|
48230
48134
|
return [parsed, { status: "invalid" }];
|
|
@@ -48300,12 +48204,12 @@ var init_morphoUserPosition = __esm(() => {
|
|
|
48300
48204
|
});
|
|
48301
48205
|
|
|
48302
48206
|
// src/mcp-server/tools/morphoUserPosition.ts
|
|
48303
|
-
var
|
|
48207
|
+
var args28, tool$morphoUserPosition;
|
|
48304
48208
|
var init_morphoUserPosition2 = __esm(() => {
|
|
48305
48209
|
init_morphoUserPosition();
|
|
48306
48210
|
init_operations();
|
|
48307
48211
|
init_tools();
|
|
48308
|
-
|
|
48212
|
+
args28 = {
|
|
48309
48213
|
request: MorphoUserPositionRequest$inboundSchema
|
|
48310
48214
|
};
|
|
48311
48215
|
tool$morphoUserPosition = {
|
|
@@ -48316,9 +48220,9 @@ Check user's overall position across the entire Morpho ecosystem.
|
|
|
48316
48220
|
|
|
48317
48221
|
Inlcuding all vault and market position metrics and relavant metadata of said vaults
|
|
48318
48222
|
and markets.`,
|
|
48319
|
-
args:
|
|
48320
|
-
tool: async (client,
|
|
48321
|
-
const [result, apiCall] = await morphoUserPosition(client,
|
|
48223
|
+
args: args28,
|
|
48224
|
+
tool: async (client, args29, ctx) => {
|
|
48225
|
+
const [result, apiCall] = await morphoUserPosition(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48322
48226
|
if (!result.ok) {
|
|
48323
48227
|
return {
|
|
48324
48228
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48333,9 +48237,9 @@ and markets.`,
|
|
|
48333
48237
|
|
|
48334
48238
|
// src/funcs/morphoVault.ts
|
|
48335
48239
|
function morphoVault(client, request, options) {
|
|
48336
|
-
return new APIPromise($
|
|
48240
|
+
return new APIPromise($do29(client, request, options));
|
|
48337
48241
|
}
|
|
48338
|
-
async function $
|
|
48242
|
+
async function $do29(client, request, options) {
|
|
48339
48243
|
const parsed = safeParse(request, (value) => MorphoVaultRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48340
48244
|
if (!parsed.ok) {
|
|
48341
48245
|
return [parsed, { status: "invalid" }];
|
|
@@ -48411,12 +48315,12 @@ var init_morphoVault = __esm(() => {
|
|
|
48411
48315
|
});
|
|
48412
48316
|
|
|
48413
48317
|
// src/mcp-server/tools/morphoVault.ts
|
|
48414
|
-
var
|
|
48318
|
+
var args29, tool$morphoVault;
|
|
48415
48319
|
var init_morphoVault2 = __esm(() => {
|
|
48416
48320
|
init_morphoVault();
|
|
48417
48321
|
init_operations();
|
|
48418
48322
|
init_tools();
|
|
48419
|
-
|
|
48323
|
+
args29 = {
|
|
48420
48324
|
request: MorphoVaultRequest$inboundSchema
|
|
48421
48325
|
};
|
|
48422
48326
|
tool$morphoVault = {
|
|
@@ -48431,9 +48335,9 @@ Including:
|
|
|
48431
48335
|
- Total liquidity
|
|
48432
48336
|
- Pertinent metadata
|
|
48433
48337
|
- Whitelist status`,
|
|
48434
|
-
args:
|
|
48435
|
-
tool: async (client,
|
|
48436
|
-
const [result, apiCall] = await morphoVault(client,
|
|
48338
|
+
args: args29,
|
|
48339
|
+
tool: async (client, args30, ctx) => {
|
|
48340
|
+
const [result, apiCall] = await morphoVault(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48437
48341
|
if (!result.ok) {
|
|
48438
48342
|
return {
|
|
48439
48343
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48448,9 +48352,9 @@ Including:
|
|
|
48448
48352
|
|
|
48449
48353
|
// src/funcs/morphoVaultPosition.ts
|
|
48450
48354
|
function morphoVaultPosition(client, request, options) {
|
|
48451
|
-
return new APIPromise($
|
|
48355
|
+
return new APIPromise($do30(client, request, options));
|
|
48452
48356
|
}
|
|
48453
|
-
async function $
|
|
48357
|
+
async function $do30(client, request, options) {
|
|
48454
48358
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48455
48359
|
if (!parsed.ok) {
|
|
48456
48360
|
return [parsed, { status: "invalid" }];
|
|
@@ -48527,12 +48431,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
48527
48431
|
});
|
|
48528
48432
|
|
|
48529
48433
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
48530
|
-
var
|
|
48434
|
+
var args30, tool$morphoVaultPosition;
|
|
48531
48435
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
48532
48436
|
init_morphoVaultPosition();
|
|
48533
48437
|
init_operations();
|
|
48534
48438
|
init_tools();
|
|
48535
|
-
|
|
48439
|
+
args30 = {
|
|
48536
48440
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
48537
48441
|
};
|
|
48538
48442
|
tool$morphoVaultPosition = {
|
|
@@ -48541,9 +48445,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
48541
48445
|
|
|
48542
48446
|
Check how many shares you own and the equivalent token amount of a given
|
|
48543
48447
|
vault.`,
|
|
48544
|
-
args:
|
|
48545
|
-
tool: async (client,
|
|
48546
|
-
const [result, apiCall] = await morphoVaultPosition(client,
|
|
48448
|
+
args: args30,
|
|
48449
|
+
tool: async (client, args31, ctx) => {
|
|
48450
|
+
const [result, apiCall] = await morphoVaultPosition(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48547
48451
|
if (!result.ok) {
|
|
48548
48452
|
return {
|
|
48549
48453
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48558,9 +48462,9 @@ vault.`,
|
|
|
48558
48462
|
|
|
48559
48463
|
// src/funcs/morphoVaults.ts
|
|
48560
48464
|
function morphoVaults(client, request, options) {
|
|
48561
|
-
return new APIPromise($
|
|
48465
|
+
return new APIPromise($do31(client, request, options));
|
|
48562
48466
|
}
|
|
48563
|
-
async function $
|
|
48467
|
+
async function $do31(client, request, options) {
|
|
48564
48468
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48565
48469
|
if (!parsed.ok) {
|
|
48566
48470
|
return [parsed, { status: "invalid" }];
|
|
@@ -48636,12 +48540,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
48636
48540
|
});
|
|
48637
48541
|
|
|
48638
48542
|
// src/mcp-server/tools/morphoVaults.ts
|
|
48639
|
-
var
|
|
48543
|
+
var args31, tool$morphoVaults;
|
|
48640
48544
|
var init_morphoVaults2 = __esm(() => {
|
|
48641
48545
|
init_morphoVaults();
|
|
48642
48546
|
init_operations();
|
|
48643
48547
|
init_tools();
|
|
48644
|
-
|
|
48548
|
+
args31 = {
|
|
48645
48549
|
request: MorphoVaultsRequest$inboundSchema
|
|
48646
48550
|
};
|
|
48647
48551
|
tool$morphoVaults = {
|
|
@@ -48653,9 +48557,9 @@ Query a list of vaults you can deposit into.
|
|
|
48653
48557
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
48654
48558
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
48655
48559
|
exchange value increasing over time.`,
|
|
48656
|
-
args:
|
|
48657
|
-
tool: async (client,
|
|
48658
|
-
const [result, apiCall] = await morphoVaults(client,
|
|
48560
|
+
args: args31,
|
|
48561
|
+
tool: async (client, args32, ctx) => {
|
|
48562
|
+
const [result, apiCall] = await morphoVaults(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48659
48563
|
if (!result.ok) {
|
|
48660
48564
|
return {
|
|
48661
48565
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48670,9 +48574,9 @@ exchange value increasing over time.`,
|
|
|
48670
48574
|
|
|
48671
48575
|
// src/funcs/morphoWithdraw.ts
|
|
48672
48576
|
function morphoWithdraw(client, request, options) {
|
|
48673
|
-
return new APIPromise($
|
|
48577
|
+
return new APIPromise($do32(client, request, options));
|
|
48674
48578
|
}
|
|
48675
|
-
async function $
|
|
48579
|
+
async function $do32(client, request, options) {
|
|
48676
48580
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48677
48581
|
if (!parsed.ok) {
|
|
48678
48582
|
return [parsed, { status: "invalid" }];
|
|
@@ -48743,12 +48647,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
48743
48647
|
});
|
|
48744
48648
|
|
|
48745
48649
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
48746
|
-
var
|
|
48650
|
+
var args32, tool$morphoWithdraw;
|
|
48747
48651
|
var init_morphoWithdraw2 = __esm(() => {
|
|
48748
48652
|
init_morphoWithdraw();
|
|
48749
48653
|
init_components();
|
|
48750
48654
|
init_tools();
|
|
48751
|
-
|
|
48655
|
+
args32 = {
|
|
48752
48656
|
request: MorphoWithdrawRequest$inboundSchema
|
|
48753
48657
|
};
|
|
48754
48658
|
tool$morphoWithdraw = {
|
|
@@ -48766,9 +48670,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
48766
48670
|
exposure for all deposited assets so users don't need to make these decisions
|
|
48767
48671
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
48768
48672
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
48769
|
-
args:
|
|
48770
|
-
tool: async (client,
|
|
48771
|
-
const [result, apiCall] = await morphoWithdraw(client,
|
|
48673
|
+
args: args32,
|
|
48674
|
+
tool: async (client, args33, ctx) => {
|
|
48675
|
+
const [result, apiCall] = await morphoWithdraw(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48772
48676
|
if (!result.ok) {
|
|
48773
48677
|
return {
|
|
48774
48678
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48783,9 +48687,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
48783
48687
|
|
|
48784
48688
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
48785
48689
|
function morphoWithdrawCollateral(client, request, options) {
|
|
48786
|
-
return new APIPromise($
|
|
48690
|
+
return new APIPromise($do33(client, request, options));
|
|
48787
48691
|
}
|
|
48788
|
-
async function $
|
|
48692
|
+
async function $do33(client, request, options) {
|
|
48789
48693
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48790
48694
|
if (!parsed.ok) {
|
|
48791
48695
|
return [parsed, { status: "invalid" }];
|
|
@@ -48856,12 +48760,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
48856
48760
|
});
|
|
48857
48761
|
|
|
48858
48762
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
48859
|
-
var
|
|
48763
|
+
var args33, tool$morphoWithdrawCollateral;
|
|
48860
48764
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
48861
48765
|
init_morphoWithdrawCollateral();
|
|
48862
48766
|
init_components();
|
|
48863
48767
|
init_tools();
|
|
48864
|
-
|
|
48768
|
+
args33 = {
|
|
48865
48769
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
48866
48770
|
};
|
|
48867
48771
|
tool$morphoWithdrawCollateral = {
|
|
@@ -48874,9 +48778,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
48874
48778
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
48875
48779
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
48876
48780
|
as long as the blockchain it is deployed on is live.`,
|
|
48877
|
-
args:
|
|
48878
|
-
tool: async (client,
|
|
48879
|
-
const [result, apiCall] = await morphoWithdrawCollateral(client,
|
|
48781
|
+
args: args33,
|
|
48782
|
+
tool: async (client, args34, ctx) => {
|
|
48783
|
+
const [result, apiCall] = await morphoWithdrawCollateral(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48880
48784
|
if (!result.ok) {
|
|
48881
48785
|
return {
|
|
48882
48786
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48891,9 +48795,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
48891
48795
|
|
|
48892
48796
|
// src/funcs/pendleAddLiquidity.ts
|
|
48893
48797
|
function pendleAddLiquidity(client, request, options) {
|
|
48894
|
-
return new APIPromise($
|
|
48798
|
+
return new APIPromise($do34(client, request, options));
|
|
48895
48799
|
}
|
|
48896
|
-
async function $
|
|
48800
|
+
async function $do34(client, request, options) {
|
|
48897
48801
|
const parsed = safeParse(request, (value) => PendleAddLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48898
48802
|
if (!parsed.ok) {
|
|
48899
48803
|
return [parsed, { status: "invalid" }];
|
|
@@ -48964,12 +48868,12 @@ var init_pendleAddLiquidity = __esm(() => {
|
|
|
48964
48868
|
});
|
|
48965
48869
|
|
|
48966
48870
|
// src/mcp-server/tools/pendleAddLiquidity.ts
|
|
48967
|
-
var
|
|
48871
|
+
var args34, tool$pendleAddLiquidity;
|
|
48968
48872
|
var init_pendleAddLiquidity2 = __esm(() => {
|
|
48969
48873
|
init_pendleAddLiquidity();
|
|
48970
48874
|
init_components();
|
|
48971
48875
|
init_tools();
|
|
48972
|
-
|
|
48876
|
+
args34 = {
|
|
48973
48877
|
request: PendleAddLiquidityRequest$inboundSchema
|
|
48974
48878
|
};
|
|
48975
48879
|
tool$pendleAddLiquidity = {
|
|
@@ -48980,9 +48884,9 @@ Add liquidity to a Pendle Market to earn yield.
|
|
|
48980
48884
|
|
|
48981
48885
|
Liquidity is added in the form of the market's Underlying Token. Representation of
|
|
48982
48886
|
the liquidity received is the market's Liquidity Provider Token (LP).`,
|
|
48983
|
-
args:
|
|
48984
|
-
tool: async (client,
|
|
48985
|
-
const [result, apiCall] = await pendleAddLiquidity(client,
|
|
48887
|
+
args: args34,
|
|
48888
|
+
tool: async (client, args35, ctx) => {
|
|
48889
|
+
const [result, apiCall] = await pendleAddLiquidity(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48986
48890
|
if (!result.ok) {
|
|
48987
48891
|
return {
|
|
48988
48892
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48997,9 +48901,9 @@ the liquidity received is the market's Liquidity Provider Token (LP).`,
|
|
|
48997
48901
|
|
|
48998
48902
|
// src/funcs/pendleBuyPt.ts
|
|
48999
48903
|
function pendleBuyPt(client, request, options) {
|
|
49000
|
-
return new APIPromise($
|
|
48904
|
+
return new APIPromise($do35(client, request, options));
|
|
49001
48905
|
}
|
|
49002
|
-
async function $
|
|
48906
|
+
async function $do35(client, request, options) {
|
|
49003
48907
|
const parsed = safeParse(request, (value) => PendleBuyPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49004
48908
|
if (!parsed.ok) {
|
|
49005
48909
|
return [parsed, { status: "invalid" }];
|
|
@@ -49070,12 +48974,12 @@ var init_pendleBuyPt = __esm(() => {
|
|
|
49070
48974
|
});
|
|
49071
48975
|
|
|
49072
48976
|
// src/mcp-server/tools/pendleBuyPt.ts
|
|
49073
|
-
var
|
|
48977
|
+
var args35, tool$pendleBuyPt;
|
|
49074
48978
|
var init_pendleBuyPt2 = __esm(() => {
|
|
49075
48979
|
init_pendleBuyPt();
|
|
49076
48980
|
init_components();
|
|
49077
48981
|
init_tools();
|
|
49078
|
-
|
|
48982
|
+
args35 = {
|
|
49079
48983
|
request: PendleBuyPtRequest$inboundSchema
|
|
49080
48984
|
};
|
|
49081
48985
|
tool$pendleBuyPt = {
|
|
@@ -49083,9 +48987,9 @@ var init_pendleBuyPt2 = __esm(() => {
|
|
|
49083
48987
|
description: `Buy Principal Token (PT)
|
|
49084
48988
|
|
|
49085
48989
|
Buy Principal Token (PT) with market's Underlying Token.`,
|
|
49086
|
-
args:
|
|
49087
|
-
tool: async (client,
|
|
49088
|
-
const [result, apiCall] = await pendleBuyPt(client,
|
|
48990
|
+
args: args35,
|
|
48991
|
+
tool: async (client, args36, ctx) => {
|
|
48992
|
+
const [result, apiCall] = await pendleBuyPt(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49089
48993
|
if (!result.ok) {
|
|
49090
48994
|
return {
|
|
49091
48995
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49100,9 +49004,9 @@ Buy Principal Token (PT) with market's Underlying Token.`,
|
|
|
49100
49004
|
|
|
49101
49005
|
// src/funcs/pendleBuyYt.ts
|
|
49102
49006
|
function pendleBuyYt(client, request, options) {
|
|
49103
|
-
return new APIPromise($
|
|
49007
|
+
return new APIPromise($do36(client, request, options));
|
|
49104
49008
|
}
|
|
49105
|
-
async function $
|
|
49009
|
+
async function $do36(client, request, options) {
|
|
49106
49010
|
const parsed = safeParse(request, (value) => PendleBuyYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49107
49011
|
if (!parsed.ok) {
|
|
49108
49012
|
return [parsed, { status: "invalid" }];
|
|
@@ -49173,12 +49077,12 @@ var init_pendleBuyYt = __esm(() => {
|
|
|
49173
49077
|
});
|
|
49174
49078
|
|
|
49175
49079
|
// src/mcp-server/tools/pendleBuyYt.ts
|
|
49176
|
-
var
|
|
49080
|
+
var args36, tool$pendleBuyYt;
|
|
49177
49081
|
var init_pendleBuyYt2 = __esm(() => {
|
|
49178
49082
|
init_pendleBuyYt();
|
|
49179
49083
|
init_components();
|
|
49180
49084
|
init_tools();
|
|
49181
|
-
|
|
49085
|
+
args36 = {
|
|
49182
49086
|
request: PendleBuyYtRequest$inboundSchema
|
|
49183
49087
|
};
|
|
49184
49088
|
tool$pendleBuyYt = {
|
|
@@ -49186,9 +49090,9 @@ var init_pendleBuyYt2 = __esm(() => {
|
|
|
49186
49090
|
description: `Buy Yield Token (YT)
|
|
49187
49091
|
|
|
49188
49092
|
Buy Yield Token (YT) with market's Underlying Token.`,
|
|
49189
|
-
args:
|
|
49190
|
-
tool: async (client,
|
|
49191
|
-
const [result, apiCall] = await pendleBuyYt(client,
|
|
49093
|
+
args: args36,
|
|
49094
|
+
tool: async (client, args37, ctx) => {
|
|
49095
|
+
const [result, apiCall] = await pendleBuyYt(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49192
49096
|
if (!result.ok) {
|
|
49193
49097
|
return {
|
|
49194
49098
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49203,9 +49107,9 @@ Buy Yield Token (YT) with market's Underlying Token.`,
|
|
|
49203
49107
|
|
|
49204
49108
|
// src/funcs/pendleMarket.ts
|
|
49205
49109
|
function pendleMarket(client, request, options) {
|
|
49206
|
-
return new APIPromise($
|
|
49110
|
+
return new APIPromise($do37(client, request, options));
|
|
49207
49111
|
}
|
|
49208
|
-
async function $
|
|
49112
|
+
async function $do37(client, request, options) {
|
|
49209
49113
|
const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49210
49114
|
if (!parsed.ok) {
|
|
49211
49115
|
return [parsed, { status: "invalid" }];
|
|
@@ -49281,12 +49185,12 @@ var init_pendleMarket = __esm(() => {
|
|
|
49281
49185
|
});
|
|
49282
49186
|
|
|
49283
49187
|
// src/mcp-server/tools/pendleMarket.ts
|
|
49284
|
-
var
|
|
49188
|
+
var args37, tool$pendleMarket;
|
|
49285
49189
|
var init_pendleMarket2 = __esm(() => {
|
|
49286
49190
|
init_pendleMarket();
|
|
49287
49191
|
init_operations();
|
|
49288
49192
|
init_tools();
|
|
49289
|
-
|
|
49193
|
+
args37 = {
|
|
49290
49194
|
request: PendleMarketRequest$inboundSchema
|
|
49291
49195
|
};
|
|
49292
49196
|
tool$pendleMarket = {
|
|
@@ -49294,9 +49198,9 @@ var init_pendleMarket2 = __esm(() => {
|
|
|
49294
49198
|
description: `Get Market Data
|
|
49295
49199
|
|
|
49296
49200
|
Get the market's implied APY, maturity date and the associated token data.`,
|
|
49297
|
-
args:
|
|
49298
|
-
tool: async (client,
|
|
49299
|
-
const [result, apiCall] = await pendleMarket(client,
|
|
49201
|
+
args: args37,
|
|
49202
|
+
tool: async (client, args38, ctx) => {
|
|
49203
|
+
const [result, apiCall] = await pendleMarket(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49300
49204
|
if (!result.ok) {
|
|
49301
49205
|
return {
|
|
49302
49206
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49311,9 +49215,9 @@ Get the market's implied APY, maturity date and the associated token data.`,
|
|
|
49311
49215
|
|
|
49312
49216
|
// src/funcs/pendleMarkets.ts
|
|
49313
49217
|
function pendleMarkets(client, request, options) {
|
|
49314
|
-
return new APIPromise($
|
|
49218
|
+
return new APIPromise($do38(client, request, options));
|
|
49315
49219
|
}
|
|
49316
|
-
async function $
|
|
49220
|
+
async function $do38(client, request, options) {
|
|
49317
49221
|
const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49318
49222
|
if (!parsed.ok) {
|
|
49319
49223
|
return [parsed, { status: "invalid" }];
|
|
@@ -49388,12 +49292,12 @@ var init_pendleMarkets = __esm(() => {
|
|
|
49388
49292
|
});
|
|
49389
49293
|
|
|
49390
49294
|
// src/mcp-server/tools/pendleMarkets.ts
|
|
49391
|
-
var
|
|
49295
|
+
var args38, tool$pendleMarkets;
|
|
49392
49296
|
var init_pendleMarkets2 = __esm(() => {
|
|
49393
49297
|
init_pendleMarkets();
|
|
49394
49298
|
init_operations();
|
|
49395
49299
|
init_tools();
|
|
49396
|
-
|
|
49300
|
+
args38 = {
|
|
49397
49301
|
request: PendleMarketsRequest$inboundSchema
|
|
49398
49302
|
};
|
|
49399
49303
|
tool$pendleMarkets = {
|
|
@@ -49401,9 +49305,9 @@ var init_pendleMarkets2 = __esm(() => {
|
|
|
49401
49305
|
description: `List Market Data
|
|
49402
49306
|
|
|
49403
49307
|
Get a list of active markets.`,
|
|
49404
|
-
args:
|
|
49405
|
-
tool: async (client,
|
|
49406
|
-
const [result, apiCall] = await pendleMarkets(client,
|
|
49308
|
+
args: args38,
|
|
49309
|
+
tool: async (client, args39, ctx) => {
|
|
49310
|
+
const [result, apiCall] = await pendleMarkets(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49407
49311
|
if (!result.ok) {
|
|
49408
49312
|
return {
|
|
49409
49313
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49418,9 +49322,9 @@ Get a list of active markets.`,
|
|
|
49418
49322
|
|
|
49419
49323
|
// src/funcs/pendlePosition.ts
|
|
49420
49324
|
function pendlePosition(client, request, options) {
|
|
49421
|
-
return new APIPromise($
|
|
49325
|
+
return new APIPromise($do39(client, request, options));
|
|
49422
49326
|
}
|
|
49423
|
-
async function $
|
|
49327
|
+
async function $do39(client, request, options) {
|
|
49424
49328
|
const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49425
49329
|
if (!parsed.ok) {
|
|
49426
49330
|
return [parsed, { status: "invalid" }];
|
|
@@ -49497,12 +49401,12 @@ var init_pendlePosition = __esm(() => {
|
|
|
49497
49401
|
});
|
|
49498
49402
|
|
|
49499
49403
|
// src/mcp-server/tools/pendlePosition.ts
|
|
49500
|
-
var
|
|
49404
|
+
var args39, tool$pendlePosition;
|
|
49501
49405
|
var init_pendlePosition2 = __esm(() => {
|
|
49502
49406
|
init_pendlePosition();
|
|
49503
49407
|
init_operations();
|
|
49504
49408
|
init_tools();
|
|
49505
|
-
|
|
49409
|
+
args39 = {
|
|
49506
49410
|
request: PendlePositionRequest$inboundSchema
|
|
49507
49411
|
};
|
|
49508
49412
|
tool$pendlePosition = {
|
|
@@ -49510,9 +49414,9 @@ var init_pendlePosition2 = __esm(() => {
|
|
|
49510
49414
|
description: `Check User's Market Position
|
|
49511
49415
|
|
|
49512
49416
|
Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
49513
|
-
args:
|
|
49514
|
-
tool: async (client,
|
|
49515
|
-
const [result, apiCall] = await pendlePosition(client,
|
|
49417
|
+
args: args39,
|
|
49418
|
+
tool: async (client, args40, ctx) => {
|
|
49419
|
+
const [result, apiCall] = await pendlePosition(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49516
49420
|
if (!result.ok) {
|
|
49517
49421
|
return {
|
|
49518
49422
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49527,9 +49431,9 @@ Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
|
49527
49431
|
|
|
49528
49432
|
// src/funcs/pendlePositions.ts
|
|
49529
49433
|
function pendlePositions(client, request, options) {
|
|
49530
|
-
return new APIPromise($
|
|
49434
|
+
return new APIPromise($do40(client, request, options));
|
|
49531
49435
|
}
|
|
49532
|
-
async function $
|
|
49436
|
+
async function $do40(client, request, options) {
|
|
49533
49437
|
const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49534
49438
|
if (!parsed.ok) {
|
|
49535
49439
|
return [parsed, { status: "invalid" }];
|
|
@@ -49605,12 +49509,12 @@ var init_pendlePositions = __esm(() => {
|
|
|
49605
49509
|
});
|
|
49606
49510
|
|
|
49607
49511
|
// src/mcp-server/tools/pendlePositions.ts
|
|
49608
|
-
var
|
|
49512
|
+
var args40, tool$pendlePositions;
|
|
49609
49513
|
var init_pendlePositions2 = __esm(() => {
|
|
49610
49514
|
init_pendlePositions();
|
|
49611
49515
|
init_operations();
|
|
49612
49516
|
init_tools();
|
|
49613
|
-
|
|
49517
|
+
args40 = {
|
|
49614
49518
|
request: PendlePositionsRequest$inboundSchema
|
|
49615
49519
|
};
|
|
49616
49520
|
tool$pendlePositions = {
|
|
@@ -49618,9 +49522,9 @@ var init_pendlePositions2 = __esm(() => {
|
|
|
49618
49522
|
description: `List User's Market Positions
|
|
49619
49523
|
|
|
49620
49524
|
List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
49621
|
-
args:
|
|
49622
|
-
tool: async (client,
|
|
49623
|
-
const [result, apiCall] = await pendlePositions(client,
|
|
49525
|
+
args: args40,
|
|
49526
|
+
tool: async (client, args41, ctx) => {
|
|
49527
|
+
const [result, apiCall] = await pendlePositions(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49624
49528
|
if (!result.ok) {
|
|
49625
49529
|
return {
|
|
49626
49530
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49635,9 +49539,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
|
49635
49539
|
|
|
49636
49540
|
// src/funcs/pendleRedeemYield.ts
|
|
49637
49541
|
function pendleRedeemYield(client, request, options) {
|
|
49638
|
-
return new APIPromise($
|
|
49542
|
+
return new APIPromise($do41(client, request, options));
|
|
49639
49543
|
}
|
|
49640
|
-
async function $
|
|
49544
|
+
async function $do41(client, request, options) {
|
|
49641
49545
|
const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49642
49546
|
if (!parsed.ok) {
|
|
49643
49547
|
return [parsed, { status: "invalid" }];
|
|
@@ -49708,12 +49612,12 @@ var init_pendleRedeemYield = __esm(() => {
|
|
|
49708
49612
|
});
|
|
49709
49613
|
|
|
49710
49614
|
// src/mcp-server/tools/pendleRedeemYield.ts
|
|
49711
|
-
var
|
|
49615
|
+
var args41, tool$pendleRedeemYield;
|
|
49712
49616
|
var init_pendleRedeemYield2 = __esm(() => {
|
|
49713
49617
|
init_pendleRedeemYield();
|
|
49714
49618
|
init_components();
|
|
49715
49619
|
init_tools();
|
|
49716
|
-
|
|
49620
|
+
args41 = {
|
|
49717
49621
|
request: PendleRedeemYieldRequest$inboundSchema
|
|
49718
49622
|
};
|
|
49719
49623
|
tool$pendleRedeemYield = {
|
|
@@ -49721,9 +49625,9 @@ var init_pendleRedeemYield2 = __esm(() => {
|
|
|
49721
49625
|
description: `Redeem Claimable Yield
|
|
49722
49626
|
|
|
49723
49627
|
Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
49724
|
-
args:
|
|
49725
|
-
tool: async (client,
|
|
49726
|
-
const [result, apiCall] = await pendleRedeemYield(client,
|
|
49628
|
+
args: args41,
|
|
49629
|
+
tool: async (client, args42, ctx) => {
|
|
49630
|
+
const [result, apiCall] = await pendleRedeemYield(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49727
49631
|
if (!result.ok) {
|
|
49728
49632
|
return {
|
|
49729
49633
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49738,9 +49642,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
|
49738
49642
|
|
|
49739
49643
|
// src/funcs/pendleRemoveLiquidity.ts
|
|
49740
49644
|
function pendleRemoveLiquidity(client, request, options) {
|
|
49741
|
-
return new APIPromise($
|
|
49645
|
+
return new APIPromise($do42(client, request, options));
|
|
49742
49646
|
}
|
|
49743
|
-
async function $
|
|
49647
|
+
async function $do42(client, request, options) {
|
|
49744
49648
|
const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49745
49649
|
if (!parsed.ok) {
|
|
49746
49650
|
return [parsed, { status: "invalid" }];
|
|
@@ -49811,12 +49715,12 @@ var init_pendleRemoveLiquidity = __esm(() => {
|
|
|
49811
49715
|
});
|
|
49812
49716
|
|
|
49813
49717
|
// src/mcp-server/tools/pendleRemoveLiquidity.ts
|
|
49814
|
-
var
|
|
49718
|
+
var args42, tool$pendleRemoveLiquidity;
|
|
49815
49719
|
var init_pendleRemoveLiquidity2 = __esm(() => {
|
|
49816
49720
|
init_pendleRemoveLiquidity();
|
|
49817
49721
|
init_components();
|
|
49818
49722
|
init_tools();
|
|
49819
|
-
|
|
49723
|
+
args42 = {
|
|
49820
49724
|
request: PendleRemoveLiquidityRequest$inboundSchema
|
|
49821
49725
|
};
|
|
49822
49726
|
tool$pendleRemoveLiquidity = {
|
|
@@ -49828,9 +49732,9 @@ Remove liquidity from a Pendle Market.
|
|
|
49828
49732
|
Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
|
|
49829
49733
|
the market's Underlying Token. An appropriate allowance for the Pendle Router on the
|
|
49830
49734
|
market contract must be set beforehand`,
|
|
49831
|
-
args:
|
|
49832
|
-
tool: async (client,
|
|
49833
|
-
const [result, apiCall] = await pendleRemoveLiquidity(client,
|
|
49735
|
+
args: args42,
|
|
49736
|
+
tool: async (client, args43, ctx) => {
|
|
49737
|
+
const [result, apiCall] = await pendleRemoveLiquidity(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49834
49738
|
if (!result.ok) {
|
|
49835
49739
|
return {
|
|
49836
49740
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49845,9 +49749,9 @@ market contract must be set beforehand`,
|
|
|
49845
49749
|
|
|
49846
49750
|
// src/funcs/pendleSellPt.ts
|
|
49847
49751
|
function pendleSellPt(client, request, options) {
|
|
49848
|
-
return new APIPromise($
|
|
49752
|
+
return new APIPromise($do43(client, request, options));
|
|
49849
49753
|
}
|
|
49850
|
-
async function $
|
|
49754
|
+
async function $do43(client, request, options) {
|
|
49851
49755
|
const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49852
49756
|
if (!parsed.ok) {
|
|
49853
49757
|
return [parsed, { status: "invalid" }];
|
|
@@ -49918,12 +49822,12 @@ var init_pendleSellPt = __esm(() => {
|
|
|
49918
49822
|
});
|
|
49919
49823
|
|
|
49920
49824
|
// src/mcp-server/tools/pendleSellPt.ts
|
|
49921
|
-
var
|
|
49825
|
+
var args43, tool$pendleSellPt;
|
|
49922
49826
|
var init_pendleSellPt2 = __esm(() => {
|
|
49923
49827
|
init_pendleSellPt();
|
|
49924
49828
|
init_components();
|
|
49925
49829
|
init_tools();
|
|
49926
|
-
|
|
49830
|
+
args43 = {
|
|
49927
49831
|
request: PendleSellPtRequest$inboundSchema
|
|
49928
49832
|
};
|
|
49929
49833
|
tool$pendleSellPt = {
|
|
@@ -49931,9 +49835,9 @@ var init_pendleSellPt2 = __esm(() => {
|
|
|
49931
49835
|
description: `Sell Principal Token (PT)
|
|
49932
49836
|
|
|
49933
49837
|
Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
49934
|
-
args:
|
|
49935
|
-
tool: async (client,
|
|
49936
|
-
const [result, apiCall] = await pendleSellPt(client,
|
|
49838
|
+
args: args43,
|
|
49839
|
+
tool: async (client, args44, ctx) => {
|
|
49840
|
+
const [result, apiCall] = await pendleSellPt(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49937
49841
|
if (!result.ok) {
|
|
49938
49842
|
return {
|
|
49939
49843
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49948,9 +49852,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
|
49948
49852
|
|
|
49949
49853
|
// src/funcs/pendleSellYt.ts
|
|
49950
49854
|
function pendleSellYt(client, request, options) {
|
|
49951
|
-
return new APIPromise($
|
|
49855
|
+
return new APIPromise($do44(client, request, options));
|
|
49952
49856
|
}
|
|
49953
|
-
async function $
|
|
49857
|
+
async function $do44(client, request, options) {
|
|
49954
49858
|
const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49955
49859
|
if (!parsed.ok) {
|
|
49956
49860
|
return [parsed, { status: "invalid" }];
|
|
@@ -50021,12 +49925,12 @@ var init_pendleSellYt = __esm(() => {
|
|
|
50021
49925
|
});
|
|
50022
49926
|
|
|
50023
49927
|
// src/mcp-server/tools/pendleSellYt.ts
|
|
50024
|
-
var
|
|
49928
|
+
var args44, tool$pendleSellYt;
|
|
50025
49929
|
var init_pendleSellYt2 = __esm(() => {
|
|
50026
49930
|
init_pendleSellYt();
|
|
50027
49931
|
init_components();
|
|
50028
49932
|
init_tools();
|
|
50029
|
-
|
|
49933
|
+
args44 = {
|
|
50030
49934
|
request: PendleSellYtRequest$inboundSchema
|
|
50031
49935
|
};
|
|
50032
49936
|
tool$pendleSellYt = {
|
|
@@ -50034,9 +49938,9 @@ var init_pendleSellYt2 = __esm(() => {
|
|
|
50034
49938
|
description: `Sell Yield Token (YT)
|
|
50035
49939
|
|
|
50036
49940
|
Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
50037
|
-
args:
|
|
50038
|
-
tool: async (client,
|
|
50039
|
-
const [result, apiCall] = await pendleSellYt(client,
|
|
49941
|
+
args: args44,
|
|
49942
|
+
tool: async (client, args45, ctx) => {
|
|
49943
|
+
const [result, apiCall] = await pendleSellYt(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50040
49944
|
if (!result.ok) {
|
|
50041
49945
|
return {
|
|
50042
49946
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50051,9 +49955,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
|
50051
49955
|
|
|
50052
49956
|
// src/funcs/skyBuy.ts
|
|
50053
49957
|
function skyBuy(client, request, options) {
|
|
50054
|
-
return new APIPromise($
|
|
49958
|
+
return new APIPromise($do45(client, request, options));
|
|
50055
49959
|
}
|
|
50056
|
-
async function $
|
|
49960
|
+
async function $do45(client, request, options) {
|
|
50057
49961
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50058
49962
|
if (!parsed.ok) {
|
|
50059
49963
|
return [parsed, { status: "invalid" }];
|
|
@@ -50124,12 +50028,12 @@ var init_skyBuy = __esm(() => {
|
|
|
50124
50028
|
});
|
|
50125
50029
|
|
|
50126
50030
|
// src/mcp-server/tools/skyBuy.ts
|
|
50127
|
-
var
|
|
50031
|
+
var args45, tool$skyBuy;
|
|
50128
50032
|
var init_skyBuy2 = __esm(() => {
|
|
50129
50033
|
init_skyBuy();
|
|
50130
50034
|
init_components();
|
|
50131
50035
|
init_tools();
|
|
50132
|
-
|
|
50036
|
+
args45 = {
|
|
50133
50037
|
request: SkyBuyRequest$inboundSchema
|
|
50134
50038
|
};
|
|
50135
50039
|
tool$skyBuy = {
|
|
@@ -50143,9 +50047,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
50143
50047
|
|
|
50144
50048
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
50145
50049
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
50146
|
-
args:
|
|
50147
|
-
tool: async (client,
|
|
50148
|
-
const [result, apiCall] = await skyBuy(client,
|
|
50050
|
+
args: args45,
|
|
50051
|
+
tool: async (client, args46, ctx) => {
|
|
50052
|
+
const [result, apiCall] = await skyBuy(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50149
50053
|
if (!result.ok) {
|
|
50150
50054
|
return {
|
|
50151
50055
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50160,9 +50064,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
50160
50064
|
|
|
50161
50065
|
// src/funcs/skyDeposit.ts
|
|
50162
50066
|
function skyDeposit(client, request, options) {
|
|
50163
|
-
return new APIPromise($
|
|
50067
|
+
return new APIPromise($do46(client, request, options));
|
|
50164
50068
|
}
|
|
50165
|
-
async function $
|
|
50069
|
+
async function $do46(client, request, options) {
|
|
50166
50070
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50167
50071
|
if (!parsed.ok) {
|
|
50168
50072
|
return [parsed, { status: "invalid" }];
|
|
@@ -50233,12 +50137,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
50233
50137
|
});
|
|
50234
50138
|
|
|
50235
50139
|
// src/mcp-server/tools/skyDeposit.ts
|
|
50236
|
-
var
|
|
50140
|
+
var args46, tool$skyDeposit;
|
|
50237
50141
|
var init_skyDeposit2 = __esm(() => {
|
|
50238
50142
|
init_skyDeposit();
|
|
50239
50143
|
init_components();
|
|
50240
50144
|
init_tools();
|
|
50241
|
-
|
|
50145
|
+
args46 = {
|
|
50242
50146
|
request: SkyDepositRequest$inboundSchema
|
|
50243
50147
|
};
|
|
50244
50148
|
tool$skyDeposit = {
|
|
@@ -50248,9 +50152,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
50248
50152
|
Deposit USDS for sUSDS to earn yield.
|
|
50249
50153
|
|
|
50250
50154
|
There are no fees.`,
|
|
50251
|
-
args:
|
|
50252
|
-
tool: async (client,
|
|
50253
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
50155
|
+
args: args46,
|
|
50156
|
+
tool: async (client, args47, ctx) => {
|
|
50157
|
+
const [result, apiCall] = await skyDeposit(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50254
50158
|
if (!result.ok) {
|
|
50255
50159
|
return {
|
|
50256
50160
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50265,9 +50169,9 @@ There are no fees.`,
|
|
|
50265
50169
|
|
|
50266
50170
|
// src/funcs/skyPosition.ts
|
|
50267
50171
|
function skyPosition(client, request, options) {
|
|
50268
|
-
return new APIPromise($
|
|
50172
|
+
return new APIPromise($do47(client, request, options));
|
|
50269
50173
|
}
|
|
50270
|
-
async function $
|
|
50174
|
+
async function $do47(client, request, options) {
|
|
50271
50175
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50272
50176
|
if (!parsed.ok) {
|
|
50273
50177
|
return [parsed, { status: "invalid" }];
|
|
@@ -50343,12 +50247,12 @@ var init_skyPosition = __esm(() => {
|
|
|
50343
50247
|
});
|
|
50344
50248
|
|
|
50345
50249
|
// src/mcp-server/tools/skyPosition.ts
|
|
50346
|
-
var
|
|
50250
|
+
var args47, tool$skyPosition;
|
|
50347
50251
|
var init_skyPosition2 = __esm(() => {
|
|
50348
50252
|
init_skyPosition();
|
|
50349
50253
|
init_operations();
|
|
50350
50254
|
init_tools();
|
|
50351
|
-
|
|
50255
|
+
args47 = {
|
|
50352
50256
|
request: SkyPositionRequest$inboundSchema
|
|
50353
50257
|
};
|
|
50354
50258
|
tool$skyPosition = {
|
|
@@ -50356,9 +50260,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
50356
50260
|
description: `Check USDS Position
|
|
50357
50261
|
|
|
50358
50262
|
Check the USDS overall position.`,
|
|
50359
|
-
args:
|
|
50360
|
-
tool: async (client,
|
|
50361
|
-
const [result, apiCall] = await skyPosition(client,
|
|
50263
|
+
args: args47,
|
|
50264
|
+
tool: async (client, args48, ctx) => {
|
|
50265
|
+
const [result, apiCall] = await skyPosition(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50362
50266
|
if (!result.ok) {
|
|
50363
50267
|
return {
|
|
50364
50268
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50373,9 +50277,9 @@ Check the USDS overall position.`,
|
|
|
50373
50277
|
|
|
50374
50278
|
// src/funcs/skySell.ts
|
|
50375
50279
|
function skySell(client, request, options) {
|
|
50376
|
-
return new APIPromise($
|
|
50280
|
+
return new APIPromise($do48(client, request, options));
|
|
50377
50281
|
}
|
|
50378
|
-
async function $
|
|
50282
|
+
async function $do48(client, request, options) {
|
|
50379
50283
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50380
50284
|
if (!parsed.ok) {
|
|
50381
50285
|
return [parsed, { status: "invalid" }];
|
|
@@ -50446,12 +50350,12 @@ var init_skySell = __esm(() => {
|
|
|
50446
50350
|
});
|
|
50447
50351
|
|
|
50448
50352
|
// src/mcp-server/tools/skySell.ts
|
|
50449
|
-
var
|
|
50353
|
+
var args48, tool$skySell;
|
|
50450
50354
|
var init_skySell2 = __esm(() => {
|
|
50451
50355
|
init_skySell();
|
|
50452
50356
|
init_components();
|
|
50453
50357
|
init_tools();
|
|
50454
|
-
|
|
50358
|
+
args48 = {
|
|
50455
50359
|
request: SkySellRequest$inboundSchema
|
|
50456
50360
|
};
|
|
50457
50361
|
tool$skySell = {
|
|
@@ -50465,9 +50369,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
50465
50369
|
|
|
50466
50370
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
50467
50371
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
50468
|
-
args:
|
|
50469
|
-
tool: async (client,
|
|
50470
|
-
const [result, apiCall] = await skySell(client,
|
|
50372
|
+
args: args48,
|
|
50373
|
+
tool: async (client, args49, ctx) => {
|
|
50374
|
+
const [result, apiCall] = await skySell(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50471
50375
|
if (!result.ok) {
|
|
50472
50376
|
return {
|
|
50473
50377
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50482,9 +50386,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
50482
50386
|
|
|
50483
50387
|
// src/funcs/skyWithdraw.ts
|
|
50484
50388
|
function skyWithdraw(client, request, options) {
|
|
50485
|
-
return new APIPromise($
|
|
50389
|
+
return new APIPromise($do49(client, request, options));
|
|
50486
50390
|
}
|
|
50487
|
-
async function $
|
|
50391
|
+
async function $do49(client, request, options) {
|
|
50488
50392
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50489
50393
|
if (!parsed.ok) {
|
|
50490
50394
|
return [parsed, { status: "invalid" }];
|
|
@@ -50555,12 +50459,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
50555
50459
|
});
|
|
50556
50460
|
|
|
50557
50461
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
50558
|
-
var
|
|
50462
|
+
var args49, tool$skyWithdraw;
|
|
50559
50463
|
var init_skyWithdraw2 = __esm(() => {
|
|
50560
50464
|
init_skyWithdraw();
|
|
50561
50465
|
init_components();
|
|
50562
50466
|
init_tools();
|
|
50563
|
-
|
|
50467
|
+
args49 = {
|
|
50564
50468
|
request: SkyWithdrawRequest$inboundSchema
|
|
50565
50469
|
};
|
|
50566
50470
|
tool$skyWithdraw = {
|
|
@@ -50568,9 +50472,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
50568
50472
|
description: `Withdraw USDS
|
|
50569
50473
|
|
|
50570
50474
|
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
50571
|
-
args:
|
|
50572
|
-
tool: async (client,
|
|
50573
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
50475
|
+
args: args49,
|
|
50476
|
+
tool: async (client, args50, ctx) => {
|
|
50477
|
+
const [result, apiCall] = await skyWithdraw(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50574
50478
|
if (!result.ok) {
|
|
50575
50479
|
return {
|
|
50576
50480
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50585,9 +50489,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
50585
50489
|
|
|
50586
50490
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
50587
50491
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
50588
|
-
return new APIPromise($
|
|
50492
|
+
return new APIPromise($do50(client, request, options));
|
|
50589
50493
|
}
|
|
50590
|
-
async function $
|
|
50494
|
+
async function $do50(client, request, options) {
|
|
50591
50495
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50592
50496
|
if (!parsed.ok) {
|
|
50593
50497
|
return [parsed, { status: "invalid" }];
|
|
@@ -50658,12 +50562,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
50658
50562
|
});
|
|
50659
50563
|
|
|
50660
50564
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
50661
|
-
var
|
|
50565
|
+
var args50, tool$smartAccountAccountBatchedUserOperations;
|
|
50662
50566
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
50663
50567
|
init_smartAccountAccountBatchedUserOperations();
|
|
50664
50568
|
init_components();
|
|
50665
50569
|
init_tools();
|
|
50666
|
-
|
|
50570
|
+
args50 = {
|
|
50667
50571
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
50668
50572
|
};
|
|
50669
50573
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -50671,9 +50575,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
50671
50575
|
description: `Get Smart Account Batched User Operations
|
|
50672
50576
|
|
|
50673
50577
|
Generate a list of user operations for smart account batching.`,
|
|
50674
|
-
args:
|
|
50675
|
-
tool: async (client,
|
|
50676
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
50578
|
+
args: args50,
|
|
50579
|
+
tool: async (client, args51, ctx) => {
|
|
50580
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50677
50581
|
if (!result.ok) {
|
|
50678
50582
|
return {
|
|
50679
50583
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50688,9 +50592,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
50688
50592
|
|
|
50689
50593
|
// src/funcs/tokenAddress.ts
|
|
50690
50594
|
function tokenAddress(client, request, options) {
|
|
50691
|
-
return new APIPromise($
|
|
50595
|
+
return new APIPromise($do51(client, request, options));
|
|
50692
50596
|
}
|
|
50693
|
-
async function $
|
|
50597
|
+
async function $do51(client, request, options) {
|
|
50694
50598
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50695
50599
|
if (!parsed.ok) {
|
|
50696
50600
|
return [parsed, { status: "invalid" }];
|
|
@@ -50766,12 +50670,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
50766
50670
|
});
|
|
50767
50671
|
|
|
50768
50672
|
// src/mcp-server/tools/tokenAddress.ts
|
|
50769
|
-
var
|
|
50673
|
+
var args51, tool$tokenAddress;
|
|
50770
50674
|
var init_tokenAddress2 = __esm(() => {
|
|
50771
50675
|
init_tokenAddress();
|
|
50772
50676
|
init_operations();
|
|
50773
50677
|
init_tools();
|
|
50774
|
-
|
|
50678
|
+
args51 = {
|
|
50775
50679
|
request: TokenAddressRequest$inboundSchema
|
|
50776
50680
|
};
|
|
50777
50681
|
tool$tokenAddress = {
|
|
@@ -50779,9 +50683,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
50779
50683
|
description: `Token Address
|
|
50780
50684
|
|
|
50781
50685
|
This endpoint retrieves the address for a token supported by us.`,
|
|
50782
|
-
args:
|
|
50783
|
-
tool: async (client,
|
|
50784
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
50686
|
+
args: args51,
|
|
50687
|
+
tool: async (client, args52, ctx) => {
|
|
50688
|
+
const [result, apiCall] = await tokenAddress(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50785
50689
|
if (!result.ok) {
|
|
50786
50690
|
return {
|
|
50787
50691
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50796,9 +50700,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
50796
50700
|
|
|
50797
50701
|
// src/funcs/tokenBalance.ts
|
|
50798
50702
|
function tokenBalance(client, request, options) {
|
|
50799
|
-
return new APIPromise($
|
|
50703
|
+
return new APIPromise($do52(client, request, options));
|
|
50800
50704
|
}
|
|
50801
|
-
async function $
|
|
50705
|
+
async function $do52(client, request, options) {
|
|
50802
50706
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50803
50707
|
if (!parsed.ok) {
|
|
50804
50708
|
return [parsed, { status: "invalid" }];
|
|
@@ -50875,12 +50779,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
50875
50779
|
});
|
|
50876
50780
|
|
|
50877
50781
|
// src/mcp-server/tools/tokenBalance.ts
|
|
50878
|
-
var
|
|
50782
|
+
var args52, tool$tokenBalance;
|
|
50879
50783
|
var init_tokenBalance2 = __esm(() => {
|
|
50880
50784
|
init_tokenBalance();
|
|
50881
50785
|
init_operations();
|
|
50882
50786
|
init_tools();
|
|
50883
|
-
|
|
50787
|
+
args52 = {
|
|
50884
50788
|
request: TokenBalanceRequest$inboundSchema
|
|
50885
50789
|
};
|
|
50886
50790
|
tool$tokenBalance = {
|
|
@@ -50888,9 +50792,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
50888
50792
|
description: `Token Balance
|
|
50889
50793
|
|
|
50890
50794
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
50891
|
-
args:
|
|
50892
|
-
tool: async (client,
|
|
50893
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
50795
|
+
args: args52,
|
|
50796
|
+
tool: async (client, args53, ctx) => {
|
|
50797
|
+
const [result, apiCall] = await tokenBalance(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50894
50798
|
if (!result.ok) {
|
|
50895
50799
|
return {
|
|
50896
50800
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50905,9 +50809,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
50905
50809
|
|
|
50906
50810
|
// src/funcs/tokenPrice.ts
|
|
50907
50811
|
function tokenPrice(client, request, options) {
|
|
50908
|
-
return new APIPromise($
|
|
50812
|
+
return new APIPromise($do53(client, request, options));
|
|
50909
50813
|
}
|
|
50910
|
-
async function $
|
|
50814
|
+
async function $do53(client, request, options) {
|
|
50911
50815
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50912
50816
|
if (!parsed.ok) {
|
|
50913
50817
|
return [parsed, { status: "invalid" }];
|
|
@@ -50983,12 +50887,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
50983
50887
|
});
|
|
50984
50888
|
|
|
50985
50889
|
// src/mcp-server/tools/tokenPrice.ts
|
|
50986
|
-
var
|
|
50890
|
+
var args53, tool$tokenPrice;
|
|
50987
50891
|
var init_tokenPrice2 = __esm(() => {
|
|
50988
50892
|
init_tokenPrice();
|
|
50989
50893
|
init_operations();
|
|
50990
50894
|
init_tools();
|
|
50991
|
-
|
|
50895
|
+
args53 = {
|
|
50992
50896
|
request: TokenPriceRequest$inboundSchema
|
|
50993
50897
|
};
|
|
50994
50898
|
tool$tokenPrice = {
|
|
@@ -51000,9 +50904,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
51000
50904
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
51001
50905
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
51002
50906
|
with the update frequency of the oracle.`,
|
|
51003
|
-
args:
|
|
51004
|
-
tool: async (client,
|
|
51005
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
50907
|
+
args: args53,
|
|
50908
|
+
tool: async (client, args54, ctx) => {
|
|
50909
|
+
const [result, apiCall] = await tokenPrice(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51006
50910
|
if (!result.ok) {
|
|
51007
50911
|
return {
|
|
51008
50912
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51017,9 +50921,9 @@ with the update frequency of the oracle.`,
|
|
|
51017
50921
|
|
|
51018
50922
|
// src/funcs/tokenTransfer.ts
|
|
51019
50923
|
function tokenTransfer(client, request, options) {
|
|
51020
|
-
return new APIPromise($
|
|
50924
|
+
return new APIPromise($do54(client, request, options));
|
|
51021
50925
|
}
|
|
51022
|
-
async function $
|
|
50926
|
+
async function $do54(client, request, options) {
|
|
51023
50927
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51024
50928
|
if (!parsed.ok) {
|
|
51025
50929
|
return [parsed, { status: "invalid" }];
|
|
@@ -51090,12 +50994,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
51090
50994
|
});
|
|
51091
50995
|
|
|
51092
50996
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
51093
|
-
var
|
|
50997
|
+
var args54, tool$tokenTransfer;
|
|
51094
50998
|
var init_tokenTransfer2 = __esm(() => {
|
|
51095
50999
|
init_tokenTransfer();
|
|
51096
51000
|
init_components();
|
|
51097
51001
|
init_tools();
|
|
51098
|
-
|
|
51002
|
+
args54 = {
|
|
51099
51003
|
request: TokenTransferRequest$inboundSchema
|
|
51100
51004
|
};
|
|
51101
51005
|
tool$tokenTransfer = {
|
|
@@ -51103,9 +51007,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
51103
51007
|
description: `Transfer ETH or ERC20 Tokens
|
|
51104
51008
|
|
|
51105
51009
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
51106
|
-
args:
|
|
51107
|
-
tool: async (client,
|
|
51108
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
51010
|
+
args: args54,
|
|
51011
|
+
tool: async (client, args55, ctx) => {
|
|
51012
|
+
const [result, apiCall] = await tokenTransfer(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51109
51013
|
if (!result.ok) {
|
|
51110
51014
|
return {
|
|
51111
51015
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51120,9 +51024,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
51120
51024
|
|
|
51121
51025
|
// src/funcs/transactionBundlerBundlerAaveLoop.ts
|
|
51122
51026
|
function transactionBundlerBundlerAaveLoop(client, request, options) {
|
|
51123
|
-
return new APIPromise($
|
|
51027
|
+
return new APIPromise($do55(client, request, options));
|
|
51124
51028
|
}
|
|
51125
|
-
async function $
|
|
51029
|
+
async function $do55(client, request, options) {
|
|
51126
51030
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51127
51031
|
if (!parsed.ok) {
|
|
51128
51032
|
return [parsed, { status: "invalid" }];
|
|
@@ -51193,12 +51097,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
|
|
|
51193
51097
|
});
|
|
51194
51098
|
|
|
51195
51099
|
// src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
|
|
51196
|
-
var
|
|
51100
|
+
var args55, tool$transactionBundlerBundlerAaveLoop;
|
|
51197
51101
|
var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
|
|
51198
51102
|
init_transactionBundlerBundlerAaveLoop();
|
|
51199
51103
|
init_components();
|
|
51200
51104
|
init_tools();
|
|
51201
|
-
|
|
51105
|
+
args55 = {
|
|
51202
51106
|
request: AaveLoopRequest$inboundSchema
|
|
51203
51107
|
};
|
|
51204
51108
|
tool$transactionBundlerBundlerAaveLoop = {
|
|
@@ -51216,9 +51120,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
51216
51120
|
- Supplies the swapped tokens
|
|
51217
51121
|
|
|
51218
51122
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
51219
|
-
args:
|
|
51220
|
-
tool: async (client,
|
|
51221
|
-
const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client,
|
|
51123
|
+
args: args55,
|
|
51124
|
+
tool: async (client, args56, ctx) => {
|
|
51125
|
+
const [result, apiCall] = await transactionBundlerBundlerAaveLoop(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51222
51126
|
if (!result.ok) {
|
|
51223
51127
|
return {
|
|
51224
51128
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51233,9 +51137,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
51233
51137
|
|
|
51234
51138
|
// src/funcs/transactionBundlerBundlerAuthorization.ts
|
|
51235
51139
|
function transactionBundlerBundlerAuthorization(client, request, options) {
|
|
51236
|
-
return new APIPromise($
|
|
51140
|
+
return new APIPromise($do56(client, request, options));
|
|
51237
51141
|
}
|
|
51238
|
-
async function $
|
|
51142
|
+
async function $do56(client, request, options) {
|
|
51239
51143
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51240
51144
|
if (!parsed.ok) {
|
|
51241
51145
|
return [parsed, { status: "invalid" }];
|
|
@@ -51306,12 +51210,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
|
|
|
51306
51210
|
});
|
|
51307
51211
|
|
|
51308
51212
|
// src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
|
|
51309
|
-
var
|
|
51213
|
+
var args56, tool$transactionBundlerBundlerAuthorization;
|
|
51310
51214
|
var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
|
|
51311
51215
|
init_transactionBundlerBundlerAuthorization();
|
|
51312
51216
|
init_components();
|
|
51313
51217
|
init_tools();
|
|
51314
|
-
|
|
51218
|
+
args56 = {
|
|
51315
51219
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
51316
51220
|
};
|
|
51317
51221
|
tool$transactionBundlerBundlerAuthorization = {
|
|
@@ -51324,9 +51228,9 @@ Currently this is required for every transaction bundle to prevent replay attack
|
|
|
51324
51228
|
and ensure transaction ordering when batching multiple actions into a single
|
|
51325
51229
|
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
51326
51230
|
transaction uniqueness and proper network targeting.`,
|
|
51327
|
-
args:
|
|
51328
|
-
tool: async (client,
|
|
51329
|
-
const [result, apiCall] = await transactionBundlerBundlerAuthorization(client,
|
|
51231
|
+
args: args56,
|
|
51232
|
+
tool: async (client, args57, ctx) => {
|
|
51233
|
+
const [result, apiCall] = await transactionBundlerBundlerAuthorization(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51330
51234
|
if (!result.ok) {
|
|
51331
51235
|
return {
|
|
51332
51236
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51341,9 +51245,9 @@ transaction uniqueness and proper network targeting.`,
|
|
|
51341
51245
|
|
|
51342
51246
|
// src/funcs/transactionBundlerBundlerExecute.ts
|
|
51343
51247
|
function transactionBundlerBundlerExecute(client, request, options) {
|
|
51344
|
-
return new APIPromise($
|
|
51248
|
+
return new APIPromise($do57(client, request, options));
|
|
51345
51249
|
}
|
|
51346
|
-
async function $
|
|
51250
|
+
async function $do57(client, request, options) {
|
|
51347
51251
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51348
51252
|
if (!parsed.ok) {
|
|
51349
51253
|
return [parsed, { status: "invalid" }];
|
|
@@ -51414,12 +51318,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
|
|
|
51414
51318
|
});
|
|
51415
51319
|
|
|
51416
51320
|
// src/mcp-server/tools/transactionBundlerBundlerExecute.ts
|
|
51417
|
-
var
|
|
51321
|
+
var args57, tool$transactionBundlerBundlerExecute;
|
|
51418
51322
|
var init_transactionBundlerBundlerExecute2 = __esm(() => {
|
|
51419
51323
|
init_transactionBundlerBundlerExecute();
|
|
51420
51324
|
init_components();
|
|
51421
51325
|
init_tools();
|
|
51422
|
-
|
|
51326
|
+
args57 = {
|
|
51423
51327
|
request: MulticallExecuteRequest$inboundSchema
|
|
51424
51328
|
};
|
|
51425
51329
|
tool$transactionBundlerBundlerExecute = {
|
|
@@ -51433,9 +51337,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
51433
51337
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
51434
51338
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
51435
51339
|
prevent replay attacks.`,
|
|
51436
|
-
args:
|
|
51437
|
-
tool: async (client,
|
|
51438
|
-
const [result, apiCall] = await transactionBundlerBundlerExecute(client,
|
|
51340
|
+
args: args57,
|
|
51341
|
+
tool: async (client, args58, ctx) => {
|
|
51342
|
+
const [result, apiCall] = await transactionBundlerBundlerExecute(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51439
51343
|
if (!result.ok) {
|
|
51440
51344
|
return {
|
|
51441
51345
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51450,9 +51354,9 @@ prevent replay attacks.`,
|
|
|
51450
51354
|
|
|
51451
51355
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
51452
51356
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
51453
|
-
return new APIPromise($
|
|
51357
|
+
return new APIPromise($do58(client, request, options));
|
|
51454
51358
|
}
|
|
51455
|
-
async function $
|
|
51359
|
+
async function $do58(client, request, options) {
|
|
51456
51360
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51457
51361
|
if (!parsed.ok) {
|
|
51458
51362
|
return [parsed, { status: "invalid" }];
|
|
@@ -51523,12 +51427,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
51523
51427
|
});
|
|
51524
51428
|
|
|
51525
51429
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
51526
|
-
var
|
|
51430
|
+
var args58, tool$uniswapV3LiquidityProvisionIncrease;
|
|
51527
51431
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
51528
51432
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
51529
51433
|
init_components();
|
|
51530
51434
|
init_tools();
|
|
51531
|
-
|
|
51435
|
+
args58 = {
|
|
51532
51436
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
51533
51437
|
};
|
|
51534
51438
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -51544,9 +51448,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
51544
51448
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
51545
51449
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
51546
51450
|
process.`,
|
|
51547
|
-
args:
|
|
51548
|
-
tool: async (client,
|
|
51549
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
51451
|
+
args: args58,
|
|
51452
|
+
tool: async (client, args59, ctx) => {
|
|
51453
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51550
51454
|
if (!result.ok) {
|
|
51551
51455
|
return {
|
|
51552
51456
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51561,9 +51465,9 @@ process.`,
|
|
|
51561
51465
|
|
|
51562
51466
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
51563
51467
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
51564
|
-
return new APIPromise($
|
|
51468
|
+
return new APIPromise($do59(client, request, options));
|
|
51565
51469
|
}
|
|
51566
|
-
async function $
|
|
51470
|
+
async function $do59(client, request, options) {
|
|
51567
51471
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51568
51472
|
if (!parsed.ok) {
|
|
51569
51473
|
return [parsed, { status: "invalid" }];
|
|
@@ -51639,12 +51543,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
51639
51543
|
});
|
|
51640
51544
|
|
|
51641
51545
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
51642
|
-
var
|
|
51546
|
+
var args59, tool$uniswapV3LiquidityProvisionInRange;
|
|
51643
51547
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
51644
51548
|
init_uniswapV3LiquidityProvisionInRange();
|
|
51645
51549
|
init_operations();
|
|
51646
51550
|
init_tools();
|
|
51647
|
-
|
|
51551
|
+
args59 = {
|
|
51648
51552
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
51649
51553
|
};
|
|
51650
51554
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -51659,9 +51563,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
51659
51563
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
51660
51564
|
they are actively participating in the trading activities within the liquidity pool
|
|
51661
51565
|
and earning trading fees.`,
|
|
51662
|
-
args:
|
|
51663
|
-
tool: async (client,
|
|
51664
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
51566
|
+
args: args59,
|
|
51567
|
+
tool: async (client, args60, ctx) => {
|
|
51568
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51665
51569
|
if (!result.ok) {
|
|
51666
51570
|
return {
|
|
51667
51571
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51676,9 +51580,9 @@ and earning trading fees.`,
|
|
|
51676
51580
|
|
|
51677
51581
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
51678
51582
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
51679
|
-
return new APIPromise($
|
|
51583
|
+
return new APIPromise($do60(client, request, options));
|
|
51680
51584
|
}
|
|
51681
|
-
async function $
|
|
51585
|
+
async function $do60(client, request, options) {
|
|
51682
51586
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51683
51587
|
if (!parsed.ok) {
|
|
51684
51588
|
return [parsed, { status: "invalid" }];
|
|
@@ -51749,12 +51653,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
51749
51653
|
});
|
|
51750
51654
|
|
|
51751
51655
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
51752
|
-
var
|
|
51656
|
+
var args60, tool$uniswapV3LiquidityProvisionMint;
|
|
51753
51657
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
51754
51658
|
init_uniswapV3LiquidityProvisionMint();
|
|
51755
51659
|
init_components();
|
|
51756
51660
|
init_tools();
|
|
51757
|
-
|
|
51661
|
+
args60 = {
|
|
51758
51662
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
51759
51663
|
};
|
|
51760
51664
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -51770,9 +51674,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
51770
51674
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
51771
51675
|
requires details such as the token pair, amount, and any additional parameters
|
|
51772
51676
|
needed for the minting process.`,
|
|
51773
|
-
args:
|
|
51774
|
-
tool: async (client,
|
|
51775
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
51677
|
+
args: args60,
|
|
51678
|
+
tool: async (client, args61, ctx) => {
|
|
51679
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51776
51680
|
if (!result.ok) {
|
|
51777
51681
|
return {
|
|
51778
51682
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51787,9 +51691,9 @@ needed for the minting process.`,
|
|
|
51787
51691
|
|
|
51788
51692
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
51789
51693
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
51790
|
-
return new APIPromise($
|
|
51694
|
+
return new APIPromise($do61(client, request, options));
|
|
51791
51695
|
}
|
|
51792
|
-
async function $
|
|
51696
|
+
async function $do61(client, request, options) {
|
|
51793
51697
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51794
51698
|
if (!parsed.ok) {
|
|
51795
51699
|
return [parsed, { status: "invalid" }];
|
|
@@ -51865,12 +51769,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
51865
51769
|
});
|
|
51866
51770
|
|
|
51867
51771
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
51868
|
-
var
|
|
51772
|
+
var args61, tool$uniswapV3LiquidityProvisionPositions;
|
|
51869
51773
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
51870
51774
|
init_uniswapV3LiquidityProvisionPositions();
|
|
51871
51775
|
init_operations();
|
|
51872
51776
|
init_tools();
|
|
51873
|
-
|
|
51777
|
+
args61 = {
|
|
51874
51778
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
51875
51779
|
};
|
|
51876
51780
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -51884,9 +51788,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
51884
51788
|
positions, including the total number of positions and relevant metadata. This
|
|
51885
51789
|
information is crucial for users to manage and analyze their liquidity provision
|
|
51886
51790
|
activities effectively.`,
|
|
51887
|
-
args:
|
|
51888
|
-
tool: async (client,
|
|
51889
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
51791
|
+
args: args61,
|
|
51792
|
+
tool: async (client, args62, ctx) => {
|
|
51793
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51890
51794
|
if (!result.ok) {
|
|
51891
51795
|
return {
|
|
51892
51796
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51901,9 +51805,9 @@ activities effectively.`,
|
|
|
51901
51805
|
|
|
51902
51806
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51903
51807
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
51904
|
-
return new APIPromise($
|
|
51808
|
+
return new APIPromise($do62(client, request, options));
|
|
51905
51809
|
}
|
|
51906
|
-
async function $
|
|
51810
|
+
async function $do62(client, request, options) {
|
|
51907
51811
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51908
51812
|
if (!parsed.ok) {
|
|
51909
51813
|
return [parsed, { status: "invalid" }];
|
|
@@ -51974,12 +51878,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
51974
51878
|
});
|
|
51975
51879
|
|
|
51976
51880
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51977
|
-
var
|
|
51881
|
+
var args62, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
51978
51882
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
51979
51883
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
51980
51884
|
init_components();
|
|
51981
51885
|
init_tools();
|
|
51982
|
-
|
|
51886
|
+
args62 = {
|
|
51983
51887
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
51984
51888
|
};
|
|
51985
51889
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -51996,9 +51900,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
51996
51900
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
51997
51901
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
51998
51902
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
51999
|
-
args:
|
|
52000
|
-
tool: async (client,
|
|
52001
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
51903
|
+
args: args62,
|
|
51904
|
+
tool: async (client, args63, ctx) => {
|
|
51905
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52002
51906
|
if (!result.ok) {
|
|
52003
51907
|
return {
|
|
52004
51908
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52013,9 +51917,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
52013
51917
|
|
|
52014
51918
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
52015
51919
|
function uniswapV3PoolPrice(client, request, options) {
|
|
52016
|
-
return new APIPromise($
|
|
51920
|
+
return new APIPromise($do63(client, request, options));
|
|
52017
51921
|
}
|
|
52018
|
-
async function $
|
|
51922
|
+
async function $do63(client, request, options) {
|
|
52019
51923
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52020
51924
|
if (!parsed.ok) {
|
|
52021
51925
|
return [parsed, { status: "invalid" }];
|
|
@@ -52093,12 +51997,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
52093
51997
|
});
|
|
52094
51998
|
|
|
52095
51999
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
52096
|
-
var
|
|
52000
|
+
var args63, tool$uniswapV3PoolPrice;
|
|
52097
52001
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
52098
52002
|
init_uniswapV3PoolPrice();
|
|
52099
52003
|
init_operations();
|
|
52100
52004
|
init_tools();
|
|
52101
|
-
|
|
52005
|
+
args63 = {
|
|
52102
52006
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
52103
52007
|
};
|
|
52104
52008
|
tool$uniswapV3PoolPrice = {
|
|
@@ -52108,9 +52012,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
52108
52012
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
52109
52013
|
|
|
52110
52014
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
52111
|
-
args:
|
|
52112
|
-
tool: async (client,
|
|
52113
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
52015
|
+
args: args63,
|
|
52016
|
+
tool: async (client, args64, ctx) => {
|
|
52017
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52114
52018
|
if (!result.ok) {
|
|
52115
52019
|
return {
|
|
52116
52020
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52125,9 +52029,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
52125
52029
|
|
|
52126
52030
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
52127
52031
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
52128
|
-
return new APIPromise($
|
|
52032
|
+
return new APIPromise($do64(client, request, options));
|
|
52129
52033
|
}
|
|
52130
|
-
async function $
|
|
52034
|
+
async function $do64(client, request, options) {
|
|
52131
52035
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52132
52036
|
if (!parsed.ok) {
|
|
52133
52037
|
return [parsed, { status: "invalid" }];
|
|
@@ -52206,12 +52110,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
52206
52110
|
});
|
|
52207
52111
|
|
|
52208
52112
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
52209
|
-
var
|
|
52113
|
+
var args64, tool$uniswapV3QuoteBuyExactly;
|
|
52210
52114
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
52211
52115
|
init_uniswapV3QuoteBuyExactly();
|
|
52212
52116
|
init_operations();
|
|
52213
52117
|
init_tools();
|
|
52214
|
-
|
|
52118
|
+
args64 = {
|
|
52215
52119
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
52216
52120
|
};
|
|
52217
52121
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -52223,9 +52127,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
52223
52127
|
|
|
52224
52128
|
It also provides the resulting price after the transaction. The calculation takes
|
|
52225
52129
|
into account the current pool state and the specified fee tier.`,
|
|
52226
|
-
args:
|
|
52227
|
-
tool: async (client,
|
|
52228
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
52130
|
+
args: args64,
|
|
52131
|
+
tool: async (client, args65, ctx) => {
|
|
52132
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52229
52133
|
if (!result.ok) {
|
|
52230
52134
|
return {
|
|
52231
52135
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52240,9 +52144,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
52240
52144
|
|
|
52241
52145
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
52242
52146
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
52243
|
-
return new APIPromise($
|
|
52147
|
+
return new APIPromise($do65(client, request, options));
|
|
52244
52148
|
}
|
|
52245
|
-
async function $
|
|
52149
|
+
async function $do65(client, request, options) {
|
|
52246
52150
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52247
52151
|
if (!parsed.ok) {
|
|
52248
52152
|
return [parsed, { status: "invalid" }];
|
|
@@ -52321,12 +52225,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
52321
52225
|
});
|
|
52322
52226
|
|
|
52323
52227
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
52324
|
-
var
|
|
52228
|
+
var args65, tool$uniswapV3QuoteSellExactly;
|
|
52325
52229
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
52326
52230
|
init_uniswapV3QuoteSellExactly();
|
|
52327
52231
|
init_operations();
|
|
52328
52232
|
init_tools();
|
|
52329
|
-
|
|
52233
|
+
args65 = {
|
|
52330
52234
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
52331
52235
|
};
|
|
52332
52236
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -52338,9 +52242,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
52338
52242
|
|
|
52339
52243
|
It also provides the resulting price after the transaction. The calculation takes
|
|
52340
52244
|
into account the current pool state and the specified fee tier.`,
|
|
52341
|
-
args:
|
|
52342
|
-
tool: async (client,
|
|
52343
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
52245
|
+
args: args65,
|
|
52246
|
+
tool: async (client, args66, ctx) => {
|
|
52247
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52344
52248
|
if (!result.ok) {
|
|
52345
52249
|
return {
|
|
52346
52250
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52355,9 +52259,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
52355
52259
|
|
|
52356
52260
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
52357
52261
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
52358
|
-
return new APIPromise($
|
|
52262
|
+
return new APIPromise($do66(client, request, options));
|
|
52359
52263
|
}
|
|
52360
|
-
async function $
|
|
52264
|
+
async function $do66(client, request, options) {
|
|
52361
52265
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52362
52266
|
if (!parsed.ok) {
|
|
52363
52267
|
return [parsed, { status: "invalid" }];
|
|
@@ -52428,12 +52332,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
52428
52332
|
});
|
|
52429
52333
|
|
|
52430
52334
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
52431
|
-
var
|
|
52335
|
+
var args66, tool$uniswapV3SwapBuyExactly;
|
|
52432
52336
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
52433
52337
|
init_uniswapV3SwapBuyExactly();
|
|
52434
52338
|
init_components();
|
|
52435
52339
|
init_tools();
|
|
52436
|
-
|
|
52340
|
+
args66 = {
|
|
52437
52341
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
52438
52342
|
};
|
|
52439
52343
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -52447,9 +52351,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
52447
52351
|
provide the necessary transaction details, including the token to buy, the token to
|
|
52448
52352
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
52449
52353
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
52450
|
-
args:
|
|
52451
|
-
tool: async (client,
|
|
52452
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
52354
|
+
args: args66,
|
|
52355
|
+
tool: async (client, args67, ctx) => {
|
|
52356
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52453
52357
|
if (!result.ok) {
|
|
52454
52358
|
return {
|
|
52455
52359
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52464,9 +52368,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
52464
52368
|
|
|
52465
52369
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
52466
52370
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
52467
|
-
return new APIPromise($
|
|
52371
|
+
return new APIPromise($do67(client, request, options));
|
|
52468
52372
|
}
|
|
52469
|
-
async function $
|
|
52373
|
+
async function $do67(client, request, options) {
|
|
52470
52374
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52471
52375
|
if (!parsed.ok) {
|
|
52472
52376
|
return [parsed, { status: "invalid" }];
|
|
@@ -52537,12 +52441,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
52537
52441
|
});
|
|
52538
52442
|
|
|
52539
52443
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
52540
|
-
var
|
|
52444
|
+
var args67, tool$uniswapV3SwapSellExactly;
|
|
52541
52445
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
52542
52446
|
init_uniswapV3SwapSellExactly();
|
|
52543
52447
|
init_components();
|
|
52544
52448
|
init_tools();
|
|
52545
|
-
|
|
52449
|
+
args67 = {
|
|
52546
52450
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
52547
52451
|
};
|
|
52548
52452
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -52556,9 +52460,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
52556
52460
|
provide the necessary transaction details, including the token to sell, the token to
|
|
52557
52461
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
52558
52462
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
52559
|
-
args:
|
|
52560
|
-
tool: async (client,
|
|
52561
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
52463
|
+
args: args67,
|
|
52464
|
+
tool: async (client, args68, ctx) => {
|
|
52465
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52562
52466
|
if (!result.ok) {
|
|
52563
52467
|
return {
|
|
52564
52468
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52573,9 +52477,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
52573
52477
|
|
|
52574
52478
|
// src/funcs/universalAllowance.ts
|
|
52575
52479
|
function universalAllowance(client, request, options) {
|
|
52576
|
-
return new APIPromise($
|
|
52480
|
+
return new APIPromise($do68(client, request, options));
|
|
52577
52481
|
}
|
|
52578
|
-
async function $
|
|
52482
|
+
async function $do68(client, request, options) {
|
|
52579
52483
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52580
52484
|
if (!parsed.ok) {
|
|
52581
52485
|
return [parsed, { status: "invalid" }];
|
|
@@ -52585,7 +52489,7 @@ async function $do69(client, request, options) {
|
|
|
52585
52489
|
const path = pathToFunc("/v0/generic/allowance/get")();
|
|
52586
52490
|
const query = encodeFormQuery({
|
|
52587
52491
|
chain: payload.chain,
|
|
52588
|
-
|
|
52492
|
+
contract: payload.contract,
|
|
52589
52493
|
token: payload.token,
|
|
52590
52494
|
user: payload.user
|
|
52591
52495
|
});
|
|
@@ -52653,12 +52557,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
52653
52557
|
});
|
|
52654
52558
|
|
|
52655
52559
|
// src/mcp-server/tools/universalAllowance.ts
|
|
52656
|
-
var
|
|
52560
|
+
var args68, tool$universalAllowance;
|
|
52657
52561
|
var init_universalAllowance2 = __esm(() => {
|
|
52658
52562
|
init_universalAllowance();
|
|
52659
52563
|
init_operations();
|
|
52660
52564
|
init_tools();
|
|
52661
|
-
|
|
52565
|
+
args68 = {
|
|
52662
52566
|
request: GenericAllowanceRequest$inboundSchema
|
|
52663
52567
|
};
|
|
52664
52568
|
tool$universalAllowance = {
|
|
@@ -52672,9 +52576,9 @@ tokens on their behalf.
|
|
|
52672
52576
|
This is a crucial step before engaging in any transactions or operations within
|
|
52673
52577
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
52674
52578
|
the user's tokens securely and efficiently.`,
|
|
52675
|
-
args:
|
|
52676
|
-
tool: async (client,
|
|
52677
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
52579
|
+
args: args68,
|
|
52580
|
+
tool: async (client, args69, ctx) => {
|
|
52581
|
+
const [result, apiCall] = await universalAllowance(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52678
52582
|
if (!result.ok) {
|
|
52679
52583
|
return {
|
|
52680
52584
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52689,10 +52593,10 @@ the user's tokens securely and efficiently.`,
|
|
|
52689
52593
|
|
|
52690
52594
|
// src/funcs/universalAllowanceSet.ts
|
|
52691
52595
|
function universalAllowanceSet(client, request, options) {
|
|
52692
|
-
return new APIPromise($
|
|
52596
|
+
return new APIPromise($do69(client, request, options));
|
|
52693
52597
|
}
|
|
52694
|
-
async function $
|
|
52695
|
-
const parsed = safeParse(request, (value) =>
|
|
52598
|
+
async function $do69(client, request, options) {
|
|
52599
|
+
const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52696
52600
|
if (!parsed.ok) {
|
|
52697
52601
|
return [parsed, { status: "invalid" }];
|
|
52698
52602
|
}
|
|
@@ -52762,13 +52666,13 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
52762
52666
|
});
|
|
52763
52667
|
|
|
52764
52668
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
52765
|
-
var
|
|
52669
|
+
var args69, tool$universalAllowanceSet;
|
|
52766
52670
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
52767
52671
|
init_universalAllowanceSet();
|
|
52768
52672
|
init_components();
|
|
52769
52673
|
init_tools();
|
|
52770
|
-
|
|
52771
|
-
request:
|
|
52674
|
+
args69 = {
|
|
52675
|
+
request: SetAllowanceRequest$inboundSchema
|
|
52772
52676
|
};
|
|
52773
52677
|
tool$universalAllowanceSet = {
|
|
52774
52678
|
name: "universal-allowance-set",
|
|
@@ -52782,9 +52686,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
52782
52686
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
52783
52687
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
52784
52688
|
within the DeFi ecosystem.`,
|
|
52785
|
-
args:
|
|
52786
|
-
tool: async (client,
|
|
52787
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
52689
|
+
args: args69,
|
|
52690
|
+
tool: async (client, args70, ctx) => {
|
|
52691
|
+
const [result, apiCall] = await universalAllowanceSet(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52788
52692
|
if (!result.ok) {
|
|
52789
52693
|
return {
|
|
52790
52694
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52799,9 +52703,9 @@ within the DeFi ecosystem.`,
|
|
|
52799
52703
|
|
|
52800
52704
|
// src/funcs/universalEns.ts
|
|
52801
52705
|
function universalEns(client, request, options) {
|
|
52802
|
-
return new APIPromise($
|
|
52706
|
+
return new APIPromise($do70(client, request, options));
|
|
52803
52707
|
}
|
|
52804
|
-
async function $
|
|
52708
|
+
async function $do70(client, request, options) {
|
|
52805
52709
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52806
52710
|
if (!parsed.ok) {
|
|
52807
52711
|
return [parsed, { status: "invalid" }];
|
|
@@ -52877,12 +52781,12 @@ var init_universalEns = __esm(() => {
|
|
|
52877
52781
|
});
|
|
52878
52782
|
|
|
52879
52783
|
// src/mcp-server/tools/universalEns.ts
|
|
52880
|
-
var
|
|
52784
|
+
var args70, tool$universalEns;
|
|
52881
52785
|
var init_universalEns2 = __esm(() => {
|
|
52882
52786
|
init_universalEns();
|
|
52883
52787
|
init_operations();
|
|
52884
52788
|
init_tools();
|
|
52885
|
-
|
|
52789
|
+
args70 = {
|
|
52886
52790
|
request: GenericEnsRequest$inboundSchema
|
|
52887
52791
|
};
|
|
52888
52792
|
tool$universalEns = {
|
|
@@ -52893,9 +52797,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
52893
52797
|
|
|
52894
52798
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
52895
52799
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
52896
|
-
args:
|
|
52897
|
-
tool: async (client,
|
|
52898
|
-
const [result, apiCall] = await universalEns(client,
|
|
52800
|
+
args: args70,
|
|
52801
|
+
tool: async (client, args71, ctx) => {
|
|
52802
|
+
const [result, apiCall] = await universalEns(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
52899
52803
|
if (!result.ok) {
|
|
52900
52804
|
return {
|
|
52901
52805
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52910,9 +52814,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
52910
52814
|
|
|
52911
52815
|
// src/funcs/universalPortfolio.ts
|
|
52912
52816
|
function universalPortfolio(client, request, options) {
|
|
52913
|
-
return new APIPromise($
|
|
52817
|
+
return new APIPromise($do71(client, request, options));
|
|
52914
52818
|
}
|
|
52915
|
-
async function $
|
|
52819
|
+
async function $do71(client, request, options) {
|
|
52916
52820
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52917
52821
|
if (!parsed.ok) {
|
|
52918
52822
|
return [parsed, { status: "invalid" }];
|
|
@@ -52988,12 +52892,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
52988
52892
|
});
|
|
52989
52893
|
|
|
52990
52894
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
52991
|
-
var
|
|
52895
|
+
var args71, tool$universalPortfolio;
|
|
52992
52896
|
var init_universalPortfolio2 = __esm(() => {
|
|
52993
52897
|
init_universalPortfolio();
|
|
52994
52898
|
init_operations();
|
|
52995
52899
|
init_tools();
|
|
52996
|
-
|
|
52900
|
+
args71 = {
|
|
52997
52901
|
request: GenericPortfolioRequest$inboundSchema
|
|
52998
52902
|
};
|
|
52999
52903
|
tool$universalPortfolio = {
|
|
@@ -53004,9 +52908,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
53004
52908
|
|
|
53005
52909
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
53006
52910
|
balances, including their respective values and quantities.`,
|
|
53007
|
-
args:
|
|
53008
|
-
tool: async (client,
|
|
53009
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
52911
|
+
args: args71,
|
|
52912
|
+
tool: async (client, args72, ctx) => {
|
|
52913
|
+
const [result, apiCall] = await universalPortfolio(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53010
52914
|
if (!result.ok) {
|
|
53011
52915
|
return {
|
|
53012
52916
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53021,9 +52925,9 @@ balances, including their respective values and quantities.`,
|
|
|
53021
52925
|
|
|
53022
52926
|
// src/funcs/universalSupportedTokens.ts
|
|
53023
52927
|
function universalSupportedTokens(client, request, options) {
|
|
53024
|
-
return new APIPromise($
|
|
52928
|
+
return new APIPromise($do72(client, request, options));
|
|
53025
52929
|
}
|
|
53026
|
-
async function $
|
|
52930
|
+
async function $do72(client, request, options) {
|
|
53027
52931
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53028
52932
|
if (!parsed.ok) {
|
|
53029
52933
|
return [parsed, { status: "invalid" }];
|
|
@@ -53098,12 +53002,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
53098
53002
|
});
|
|
53099
53003
|
|
|
53100
53004
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
53101
|
-
var
|
|
53005
|
+
var args72, tool$universalSupportedTokens;
|
|
53102
53006
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
53103
53007
|
init_universalSupportedTokens();
|
|
53104
53008
|
init_operations();
|
|
53105
53009
|
init_tools();
|
|
53106
|
-
|
|
53010
|
+
args72 = {
|
|
53107
53011
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
53108
53012
|
};
|
|
53109
53013
|
tool$universalSupportedTokens = {
|
|
@@ -53111,9 +53015,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
53111
53015
|
description: `List Supported Tokens
|
|
53112
53016
|
|
|
53113
53017
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
53114
|
-
args:
|
|
53115
|
-
tool: async (client,
|
|
53116
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
53018
|
+
args: args72,
|
|
53019
|
+
tool: async (client, args73, ctx) => {
|
|
53020
|
+
const [result, apiCall] = await universalSupportedTokens(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53117
53021
|
if (!result.ok) {
|
|
53118
53022
|
return {
|
|
53119
53023
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53128,9 +53032,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
53128
53032
|
|
|
53129
53033
|
// src/funcs/universalUnwrapWeth.ts
|
|
53130
53034
|
function universalUnwrapWeth(client, request, options) {
|
|
53131
|
-
return new APIPromise($
|
|
53035
|
+
return new APIPromise($do73(client, request, options));
|
|
53132
53036
|
}
|
|
53133
|
-
async function $
|
|
53037
|
+
async function $do73(client, request, options) {
|
|
53134
53038
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53135
53039
|
if (!parsed.ok) {
|
|
53136
53040
|
return [parsed, { status: "invalid" }];
|
|
@@ -53201,12 +53105,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
53201
53105
|
});
|
|
53202
53106
|
|
|
53203
53107
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
53204
|
-
var
|
|
53108
|
+
var args73, tool$universalUnwrapWeth;
|
|
53205
53109
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
53206
53110
|
init_universalUnwrapWeth();
|
|
53207
53111
|
init_components();
|
|
53208
53112
|
init_tools();
|
|
53209
|
-
|
|
53113
|
+
args73 = {
|
|
53210
53114
|
request: UnwrapWethRequest$inboundSchema
|
|
53211
53115
|
};
|
|
53212
53116
|
tool$universalUnwrapWeth = {
|
|
@@ -53215,9 +53119,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
53215
53119
|
|
|
53216
53120
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
53217
53121
|
can be used for gas and other native purposes.`,
|
|
53218
|
-
args:
|
|
53219
|
-
tool: async (client,
|
|
53220
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
53122
|
+
args: args73,
|
|
53123
|
+
tool: async (client, args74, ctx) => {
|
|
53124
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53221
53125
|
if (!result.ok) {
|
|
53222
53126
|
return {
|
|
53223
53127
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53232,9 +53136,9 @@ can be used for gas and other native purposes.`,
|
|
|
53232
53136
|
|
|
53233
53137
|
// src/funcs/universalVisualizePortfolio.ts
|
|
53234
53138
|
function universalVisualizePortfolio(client, request, options) {
|
|
53235
|
-
return new APIPromise($
|
|
53139
|
+
return new APIPromise($do74(client, request, options));
|
|
53236
53140
|
}
|
|
53237
|
-
async function $
|
|
53141
|
+
async function $do74(client, request, options) {
|
|
53238
53142
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53239
53143
|
if (!parsed.ok) {
|
|
53240
53144
|
return [parsed, { status: "invalid" }];
|
|
@@ -53310,12 +53214,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
53310
53214
|
});
|
|
53311
53215
|
|
|
53312
53216
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
53313
|
-
var
|
|
53217
|
+
var args74, tool$universalVisualizePortfolio;
|
|
53314
53218
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
53315
53219
|
init_universalVisualizePortfolio();
|
|
53316
53220
|
init_operations();
|
|
53317
53221
|
init_tools();
|
|
53318
|
-
|
|
53222
|
+
args74 = {
|
|
53319
53223
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
53320
53224
|
};
|
|
53321
53225
|
tool$universalVisualizePortfolio = {
|
|
@@ -53327,9 +53231,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
53327
53231
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
53328
53232
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
53329
53233
|
USD.`,
|
|
53330
|
-
args:
|
|
53331
|
-
tool: async (client,
|
|
53332
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
53234
|
+
args: args74,
|
|
53235
|
+
tool: async (client, args75, ctx) => {
|
|
53236
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53333
53237
|
if (!result.ok) {
|
|
53334
53238
|
return {
|
|
53335
53239
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53344,9 +53248,9 @@ USD.`,
|
|
|
53344
53248
|
|
|
53345
53249
|
// src/funcs/universalWrapEth.ts
|
|
53346
53250
|
function universalWrapEth(client, request, options) {
|
|
53347
|
-
return new APIPromise($
|
|
53251
|
+
return new APIPromise($do75(client, request, options));
|
|
53348
53252
|
}
|
|
53349
|
-
async function $
|
|
53253
|
+
async function $do75(client, request, options) {
|
|
53350
53254
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53351
53255
|
if (!parsed.ok) {
|
|
53352
53256
|
return [parsed, { status: "invalid" }];
|
|
@@ -53417,12 +53321,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
53417
53321
|
});
|
|
53418
53322
|
|
|
53419
53323
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
53420
|
-
var
|
|
53324
|
+
var args75, tool$universalWrapEth;
|
|
53421
53325
|
var init_universalWrapEth2 = __esm(() => {
|
|
53422
53326
|
init_universalWrapEth();
|
|
53423
53327
|
init_components();
|
|
53424
53328
|
init_tools();
|
|
53425
|
-
|
|
53329
|
+
args75 = {
|
|
53426
53330
|
request: WrapEthRequest$inboundSchema
|
|
53427
53331
|
};
|
|
53428
53332
|
tool$universalWrapEth = {
|
|
@@ -53431,9 +53335,221 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
53431
53335
|
|
|
53432
53336
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
53433
53337
|
it to be traded on DeFi protocols.`,
|
|
53338
|
+
args: args75,
|
|
53339
|
+
tool: async (client, args76, ctx) => {
|
|
53340
|
+
const [result, apiCall] = await universalWrapEth(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53341
|
+
if (!result.ok) {
|
|
53342
|
+
return {
|
|
53343
|
+
content: [{ type: "text", text: result.error.message }],
|
|
53344
|
+
isError: true
|
|
53345
|
+
};
|
|
53346
|
+
}
|
|
53347
|
+
const value = result.value;
|
|
53348
|
+
return formatResult(value, apiCall);
|
|
53349
|
+
}
|
|
53350
|
+
};
|
|
53351
|
+
});
|
|
53352
|
+
|
|
53353
|
+
// src/funcs/vaultsERC4626Deposit.ts
|
|
53354
|
+
function vaultsERC4626Deposit(client, request, options) {
|
|
53355
|
+
return new APIPromise($do76(client, request, options));
|
|
53356
|
+
}
|
|
53357
|
+
async function $do76(client, request, options) {
|
|
53358
|
+
const parsed = safeParse(request, (value) => VaultDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53359
|
+
if (!parsed.ok) {
|
|
53360
|
+
return [parsed, { status: "invalid" }];
|
|
53361
|
+
}
|
|
53362
|
+
const payload = parsed.value;
|
|
53363
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
53364
|
+
const path = pathToFunc("/v0/vaults/deposit")();
|
|
53365
|
+
const headers = new Headers(compactMap({
|
|
53366
|
+
"Content-Type": "application/json",
|
|
53367
|
+
Accept: "application/json"
|
|
53368
|
+
}));
|
|
53369
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
53370
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
53371
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
53372
|
+
const context = {
|
|
53373
|
+
options: client._options,
|
|
53374
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
53375
|
+
operationID: "vaults_deposit",
|
|
53376
|
+
oAuth2Scopes: [],
|
|
53377
|
+
resolvedSecurity: requestSecurity,
|
|
53378
|
+
securitySource: client._options.apiKeyAuth,
|
|
53379
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
53380
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
53381
|
+
};
|
|
53382
|
+
const requestRes = client._createRequest(context, {
|
|
53383
|
+
security: requestSecurity,
|
|
53384
|
+
method: "POST",
|
|
53385
|
+
baseURL: options?.serverURL,
|
|
53386
|
+
path,
|
|
53387
|
+
headers,
|
|
53388
|
+
body,
|
|
53389
|
+
userAgent: client._options.userAgent,
|
|
53390
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
53391
|
+
}, options);
|
|
53392
|
+
if (!requestRes.ok) {
|
|
53393
|
+
return [requestRes, { status: "invalid" }];
|
|
53394
|
+
}
|
|
53395
|
+
const req = requestRes.value;
|
|
53396
|
+
const doResult = await client._do(req, {
|
|
53397
|
+
context,
|
|
53398
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
53399
|
+
retryConfig: context.retryConfig,
|
|
53400
|
+
retryCodes: context.retryCodes
|
|
53401
|
+
});
|
|
53402
|
+
if (!doResult.ok) {
|
|
53403
|
+
return [doResult, { status: "request-error", request: req }];
|
|
53404
|
+
}
|
|
53405
|
+
const response = doResult.value;
|
|
53406
|
+
const responseFields = {
|
|
53407
|
+
HttpMeta: { Response: response, Request: req }
|
|
53408
|
+
};
|
|
53409
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
53410
|
+
if (!result.ok) {
|
|
53411
|
+
return [result, { status: "complete", request: req, response }];
|
|
53412
|
+
}
|
|
53413
|
+
return [result, { status: "complete", request: req, response }];
|
|
53414
|
+
}
|
|
53415
|
+
var init_vaultsERC4626Deposit = __esm(() => {
|
|
53416
|
+
init_encodings();
|
|
53417
|
+
init_matchers();
|
|
53418
|
+
init_primitives();
|
|
53419
|
+
init_schemas();
|
|
53420
|
+
init_security();
|
|
53421
|
+
init_url();
|
|
53422
|
+
init_components();
|
|
53423
|
+
init_errors2();
|
|
53424
|
+
init_async();
|
|
53425
|
+
});
|
|
53426
|
+
|
|
53427
|
+
// src/mcp-server/tools/vaultsERC4626Deposit.ts
|
|
53428
|
+
var args76, tool$vaultsERC4626Deposit;
|
|
53429
|
+
var init_vaultsERC4626Deposit2 = __esm(() => {
|
|
53430
|
+
init_vaultsERC4626Deposit();
|
|
53431
|
+
init_components();
|
|
53432
|
+
init_tools();
|
|
53433
|
+
args76 = {
|
|
53434
|
+
request: VaultDepositRequest$inboundSchema
|
|
53435
|
+
};
|
|
53436
|
+
tool$vaultsERC4626Deposit = {
|
|
53437
|
+
name: "vaults-(erc-4626-)-deposit",
|
|
53438
|
+
description: `Deposit to Vault
|
|
53439
|
+
|
|
53440
|
+
Deposit tokens into a Vault (ERC-4626 Standard) to earn passive yield.
|
|
53441
|
+
|
|
53442
|
+
Each vault accepts one unique token that can be deposited.`,
|
|
53434
53443
|
args: args76,
|
|
53435
53444
|
tool: async (client, args77, ctx) => {
|
|
53436
|
-
const [result, apiCall] = await
|
|
53445
|
+
const [result, apiCall] = await vaultsERC4626Deposit(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53446
|
+
if (!result.ok) {
|
|
53447
|
+
return {
|
|
53448
|
+
content: [{ type: "text", text: result.error.message }],
|
|
53449
|
+
isError: true
|
|
53450
|
+
};
|
|
53451
|
+
}
|
|
53452
|
+
const value = result.value;
|
|
53453
|
+
return formatResult(value, apiCall);
|
|
53454
|
+
}
|
|
53455
|
+
};
|
|
53456
|
+
});
|
|
53457
|
+
|
|
53458
|
+
// src/funcs/vaultsERC4626Withdraw.ts
|
|
53459
|
+
function vaultsERC4626Withdraw(client, request, options) {
|
|
53460
|
+
return new APIPromise($do77(client, request, options));
|
|
53461
|
+
}
|
|
53462
|
+
async function $do77(client, request, options) {
|
|
53463
|
+
const parsed = safeParse(request, (value) => VaultWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53464
|
+
if (!parsed.ok) {
|
|
53465
|
+
return [parsed, { status: "invalid" }];
|
|
53466
|
+
}
|
|
53467
|
+
const payload = parsed.value;
|
|
53468
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
53469
|
+
const path = pathToFunc("/v0/vaults/withdraw")();
|
|
53470
|
+
const headers = new Headers(compactMap({
|
|
53471
|
+
"Content-Type": "application/json",
|
|
53472
|
+
Accept: "application/json"
|
|
53473
|
+
}));
|
|
53474
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
53475
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
53476
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
53477
|
+
const context = {
|
|
53478
|
+
options: client._options,
|
|
53479
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
53480
|
+
operationID: "vaults_withdraw",
|
|
53481
|
+
oAuth2Scopes: [],
|
|
53482
|
+
resolvedSecurity: requestSecurity,
|
|
53483
|
+
securitySource: client._options.apiKeyAuth,
|
|
53484
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
53485
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
53486
|
+
};
|
|
53487
|
+
const requestRes = client._createRequest(context, {
|
|
53488
|
+
security: requestSecurity,
|
|
53489
|
+
method: "POST",
|
|
53490
|
+
baseURL: options?.serverURL,
|
|
53491
|
+
path,
|
|
53492
|
+
headers,
|
|
53493
|
+
body,
|
|
53494
|
+
userAgent: client._options.userAgent,
|
|
53495
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
53496
|
+
}, options);
|
|
53497
|
+
if (!requestRes.ok) {
|
|
53498
|
+
return [requestRes, { status: "invalid" }];
|
|
53499
|
+
}
|
|
53500
|
+
const req = requestRes.value;
|
|
53501
|
+
const doResult = await client._do(req, {
|
|
53502
|
+
context,
|
|
53503
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
53504
|
+
retryConfig: context.retryConfig,
|
|
53505
|
+
retryCodes: context.retryCodes
|
|
53506
|
+
});
|
|
53507
|
+
if (!doResult.ok) {
|
|
53508
|
+
return [doResult, { status: "request-error", request: req }];
|
|
53509
|
+
}
|
|
53510
|
+
const response = doResult.value;
|
|
53511
|
+
const responseFields = {
|
|
53512
|
+
HttpMeta: { Response: response, Request: req }
|
|
53513
|
+
};
|
|
53514
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
53515
|
+
if (!result.ok) {
|
|
53516
|
+
return [result, { status: "complete", request: req, response }];
|
|
53517
|
+
}
|
|
53518
|
+
return [result, { status: "complete", request: req, response }];
|
|
53519
|
+
}
|
|
53520
|
+
var init_vaultsERC4626Withdraw = __esm(() => {
|
|
53521
|
+
init_encodings();
|
|
53522
|
+
init_matchers();
|
|
53523
|
+
init_primitives();
|
|
53524
|
+
init_schemas();
|
|
53525
|
+
init_security();
|
|
53526
|
+
init_url();
|
|
53527
|
+
init_components();
|
|
53528
|
+
init_errors2();
|
|
53529
|
+
init_async();
|
|
53530
|
+
});
|
|
53531
|
+
|
|
53532
|
+
// src/mcp-server/tools/vaultsERC4626Withdraw.ts
|
|
53533
|
+
var args77, tool$vaultsERC4626Withdraw;
|
|
53534
|
+
var init_vaultsERC4626Withdraw2 = __esm(() => {
|
|
53535
|
+
init_vaultsERC4626Withdraw();
|
|
53536
|
+
init_components();
|
|
53537
|
+
init_tools();
|
|
53538
|
+
args77 = {
|
|
53539
|
+
request: VaultWithdrawRequest$inboundSchema
|
|
53540
|
+
};
|
|
53541
|
+
tool$vaultsERC4626Withdraw = {
|
|
53542
|
+
name: "vaults-(erc-4626-)-withdraw",
|
|
53543
|
+
description: `Withdraw from Vault
|
|
53544
|
+
|
|
53545
|
+
Withdraw deposited tokens from a Vault (ERC-4626 Standard).
|
|
53546
|
+
|
|
53547
|
+
The passive yield earned on token deposits is represented by the increased value of
|
|
53548
|
+
the shares received upon depositing tokens. Trade in these shares for the tokens you
|
|
53549
|
+
deposited plus any accrued yield.`,
|
|
53550
|
+
args: args77,
|
|
53551
|
+
tool: async (client, args78, ctx) => {
|
|
53552
|
+
const [result, apiCall] = await vaultsERC4626Withdraw(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53437
53553
|
if (!result.ok) {
|
|
53438
53554
|
return {
|
|
53439
53555
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53450,7 +53566,7 @@ it to be traded on DeFi protocols.`,
|
|
|
53450
53566
|
function createMCPServer(deps) {
|
|
53451
53567
|
const server = new McpServer({
|
|
53452
53568
|
name: "CompassApiSDK",
|
|
53453
|
-
version: "0.5.
|
|
53569
|
+
version: "0.5.22"
|
|
53454
53570
|
});
|
|
53455
53571
|
const client = new CompassApiSDKCore({
|
|
53456
53572
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -53491,7 +53607,6 @@ function createMCPServer(deps) {
|
|
|
53491
53607
|
tool(tool$morphoMarket);
|
|
53492
53608
|
tool(tool$morphoMarketPosition);
|
|
53493
53609
|
tool(tool$morphoUserPosition);
|
|
53494
|
-
tool(tool$morphoAllowance);
|
|
53495
53610
|
tool(tool$morphoDeposit);
|
|
53496
53611
|
tool(tool$morphoWithdraw);
|
|
53497
53612
|
tool(tool$morphoSupplyCollateral);
|
|
@@ -53540,6 +53655,8 @@ function createMCPServer(deps) {
|
|
|
53540
53655
|
tool(tool$transactionBundlerBundlerExecute);
|
|
53541
53656
|
tool(tool$transactionBundlerBundlerAaveLoop);
|
|
53542
53657
|
tool(tool$smartAccountAccountBatchedUserOperations);
|
|
53658
|
+
tool(tool$vaultsERC4626Deposit);
|
|
53659
|
+
tool(tool$vaultsERC4626Withdraw);
|
|
53543
53660
|
return server;
|
|
53544
53661
|
}
|
|
53545
53662
|
var init_server2 = __esm(() => {
|
|
@@ -53567,7 +53684,6 @@ var init_server2 = __esm(() => {
|
|
|
53567
53684
|
init_aerodromeSlipstreamSlipstreamPoolPrice2();
|
|
53568
53685
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly2();
|
|
53569
53686
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly2();
|
|
53570
|
-
init_morphoAllowance2();
|
|
53571
53687
|
init_morphoBorrow2();
|
|
53572
53688
|
init_morphoDeposit2();
|
|
53573
53689
|
init_morphoMarket2();
|
|
@@ -53623,6 +53739,8 @@ var init_server2 = __esm(() => {
|
|
|
53623
53739
|
init_universalUnwrapWeth2();
|
|
53624
53740
|
init_universalVisualizePortfolio2();
|
|
53625
53741
|
init_universalWrapEth2();
|
|
53742
|
+
init_vaultsERC4626Deposit2();
|
|
53743
|
+
init_vaultsERC4626Withdraw2();
|
|
53626
53744
|
});
|
|
53627
53745
|
|
|
53628
53746
|
// src/mcp-server/cli/start/impl.ts
|
|
@@ -54813,7 +54931,7 @@ var routes = an({
|
|
|
54813
54931
|
var app = He(routes, {
|
|
54814
54932
|
name: "mcp",
|
|
54815
54933
|
versionInfo: {
|
|
54816
|
-
currentVersion: "0.5.
|
|
54934
|
+
currentVersion: "0.5.22"
|
|
54817
54935
|
}
|
|
54818
54936
|
});
|
|
54819
54937
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -54821,5 +54939,5 @@ export {
|
|
|
54821
54939
|
app
|
|
54822
54940
|
};
|
|
54823
54941
|
|
|
54824
|
-
//# debugId=
|
|
54942
|
+
//# debugId=6FB6B37D1F75E88B64756E2164756E21
|
|
54825
54943
|
//# sourceMappingURL=mcp-server.js.map
|