@compass-labs/api-sdk 0.5.20 → 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 +881 -761
- package/bin/mcp-server.js.map +21 -19
- 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 +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +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/batcheduseroperationsrequest.d.ts +5 -0
- package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/batcheduseroperationsrequest.js +2 -0
- package/dist/commonjs/models/components/batcheduseroperationsrequest.js.map +1 -1
- 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 +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +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/batcheduseroperationsrequest.d.ts +5 -0
- package/dist/esm/models/components/batcheduseroperationsrequest.d.ts.map +1 -1
- package/dist/esm/models/components/batcheduseroperationsrequest.js +2 -0
- package/dist/esm/models/components/batcheduseroperationsrequest.js.map +1 -1
- 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 +4 -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 +3 -3
- 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/batcheduseroperationsrequest.ts +7 -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.
|
|
34209
|
-
genVersion: "2.
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34208
|
+
sdkVersion: "0.5.22",
|
|
34209
|
+
genVersion: "2.632.2",
|
|
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
|
|
@@ -39247,10 +39220,12 @@ var init_batcheduseroperationsrequest = __esm(() => {
|
|
|
39247
39220
|
init_useroperation();
|
|
39248
39221
|
BatchedUserOperationsRequest$inboundSchema = objectType({
|
|
39249
39222
|
chain: Chain$inboundSchema,
|
|
39223
|
+
sender: stringType(),
|
|
39250
39224
|
operations: arrayType(UserOperation$inboundSchema)
|
|
39251
39225
|
});
|
|
39252
39226
|
BatchedUserOperationsRequest$outboundSchema = objectType({
|
|
39253
39227
|
chain: Chain$outboundSchema,
|
|
39228
|
+
sender: stringType(),
|
|
39254
39229
|
operations: arrayType(UserOperation$outboundSchema)
|
|
39255
39230
|
});
|
|
39256
39231
|
((BatchedUserOperationsRequest$) => {
|
|
@@ -39878,76 +39853,6 @@ var init_image = __esm(() => {
|
|
|
39878
39853
|
})(Image$ ||= {});
|
|
39879
39854
|
});
|
|
39880
39855
|
|
|
39881
|
-
// src/models/components/increaseallowancerequest.ts
|
|
39882
|
-
var IncreaseAllowanceRequestContractName, IncreaseAllowanceRequestToken$inboundSchema, IncreaseAllowanceRequestToken$outboundSchema, IncreaseAllowanceRequestToken$, IncreaseAllowanceRequestContractName$inboundSchema, IncreaseAllowanceRequestContractName$outboundSchema, IncreaseAllowanceRequestContractName$, IncreaseAllowanceRequestAmount$inboundSchema, IncreaseAllowanceRequestAmount$outboundSchema, IncreaseAllowanceRequestAmount$, IncreaseAllowanceRequest$inboundSchema, IncreaseAllowanceRequest$outboundSchema, IncreaseAllowanceRequest$;
|
|
39883
|
-
var init_increaseallowancerequest = __esm(() => {
|
|
39884
|
-
init_esm();
|
|
39885
|
-
init_primitives();
|
|
39886
|
-
init_chain();
|
|
39887
|
-
init_tokenenum();
|
|
39888
|
-
IncreaseAllowanceRequestContractName = {
|
|
39889
|
-
AaveV3Pool: "AaveV3Pool",
|
|
39890
|
-
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
39891
|
-
AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
|
|
39892
|
-
AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
|
|
39893
|
-
UniswapV3Router: "UniswapV3Router",
|
|
39894
|
-
UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
|
|
39895
|
-
Morpho: "Morpho",
|
|
39896
|
-
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
39897
|
-
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
39898
|
-
SkyUsdsVault: "SkyUsdsVault",
|
|
39899
|
-
PendleRouter: "PendleRouter"
|
|
39900
|
-
};
|
|
39901
|
-
IncreaseAllowanceRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
39902
|
-
IncreaseAllowanceRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
39903
|
-
((IncreaseAllowanceRequestToken$) => {
|
|
39904
|
-
IncreaseAllowanceRequestToken$.inboundSchema = IncreaseAllowanceRequestToken$inboundSchema;
|
|
39905
|
-
IncreaseAllowanceRequestToken$.outboundSchema = IncreaseAllowanceRequestToken$outboundSchema;
|
|
39906
|
-
})(IncreaseAllowanceRequestToken$ ||= {});
|
|
39907
|
-
IncreaseAllowanceRequestContractName$inboundSchema = nativeEnumType(IncreaseAllowanceRequestContractName);
|
|
39908
|
-
IncreaseAllowanceRequestContractName$outboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
|
|
39909
|
-
((IncreaseAllowanceRequestContractName$) => {
|
|
39910
|
-
IncreaseAllowanceRequestContractName$.inboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
|
|
39911
|
-
IncreaseAllowanceRequestContractName$.outboundSchema = IncreaseAllowanceRequestContractName$outboundSchema;
|
|
39912
|
-
})(IncreaseAllowanceRequestContractName$ ||= {});
|
|
39913
|
-
IncreaseAllowanceRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
39914
|
-
IncreaseAllowanceRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
39915
|
-
((IncreaseAllowanceRequestAmount$) => {
|
|
39916
|
-
IncreaseAllowanceRequestAmount$.inboundSchema = IncreaseAllowanceRequestAmount$inboundSchema;
|
|
39917
|
-
IncreaseAllowanceRequestAmount$.outboundSchema = IncreaseAllowanceRequestAmount$outboundSchema;
|
|
39918
|
-
})(IncreaseAllowanceRequestAmount$ ||= {});
|
|
39919
|
-
IncreaseAllowanceRequest$inboundSchema = objectType({
|
|
39920
|
-
action_type: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
|
|
39921
|
-
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
39922
|
-
contract_name: IncreaseAllowanceRequestContractName$inboundSchema,
|
|
39923
|
-
amount: unionType([numberType(), stringType()]),
|
|
39924
|
-
chain: Chain$inboundSchema,
|
|
39925
|
-
sender: stringType()
|
|
39926
|
-
}).transform((v2) => {
|
|
39927
|
-
return remap(v2, {
|
|
39928
|
-
action_type: "actionType",
|
|
39929
|
-
contract_name: "contractName"
|
|
39930
|
-
});
|
|
39931
|
-
});
|
|
39932
|
-
IncreaseAllowanceRequest$outboundSchema = objectType({
|
|
39933
|
-
actionType: literalType("ALLOWANCE_INCREASE").default("ALLOWANCE_INCREASE"),
|
|
39934
|
-
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
39935
|
-
contractName: IncreaseAllowanceRequestContractName$outboundSchema,
|
|
39936
|
-
amount: unionType([numberType(), stringType()]),
|
|
39937
|
-
chain: Chain$outboundSchema,
|
|
39938
|
-
sender: stringType()
|
|
39939
|
-
}).transform((v2) => {
|
|
39940
|
-
return remap(v2, {
|
|
39941
|
-
actionType: "action_type",
|
|
39942
|
-
contractName: "contract_name"
|
|
39943
|
-
});
|
|
39944
|
-
});
|
|
39945
|
-
((IncreaseAllowanceRequest$) => {
|
|
39946
|
-
IncreaseAllowanceRequest$.inboundSchema = IncreaseAllowanceRequest$inboundSchema;
|
|
39947
|
-
IncreaseAllowanceRequest$.outboundSchema = IncreaseAllowanceRequest$outboundSchema;
|
|
39948
|
-
})(IncreaseAllowanceRequest$ ||= {});
|
|
39949
|
-
});
|
|
39950
|
-
|
|
39951
39856
|
// src/models/components/liquidity.ts
|
|
39952
39857
|
var Liquidity$inboundSchema, Liquidity$outboundSchema, Liquidity$;
|
|
39953
39858
|
var init_liquidity = __esm(() => {
|
|
@@ -40575,57 +40480,6 @@ var init_morphorepayrequest = __esm(() => {
|
|
|
40575
40480
|
})(MorphoRepayRequest$ ||= {});
|
|
40576
40481
|
});
|
|
40577
40482
|
|
|
40578
|
-
// src/models/components/morphosetvaultallowancerequest.ts
|
|
40579
|
-
var MorphoSetVaultAllowanceRequestChain, MorphoSetVaultAllowanceRequestAmount$inboundSchema, MorphoSetVaultAllowanceRequestAmount$outboundSchema, MorphoSetVaultAllowanceRequestAmount$, MorphoSetVaultAllowanceRequestChain$inboundSchema, MorphoSetVaultAllowanceRequestChain$outboundSchema, MorphoSetVaultAllowanceRequestChain$, MorphoSetVaultAllowanceRequest$inboundSchema, MorphoSetVaultAllowanceRequest$outboundSchema, MorphoSetVaultAllowanceRequest$;
|
|
40580
|
-
var init_morphosetvaultallowancerequest = __esm(() => {
|
|
40581
|
-
init_esm();
|
|
40582
|
-
init_primitives();
|
|
40583
|
-
MorphoSetVaultAllowanceRequestChain = {
|
|
40584
|
-
EthereumMainnet: "ethereum:mainnet",
|
|
40585
|
-
BaseMainnet: "base:mainnet"
|
|
40586
|
-
};
|
|
40587
|
-
MorphoSetVaultAllowanceRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
40588
|
-
MorphoSetVaultAllowanceRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
40589
|
-
((MorphoSetVaultAllowanceRequestAmount$) => {
|
|
40590
|
-
MorphoSetVaultAllowanceRequestAmount$.inboundSchema = MorphoSetVaultAllowanceRequestAmount$inboundSchema;
|
|
40591
|
-
MorphoSetVaultAllowanceRequestAmount$.outboundSchema = MorphoSetVaultAllowanceRequestAmount$outboundSchema;
|
|
40592
|
-
})(MorphoSetVaultAllowanceRequestAmount$ ||= {});
|
|
40593
|
-
MorphoSetVaultAllowanceRequestChain$inboundSchema = nativeEnumType(MorphoSetVaultAllowanceRequestChain);
|
|
40594
|
-
MorphoSetVaultAllowanceRequestChain$outboundSchema = MorphoSetVaultAllowanceRequestChain$inboundSchema;
|
|
40595
|
-
((MorphoSetVaultAllowanceRequestChain$) => {
|
|
40596
|
-
MorphoSetVaultAllowanceRequestChain$.inboundSchema = MorphoSetVaultAllowanceRequestChain$inboundSchema;
|
|
40597
|
-
MorphoSetVaultAllowanceRequestChain$.outboundSchema = MorphoSetVaultAllowanceRequestChain$outboundSchema;
|
|
40598
|
-
})(MorphoSetVaultAllowanceRequestChain$ ||= {});
|
|
40599
|
-
MorphoSetVaultAllowanceRequest$inboundSchema = objectType({
|
|
40600
|
-
action_type: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
|
|
40601
|
-
vault_address: stringType(),
|
|
40602
|
-
amount: unionType([numberType(), stringType()]),
|
|
40603
|
-
chain: MorphoSetVaultAllowanceRequestChain$inboundSchema,
|
|
40604
|
-
sender: stringType()
|
|
40605
|
-
}).transform((v2) => {
|
|
40606
|
-
return remap(v2, {
|
|
40607
|
-
action_type: "actionType",
|
|
40608
|
-
vault_address: "vaultAddress"
|
|
40609
|
-
});
|
|
40610
|
-
});
|
|
40611
|
-
MorphoSetVaultAllowanceRequest$outboundSchema = objectType({
|
|
40612
|
-
actionType: literalType("MORPHO_SET_VAULT_ALLOWANCE").default("MORPHO_SET_VAULT_ALLOWANCE"),
|
|
40613
|
-
vaultAddress: stringType(),
|
|
40614
|
-
amount: unionType([numberType(), stringType()]),
|
|
40615
|
-
chain: MorphoSetVaultAllowanceRequestChain$outboundSchema,
|
|
40616
|
-
sender: stringType()
|
|
40617
|
-
}).transform((v2) => {
|
|
40618
|
-
return remap(v2, {
|
|
40619
|
-
actionType: "action_type",
|
|
40620
|
-
vaultAddress: "vault_address"
|
|
40621
|
-
});
|
|
40622
|
-
});
|
|
40623
|
-
((MorphoSetVaultAllowanceRequest$) => {
|
|
40624
|
-
MorphoSetVaultAllowanceRequest$.inboundSchema = MorphoSetVaultAllowanceRequest$inboundSchema;
|
|
40625
|
-
MorphoSetVaultAllowanceRequest$.outboundSchema = MorphoSetVaultAllowanceRequest$outboundSchema;
|
|
40626
|
-
})(MorphoSetVaultAllowanceRequest$ ||= {});
|
|
40627
|
-
});
|
|
40628
|
-
|
|
40629
40483
|
// src/models/components/morphosupplycollateralrequest.ts
|
|
40630
40484
|
var MorphoSupplyCollateralRequestChain, MorphoSupplyCollateralRequestAmount$inboundSchema, MorphoSupplyCollateralRequestAmount$outboundSchema, MorphoSupplyCollateralRequestAmount$, MorphoSupplyCollateralRequestChain$inboundSchema, MorphoSupplyCollateralRequestChain$outboundSchema, MorphoSupplyCollateralRequestChain$, MorphoSupplyCollateralRequest$inboundSchema, MorphoSupplyCollateralRequest$outboundSchema, MorphoSupplyCollateralRequest$;
|
|
40631
40485
|
var init_morphosupplycollateralrequest = __esm(() => {
|
|
@@ -41474,6 +41328,86 @@ var init_security2 = __esm(() => {
|
|
|
41474
41328
|
})(Security$ ||= {});
|
|
41475
41329
|
});
|
|
41476
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
|
+
|
|
41477
41411
|
// src/models/components/skybuyrequest.ts
|
|
41478
41412
|
var SkyBuyRequestTokenIn, SkyBuyRequestTokenIn$inboundSchema, SkyBuyRequestTokenIn$outboundSchema, SkyBuyRequestTokenIn$, SkyBuyRequestAmount$inboundSchema, SkyBuyRequestAmount$outboundSchema, SkyBuyRequestAmount$, SkyBuyRequest$inboundSchema, SkyBuyRequest$outboundSchema, SkyBuyRequest$;
|
|
41479
41413
|
var init_skybuyrequest = __esm(() => {
|
|
@@ -42480,6 +42414,88 @@ var init_validationerror = __esm(() => {
|
|
|
42480
42414
|
})(ValidationError$ ||= {});
|
|
42481
42415
|
});
|
|
42482
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
|
+
|
|
42483
42499
|
// src/models/components/wrapethrequest.ts
|
|
42484
42500
|
var WrapEthRequestAmount$inboundSchema, WrapEthRequestAmount$outboundSchema, WrapEthRequestAmount$, WrapEthRequest$inboundSchema, WrapEthRequest$outboundSchema, WrapEthRequest$;
|
|
42485
42501
|
var init_wrapethrequest = __esm(() => {
|
|
@@ -42578,8 +42594,6 @@ var init_components = __esm(() => {
|
|
|
42578
42594
|
init_erc20data();
|
|
42579
42595
|
init_feeenum();
|
|
42580
42596
|
init_image();
|
|
42581
|
-
init_increaseallowanceparams();
|
|
42582
|
-
init_increaseallowancerequest();
|
|
42583
42597
|
init_interestratemode();
|
|
42584
42598
|
init_liquidationcall();
|
|
42585
42599
|
init_liquidity();
|
|
@@ -42601,8 +42615,6 @@ var init_components = __esm(() => {
|
|
|
42601
42615
|
init_morphomarket();
|
|
42602
42616
|
init_morphorepayparams();
|
|
42603
42617
|
init_morphorepayrequest();
|
|
42604
|
-
init_morphosetvaultallowanceparams();
|
|
42605
|
-
init_morphosetvaultallowancerequest();
|
|
42606
42618
|
init_morphosupplycollateralparams();
|
|
42607
42619
|
init_morphosupplycollateralrequest();
|
|
42608
42620
|
init_morphovault();
|
|
@@ -42640,6 +42652,8 @@ var init_components = __esm(() => {
|
|
|
42640
42652
|
init_repay();
|
|
42641
42653
|
init_reserve();
|
|
42642
42654
|
init_security2();
|
|
42655
|
+
init_setallowanceparams();
|
|
42656
|
+
init_setallowancerequest();
|
|
42643
42657
|
init_signedauthorization();
|
|
42644
42658
|
init_skybuyparams();
|
|
42645
42659
|
init_skybuyrequest();
|
|
@@ -42687,7 +42701,9 @@ var init_components = __esm(() => {
|
|
|
42687
42701
|
init_userstate();
|
|
42688
42702
|
init_validationerror();
|
|
42689
42703
|
init_vault();
|
|
42704
|
+
init_vaultdepositrequest();
|
|
42690
42705
|
init_vaultposition();
|
|
42706
|
+
init_vaultwithdrawrequest();
|
|
42691
42707
|
init_weeklyapys();
|
|
42692
42708
|
init_wrapethparams();
|
|
42693
42709
|
init_wrapethrequest();
|
|
@@ -43595,17 +43611,16 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
|
|
|
43595
43611
|
});
|
|
43596
43612
|
|
|
43597
43613
|
// src/models/operations/genericallowance.ts
|
|
43598
|
-
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$;
|
|
43599
43615
|
var init_genericallowance = __esm(() => {
|
|
43600
43616
|
init_esm();
|
|
43601
|
-
init_primitives();
|
|
43602
43617
|
init_components();
|
|
43603
43618
|
GenericAllowanceChain = {
|
|
43604
43619
|
BaseMainnet: "base:mainnet",
|
|
43605
43620
|
EthereumMainnet: "ethereum:mainnet",
|
|
43606
43621
|
ArbitrumMainnet: "arbitrum:mainnet"
|
|
43607
43622
|
};
|
|
43608
|
-
|
|
43623
|
+
ContractEnum = {
|
|
43609
43624
|
AaveV3Pool: "AaveV3Pool",
|
|
43610
43625
|
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
43611
43626
|
AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
|
|
@@ -43630,31 +43645,29 @@ var init_genericallowance = __esm(() => {
|
|
|
43630
43645
|
GenericAllowanceToken$.inboundSchema = GenericAllowanceToken$inboundSchema;
|
|
43631
43646
|
GenericAllowanceToken$.outboundSchema = GenericAllowanceToken$outboundSchema;
|
|
43632
43647
|
})(GenericAllowanceToken$ ||= {});
|
|
43633
|
-
|
|
43634
|
-
|
|
43635
|
-
((
|
|
43636
|
-
|
|
43637
|
-
|
|
43638
|
-
})(
|
|
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$ ||= {});
|
|
43639
43660
|
GenericAllowanceRequest$inboundSchema = objectType({
|
|
43640
43661
|
chain: GenericAllowanceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
43641
43662
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
43642
43663
|
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
43643
|
-
|
|
43644
|
-
}).transform((v2) => {
|
|
43645
|
-
return remap(v2, {
|
|
43646
|
-
contract_name: "contractName"
|
|
43647
|
-
});
|
|
43664
|
+
contract: unionType([ContractEnum$inboundSchema, stringType()])
|
|
43648
43665
|
});
|
|
43649
43666
|
GenericAllowanceRequest$outboundSchema = objectType({
|
|
43650
43667
|
chain: GenericAllowanceChain$outboundSchema.default("arbitrum:mainnet"),
|
|
43651
43668
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
43652
43669
|
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
43653
|
-
|
|
43654
|
-
}).transform((v2) => {
|
|
43655
|
-
return remap(v2, {
|
|
43656
|
-
contractName: "contract_name"
|
|
43657
|
-
});
|
|
43670
|
+
contract: unionType([ContractEnum$outboundSchema, stringType()])
|
|
43658
43671
|
});
|
|
43659
43672
|
((GenericAllowanceRequest$) => {
|
|
43660
43673
|
GenericAllowanceRequest$.inboundSchema = GenericAllowanceRequest$inboundSchema;
|
|
@@ -47332,18 +47345,18 @@ token and are willing to accept the resulting amount of the other token.`,
|
|
|
47332
47345
|
};
|
|
47333
47346
|
});
|
|
47334
47347
|
|
|
47335
|
-
// src/funcs/
|
|
47336
|
-
function
|
|
47348
|
+
// src/funcs/morphoBorrow.ts
|
|
47349
|
+
function morphoBorrow(client, request, options) {
|
|
47337
47350
|
return new APIPromise($do21(client, request, options));
|
|
47338
47351
|
}
|
|
47339
47352
|
async function $do21(client, request, options) {
|
|
47340
|
-
const parsed = safeParse(request, (value) =>
|
|
47353
|
+
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47341
47354
|
if (!parsed.ok) {
|
|
47342
47355
|
return [parsed, { status: "invalid" }];
|
|
47343
47356
|
}
|
|
47344
47357
|
const payload = parsed.value;
|
|
47345
47358
|
const body = encodeJSON("body", payload, { explode: true });
|
|
47346
|
-
const path = pathToFunc("/v0/morpho/
|
|
47359
|
+
const path = pathToFunc("/v0/morpho/borrow")();
|
|
47347
47360
|
const headers = new Headers(compactMap({
|
|
47348
47361
|
"Content-Type": "application/json",
|
|
47349
47362
|
Accept: "application/json"
|
|
@@ -47354,7 +47367,7 @@ async function $do21(client, request, options) {
|
|
|
47354
47367
|
const context = {
|
|
47355
47368
|
options: client._options,
|
|
47356
47369
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47357
|
-
operationID: "
|
|
47370
|
+
operationID: "morpho_borrow",
|
|
47358
47371
|
oAuth2Scopes: [],
|
|
47359
47372
|
resolvedSecurity: requestSecurity,
|
|
47360
47373
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -47394,114 +47407,7 @@ async function $do21(client, request, options) {
|
|
|
47394
47407
|
}
|
|
47395
47408
|
return [result, { status: "complete", request: req, response }];
|
|
47396
47409
|
}
|
|
47397
|
-
var
|
|
47398
|
-
init_encodings();
|
|
47399
|
-
init_matchers();
|
|
47400
|
-
init_primitives();
|
|
47401
|
-
init_schemas();
|
|
47402
|
-
init_security();
|
|
47403
|
-
init_url();
|
|
47404
|
-
init_components();
|
|
47405
|
-
init_errors2();
|
|
47406
|
-
init_async();
|
|
47407
|
-
});
|
|
47408
|
-
|
|
47409
|
-
// src/mcp-server/tools/morphoAllowance.ts
|
|
47410
|
-
var args21, tool$morphoAllowance;
|
|
47411
|
-
var init_morphoAllowance2 = __esm(() => {
|
|
47412
|
-
init_morphoAllowance();
|
|
47413
|
-
init_components();
|
|
47414
|
-
init_tools();
|
|
47415
|
-
args21 = {
|
|
47416
|
-
request: MorphoSetVaultAllowanceRequest$inboundSchema
|
|
47417
|
-
};
|
|
47418
|
-
tool$morphoAllowance = {
|
|
47419
|
-
name: "morpho-allowance",
|
|
47420
|
-
description: `Set Allowance for Vault
|
|
47421
|
-
|
|
47422
|
-
Set an allowance for a Morpho vault. You must set this for at least the amount you wish to deposit - before depositing.
|
|
47423
|
-
|
|
47424
|
-
Each vault has only one associated token that can be deposited.
|
|
47425
|
-
|
|
47426
|
-
Use the 'Get Vaults' endpoint to query a list of vaults you can deposit into.`,
|
|
47427
|
-
args: args21,
|
|
47428
|
-
tool: async (client, args22, ctx) => {
|
|
47429
|
-
const [result, apiCall] = await morphoAllowance(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47430
|
-
if (!result.ok) {
|
|
47431
|
-
return {
|
|
47432
|
-
content: [{ type: "text", text: result.error.message }],
|
|
47433
|
-
isError: true
|
|
47434
|
-
};
|
|
47435
|
-
}
|
|
47436
|
-
const value = result.value;
|
|
47437
|
-
return formatResult(value, apiCall);
|
|
47438
|
-
}
|
|
47439
|
-
};
|
|
47440
|
-
});
|
|
47441
|
-
|
|
47442
|
-
// src/funcs/morphoBorrow.ts
|
|
47443
|
-
function morphoBorrow(client, request, options) {
|
|
47444
|
-
return new APIPromise($do22(client, request, options));
|
|
47445
|
-
}
|
|
47446
|
-
async function $do22(client, request, options) {
|
|
47447
|
-
const parsed = safeParse(request, (value) => MorphoBorrowRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47448
|
-
if (!parsed.ok) {
|
|
47449
|
-
return [parsed, { status: "invalid" }];
|
|
47450
|
-
}
|
|
47451
|
-
const payload = parsed.value;
|
|
47452
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
47453
|
-
const path = pathToFunc("/v0/morpho/borrow")();
|
|
47454
|
-
const headers = new Headers(compactMap({
|
|
47455
|
-
"Content-Type": "application/json",
|
|
47456
|
-
Accept: "application/json"
|
|
47457
|
-
}));
|
|
47458
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
47459
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
47460
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47461
|
-
const context = {
|
|
47462
|
-
options: client._options,
|
|
47463
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47464
|
-
operationID: "morpho_borrow",
|
|
47465
|
-
oAuth2Scopes: [],
|
|
47466
|
-
resolvedSecurity: requestSecurity,
|
|
47467
|
-
securitySource: client._options.apiKeyAuth,
|
|
47468
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
47469
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
47470
|
-
};
|
|
47471
|
-
const requestRes = client._createRequest(context, {
|
|
47472
|
-
security: requestSecurity,
|
|
47473
|
-
method: "POST",
|
|
47474
|
-
baseURL: options?.serverURL,
|
|
47475
|
-
path,
|
|
47476
|
-
headers,
|
|
47477
|
-
body,
|
|
47478
|
-
userAgent: client._options.userAgent,
|
|
47479
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47480
|
-
}, options);
|
|
47481
|
-
if (!requestRes.ok) {
|
|
47482
|
-
return [requestRes, { status: "invalid" }];
|
|
47483
|
-
}
|
|
47484
|
-
const req = requestRes.value;
|
|
47485
|
-
const doResult = await client._do(req, {
|
|
47486
|
-
context,
|
|
47487
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
47488
|
-
retryConfig: context.retryConfig,
|
|
47489
|
-
retryCodes: context.retryCodes
|
|
47490
|
-
});
|
|
47491
|
-
if (!doResult.ok) {
|
|
47492
|
-
return [doResult, { status: "request-error", request: req }];
|
|
47493
|
-
}
|
|
47494
|
-
const response = doResult.value;
|
|
47495
|
-
const responseFields = {
|
|
47496
|
-
HttpMeta: { Response: response, Request: req }
|
|
47497
|
-
};
|
|
47498
|
-
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
47499
|
-
if (!result.ok) {
|
|
47500
|
-
return [result, { status: "complete", request: req, response }];
|
|
47501
|
-
}
|
|
47502
|
-
return [result, { status: "complete", request: req, response }];
|
|
47503
|
-
}
|
|
47504
|
-
var init_morphoBorrow = __esm(() => {
|
|
47410
|
+
var init_morphoBorrow = __esm(() => {
|
|
47505
47411
|
init_encodings();
|
|
47506
47412
|
init_matchers();
|
|
47507
47413
|
init_primitives();
|
|
@@ -47514,12 +47420,12 @@ var init_morphoBorrow = __esm(() => {
|
|
|
47514
47420
|
});
|
|
47515
47421
|
|
|
47516
47422
|
// src/mcp-server/tools/morphoBorrow.ts
|
|
47517
|
-
var
|
|
47423
|
+
var args21, tool$morphoBorrow;
|
|
47518
47424
|
var init_morphoBorrow2 = __esm(() => {
|
|
47519
47425
|
init_morphoBorrow();
|
|
47520
47426
|
init_components();
|
|
47521
47427
|
init_tools();
|
|
47522
|
-
|
|
47428
|
+
args21 = {
|
|
47523
47429
|
request: MorphoBorrowRequest$inboundSchema
|
|
47524
47430
|
};
|
|
47525
47431
|
tool$morphoBorrow = {
|
|
@@ -47535,9 +47441,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
47535
47441
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
47536
47442
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
47537
47443
|
as long as the blockchain it is deployed on is live.`,
|
|
47538
|
-
args:
|
|
47539
|
-
tool: async (client,
|
|
47540
|
-
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();
|
|
47541
47447
|
if (!result.ok) {
|
|
47542
47448
|
return {
|
|
47543
47449
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47552,9 +47458,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
47552
47458
|
|
|
47553
47459
|
// src/funcs/morphoDeposit.ts
|
|
47554
47460
|
function morphoDeposit(client, request, options) {
|
|
47555
|
-
return new APIPromise($
|
|
47461
|
+
return new APIPromise($do22(client, request, options));
|
|
47556
47462
|
}
|
|
47557
|
-
async function $
|
|
47463
|
+
async function $do22(client, request, options) {
|
|
47558
47464
|
const parsed = safeParse(request, (value) => MorphoDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47559
47465
|
if (!parsed.ok) {
|
|
47560
47466
|
return [parsed, { status: "invalid" }];
|
|
@@ -47625,12 +47531,12 @@ var init_morphoDeposit = __esm(() => {
|
|
|
47625
47531
|
});
|
|
47626
47532
|
|
|
47627
47533
|
// src/mcp-server/tools/morphoDeposit.ts
|
|
47628
|
-
var
|
|
47534
|
+
var args22, tool$morphoDeposit;
|
|
47629
47535
|
var init_morphoDeposit2 = __esm(() => {
|
|
47630
47536
|
init_morphoDeposit();
|
|
47631
47537
|
init_components();
|
|
47632
47538
|
init_tools();
|
|
47633
|
-
|
|
47539
|
+
args22 = {
|
|
47634
47540
|
request: MorphoDepositRequest$inboundSchema
|
|
47635
47541
|
};
|
|
47636
47542
|
tool$morphoDeposit = {
|
|
@@ -47648,9 +47554,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
47648
47554
|
exposure for all deposited assets so users don't need to make these decisions
|
|
47649
47555
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
47650
47556
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
47651
|
-
args:
|
|
47652
|
-
tool: async (client,
|
|
47653
|
-
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();
|
|
47654
47560
|
if (!result.ok) {
|
|
47655
47561
|
return {
|
|
47656
47562
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47665,9 +47571,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
47665
47571
|
|
|
47666
47572
|
// src/funcs/morphoMarket.ts
|
|
47667
47573
|
function morphoMarket(client, request, options) {
|
|
47668
|
-
return new APIPromise($
|
|
47574
|
+
return new APIPromise($do23(client, request, options));
|
|
47669
47575
|
}
|
|
47670
|
-
async function $
|
|
47576
|
+
async function $do23(client, request, options) {
|
|
47671
47577
|
const parsed = safeParse(request, (value) => MorphoMarketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47672
47578
|
if (!parsed.ok) {
|
|
47673
47579
|
return [parsed, { status: "invalid" }];
|
|
@@ -47743,12 +47649,12 @@ var init_morphoMarket = __esm(() => {
|
|
|
47743
47649
|
});
|
|
47744
47650
|
|
|
47745
47651
|
// src/mcp-server/tools/morphoMarket.ts
|
|
47746
|
-
var
|
|
47652
|
+
var args23, tool$morphoMarket;
|
|
47747
47653
|
var init_morphoMarket2 = __esm(() => {
|
|
47748
47654
|
init_morphoMarket();
|
|
47749
47655
|
init_operations();
|
|
47750
47656
|
init_tools();
|
|
47751
|
-
|
|
47657
|
+
args23 = {
|
|
47752
47658
|
request: MorphoMarketRequest$inboundSchema
|
|
47753
47659
|
};
|
|
47754
47660
|
tool$morphoMarket = {
|
|
@@ -47765,9 +47671,9 @@ Including:
|
|
|
47765
47671
|
- Utilization ratio
|
|
47766
47672
|
- Pertinent metadata
|
|
47767
47673
|
- Whitelist status`,
|
|
47768
|
-
args:
|
|
47769
|
-
tool: async (client,
|
|
47770
|
-
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();
|
|
47771
47677
|
if (!result.ok) {
|
|
47772
47678
|
return {
|
|
47773
47679
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47782,9 +47688,9 @@ Including:
|
|
|
47782
47688
|
|
|
47783
47689
|
// src/funcs/morphoMarketPosition.ts
|
|
47784
47690
|
function morphoMarketPosition(client, request, options) {
|
|
47785
|
-
return new APIPromise($
|
|
47691
|
+
return new APIPromise($do24(client, request, options));
|
|
47786
47692
|
}
|
|
47787
|
-
async function $
|
|
47693
|
+
async function $do24(client, request, options) {
|
|
47788
47694
|
const parsed = safeParse(request, (value) => MorphoMarketPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47789
47695
|
if (!parsed.ok) {
|
|
47790
47696
|
return [parsed, { status: "invalid" }];
|
|
@@ -47861,12 +47767,12 @@ var init_morphoMarketPosition = __esm(() => {
|
|
|
47861
47767
|
});
|
|
47862
47768
|
|
|
47863
47769
|
// src/mcp-server/tools/morphoMarketPosition.ts
|
|
47864
|
-
var
|
|
47770
|
+
var args24, tool$morphoMarketPosition;
|
|
47865
47771
|
var init_morphoMarketPosition2 = __esm(() => {
|
|
47866
47772
|
init_morphoMarketPosition();
|
|
47867
47773
|
init_operations();
|
|
47868
47774
|
init_tools();
|
|
47869
|
-
|
|
47775
|
+
args24 = {
|
|
47870
47776
|
request: MorphoMarketPositionRequest$inboundSchema
|
|
47871
47777
|
};
|
|
47872
47778
|
tool$morphoMarketPosition = {
|
|
@@ -47875,9 +47781,9 @@ var init_morphoMarketPosition2 = __esm(() => {
|
|
|
47875
47781
|
|
|
47876
47782
|
Check how many shares you've borrowed and the equivalent token amount of a given
|
|
47877
47783
|
market.`,
|
|
47878
|
-
args:
|
|
47879
|
-
tool: async (client,
|
|
47880
|
-
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();
|
|
47881
47787
|
if (!result.ok) {
|
|
47882
47788
|
return {
|
|
47883
47789
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47892,9 +47798,9 @@ market.`,
|
|
|
47892
47798
|
|
|
47893
47799
|
// src/funcs/morphoMarkets.ts
|
|
47894
47800
|
function morphoMarkets(client, request, options) {
|
|
47895
|
-
return new APIPromise($
|
|
47801
|
+
return new APIPromise($do25(client, request, options));
|
|
47896
47802
|
}
|
|
47897
|
-
async function $
|
|
47803
|
+
async function $do25(client, request, options) {
|
|
47898
47804
|
const parsed = safeParse(request, (value) => MorphoMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47899
47805
|
if (!parsed.ok) {
|
|
47900
47806
|
return [parsed, { status: "invalid" }];
|
|
@@ -47971,12 +47877,12 @@ var init_morphoMarkets = __esm(() => {
|
|
|
47971
47877
|
});
|
|
47972
47878
|
|
|
47973
47879
|
// src/mcp-server/tools/morphoMarkets.ts
|
|
47974
|
-
var
|
|
47880
|
+
var args25, tool$morphoMarkets;
|
|
47975
47881
|
var init_morphoMarkets2 = __esm(() => {
|
|
47976
47882
|
init_morphoMarkets();
|
|
47977
47883
|
init_operations();
|
|
47978
47884
|
init_tools();
|
|
47979
|
-
|
|
47885
|
+
args25 = {
|
|
47980
47886
|
request: MorphoMarketsRequest$inboundSchema
|
|
47981
47887
|
};
|
|
47982
47888
|
tool$morphoMarkets = {
|
|
@@ -47987,9 +47893,9 @@ Query a list of markets you can borrow from.
|
|
|
47987
47893
|
|
|
47988
47894
|
Each market has one unique token that can be borrowed against one unique token that
|
|
47989
47895
|
can be used as collateral.`,
|
|
47990
|
-
args:
|
|
47991
|
-
tool: async (client,
|
|
47992
|
-
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();
|
|
47993
47899
|
if (!result.ok) {
|
|
47994
47900
|
return {
|
|
47995
47901
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48004,9 +47910,9 @@ can be used as collateral.`,
|
|
|
48004
47910
|
|
|
48005
47911
|
// src/funcs/morphoRepay.ts
|
|
48006
47912
|
function morphoRepay(client, request, options) {
|
|
48007
|
-
return new APIPromise($
|
|
47913
|
+
return new APIPromise($do26(client, request, options));
|
|
48008
47914
|
}
|
|
48009
|
-
async function $
|
|
47915
|
+
async function $do26(client, request, options) {
|
|
48010
47916
|
const parsed = safeParse(request, (value) => MorphoRepayRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48011
47917
|
if (!parsed.ok) {
|
|
48012
47918
|
return [parsed, { status: "invalid" }];
|
|
@@ -48077,12 +47983,12 @@ var init_morphoRepay = __esm(() => {
|
|
|
48077
47983
|
});
|
|
48078
47984
|
|
|
48079
47985
|
// src/mcp-server/tools/morphoRepay.ts
|
|
48080
|
-
var
|
|
47986
|
+
var args26, tool$morphoRepay;
|
|
48081
47987
|
var init_morphoRepay2 = __esm(() => {
|
|
48082
47988
|
init_morphoRepay();
|
|
48083
47989
|
init_components();
|
|
48084
47990
|
init_tools();
|
|
48085
|
-
|
|
47991
|
+
args26 = {
|
|
48086
47992
|
request: MorphoRepayRequest$inboundSchema
|
|
48087
47993
|
};
|
|
48088
47994
|
tool$morphoRepay = {
|
|
@@ -48095,9 +48001,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
48095
48001
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
48096
48002
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
48097
48003
|
as long as the blockchain it is deployed on is live.`,
|
|
48098
|
-
args:
|
|
48099
|
-
tool: async (client,
|
|
48100
|
-
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();
|
|
48101
48007
|
if (!result.ok) {
|
|
48102
48008
|
return {
|
|
48103
48009
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48112,9 +48018,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
48112
48018
|
|
|
48113
48019
|
// src/funcs/morphoSupplyCollateral.ts
|
|
48114
48020
|
function morphoSupplyCollateral(client, request, options) {
|
|
48115
|
-
return new APIPromise($
|
|
48021
|
+
return new APIPromise($do27(client, request, options));
|
|
48116
48022
|
}
|
|
48117
|
-
async function $
|
|
48023
|
+
async function $do27(client, request, options) {
|
|
48118
48024
|
const parsed = safeParse(request, (value) => MorphoSupplyCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48119
48025
|
if (!parsed.ok) {
|
|
48120
48026
|
return [parsed, { status: "invalid" }];
|
|
@@ -48185,12 +48091,12 @@ var init_morphoSupplyCollateral = __esm(() => {
|
|
|
48185
48091
|
});
|
|
48186
48092
|
|
|
48187
48093
|
// src/mcp-server/tools/morphoSupplyCollateral.ts
|
|
48188
|
-
var
|
|
48094
|
+
var args27, tool$morphoSupplyCollateral;
|
|
48189
48095
|
var init_morphoSupplyCollateral2 = __esm(() => {
|
|
48190
48096
|
init_morphoSupplyCollateral();
|
|
48191
48097
|
init_components();
|
|
48192
48098
|
init_tools();
|
|
48193
|
-
|
|
48099
|
+
args27 = {
|
|
48194
48100
|
request: MorphoSupplyCollateralRequest$inboundSchema
|
|
48195
48101
|
};
|
|
48196
48102
|
tool$morphoSupplyCollateral = {
|
|
@@ -48203,9 +48109,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
48203
48109
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
48204
48110
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
48205
48111
|
as long as the blockchain it is deployed on is live.`,
|
|
48206
|
-
args:
|
|
48207
|
-
tool: async (client,
|
|
48208
|
-
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();
|
|
48209
48115
|
if (!result.ok) {
|
|
48210
48116
|
return {
|
|
48211
48117
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48220,9 +48126,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
48220
48126
|
|
|
48221
48127
|
// src/funcs/morphoUserPosition.ts
|
|
48222
48128
|
function morphoUserPosition(client, request, options) {
|
|
48223
|
-
return new APIPromise($
|
|
48129
|
+
return new APIPromise($do28(client, request, options));
|
|
48224
48130
|
}
|
|
48225
|
-
async function $
|
|
48131
|
+
async function $do28(client, request, options) {
|
|
48226
48132
|
const parsed = safeParse(request, (value) => MorphoUserPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48227
48133
|
if (!parsed.ok) {
|
|
48228
48134
|
return [parsed, { status: "invalid" }];
|
|
@@ -48298,12 +48204,12 @@ var init_morphoUserPosition = __esm(() => {
|
|
|
48298
48204
|
});
|
|
48299
48205
|
|
|
48300
48206
|
// src/mcp-server/tools/morphoUserPosition.ts
|
|
48301
|
-
var
|
|
48207
|
+
var args28, tool$morphoUserPosition;
|
|
48302
48208
|
var init_morphoUserPosition2 = __esm(() => {
|
|
48303
48209
|
init_morphoUserPosition();
|
|
48304
48210
|
init_operations();
|
|
48305
48211
|
init_tools();
|
|
48306
|
-
|
|
48212
|
+
args28 = {
|
|
48307
48213
|
request: MorphoUserPositionRequest$inboundSchema
|
|
48308
48214
|
};
|
|
48309
48215
|
tool$morphoUserPosition = {
|
|
@@ -48314,9 +48220,9 @@ Check user's overall position across the entire Morpho ecosystem.
|
|
|
48314
48220
|
|
|
48315
48221
|
Inlcuding all vault and market position metrics and relavant metadata of said vaults
|
|
48316
48222
|
and markets.`,
|
|
48317
|
-
args:
|
|
48318
|
-
tool: async (client,
|
|
48319
|
-
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();
|
|
48320
48226
|
if (!result.ok) {
|
|
48321
48227
|
return {
|
|
48322
48228
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48331,9 +48237,9 @@ and markets.`,
|
|
|
48331
48237
|
|
|
48332
48238
|
// src/funcs/morphoVault.ts
|
|
48333
48239
|
function morphoVault(client, request, options) {
|
|
48334
|
-
return new APIPromise($
|
|
48240
|
+
return new APIPromise($do29(client, request, options));
|
|
48335
48241
|
}
|
|
48336
|
-
async function $
|
|
48242
|
+
async function $do29(client, request, options) {
|
|
48337
48243
|
const parsed = safeParse(request, (value) => MorphoVaultRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48338
48244
|
if (!parsed.ok) {
|
|
48339
48245
|
return [parsed, { status: "invalid" }];
|
|
@@ -48409,12 +48315,12 @@ var init_morphoVault = __esm(() => {
|
|
|
48409
48315
|
});
|
|
48410
48316
|
|
|
48411
48317
|
// src/mcp-server/tools/morphoVault.ts
|
|
48412
|
-
var
|
|
48318
|
+
var args29, tool$morphoVault;
|
|
48413
48319
|
var init_morphoVault2 = __esm(() => {
|
|
48414
48320
|
init_morphoVault();
|
|
48415
48321
|
init_operations();
|
|
48416
48322
|
init_tools();
|
|
48417
|
-
|
|
48323
|
+
args29 = {
|
|
48418
48324
|
request: MorphoVaultRequest$inboundSchema
|
|
48419
48325
|
};
|
|
48420
48326
|
tool$morphoVault = {
|
|
@@ -48429,9 +48335,9 @@ Including:
|
|
|
48429
48335
|
- Total liquidity
|
|
48430
48336
|
- Pertinent metadata
|
|
48431
48337
|
- Whitelist status`,
|
|
48432
|
-
args:
|
|
48433
|
-
tool: async (client,
|
|
48434
|
-
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();
|
|
48435
48341
|
if (!result.ok) {
|
|
48436
48342
|
return {
|
|
48437
48343
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48446,9 +48352,9 @@ Including:
|
|
|
48446
48352
|
|
|
48447
48353
|
// src/funcs/morphoVaultPosition.ts
|
|
48448
48354
|
function morphoVaultPosition(client, request, options) {
|
|
48449
|
-
return new APIPromise($
|
|
48355
|
+
return new APIPromise($do30(client, request, options));
|
|
48450
48356
|
}
|
|
48451
|
-
async function $
|
|
48357
|
+
async function $do30(client, request, options) {
|
|
48452
48358
|
const parsed = safeParse(request, (value) => MorphoVaultPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48453
48359
|
if (!parsed.ok) {
|
|
48454
48360
|
return [parsed, { status: "invalid" }];
|
|
@@ -48525,12 +48431,12 @@ var init_morphoVaultPosition = __esm(() => {
|
|
|
48525
48431
|
});
|
|
48526
48432
|
|
|
48527
48433
|
// src/mcp-server/tools/morphoVaultPosition.ts
|
|
48528
|
-
var
|
|
48434
|
+
var args30, tool$morphoVaultPosition;
|
|
48529
48435
|
var init_morphoVaultPosition2 = __esm(() => {
|
|
48530
48436
|
init_morphoVaultPosition();
|
|
48531
48437
|
init_operations();
|
|
48532
48438
|
init_tools();
|
|
48533
|
-
|
|
48439
|
+
args30 = {
|
|
48534
48440
|
request: MorphoVaultPositionRequest$inboundSchema
|
|
48535
48441
|
};
|
|
48536
48442
|
tool$morphoVaultPosition = {
|
|
@@ -48539,9 +48445,9 @@ var init_morphoVaultPosition2 = __esm(() => {
|
|
|
48539
48445
|
|
|
48540
48446
|
Check how many shares you own and the equivalent token amount of a given
|
|
48541
48447
|
vault.`,
|
|
48542
|
-
args:
|
|
48543
|
-
tool: async (client,
|
|
48544
|
-
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();
|
|
48545
48451
|
if (!result.ok) {
|
|
48546
48452
|
return {
|
|
48547
48453
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48556,9 +48462,9 @@ vault.`,
|
|
|
48556
48462
|
|
|
48557
48463
|
// src/funcs/morphoVaults.ts
|
|
48558
48464
|
function morphoVaults(client, request, options) {
|
|
48559
|
-
return new APIPromise($
|
|
48465
|
+
return new APIPromise($do31(client, request, options));
|
|
48560
48466
|
}
|
|
48561
|
-
async function $
|
|
48467
|
+
async function $do31(client, request, options) {
|
|
48562
48468
|
const parsed = safeParse(request, (value) => MorphoVaultsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48563
48469
|
if (!parsed.ok) {
|
|
48564
48470
|
return [parsed, { status: "invalid" }];
|
|
@@ -48634,12 +48540,12 @@ var init_morphoVaults = __esm(() => {
|
|
|
48634
48540
|
});
|
|
48635
48541
|
|
|
48636
48542
|
// src/mcp-server/tools/morphoVaults.ts
|
|
48637
|
-
var
|
|
48543
|
+
var args31, tool$morphoVaults;
|
|
48638
48544
|
var init_morphoVaults2 = __esm(() => {
|
|
48639
48545
|
init_morphoVaults();
|
|
48640
48546
|
init_operations();
|
|
48641
48547
|
init_tools();
|
|
48642
|
-
|
|
48548
|
+
args31 = {
|
|
48643
48549
|
request: MorphoVaultsRequest$inboundSchema
|
|
48644
48550
|
};
|
|
48645
48551
|
tool$morphoVaults = {
|
|
@@ -48651,9 +48557,9 @@ Query a list of vaults you can deposit into.
|
|
|
48651
48557
|
Each vault has one unique token that can be deposited. In exchange for depositing
|
|
48652
48558
|
tokens into a vault you receive shares. You earn yield on these shares by their
|
|
48653
48559
|
exchange value increasing over time.`,
|
|
48654
|
-
args:
|
|
48655
|
-
tool: async (client,
|
|
48656
|
-
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();
|
|
48657
48563
|
if (!result.ok) {
|
|
48658
48564
|
return {
|
|
48659
48565
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48668,9 +48574,9 @@ exchange value increasing over time.`,
|
|
|
48668
48574
|
|
|
48669
48575
|
// src/funcs/morphoWithdraw.ts
|
|
48670
48576
|
function morphoWithdraw(client, request, options) {
|
|
48671
|
-
return new APIPromise($
|
|
48577
|
+
return new APIPromise($do32(client, request, options));
|
|
48672
48578
|
}
|
|
48673
|
-
async function $
|
|
48579
|
+
async function $do32(client, request, options) {
|
|
48674
48580
|
const parsed = safeParse(request, (value) => MorphoWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48675
48581
|
if (!parsed.ok) {
|
|
48676
48582
|
return [parsed, { status: "invalid" }];
|
|
@@ -48741,12 +48647,12 @@ var init_morphoWithdraw = __esm(() => {
|
|
|
48741
48647
|
});
|
|
48742
48648
|
|
|
48743
48649
|
// src/mcp-server/tools/morphoWithdraw.ts
|
|
48744
|
-
var
|
|
48650
|
+
var args32, tool$morphoWithdraw;
|
|
48745
48651
|
var init_morphoWithdraw2 = __esm(() => {
|
|
48746
48652
|
init_morphoWithdraw();
|
|
48747
48653
|
init_components();
|
|
48748
48654
|
init_tools();
|
|
48749
|
-
|
|
48655
|
+
args32 = {
|
|
48750
48656
|
request: MorphoWithdrawRequest$inboundSchema
|
|
48751
48657
|
};
|
|
48752
48658
|
tool$morphoWithdraw = {
|
|
@@ -48764,9 +48670,9 @@ paid by borrowers. Vaults feature automated risk management, actively curating r
|
|
|
48764
48670
|
exposure for all deposited assets so users don't need to make these decisions
|
|
48765
48671
|
themselves. Users maintain full control over their assets, can monitor the vault's
|
|
48766
48672
|
state at any time, and withdraw their liquidity at their discretion.`,
|
|
48767
|
-
args:
|
|
48768
|
-
tool: async (client,
|
|
48769
|
-
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();
|
|
48770
48676
|
if (!result.ok) {
|
|
48771
48677
|
return {
|
|
48772
48678
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48781,9 +48687,9 @@ state at any time, and withdraw their liquidity at their discretion.`,
|
|
|
48781
48687
|
|
|
48782
48688
|
// src/funcs/morphoWithdrawCollateral.ts
|
|
48783
48689
|
function morphoWithdrawCollateral(client, request, options) {
|
|
48784
|
-
return new APIPromise($
|
|
48690
|
+
return new APIPromise($do33(client, request, options));
|
|
48785
48691
|
}
|
|
48786
|
-
async function $
|
|
48692
|
+
async function $do33(client, request, options) {
|
|
48787
48693
|
const parsed = safeParse(request, (value) => MorphoWithdrawCollateralRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48788
48694
|
if (!parsed.ok) {
|
|
48789
48695
|
return [parsed, { status: "invalid" }];
|
|
@@ -48854,12 +48760,12 @@ var init_morphoWithdrawCollateral = __esm(() => {
|
|
|
48854
48760
|
});
|
|
48855
48761
|
|
|
48856
48762
|
// src/mcp-server/tools/morphoWithdrawCollateral.ts
|
|
48857
|
-
var
|
|
48763
|
+
var args33, tool$morphoWithdrawCollateral;
|
|
48858
48764
|
var init_morphoWithdrawCollateral2 = __esm(() => {
|
|
48859
48765
|
init_morphoWithdrawCollateral();
|
|
48860
48766
|
init_components();
|
|
48861
48767
|
init_tools();
|
|
48862
|
-
|
|
48768
|
+
args33 = {
|
|
48863
48769
|
request: MorphoWithdrawCollateralRequest$inboundSchema
|
|
48864
48770
|
};
|
|
48865
48771
|
tool$morphoWithdrawCollateral = {
|
|
@@ -48872,9 +48778,9 @@ A Morpho Market is a primitive lending pool that pairs one collateral asset with
|
|
|
48872
48778
|
loan asset. Each market is isolated (meaning risks are contained within each
|
|
48873
48779
|
individual market), immutable (cannot be changed after deployment), and will persist
|
|
48874
48780
|
as long as the blockchain it is deployed on is live.`,
|
|
48875
|
-
args:
|
|
48876
|
-
tool: async (client,
|
|
48877
|
-
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();
|
|
48878
48784
|
if (!result.ok) {
|
|
48879
48785
|
return {
|
|
48880
48786
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48889,9 +48795,9 @@ as long as the blockchain it is deployed on is live.`,
|
|
|
48889
48795
|
|
|
48890
48796
|
// src/funcs/pendleAddLiquidity.ts
|
|
48891
48797
|
function pendleAddLiquidity(client, request, options) {
|
|
48892
|
-
return new APIPromise($
|
|
48798
|
+
return new APIPromise($do34(client, request, options));
|
|
48893
48799
|
}
|
|
48894
|
-
async function $
|
|
48800
|
+
async function $do34(client, request, options) {
|
|
48895
48801
|
const parsed = safeParse(request, (value) => PendleAddLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48896
48802
|
if (!parsed.ok) {
|
|
48897
48803
|
return [parsed, { status: "invalid" }];
|
|
@@ -48962,12 +48868,12 @@ var init_pendleAddLiquidity = __esm(() => {
|
|
|
48962
48868
|
});
|
|
48963
48869
|
|
|
48964
48870
|
// src/mcp-server/tools/pendleAddLiquidity.ts
|
|
48965
|
-
var
|
|
48871
|
+
var args34, tool$pendleAddLiquidity;
|
|
48966
48872
|
var init_pendleAddLiquidity2 = __esm(() => {
|
|
48967
48873
|
init_pendleAddLiquidity();
|
|
48968
48874
|
init_components();
|
|
48969
48875
|
init_tools();
|
|
48970
|
-
|
|
48876
|
+
args34 = {
|
|
48971
48877
|
request: PendleAddLiquidityRequest$inboundSchema
|
|
48972
48878
|
};
|
|
48973
48879
|
tool$pendleAddLiquidity = {
|
|
@@ -48978,9 +48884,9 @@ Add liquidity to a Pendle Market to earn yield.
|
|
|
48978
48884
|
|
|
48979
48885
|
Liquidity is added in the form of the market's Underlying Token. Representation of
|
|
48980
48886
|
the liquidity received is the market's Liquidity Provider Token (LP).`,
|
|
48981
|
-
args:
|
|
48982
|
-
tool: async (client,
|
|
48983
|
-
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();
|
|
48984
48890
|
if (!result.ok) {
|
|
48985
48891
|
return {
|
|
48986
48892
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48995,9 +48901,9 @@ the liquidity received is the market's Liquidity Provider Token (LP).`,
|
|
|
48995
48901
|
|
|
48996
48902
|
// src/funcs/pendleBuyPt.ts
|
|
48997
48903
|
function pendleBuyPt(client, request, options) {
|
|
48998
|
-
return new APIPromise($
|
|
48904
|
+
return new APIPromise($do35(client, request, options));
|
|
48999
48905
|
}
|
|
49000
|
-
async function $
|
|
48906
|
+
async function $do35(client, request, options) {
|
|
49001
48907
|
const parsed = safeParse(request, (value) => PendleBuyPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49002
48908
|
if (!parsed.ok) {
|
|
49003
48909
|
return [parsed, { status: "invalid" }];
|
|
@@ -49068,12 +48974,12 @@ var init_pendleBuyPt = __esm(() => {
|
|
|
49068
48974
|
});
|
|
49069
48975
|
|
|
49070
48976
|
// src/mcp-server/tools/pendleBuyPt.ts
|
|
49071
|
-
var
|
|
48977
|
+
var args35, tool$pendleBuyPt;
|
|
49072
48978
|
var init_pendleBuyPt2 = __esm(() => {
|
|
49073
48979
|
init_pendleBuyPt();
|
|
49074
48980
|
init_components();
|
|
49075
48981
|
init_tools();
|
|
49076
|
-
|
|
48982
|
+
args35 = {
|
|
49077
48983
|
request: PendleBuyPtRequest$inboundSchema
|
|
49078
48984
|
};
|
|
49079
48985
|
tool$pendleBuyPt = {
|
|
@@ -49081,9 +48987,9 @@ var init_pendleBuyPt2 = __esm(() => {
|
|
|
49081
48987
|
description: `Buy Principal Token (PT)
|
|
49082
48988
|
|
|
49083
48989
|
Buy Principal Token (PT) with market's Underlying Token.`,
|
|
49084
|
-
args:
|
|
49085
|
-
tool: async (client,
|
|
49086
|
-
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();
|
|
49087
48993
|
if (!result.ok) {
|
|
49088
48994
|
return {
|
|
49089
48995
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49098,9 +49004,9 @@ Buy Principal Token (PT) with market's Underlying Token.`,
|
|
|
49098
49004
|
|
|
49099
49005
|
// src/funcs/pendleBuyYt.ts
|
|
49100
49006
|
function pendleBuyYt(client, request, options) {
|
|
49101
|
-
return new APIPromise($
|
|
49007
|
+
return new APIPromise($do36(client, request, options));
|
|
49102
49008
|
}
|
|
49103
|
-
async function $
|
|
49009
|
+
async function $do36(client, request, options) {
|
|
49104
49010
|
const parsed = safeParse(request, (value) => PendleBuyYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49105
49011
|
if (!parsed.ok) {
|
|
49106
49012
|
return [parsed, { status: "invalid" }];
|
|
@@ -49171,12 +49077,12 @@ var init_pendleBuyYt = __esm(() => {
|
|
|
49171
49077
|
});
|
|
49172
49078
|
|
|
49173
49079
|
// src/mcp-server/tools/pendleBuyYt.ts
|
|
49174
|
-
var
|
|
49080
|
+
var args36, tool$pendleBuyYt;
|
|
49175
49081
|
var init_pendleBuyYt2 = __esm(() => {
|
|
49176
49082
|
init_pendleBuyYt();
|
|
49177
49083
|
init_components();
|
|
49178
49084
|
init_tools();
|
|
49179
|
-
|
|
49085
|
+
args36 = {
|
|
49180
49086
|
request: PendleBuyYtRequest$inboundSchema
|
|
49181
49087
|
};
|
|
49182
49088
|
tool$pendleBuyYt = {
|
|
@@ -49184,9 +49090,9 @@ var init_pendleBuyYt2 = __esm(() => {
|
|
|
49184
49090
|
description: `Buy Yield Token (YT)
|
|
49185
49091
|
|
|
49186
49092
|
Buy Yield Token (YT) with market's Underlying Token.`,
|
|
49187
|
-
args:
|
|
49188
|
-
tool: async (client,
|
|
49189
|
-
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();
|
|
49190
49096
|
if (!result.ok) {
|
|
49191
49097
|
return {
|
|
49192
49098
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49201,9 +49107,9 @@ Buy Yield Token (YT) with market's Underlying Token.`,
|
|
|
49201
49107
|
|
|
49202
49108
|
// src/funcs/pendleMarket.ts
|
|
49203
49109
|
function pendleMarket(client, request, options) {
|
|
49204
|
-
return new APIPromise($
|
|
49110
|
+
return new APIPromise($do37(client, request, options));
|
|
49205
49111
|
}
|
|
49206
|
-
async function $
|
|
49112
|
+
async function $do37(client, request, options) {
|
|
49207
49113
|
const parsed = safeParse(request, (value) => PendleMarketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49208
49114
|
if (!parsed.ok) {
|
|
49209
49115
|
return [parsed, { status: "invalid" }];
|
|
@@ -49279,12 +49185,12 @@ var init_pendleMarket = __esm(() => {
|
|
|
49279
49185
|
});
|
|
49280
49186
|
|
|
49281
49187
|
// src/mcp-server/tools/pendleMarket.ts
|
|
49282
|
-
var
|
|
49188
|
+
var args37, tool$pendleMarket;
|
|
49283
49189
|
var init_pendleMarket2 = __esm(() => {
|
|
49284
49190
|
init_pendleMarket();
|
|
49285
49191
|
init_operations();
|
|
49286
49192
|
init_tools();
|
|
49287
|
-
|
|
49193
|
+
args37 = {
|
|
49288
49194
|
request: PendleMarketRequest$inboundSchema
|
|
49289
49195
|
};
|
|
49290
49196
|
tool$pendleMarket = {
|
|
@@ -49292,9 +49198,9 @@ var init_pendleMarket2 = __esm(() => {
|
|
|
49292
49198
|
description: `Get Market Data
|
|
49293
49199
|
|
|
49294
49200
|
Get the market's implied APY, maturity date and the associated token data.`,
|
|
49295
|
-
args:
|
|
49296
|
-
tool: async (client,
|
|
49297
|
-
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();
|
|
49298
49204
|
if (!result.ok) {
|
|
49299
49205
|
return {
|
|
49300
49206
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49309,9 +49215,9 @@ Get the market's implied APY, maturity date and the associated token data.`,
|
|
|
49309
49215
|
|
|
49310
49216
|
// src/funcs/pendleMarkets.ts
|
|
49311
49217
|
function pendleMarkets(client, request, options) {
|
|
49312
|
-
return new APIPromise($
|
|
49218
|
+
return new APIPromise($do38(client, request, options));
|
|
49313
49219
|
}
|
|
49314
|
-
async function $
|
|
49220
|
+
async function $do38(client, request, options) {
|
|
49315
49221
|
const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49316
49222
|
if (!parsed.ok) {
|
|
49317
49223
|
return [parsed, { status: "invalid" }];
|
|
@@ -49386,12 +49292,12 @@ var init_pendleMarkets = __esm(() => {
|
|
|
49386
49292
|
});
|
|
49387
49293
|
|
|
49388
49294
|
// src/mcp-server/tools/pendleMarkets.ts
|
|
49389
|
-
var
|
|
49295
|
+
var args38, tool$pendleMarkets;
|
|
49390
49296
|
var init_pendleMarkets2 = __esm(() => {
|
|
49391
49297
|
init_pendleMarkets();
|
|
49392
49298
|
init_operations();
|
|
49393
49299
|
init_tools();
|
|
49394
|
-
|
|
49300
|
+
args38 = {
|
|
49395
49301
|
request: PendleMarketsRequest$inboundSchema
|
|
49396
49302
|
};
|
|
49397
49303
|
tool$pendleMarkets = {
|
|
@@ -49399,9 +49305,9 @@ var init_pendleMarkets2 = __esm(() => {
|
|
|
49399
49305
|
description: `List Market Data
|
|
49400
49306
|
|
|
49401
49307
|
Get a list of active markets.`,
|
|
49402
|
-
args:
|
|
49403
|
-
tool: async (client,
|
|
49404
|
-
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();
|
|
49405
49311
|
if (!result.ok) {
|
|
49406
49312
|
return {
|
|
49407
49313
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49416,9 +49322,9 @@ Get a list of active markets.`,
|
|
|
49416
49322
|
|
|
49417
49323
|
// src/funcs/pendlePosition.ts
|
|
49418
49324
|
function pendlePosition(client, request, options) {
|
|
49419
|
-
return new APIPromise($
|
|
49325
|
+
return new APIPromise($do39(client, request, options));
|
|
49420
49326
|
}
|
|
49421
|
-
async function $
|
|
49327
|
+
async function $do39(client, request, options) {
|
|
49422
49328
|
const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49423
49329
|
if (!parsed.ok) {
|
|
49424
49330
|
return [parsed, { status: "invalid" }];
|
|
@@ -49495,12 +49401,12 @@ var init_pendlePosition = __esm(() => {
|
|
|
49495
49401
|
});
|
|
49496
49402
|
|
|
49497
49403
|
// src/mcp-server/tools/pendlePosition.ts
|
|
49498
|
-
var
|
|
49404
|
+
var args39, tool$pendlePosition;
|
|
49499
49405
|
var init_pendlePosition2 = __esm(() => {
|
|
49500
49406
|
init_pendlePosition();
|
|
49501
49407
|
init_operations();
|
|
49502
49408
|
init_tools();
|
|
49503
|
-
|
|
49409
|
+
args39 = {
|
|
49504
49410
|
request: PendlePositionRequest$inboundSchema
|
|
49505
49411
|
};
|
|
49506
49412
|
tool$pendlePosition = {
|
|
@@ -49508,9 +49414,9 @@ var init_pendlePosition2 = __esm(() => {
|
|
|
49508
49414
|
description: `Check User's Market Position
|
|
49509
49415
|
|
|
49510
49416
|
Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
49511
|
-
args:
|
|
49512
|
-
tool: async (client,
|
|
49513
|
-
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();
|
|
49514
49420
|
if (!result.ok) {
|
|
49515
49421
|
return {
|
|
49516
49422
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49525,9 +49431,9 @@ Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
|
49525
49431
|
|
|
49526
49432
|
// src/funcs/pendlePositions.ts
|
|
49527
49433
|
function pendlePositions(client, request, options) {
|
|
49528
|
-
return new APIPromise($
|
|
49434
|
+
return new APIPromise($do40(client, request, options));
|
|
49529
49435
|
}
|
|
49530
|
-
async function $
|
|
49436
|
+
async function $do40(client, request, options) {
|
|
49531
49437
|
const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49532
49438
|
if (!parsed.ok) {
|
|
49533
49439
|
return [parsed, { status: "invalid" }];
|
|
@@ -49603,12 +49509,12 @@ var init_pendlePositions = __esm(() => {
|
|
|
49603
49509
|
});
|
|
49604
49510
|
|
|
49605
49511
|
// src/mcp-server/tools/pendlePositions.ts
|
|
49606
|
-
var
|
|
49512
|
+
var args40, tool$pendlePositions;
|
|
49607
49513
|
var init_pendlePositions2 = __esm(() => {
|
|
49608
49514
|
init_pendlePositions();
|
|
49609
49515
|
init_operations();
|
|
49610
49516
|
init_tools();
|
|
49611
|
-
|
|
49517
|
+
args40 = {
|
|
49612
49518
|
request: PendlePositionsRequest$inboundSchema
|
|
49613
49519
|
};
|
|
49614
49520
|
tool$pendlePositions = {
|
|
@@ -49616,9 +49522,9 @@ var init_pendlePositions2 = __esm(() => {
|
|
|
49616
49522
|
description: `List User's Market Positions
|
|
49617
49523
|
|
|
49618
49524
|
List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
49619
|
-
args:
|
|
49620
|
-
tool: async (client,
|
|
49621
|
-
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();
|
|
49622
49528
|
if (!result.ok) {
|
|
49623
49529
|
return {
|
|
49624
49530
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49633,9 +49539,9 @@ List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
|
49633
49539
|
|
|
49634
49540
|
// src/funcs/pendleRedeemYield.ts
|
|
49635
49541
|
function pendleRedeemYield(client, request, options) {
|
|
49636
|
-
return new APIPromise($
|
|
49542
|
+
return new APIPromise($do41(client, request, options));
|
|
49637
49543
|
}
|
|
49638
|
-
async function $
|
|
49544
|
+
async function $do41(client, request, options) {
|
|
49639
49545
|
const parsed = safeParse(request, (value) => PendleRedeemYieldRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49640
49546
|
if (!parsed.ok) {
|
|
49641
49547
|
return [parsed, { status: "invalid" }];
|
|
@@ -49706,12 +49612,12 @@ var init_pendleRedeemYield = __esm(() => {
|
|
|
49706
49612
|
});
|
|
49707
49613
|
|
|
49708
49614
|
// src/mcp-server/tools/pendleRedeemYield.ts
|
|
49709
|
-
var
|
|
49615
|
+
var args41, tool$pendleRedeemYield;
|
|
49710
49616
|
var init_pendleRedeemYield2 = __esm(() => {
|
|
49711
49617
|
init_pendleRedeemYield();
|
|
49712
49618
|
init_components();
|
|
49713
49619
|
init_tools();
|
|
49714
|
-
|
|
49620
|
+
args41 = {
|
|
49715
49621
|
request: PendleRedeemYieldRequest$inboundSchema
|
|
49716
49622
|
};
|
|
49717
49623
|
tool$pendleRedeemYield = {
|
|
@@ -49719,9 +49625,9 @@ var init_pendleRedeemYield2 = __esm(() => {
|
|
|
49719
49625
|
description: `Redeem Claimable Yield
|
|
49720
49626
|
|
|
49721
49627
|
Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
49722
|
-
args:
|
|
49723
|
-
tool: async (client,
|
|
49724
|
-
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();
|
|
49725
49631
|
if (!result.ok) {
|
|
49726
49632
|
return {
|
|
49727
49633
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49736,9 +49642,9 @@ Redeem claimable yield from the market's associated Yield Token (YT).`,
|
|
|
49736
49642
|
|
|
49737
49643
|
// src/funcs/pendleRemoveLiquidity.ts
|
|
49738
49644
|
function pendleRemoveLiquidity(client, request, options) {
|
|
49739
|
-
return new APIPromise($
|
|
49645
|
+
return new APIPromise($do42(client, request, options));
|
|
49740
49646
|
}
|
|
49741
|
-
async function $
|
|
49647
|
+
async function $do42(client, request, options) {
|
|
49742
49648
|
const parsed = safeParse(request, (value) => PendleRemoveLiquidityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49743
49649
|
if (!parsed.ok) {
|
|
49744
49650
|
return [parsed, { status: "invalid" }];
|
|
@@ -49809,12 +49715,12 @@ var init_pendleRemoveLiquidity = __esm(() => {
|
|
|
49809
49715
|
});
|
|
49810
49716
|
|
|
49811
49717
|
// src/mcp-server/tools/pendleRemoveLiquidity.ts
|
|
49812
|
-
var
|
|
49718
|
+
var args42, tool$pendleRemoveLiquidity;
|
|
49813
49719
|
var init_pendleRemoveLiquidity2 = __esm(() => {
|
|
49814
49720
|
init_pendleRemoveLiquidity();
|
|
49815
49721
|
init_components();
|
|
49816
49722
|
init_tools();
|
|
49817
|
-
|
|
49723
|
+
args42 = {
|
|
49818
49724
|
request: PendleRemoveLiquidityRequest$inboundSchema
|
|
49819
49725
|
};
|
|
49820
49726
|
tool$pendleRemoveLiquidity = {
|
|
@@ -49826,9 +49732,9 @@ Remove liquidity from a Pendle Market.
|
|
|
49826
49732
|
Liquidity is removed in the form of the market's Liquidity Provider Token (LP) into
|
|
49827
49733
|
the market's Underlying Token. An appropriate allowance for the Pendle Router on the
|
|
49828
49734
|
market contract must be set beforehand`,
|
|
49829
|
-
args:
|
|
49830
|
-
tool: async (client,
|
|
49831
|
-
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();
|
|
49832
49738
|
if (!result.ok) {
|
|
49833
49739
|
return {
|
|
49834
49740
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49843,9 +49749,9 @@ market contract must be set beforehand`,
|
|
|
49843
49749
|
|
|
49844
49750
|
// src/funcs/pendleSellPt.ts
|
|
49845
49751
|
function pendleSellPt(client, request, options) {
|
|
49846
|
-
return new APIPromise($
|
|
49752
|
+
return new APIPromise($do43(client, request, options));
|
|
49847
49753
|
}
|
|
49848
|
-
async function $
|
|
49754
|
+
async function $do43(client, request, options) {
|
|
49849
49755
|
const parsed = safeParse(request, (value) => PendleSellPtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49850
49756
|
if (!parsed.ok) {
|
|
49851
49757
|
return [parsed, { status: "invalid" }];
|
|
@@ -49916,12 +49822,12 @@ var init_pendleSellPt = __esm(() => {
|
|
|
49916
49822
|
});
|
|
49917
49823
|
|
|
49918
49824
|
// src/mcp-server/tools/pendleSellPt.ts
|
|
49919
|
-
var
|
|
49825
|
+
var args43, tool$pendleSellPt;
|
|
49920
49826
|
var init_pendleSellPt2 = __esm(() => {
|
|
49921
49827
|
init_pendleSellPt();
|
|
49922
49828
|
init_components();
|
|
49923
49829
|
init_tools();
|
|
49924
|
-
|
|
49830
|
+
args43 = {
|
|
49925
49831
|
request: PendleSellPtRequest$inboundSchema
|
|
49926
49832
|
};
|
|
49927
49833
|
tool$pendleSellPt = {
|
|
@@ -49929,9 +49835,9 @@ var init_pendleSellPt2 = __esm(() => {
|
|
|
49929
49835
|
description: `Sell Principal Token (PT)
|
|
49930
49836
|
|
|
49931
49837
|
Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
49932
|
-
args:
|
|
49933
|
-
tool: async (client,
|
|
49934
|
-
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();
|
|
49935
49841
|
if (!result.ok) {
|
|
49936
49842
|
return {
|
|
49937
49843
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49946,9 +49852,9 @@ Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
|
49946
49852
|
|
|
49947
49853
|
// src/funcs/pendleSellYt.ts
|
|
49948
49854
|
function pendleSellYt(client, request, options) {
|
|
49949
|
-
return new APIPromise($
|
|
49855
|
+
return new APIPromise($do44(client, request, options));
|
|
49950
49856
|
}
|
|
49951
|
-
async function $
|
|
49857
|
+
async function $do44(client, request, options) {
|
|
49952
49858
|
const parsed = safeParse(request, (value) => PendleSellYtRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49953
49859
|
if (!parsed.ok) {
|
|
49954
49860
|
return [parsed, { status: "invalid" }];
|
|
@@ -50019,12 +49925,12 @@ var init_pendleSellYt = __esm(() => {
|
|
|
50019
49925
|
});
|
|
50020
49926
|
|
|
50021
49927
|
// src/mcp-server/tools/pendleSellYt.ts
|
|
50022
|
-
var
|
|
49928
|
+
var args44, tool$pendleSellYt;
|
|
50023
49929
|
var init_pendleSellYt2 = __esm(() => {
|
|
50024
49930
|
init_pendleSellYt();
|
|
50025
49931
|
init_components();
|
|
50026
49932
|
init_tools();
|
|
50027
|
-
|
|
49933
|
+
args44 = {
|
|
50028
49934
|
request: PendleSellYtRequest$inboundSchema
|
|
50029
49935
|
};
|
|
50030
49936
|
tool$pendleSellYt = {
|
|
@@ -50032,9 +49938,9 @@ var init_pendleSellYt2 = __esm(() => {
|
|
|
50032
49938
|
description: `Sell Yield Token (YT)
|
|
50033
49939
|
|
|
50034
49940
|
Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
50035
|
-
args:
|
|
50036
|
-
tool: async (client,
|
|
50037
|
-
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();
|
|
50038
49944
|
if (!result.ok) {
|
|
50039
49945
|
return {
|
|
50040
49946
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50049,9 +49955,9 @@ Sell Yield Token (YT) for the market's Underlying Token.`,
|
|
|
50049
49955
|
|
|
50050
49956
|
// src/funcs/skyBuy.ts
|
|
50051
49957
|
function skyBuy(client, request, options) {
|
|
50052
|
-
return new APIPromise($
|
|
49958
|
+
return new APIPromise($do45(client, request, options));
|
|
50053
49959
|
}
|
|
50054
|
-
async function $
|
|
49960
|
+
async function $do45(client, request, options) {
|
|
50055
49961
|
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50056
49962
|
if (!parsed.ok) {
|
|
50057
49963
|
return [parsed, { status: "invalid" }];
|
|
@@ -50122,12 +50028,12 @@ var init_skyBuy = __esm(() => {
|
|
|
50122
50028
|
});
|
|
50123
50029
|
|
|
50124
50030
|
// src/mcp-server/tools/skyBuy.ts
|
|
50125
|
-
var
|
|
50031
|
+
var args45, tool$skyBuy;
|
|
50126
50032
|
var init_skyBuy2 = __esm(() => {
|
|
50127
50033
|
init_skyBuy();
|
|
50128
50034
|
init_components();
|
|
50129
50035
|
init_tools();
|
|
50130
|
-
|
|
50036
|
+
args45 = {
|
|
50131
50037
|
request: SkyBuyRequest$inboundSchema
|
|
50132
50038
|
};
|
|
50133
50039
|
tool$skyBuy = {
|
|
@@ -50141,9 +50047,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
50141
50047
|
|
|
50142
50048
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
50143
50049
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
50144
|
-
args:
|
|
50145
|
-
tool: async (client,
|
|
50146
|
-
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();
|
|
50147
50053
|
if (!result.ok) {
|
|
50148
50054
|
return {
|
|
50149
50055
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50158,9 +50064,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
50158
50064
|
|
|
50159
50065
|
// src/funcs/skyDeposit.ts
|
|
50160
50066
|
function skyDeposit(client, request, options) {
|
|
50161
|
-
return new APIPromise($
|
|
50067
|
+
return new APIPromise($do46(client, request, options));
|
|
50162
50068
|
}
|
|
50163
|
-
async function $
|
|
50069
|
+
async function $do46(client, request, options) {
|
|
50164
50070
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50165
50071
|
if (!parsed.ok) {
|
|
50166
50072
|
return [parsed, { status: "invalid" }];
|
|
@@ -50231,12 +50137,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
50231
50137
|
});
|
|
50232
50138
|
|
|
50233
50139
|
// src/mcp-server/tools/skyDeposit.ts
|
|
50234
|
-
var
|
|
50140
|
+
var args46, tool$skyDeposit;
|
|
50235
50141
|
var init_skyDeposit2 = __esm(() => {
|
|
50236
50142
|
init_skyDeposit();
|
|
50237
50143
|
init_components();
|
|
50238
50144
|
init_tools();
|
|
50239
|
-
|
|
50145
|
+
args46 = {
|
|
50240
50146
|
request: SkyDepositRequest$inboundSchema
|
|
50241
50147
|
};
|
|
50242
50148
|
tool$skyDeposit = {
|
|
@@ -50246,9 +50152,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
50246
50152
|
Deposit USDS for sUSDS to earn yield.
|
|
50247
50153
|
|
|
50248
50154
|
There are no fees.`,
|
|
50249
|
-
args:
|
|
50250
|
-
tool: async (client,
|
|
50251
|
-
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();
|
|
50252
50158
|
if (!result.ok) {
|
|
50253
50159
|
return {
|
|
50254
50160
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50263,9 +50169,9 @@ There are no fees.`,
|
|
|
50263
50169
|
|
|
50264
50170
|
// src/funcs/skyPosition.ts
|
|
50265
50171
|
function skyPosition(client, request, options) {
|
|
50266
|
-
return new APIPromise($
|
|
50172
|
+
return new APIPromise($do47(client, request, options));
|
|
50267
50173
|
}
|
|
50268
|
-
async function $
|
|
50174
|
+
async function $do47(client, request, options) {
|
|
50269
50175
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50270
50176
|
if (!parsed.ok) {
|
|
50271
50177
|
return [parsed, { status: "invalid" }];
|
|
@@ -50341,12 +50247,12 @@ var init_skyPosition = __esm(() => {
|
|
|
50341
50247
|
});
|
|
50342
50248
|
|
|
50343
50249
|
// src/mcp-server/tools/skyPosition.ts
|
|
50344
|
-
var
|
|
50250
|
+
var args47, tool$skyPosition;
|
|
50345
50251
|
var init_skyPosition2 = __esm(() => {
|
|
50346
50252
|
init_skyPosition();
|
|
50347
50253
|
init_operations();
|
|
50348
50254
|
init_tools();
|
|
50349
|
-
|
|
50255
|
+
args47 = {
|
|
50350
50256
|
request: SkyPositionRequest$inboundSchema
|
|
50351
50257
|
};
|
|
50352
50258
|
tool$skyPosition = {
|
|
@@ -50354,9 +50260,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
50354
50260
|
description: `Check USDS Position
|
|
50355
50261
|
|
|
50356
50262
|
Check the USDS overall position.`,
|
|
50357
|
-
args:
|
|
50358
|
-
tool: async (client,
|
|
50359
|
-
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();
|
|
50360
50266
|
if (!result.ok) {
|
|
50361
50267
|
return {
|
|
50362
50268
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50371,9 +50277,9 @@ Check the USDS overall position.`,
|
|
|
50371
50277
|
|
|
50372
50278
|
// src/funcs/skySell.ts
|
|
50373
50279
|
function skySell(client, request, options) {
|
|
50374
|
-
return new APIPromise($
|
|
50280
|
+
return new APIPromise($do48(client, request, options));
|
|
50375
50281
|
}
|
|
50376
|
-
async function $
|
|
50282
|
+
async function $do48(client, request, options) {
|
|
50377
50283
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50378
50284
|
if (!parsed.ok) {
|
|
50379
50285
|
return [parsed, { status: "invalid" }];
|
|
@@ -50444,12 +50350,12 @@ var init_skySell = __esm(() => {
|
|
|
50444
50350
|
});
|
|
50445
50351
|
|
|
50446
50352
|
// src/mcp-server/tools/skySell.ts
|
|
50447
|
-
var
|
|
50353
|
+
var args48, tool$skySell;
|
|
50448
50354
|
var init_skySell2 = __esm(() => {
|
|
50449
50355
|
init_skySell();
|
|
50450
50356
|
init_components();
|
|
50451
50357
|
init_tools();
|
|
50452
|
-
|
|
50358
|
+
args48 = {
|
|
50453
50359
|
request: SkySellRequest$inboundSchema
|
|
50454
50360
|
};
|
|
50455
50361
|
tool$skySell = {
|
|
@@ -50463,9 +50369,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
50463
50369
|
|
|
50464
50370
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
50465
50371
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
50466
|
-
args:
|
|
50467
|
-
tool: async (client,
|
|
50468
|
-
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();
|
|
50469
50375
|
if (!result.ok) {
|
|
50470
50376
|
return {
|
|
50471
50377
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50480,9 +50386,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
50480
50386
|
|
|
50481
50387
|
// src/funcs/skyWithdraw.ts
|
|
50482
50388
|
function skyWithdraw(client, request, options) {
|
|
50483
|
-
return new APIPromise($
|
|
50389
|
+
return new APIPromise($do49(client, request, options));
|
|
50484
50390
|
}
|
|
50485
|
-
async function $
|
|
50391
|
+
async function $do49(client, request, options) {
|
|
50486
50392
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50487
50393
|
if (!parsed.ok) {
|
|
50488
50394
|
return [parsed, { status: "invalid" }];
|
|
@@ -50553,12 +50459,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
50553
50459
|
});
|
|
50554
50460
|
|
|
50555
50461
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
50556
|
-
var
|
|
50462
|
+
var args49, tool$skyWithdraw;
|
|
50557
50463
|
var init_skyWithdraw2 = __esm(() => {
|
|
50558
50464
|
init_skyWithdraw();
|
|
50559
50465
|
init_components();
|
|
50560
50466
|
init_tools();
|
|
50561
|
-
|
|
50467
|
+
args49 = {
|
|
50562
50468
|
request: SkyWithdrawRequest$inboundSchema
|
|
50563
50469
|
};
|
|
50564
50470
|
tool$skyWithdraw = {
|
|
@@ -50566,9 +50472,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
50566
50472
|
description: `Withdraw USDS
|
|
50567
50473
|
|
|
50568
50474
|
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
50569
|
-
args:
|
|
50570
|
-
tool: async (client,
|
|
50571
|
-
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();
|
|
50572
50478
|
if (!result.ok) {
|
|
50573
50479
|
return {
|
|
50574
50480
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50583,9 +50489,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
50583
50489
|
|
|
50584
50490
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
50585
50491
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
50586
|
-
return new APIPromise($
|
|
50492
|
+
return new APIPromise($do50(client, request, options));
|
|
50587
50493
|
}
|
|
50588
|
-
async function $
|
|
50494
|
+
async function $do50(client, request, options) {
|
|
50589
50495
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50590
50496
|
if (!parsed.ok) {
|
|
50591
50497
|
return [parsed, { status: "invalid" }];
|
|
@@ -50656,12 +50562,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
50656
50562
|
});
|
|
50657
50563
|
|
|
50658
50564
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
50659
|
-
var
|
|
50565
|
+
var args50, tool$smartAccountAccountBatchedUserOperations;
|
|
50660
50566
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
50661
50567
|
init_smartAccountAccountBatchedUserOperations();
|
|
50662
50568
|
init_components();
|
|
50663
50569
|
init_tools();
|
|
50664
|
-
|
|
50570
|
+
args50 = {
|
|
50665
50571
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
50666
50572
|
};
|
|
50667
50573
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -50669,9 +50575,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
50669
50575
|
description: `Get Smart Account Batched User Operations
|
|
50670
50576
|
|
|
50671
50577
|
Generate a list of user operations for smart account batching.`,
|
|
50672
|
-
args:
|
|
50673
|
-
tool: async (client,
|
|
50674
|
-
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();
|
|
50675
50581
|
if (!result.ok) {
|
|
50676
50582
|
return {
|
|
50677
50583
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50686,9 +50592,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
50686
50592
|
|
|
50687
50593
|
// src/funcs/tokenAddress.ts
|
|
50688
50594
|
function tokenAddress(client, request, options) {
|
|
50689
|
-
return new APIPromise($
|
|
50595
|
+
return new APIPromise($do51(client, request, options));
|
|
50690
50596
|
}
|
|
50691
|
-
async function $
|
|
50597
|
+
async function $do51(client, request, options) {
|
|
50692
50598
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50693
50599
|
if (!parsed.ok) {
|
|
50694
50600
|
return [parsed, { status: "invalid" }];
|
|
@@ -50764,12 +50670,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
50764
50670
|
});
|
|
50765
50671
|
|
|
50766
50672
|
// src/mcp-server/tools/tokenAddress.ts
|
|
50767
|
-
var
|
|
50673
|
+
var args51, tool$tokenAddress;
|
|
50768
50674
|
var init_tokenAddress2 = __esm(() => {
|
|
50769
50675
|
init_tokenAddress();
|
|
50770
50676
|
init_operations();
|
|
50771
50677
|
init_tools();
|
|
50772
|
-
|
|
50678
|
+
args51 = {
|
|
50773
50679
|
request: TokenAddressRequest$inboundSchema
|
|
50774
50680
|
};
|
|
50775
50681
|
tool$tokenAddress = {
|
|
@@ -50777,9 +50683,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
50777
50683
|
description: `Token Address
|
|
50778
50684
|
|
|
50779
50685
|
This endpoint retrieves the address for a token supported by us.`,
|
|
50780
|
-
args:
|
|
50781
|
-
tool: async (client,
|
|
50782
|
-
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();
|
|
50783
50689
|
if (!result.ok) {
|
|
50784
50690
|
return {
|
|
50785
50691
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50794,9 +50700,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
50794
50700
|
|
|
50795
50701
|
// src/funcs/tokenBalance.ts
|
|
50796
50702
|
function tokenBalance(client, request, options) {
|
|
50797
|
-
return new APIPromise($
|
|
50703
|
+
return new APIPromise($do52(client, request, options));
|
|
50798
50704
|
}
|
|
50799
|
-
async function $
|
|
50705
|
+
async function $do52(client, request, options) {
|
|
50800
50706
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50801
50707
|
if (!parsed.ok) {
|
|
50802
50708
|
return [parsed, { status: "invalid" }];
|
|
@@ -50873,12 +50779,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
50873
50779
|
});
|
|
50874
50780
|
|
|
50875
50781
|
// src/mcp-server/tools/tokenBalance.ts
|
|
50876
|
-
var
|
|
50782
|
+
var args52, tool$tokenBalance;
|
|
50877
50783
|
var init_tokenBalance2 = __esm(() => {
|
|
50878
50784
|
init_tokenBalance();
|
|
50879
50785
|
init_operations();
|
|
50880
50786
|
init_tools();
|
|
50881
|
-
|
|
50787
|
+
args52 = {
|
|
50882
50788
|
request: TokenBalanceRequest$inboundSchema
|
|
50883
50789
|
};
|
|
50884
50790
|
tool$tokenBalance = {
|
|
@@ -50886,9 +50792,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
50886
50792
|
description: `Token Balance
|
|
50887
50793
|
|
|
50888
50794
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
50889
|
-
args:
|
|
50890
|
-
tool: async (client,
|
|
50891
|
-
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();
|
|
50892
50798
|
if (!result.ok) {
|
|
50893
50799
|
return {
|
|
50894
50800
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50903,9 +50809,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
50903
50809
|
|
|
50904
50810
|
// src/funcs/tokenPrice.ts
|
|
50905
50811
|
function tokenPrice(client, request, options) {
|
|
50906
|
-
return new APIPromise($
|
|
50812
|
+
return new APIPromise($do53(client, request, options));
|
|
50907
50813
|
}
|
|
50908
|
-
async function $
|
|
50814
|
+
async function $do53(client, request, options) {
|
|
50909
50815
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50910
50816
|
if (!parsed.ok) {
|
|
50911
50817
|
return [parsed, { status: "invalid" }];
|
|
@@ -50981,12 +50887,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
50981
50887
|
});
|
|
50982
50888
|
|
|
50983
50889
|
// src/mcp-server/tools/tokenPrice.ts
|
|
50984
|
-
var
|
|
50890
|
+
var args53, tool$tokenPrice;
|
|
50985
50891
|
var init_tokenPrice2 = __esm(() => {
|
|
50986
50892
|
init_tokenPrice();
|
|
50987
50893
|
init_operations();
|
|
50988
50894
|
init_tools();
|
|
50989
|
-
|
|
50895
|
+
args53 = {
|
|
50990
50896
|
request: TokenPriceRequest$inboundSchema
|
|
50991
50897
|
};
|
|
50992
50898
|
tool$tokenPrice = {
|
|
@@ -50998,9 +50904,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
50998
50904
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
50999
50905
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
51000
50906
|
with the update frequency of the oracle.`,
|
|
51001
|
-
args:
|
|
51002
|
-
tool: async (client,
|
|
51003
|
-
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();
|
|
51004
50910
|
if (!result.ok) {
|
|
51005
50911
|
return {
|
|
51006
50912
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51015,9 +50921,9 @@ with the update frequency of the oracle.`,
|
|
|
51015
50921
|
|
|
51016
50922
|
// src/funcs/tokenTransfer.ts
|
|
51017
50923
|
function tokenTransfer(client, request, options) {
|
|
51018
|
-
return new APIPromise($
|
|
50924
|
+
return new APIPromise($do54(client, request, options));
|
|
51019
50925
|
}
|
|
51020
|
-
async function $
|
|
50926
|
+
async function $do54(client, request, options) {
|
|
51021
50927
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51022
50928
|
if (!parsed.ok) {
|
|
51023
50929
|
return [parsed, { status: "invalid" }];
|
|
@@ -51088,12 +50994,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
51088
50994
|
});
|
|
51089
50995
|
|
|
51090
50996
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
51091
|
-
var
|
|
50997
|
+
var args54, tool$tokenTransfer;
|
|
51092
50998
|
var init_tokenTransfer2 = __esm(() => {
|
|
51093
50999
|
init_tokenTransfer();
|
|
51094
51000
|
init_components();
|
|
51095
51001
|
init_tools();
|
|
51096
|
-
|
|
51002
|
+
args54 = {
|
|
51097
51003
|
request: TokenTransferRequest$inboundSchema
|
|
51098
51004
|
};
|
|
51099
51005
|
tool$tokenTransfer = {
|
|
@@ -51101,9 +51007,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
51101
51007
|
description: `Transfer ETH or ERC20 Tokens
|
|
51102
51008
|
|
|
51103
51009
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
51104
|
-
args:
|
|
51105
|
-
tool: async (client,
|
|
51106
|
-
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();
|
|
51107
51013
|
if (!result.ok) {
|
|
51108
51014
|
return {
|
|
51109
51015
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51118,9 +51024,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
51118
51024
|
|
|
51119
51025
|
// src/funcs/transactionBundlerBundlerAaveLoop.ts
|
|
51120
51026
|
function transactionBundlerBundlerAaveLoop(client, request, options) {
|
|
51121
|
-
return new APIPromise($
|
|
51027
|
+
return new APIPromise($do55(client, request, options));
|
|
51122
51028
|
}
|
|
51123
|
-
async function $
|
|
51029
|
+
async function $do55(client, request, options) {
|
|
51124
51030
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51125
51031
|
if (!parsed.ok) {
|
|
51126
51032
|
return [parsed, { status: "invalid" }];
|
|
@@ -51191,12 +51097,12 @@ var init_transactionBundlerBundlerAaveLoop = __esm(() => {
|
|
|
51191
51097
|
});
|
|
51192
51098
|
|
|
51193
51099
|
// src/mcp-server/tools/transactionBundlerBundlerAaveLoop.ts
|
|
51194
|
-
var
|
|
51100
|
+
var args55, tool$transactionBundlerBundlerAaveLoop;
|
|
51195
51101
|
var init_transactionBundlerBundlerAaveLoop2 = __esm(() => {
|
|
51196
51102
|
init_transactionBundlerBundlerAaveLoop();
|
|
51197
51103
|
init_components();
|
|
51198
51104
|
init_tools();
|
|
51199
|
-
|
|
51105
|
+
args55 = {
|
|
51200
51106
|
request: AaveLoopRequest$inboundSchema
|
|
51201
51107
|
};
|
|
51202
51108
|
tool$transactionBundlerBundlerAaveLoop = {
|
|
@@ -51214,9 +51120,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
51214
51120
|
- Supplies the swapped tokens
|
|
51215
51121
|
|
|
51216
51122
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
51217
|
-
args:
|
|
51218
|
-
tool: async (client,
|
|
51219
|
-
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();
|
|
51220
51126
|
if (!result.ok) {
|
|
51221
51127
|
return {
|
|
51222
51128
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51231,9 +51137,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
51231
51137
|
|
|
51232
51138
|
// src/funcs/transactionBundlerBundlerAuthorization.ts
|
|
51233
51139
|
function transactionBundlerBundlerAuthorization(client, request, options) {
|
|
51234
|
-
return new APIPromise($
|
|
51140
|
+
return new APIPromise($do56(client, request, options));
|
|
51235
51141
|
}
|
|
51236
|
-
async function $
|
|
51142
|
+
async function $do56(client, request, options) {
|
|
51237
51143
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51238
51144
|
if (!parsed.ok) {
|
|
51239
51145
|
return [parsed, { status: "invalid" }];
|
|
@@ -51304,12 +51210,12 @@ var init_transactionBundlerBundlerAuthorization = __esm(() => {
|
|
|
51304
51210
|
});
|
|
51305
51211
|
|
|
51306
51212
|
// src/mcp-server/tools/transactionBundlerBundlerAuthorization.ts
|
|
51307
|
-
var
|
|
51213
|
+
var args56, tool$transactionBundlerBundlerAuthorization;
|
|
51308
51214
|
var init_transactionBundlerBundlerAuthorization2 = __esm(() => {
|
|
51309
51215
|
init_transactionBundlerBundlerAuthorization();
|
|
51310
51216
|
init_components();
|
|
51311
51217
|
init_tools();
|
|
51312
|
-
|
|
51218
|
+
args56 = {
|
|
51313
51219
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
51314
51220
|
};
|
|
51315
51221
|
tool$transactionBundlerBundlerAuthorization = {
|
|
@@ -51322,9 +51228,9 @@ Currently this is required for every transaction bundle to prevent replay attack
|
|
|
51322
51228
|
and ensure transaction ordering when batching multiple actions into a single
|
|
51323
51229
|
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
51324
51230
|
transaction uniqueness and proper network targeting.`,
|
|
51325
|
-
args:
|
|
51326
|
-
tool: async (client,
|
|
51327
|
-
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();
|
|
51328
51234
|
if (!result.ok) {
|
|
51329
51235
|
return {
|
|
51330
51236
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51339,9 +51245,9 @@ transaction uniqueness and proper network targeting.`,
|
|
|
51339
51245
|
|
|
51340
51246
|
// src/funcs/transactionBundlerBundlerExecute.ts
|
|
51341
51247
|
function transactionBundlerBundlerExecute(client, request, options) {
|
|
51342
|
-
return new APIPromise($
|
|
51248
|
+
return new APIPromise($do57(client, request, options));
|
|
51343
51249
|
}
|
|
51344
|
-
async function $
|
|
51250
|
+
async function $do57(client, request, options) {
|
|
51345
51251
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51346
51252
|
if (!parsed.ok) {
|
|
51347
51253
|
return [parsed, { status: "invalid" }];
|
|
@@ -51412,12 +51318,12 @@ var init_transactionBundlerBundlerExecute = __esm(() => {
|
|
|
51412
51318
|
});
|
|
51413
51319
|
|
|
51414
51320
|
// src/mcp-server/tools/transactionBundlerBundlerExecute.ts
|
|
51415
|
-
var
|
|
51321
|
+
var args57, tool$transactionBundlerBundlerExecute;
|
|
51416
51322
|
var init_transactionBundlerBundlerExecute2 = __esm(() => {
|
|
51417
51323
|
init_transactionBundlerBundlerExecute();
|
|
51418
51324
|
init_components();
|
|
51419
51325
|
init_tools();
|
|
51420
|
-
|
|
51326
|
+
args57 = {
|
|
51421
51327
|
request: MulticallExecuteRequest$inboundSchema
|
|
51422
51328
|
};
|
|
51423
51329
|
tool$transactionBundlerBundlerExecute = {
|
|
@@ -51431,9 +51337,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
51431
51337
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
51432
51338
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
51433
51339
|
prevent replay attacks.`,
|
|
51434
|
-
args:
|
|
51435
|
-
tool: async (client,
|
|
51436
|
-
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();
|
|
51437
51343
|
if (!result.ok) {
|
|
51438
51344
|
return {
|
|
51439
51345
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51448,9 +51354,9 @@ prevent replay attacks.`,
|
|
|
51448
51354
|
|
|
51449
51355
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
51450
51356
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
51451
|
-
return new APIPromise($
|
|
51357
|
+
return new APIPromise($do58(client, request, options));
|
|
51452
51358
|
}
|
|
51453
|
-
async function $
|
|
51359
|
+
async function $do58(client, request, options) {
|
|
51454
51360
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51455
51361
|
if (!parsed.ok) {
|
|
51456
51362
|
return [parsed, { status: "invalid" }];
|
|
@@ -51521,12 +51427,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
51521
51427
|
});
|
|
51522
51428
|
|
|
51523
51429
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
51524
|
-
var
|
|
51430
|
+
var args58, tool$uniswapV3LiquidityProvisionIncrease;
|
|
51525
51431
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
51526
51432
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
51527
51433
|
init_components();
|
|
51528
51434
|
init_tools();
|
|
51529
|
-
|
|
51435
|
+
args58 = {
|
|
51530
51436
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
51531
51437
|
};
|
|
51532
51438
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -51542,9 +51448,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
51542
51448
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
51543
51449
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
51544
51450
|
process.`,
|
|
51545
|
-
args:
|
|
51546
|
-
tool: async (client,
|
|
51547
|
-
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();
|
|
51548
51454
|
if (!result.ok) {
|
|
51549
51455
|
return {
|
|
51550
51456
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51559,9 +51465,9 @@ process.`,
|
|
|
51559
51465
|
|
|
51560
51466
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
51561
51467
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
51562
|
-
return new APIPromise($
|
|
51468
|
+
return new APIPromise($do59(client, request, options));
|
|
51563
51469
|
}
|
|
51564
|
-
async function $
|
|
51470
|
+
async function $do59(client, request, options) {
|
|
51565
51471
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51566
51472
|
if (!parsed.ok) {
|
|
51567
51473
|
return [parsed, { status: "invalid" }];
|
|
@@ -51637,12 +51543,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
51637
51543
|
});
|
|
51638
51544
|
|
|
51639
51545
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
51640
|
-
var
|
|
51546
|
+
var args59, tool$uniswapV3LiquidityProvisionInRange;
|
|
51641
51547
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
51642
51548
|
init_uniswapV3LiquidityProvisionInRange();
|
|
51643
51549
|
init_operations();
|
|
51644
51550
|
init_tools();
|
|
51645
|
-
|
|
51551
|
+
args59 = {
|
|
51646
51552
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
51647
51553
|
};
|
|
51648
51554
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -51657,9 +51563,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
51657
51563
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
51658
51564
|
they are actively participating in the trading activities within the liquidity pool
|
|
51659
51565
|
and earning trading fees.`,
|
|
51660
|
-
args:
|
|
51661
|
-
tool: async (client,
|
|
51662
|
-
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();
|
|
51663
51569
|
if (!result.ok) {
|
|
51664
51570
|
return {
|
|
51665
51571
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51674,9 +51580,9 @@ and earning trading fees.`,
|
|
|
51674
51580
|
|
|
51675
51581
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
51676
51582
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
51677
|
-
return new APIPromise($
|
|
51583
|
+
return new APIPromise($do60(client, request, options));
|
|
51678
51584
|
}
|
|
51679
|
-
async function $
|
|
51585
|
+
async function $do60(client, request, options) {
|
|
51680
51586
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51681
51587
|
if (!parsed.ok) {
|
|
51682
51588
|
return [parsed, { status: "invalid" }];
|
|
@@ -51747,12 +51653,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
51747
51653
|
});
|
|
51748
51654
|
|
|
51749
51655
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
51750
|
-
var
|
|
51656
|
+
var args60, tool$uniswapV3LiquidityProvisionMint;
|
|
51751
51657
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
51752
51658
|
init_uniswapV3LiquidityProvisionMint();
|
|
51753
51659
|
init_components();
|
|
51754
51660
|
init_tools();
|
|
51755
|
-
|
|
51661
|
+
args60 = {
|
|
51756
51662
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
51757
51663
|
};
|
|
51758
51664
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -51768,9 +51674,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
51768
51674
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
51769
51675
|
requires details such as the token pair, amount, and any additional parameters
|
|
51770
51676
|
needed for the minting process.`,
|
|
51771
|
-
args:
|
|
51772
|
-
tool: async (client,
|
|
51773
|
-
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();
|
|
51774
51680
|
if (!result.ok) {
|
|
51775
51681
|
return {
|
|
51776
51682
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51785,9 +51691,9 @@ needed for the minting process.`,
|
|
|
51785
51691
|
|
|
51786
51692
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
51787
51693
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
51788
|
-
return new APIPromise($
|
|
51694
|
+
return new APIPromise($do61(client, request, options));
|
|
51789
51695
|
}
|
|
51790
|
-
async function $
|
|
51696
|
+
async function $do61(client, request, options) {
|
|
51791
51697
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51792
51698
|
if (!parsed.ok) {
|
|
51793
51699
|
return [parsed, { status: "invalid" }];
|
|
@@ -51863,12 +51769,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
51863
51769
|
});
|
|
51864
51770
|
|
|
51865
51771
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
51866
|
-
var
|
|
51772
|
+
var args61, tool$uniswapV3LiquidityProvisionPositions;
|
|
51867
51773
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
51868
51774
|
init_uniswapV3LiquidityProvisionPositions();
|
|
51869
51775
|
init_operations();
|
|
51870
51776
|
init_tools();
|
|
51871
|
-
|
|
51777
|
+
args61 = {
|
|
51872
51778
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
51873
51779
|
};
|
|
51874
51780
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -51882,9 +51788,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
51882
51788
|
positions, including the total number of positions and relevant metadata. This
|
|
51883
51789
|
information is crucial for users to manage and analyze their liquidity provision
|
|
51884
51790
|
activities effectively.`,
|
|
51885
|
-
args:
|
|
51886
|
-
tool: async (client,
|
|
51887
|
-
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();
|
|
51888
51794
|
if (!result.ok) {
|
|
51889
51795
|
return {
|
|
51890
51796
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51899,9 +51805,9 @@ activities effectively.`,
|
|
|
51899
51805
|
|
|
51900
51806
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51901
51807
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
51902
|
-
return new APIPromise($
|
|
51808
|
+
return new APIPromise($do62(client, request, options));
|
|
51903
51809
|
}
|
|
51904
|
-
async function $
|
|
51810
|
+
async function $do62(client, request, options) {
|
|
51905
51811
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
51906
51812
|
if (!parsed.ok) {
|
|
51907
51813
|
return [parsed, { status: "invalid" }];
|
|
@@ -51972,12 +51878,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
51972
51878
|
});
|
|
51973
51879
|
|
|
51974
51880
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
51975
|
-
var
|
|
51881
|
+
var args62, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
51976
51882
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
51977
51883
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
51978
51884
|
init_components();
|
|
51979
51885
|
init_tools();
|
|
51980
|
-
|
|
51886
|
+
args62 = {
|
|
51981
51887
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
51982
51888
|
};
|
|
51983
51889
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -51994,9 +51900,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
51994
51900
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
51995
51901
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
51996
51902
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
51997
|
-
args:
|
|
51998
|
-
tool: async (client,
|
|
51999
|
-
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();
|
|
52000
51906
|
if (!result.ok) {
|
|
52001
51907
|
return {
|
|
52002
51908
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52011,9 +51917,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
52011
51917
|
|
|
52012
51918
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
52013
51919
|
function uniswapV3PoolPrice(client, request, options) {
|
|
52014
|
-
return new APIPromise($
|
|
51920
|
+
return new APIPromise($do63(client, request, options));
|
|
52015
51921
|
}
|
|
52016
|
-
async function $
|
|
51922
|
+
async function $do63(client, request, options) {
|
|
52017
51923
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52018
51924
|
if (!parsed.ok) {
|
|
52019
51925
|
return [parsed, { status: "invalid" }];
|
|
@@ -52091,12 +51997,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
52091
51997
|
});
|
|
52092
51998
|
|
|
52093
51999
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
52094
|
-
var
|
|
52000
|
+
var args63, tool$uniswapV3PoolPrice;
|
|
52095
52001
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
52096
52002
|
init_uniswapV3PoolPrice();
|
|
52097
52003
|
init_operations();
|
|
52098
52004
|
init_tools();
|
|
52099
|
-
|
|
52005
|
+
args63 = {
|
|
52100
52006
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
52101
52007
|
};
|
|
52102
52008
|
tool$uniswapV3PoolPrice = {
|
|
@@ -52106,9 +52012,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
52106
52012
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
52107
52013
|
|
|
52108
52014
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
52109
|
-
args:
|
|
52110
|
-
tool: async (client,
|
|
52111
|
-
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();
|
|
52112
52018
|
if (!result.ok) {
|
|
52113
52019
|
return {
|
|
52114
52020
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52123,9 +52029,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
52123
52029
|
|
|
52124
52030
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
52125
52031
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
52126
|
-
return new APIPromise($
|
|
52032
|
+
return new APIPromise($do64(client, request, options));
|
|
52127
52033
|
}
|
|
52128
|
-
async function $
|
|
52034
|
+
async function $do64(client, request, options) {
|
|
52129
52035
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52130
52036
|
if (!parsed.ok) {
|
|
52131
52037
|
return [parsed, { status: "invalid" }];
|
|
@@ -52204,12 +52110,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
52204
52110
|
});
|
|
52205
52111
|
|
|
52206
52112
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
52207
|
-
var
|
|
52113
|
+
var args64, tool$uniswapV3QuoteBuyExactly;
|
|
52208
52114
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
52209
52115
|
init_uniswapV3QuoteBuyExactly();
|
|
52210
52116
|
init_operations();
|
|
52211
52117
|
init_tools();
|
|
52212
|
-
|
|
52118
|
+
args64 = {
|
|
52213
52119
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
52214
52120
|
};
|
|
52215
52121
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -52221,9 +52127,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
52221
52127
|
|
|
52222
52128
|
It also provides the resulting price after the transaction. The calculation takes
|
|
52223
52129
|
into account the current pool state and the specified fee tier.`,
|
|
52224
|
-
args:
|
|
52225
|
-
tool: async (client,
|
|
52226
|
-
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();
|
|
52227
52133
|
if (!result.ok) {
|
|
52228
52134
|
return {
|
|
52229
52135
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52238,9 +52144,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
52238
52144
|
|
|
52239
52145
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
52240
52146
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
52241
|
-
return new APIPromise($
|
|
52147
|
+
return new APIPromise($do65(client, request, options));
|
|
52242
52148
|
}
|
|
52243
|
-
async function $
|
|
52149
|
+
async function $do65(client, request, options) {
|
|
52244
52150
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52245
52151
|
if (!parsed.ok) {
|
|
52246
52152
|
return [parsed, { status: "invalid" }];
|
|
@@ -52319,12 +52225,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
52319
52225
|
});
|
|
52320
52226
|
|
|
52321
52227
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
52322
|
-
var
|
|
52228
|
+
var args65, tool$uniswapV3QuoteSellExactly;
|
|
52323
52229
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
52324
52230
|
init_uniswapV3QuoteSellExactly();
|
|
52325
52231
|
init_operations();
|
|
52326
52232
|
init_tools();
|
|
52327
|
-
|
|
52233
|
+
args65 = {
|
|
52328
52234
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
52329
52235
|
};
|
|
52330
52236
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -52336,9 +52242,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
52336
52242
|
|
|
52337
52243
|
It also provides the resulting price after the transaction. The calculation takes
|
|
52338
52244
|
into account the current pool state and the specified fee tier.`,
|
|
52339
|
-
args:
|
|
52340
|
-
tool: async (client,
|
|
52341
|
-
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();
|
|
52342
52248
|
if (!result.ok) {
|
|
52343
52249
|
return {
|
|
52344
52250
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52353,9 +52259,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
52353
52259
|
|
|
52354
52260
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
52355
52261
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
52356
|
-
return new APIPromise($
|
|
52262
|
+
return new APIPromise($do66(client, request, options));
|
|
52357
52263
|
}
|
|
52358
|
-
async function $
|
|
52264
|
+
async function $do66(client, request, options) {
|
|
52359
52265
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52360
52266
|
if (!parsed.ok) {
|
|
52361
52267
|
return [parsed, { status: "invalid" }];
|
|
@@ -52426,12 +52332,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
52426
52332
|
});
|
|
52427
52333
|
|
|
52428
52334
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
52429
|
-
var
|
|
52335
|
+
var args66, tool$uniswapV3SwapBuyExactly;
|
|
52430
52336
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
52431
52337
|
init_uniswapV3SwapBuyExactly();
|
|
52432
52338
|
init_components();
|
|
52433
52339
|
init_tools();
|
|
52434
|
-
|
|
52340
|
+
args66 = {
|
|
52435
52341
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
52436
52342
|
};
|
|
52437
52343
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -52445,9 +52351,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
52445
52351
|
provide the necessary transaction details, including the token to buy, the token to
|
|
52446
52352
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
52447
52353
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
52448
|
-
args:
|
|
52449
|
-
tool: async (client,
|
|
52450
|
-
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();
|
|
52451
52357
|
if (!result.ok) {
|
|
52452
52358
|
return {
|
|
52453
52359
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52462,9 +52368,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
52462
52368
|
|
|
52463
52369
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
52464
52370
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
52465
|
-
return new APIPromise($
|
|
52371
|
+
return new APIPromise($do67(client, request, options));
|
|
52466
52372
|
}
|
|
52467
|
-
async function $
|
|
52373
|
+
async function $do67(client, request, options) {
|
|
52468
52374
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52469
52375
|
if (!parsed.ok) {
|
|
52470
52376
|
return [parsed, { status: "invalid" }];
|
|
@@ -52535,12 +52441,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
52535
52441
|
});
|
|
52536
52442
|
|
|
52537
52443
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
52538
|
-
var
|
|
52444
|
+
var args67, tool$uniswapV3SwapSellExactly;
|
|
52539
52445
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
52540
52446
|
init_uniswapV3SwapSellExactly();
|
|
52541
52447
|
init_components();
|
|
52542
52448
|
init_tools();
|
|
52543
|
-
|
|
52449
|
+
args67 = {
|
|
52544
52450
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
52545
52451
|
};
|
|
52546
52452
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -52554,9 +52460,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
52554
52460
|
provide the necessary transaction details, including the token to sell, the token to
|
|
52555
52461
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
52556
52462
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
52557
|
-
args:
|
|
52558
|
-
tool: async (client,
|
|
52559
|
-
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();
|
|
52560
52466
|
if (!result.ok) {
|
|
52561
52467
|
return {
|
|
52562
52468
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52571,9 +52477,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
52571
52477
|
|
|
52572
52478
|
// src/funcs/universalAllowance.ts
|
|
52573
52479
|
function universalAllowance(client, request, options) {
|
|
52574
|
-
return new APIPromise($
|
|
52480
|
+
return new APIPromise($do68(client, request, options));
|
|
52575
52481
|
}
|
|
52576
|
-
async function $
|
|
52482
|
+
async function $do68(client, request, options) {
|
|
52577
52483
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52578
52484
|
if (!parsed.ok) {
|
|
52579
52485
|
return [parsed, { status: "invalid" }];
|
|
@@ -52583,7 +52489,7 @@ async function $do69(client, request, options) {
|
|
|
52583
52489
|
const path = pathToFunc("/v0/generic/allowance/get")();
|
|
52584
52490
|
const query = encodeFormQuery({
|
|
52585
52491
|
chain: payload.chain,
|
|
52586
|
-
|
|
52492
|
+
contract: payload.contract,
|
|
52587
52493
|
token: payload.token,
|
|
52588
52494
|
user: payload.user
|
|
52589
52495
|
});
|
|
@@ -52651,12 +52557,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
52651
52557
|
});
|
|
52652
52558
|
|
|
52653
52559
|
// src/mcp-server/tools/universalAllowance.ts
|
|
52654
|
-
var
|
|
52560
|
+
var args68, tool$universalAllowance;
|
|
52655
52561
|
var init_universalAllowance2 = __esm(() => {
|
|
52656
52562
|
init_universalAllowance();
|
|
52657
52563
|
init_operations();
|
|
52658
52564
|
init_tools();
|
|
52659
|
-
|
|
52565
|
+
args68 = {
|
|
52660
52566
|
request: GenericAllowanceRequest$inboundSchema
|
|
52661
52567
|
};
|
|
52662
52568
|
tool$universalAllowance = {
|
|
@@ -52670,9 +52576,9 @@ tokens on their behalf.
|
|
|
52670
52576
|
This is a crucial step before engaging in any transactions or operations within
|
|
52671
52577
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
52672
52578
|
the user's tokens securely and efficiently.`,
|
|
52673
|
-
args:
|
|
52674
|
-
tool: async (client,
|
|
52675
|
-
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();
|
|
52676
52582
|
if (!result.ok) {
|
|
52677
52583
|
return {
|
|
52678
52584
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52687,10 +52593,10 @@ the user's tokens securely and efficiently.`,
|
|
|
52687
52593
|
|
|
52688
52594
|
// src/funcs/universalAllowanceSet.ts
|
|
52689
52595
|
function universalAllowanceSet(client, request, options) {
|
|
52690
|
-
return new APIPromise($
|
|
52596
|
+
return new APIPromise($do69(client, request, options));
|
|
52691
52597
|
}
|
|
52692
|
-
async function $
|
|
52693
|
-
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");
|
|
52694
52600
|
if (!parsed.ok) {
|
|
52695
52601
|
return [parsed, { status: "invalid" }];
|
|
52696
52602
|
}
|
|
@@ -52760,13 +52666,13 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
52760
52666
|
});
|
|
52761
52667
|
|
|
52762
52668
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
52763
|
-
var
|
|
52669
|
+
var args69, tool$universalAllowanceSet;
|
|
52764
52670
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
52765
52671
|
init_universalAllowanceSet();
|
|
52766
52672
|
init_components();
|
|
52767
52673
|
init_tools();
|
|
52768
|
-
|
|
52769
|
-
request:
|
|
52674
|
+
args69 = {
|
|
52675
|
+
request: SetAllowanceRequest$inboundSchema
|
|
52770
52676
|
};
|
|
52771
52677
|
tool$universalAllowanceSet = {
|
|
52772
52678
|
name: "universal-allowance-set",
|
|
@@ -52780,9 +52686,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
52780
52686
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
52781
52687
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
52782
52688
|
within the DeFi ecosystem.`,
|
|
52783
|
-
args:
|
|
52784
|
-
tool: async (client,
|
|
52785
|
-
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();
|
|
52786
52692
|
if (!result.ok) {
|
|
52787
52693
|
return {
|
|
52788
52694
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52797,9 +52703,9 @@ within the DeFi ecosystem.`,
|
|
|
52797
52703
|
|
|
52798
52704
|
// src/funcs/universalEns.ts
|
|
52799
52705
|
function universalEns(client, request, options) {
|
|
52800
|
-
return new APIPromise($
|
|
52706
|
+
return new APIPromise($do70(client, request, options));
|
|
52801
52707
|
}
|
|
52802
|
-
async function $
|
|
52708
|
+
async function $do70(client, request, options) {
|
|
52803
52709
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52804
52710
|
if (!parsed.ok) {
|
|
52805
52711
|
return [parsed, { status: "invalid" }];
|
|
@@ -52875,12 +52781,12 @@ var init_universalEns = __esm(() => {
|
|
|
52875
52781
|
});
|
|
52876
52782
|
|
|
52877
52783
|
// src/mcp-server/tools/universalEns.ts
|
|
52878
|
-
var
|
|
52784
|
+
var args70, tool$universalEns;
|
|
52879
52785
|
var init_universalEns2 = __esm(() => {
|
|
52880
52786
|
init_universalEns();
|
|
52881
52787
|
init_operations();
|
|
52882
52788
|
init_tools();
|
|
52883
|
-
|
|
52789
|
+
args70 = {
|
|
52884
52790
|
request: GenericEnsRequest$inboundSchema
|
|
52885
52791
|
};
|
|
52886
52792
|
tool$universalEns = {
|
|
@@ -52891,9 +52797,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
52891
52797
|
|
|
52892
52798
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
52893
52799
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
52894
|
-
args:
|
|
52895
|
-
tool: async (client,
|
|
52896
|
-
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();
|
|
52897
52803
|
if (!result.ok) {
|
|
52898
52804
|
return {
|
|
52899
52805
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -52908,9 +52814,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
52908
52814
|
|
|
52909
52815
|
// src/funcs/universalPortfolio.ts
|
|
52910
52816
|
function universalPortfolio(client, request, options) {
|
|
52911
|
-
return new APIPromise($
|
|
52817
|
+
return new APIPromise($do71(client, request, options));
|
|
52912
52818
|
}
|
|
52913
|
-
async function $
|
|
52819
|
+
async function $do71(client, request, options) {
|
|
52914
52820
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
52915
52821
|
if (!parsed.ok) {
|
|
52916
52822
|
return [parsed, { status: "invalid" }];
|
|
@@ -52986,12 +52892,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
52986
52892
|
});
|
|
52987
52893
|
|
|
52988
52894
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
52989
|
-
var
|
|
52895
|
+
var args71, tool$universalPortfolio;
|
|
52990
52896
|
var init_universalPortfolio2 = __esm(() => {
|
|
52991
52897
|
init_universalPortfolio();
|
|
52992
52898
|
init_operations();
|
|
52993
52899
|
init_tools();
|
|
52994
|
-
|
|
52900
|
+
args71 = {
|
|
52995
52901
|
request: GenericPortfolioRequest$inboundSchema
|
|
52996
52902
|
};
|
|
52997
52903
|
tool$universalPortfolio = {
|
|
@@ -53002,9 +52908,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
53002
52908
|
|
|
53003
52909
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
53004
52910
|
balances, including their respective values and quantities.`,
|
|
53005
|
-
args:
|
|
53006
|
-
tool: async (client,
|
|
53007
|
-
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();
|
|
53008
52914
|
if (!result.ok) {
|
|
53009
52915
|
return {
|
|
53010
52916
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53019,9 +52925,9 @@ balances, including their respective values and quantities.`,
|
|
|
53019
52925
|
|
|
53020
52926
|
// src/funcs/universalSupportedTokens.ts
|
|
53021
52927
|
function universalSupportedTokens(client, request, options) {
|
|
53022
|
-
return new APIPromise($
|
|
52928
|
+
return new APIPromise($do72(client, request, options));
|
|
53023
52929
|
}
|
|
53024
|
-
async function $
|
|
52930
|
+
async function $do72(client, request, options) {
|
|
53025
52931
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53026
52932
|
if (!parsed.ok) {
|
|
53027
52933
|
return [parsed, { status: "invalid" }];
|
|
@@ -53096,12 +53002,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
53096
53002
|
});
|
|
53097
53003
|
|
|
53098
53004
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
53099
|
-
var
|
|
53005
|
+
var args72, tool$universalSupportedTokens;
|
|
53100
53006
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
53101
53007
|
init_universalSupportedTokens();
|
|
53102
53008
|
init_operations();
|
|
53103
53009
|
init_tools();
|
|
53104
|
-
|
|
53010
|
+
args72 = {
|
|
53105
53011
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
53106
53012
|
};
|
|
53107
53013
|
tool$universalSupportedTokens = {
|
|
@@ -53109,9 +53015,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
53109
53015
|
description: `List Supported Tokens
|
|
53110
53016
|
|
|
53111
53017
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
53112
|
-
args:
|
|
53113
|
-
tool: async (client,
|
|
53114
|
-
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();
|
|
53115
53021
|
if (!result.ok) {
|
|
53116
53022
|
return {
|
|
53117
53023
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53126,9 +53032,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
53126
53032
|
|
|
53127
53033
|
// src/funcs/universalUnwrapWeth.ts
|
|
53128
53034
|
function universalUnwrapWeth(client, request, options) {
|
|
53129
|
-
return new APIPromise($
|
|
53035
|
+
return new APIPromise($do73(client, request, options));
|
|
53130
53036
|
}
|
|
53131
|
-
async function $
|
|
53037
|
+
async function $do73(client, request, options) {
|
|
53132
53038
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53133
53039
|
if (!parsed.ok) {
|
|
53134
53040
|
return [parsed, { status: "invalid" }];
|
|
@@ -53199,12 +53105,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
53199
53105
|
});
|
|
53200
53106
|
|
|
53201
53107
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
53202
|
-
var
|
|
53108
|
+
var args73, tool$universalUnwrapWeth;
|
|
53203
53109
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
53204
53110
|
init_universalUnwrapWeth();
|
|
53205
53111
|
init_components();
|
|
53206
53112
|
init_tools();
|
|
53207
|
-
|
|
53113
|
+
args73 = {
|
|
53208
53114
|
request: UnwrapWethRequest$inboundSchema
|
|
53209
53115
|
};
|
|
53210
53116
|
tool$universalUnwrapWeth = {
|
|
@@ -53213,9 +53119,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
53213
53119
|
|
|
53214
53120
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
53215
53121
|
can be used for gas and other native purposes.`,
|
|
53216
|
-
args:
|
|
53217
|
-
tool: async (client,
|
|
53218
|
-
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();
|
|
53219
53125
|
if (!result.ok) {
|
|
53220
53126
|
return {
|
|
53221
53127
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53230,9 +53136,9 @@ can be used for gas and other native purposes.`,
|
|
|
53230
53136
|
|
|
53231
53137
|
// src/funcs/universalVisualizePortfolio.ts
|
|
53232
53138
|
function universalVisualizePortfolio(client, request, options) {
|
|
53233
|
-
return new APIPromise($
|
|
53139
|
+
return new APIPromise($do74(client, request, options));
|
|
53234
53140
|
}
|
|
53235
|
-
async function $
|
|
53141
|
+
async function $do74(client, request, options) {
|
|
53236
53142
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53237
53143
|
if (!parsed.ok) {
|
|
53238
53144
|
return [parsed, { status: "invalid" }];
|
|
@@ -53308,12 +53214,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
53308
53214
|
});
|
|
53309
53215
|
|
|
53310
53216
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
53311
|
-
var
|
|
53217
|
+
var args74, tool$universalVisualizePortfolio;
|
|
53312
53218
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
53313
53219
|
init_universalVisualizePortfolio();
|
|
53314
53220
|
init_operations();
|
|
53315
53221
|
init_tools();
|
|
53316
|
-
|
|
53222
|
+
args74 = {
|
|
53317
53223
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
53318
53224
|
};
|
|
53319
53225
|
tool$universalVisualizePortfolio = {
|
|
@@ -53325,9 +53231,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
53325
53231
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
53326
53232
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
53327
53233
|
USD.`,
|
|
53328
|
-
args:
|
|
53329
|
-
tool: async (client,
|
|
53330
|
-
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();
|
|
53331
53237
|
if (!result.ok) {
|
|
53332
53238
|
return {
|
|
53333
53239
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53342,9 +53248,9 @@ USD.`,
|
|
|
53342
53248
|
|
|
53343
53249
|
// src/funcs/universalWrapEth.ts
|
|
53344
53250
|
function universalWrapEth(client, request, options) {
|
|
53345
|
-
return new APIPromise($
|
|
53251
|
+
return new APIPromise($do75(client, request, options));
|
|
53346
53252
|
}
|
|
53347
|
-
async function $
|
|
53253
|
+
async function $do75(client, request, options) {
|
|
53348
53254
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53349
53255
|
if (!parsed.ok) {
|
|
53350
53256
|
return [parsed, { status: "invalid" }];
|
|
@@ -53415,12 +53321,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
53415
53321
|
});
|
|
53416
53322
|
|
|
53417
53323
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
53418
|
-
var
|
|
53324
|
+
var args75, tool$universalWrapEth;
|
|
53419
53325
|
var init_universalWrapEth2 = __esm(() => {
|
|
53420
53326
|
init_universalWrapEth();
|
|
53421
53327
|
init_components();
|
|
53422
53328
|
init_tools();
|
|
53423
|
-
|
|
53329
|
+
args75 = {
|
|
53424
53330
|
request: WrapEthRequest$inboundSchema
|
|
53425
53331
|
};
|
|
53426
53332
|
tool$universalWrapEth = {
|
|
@@ -53429,9 +53335,221 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
53429
53335
|
|
|
53430
53336
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
53431
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.`,
|
|
53432
53443
|
args: args76,
|
|
53433
53444
|
tool: async (client, args77, ctx) => {
|
|
53434
|
-
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();
|
|
53435
53553
|
if (!result.ok) {
|
|
53436
53554
|
return {
|
|
53437
53555
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53448,7 +53566,7 @@ it to be traded on DeFi protocols.`,
|
|
|
53448
53566
|
function createMCPServer(deps) {
|
|
53449
53567
|
const server = new McpServer({
|
|
53450
53568
|
name: "CompassApiSDK",
|
|
53451
|
-
version: "0.5.
|
|
53569
|
+
version: "0.5.22"
|
|
53452
53570
|
});
|
|
53453
53571
|
const client = new CompassApiSDKCore({
|
|
53454
53572
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -53489,7 +53607,6 @@ function createMCPServer(deps) {
|
|
|
53489
53607
|
tool(tool$morphoMarket);
|
|
53490
53608
|
tool(tool$morphoMarketPosition);
|
|
53491
53609
|
tool(tool$morphoUserPosition);
|
|
53492
|
-
tool(tool$morphoAllowance);
|
|
53493
53610
|
tool(tool$morphoDeposit);
|
|
53494
53611
|
tool(tool$morphoWithdraw);
|
|
53495
53612
|
tool(tool$morphoSupplyCollateral);
|
|
@@ -53538,6 +53655,8 @@ function createMCPServer(deps) {
|
|
|
53538
53655
|
tool(tool$transactionBundlerBundlerExecute);
|
|
53539
53656
|
tool(tool$transactionBundlerBundlerAaveLoop);
|
|
53540
53657
|
tool(tool$smartAccountAccountBatchedUserOperations);
|
|
53658
|
+
tool(tool$vaultsERC4626Deposit);
|
|
53659
|
+
tool(tool$vaultsERC4626Withdraw);
|
|
53541
53660
|
return server;
|
|
53542
53661
|
}
|
|
53543
53662
|
var init_server2 = __esm(() => {
|
|
@@ -53565,7 +53684,6 @@ var init_server2 = __esm(() => {
|
|
|
53565
53684
|
init_aerodromeSlipstreamSlipstreamPoolPrice2();
|
|
53566
53685
|
init_aerodromeSlipstreamSlipstreamSwapBuyExactly2();
|
|
53567
53686
|
init_aerodromeSlipstreamSlipstreamSwapSellExactly2();
|
|
53568
|
-
init_morphoAllowance2();
|
|
53569
53687
|
init_morphoBorrow2();
|
|
53570
53688
|
init_morphoDeposit2();
|
|
53571
53689
|
init_morphoMarket2();
|
|
@@ -53621,6 +53739,8 @@ var init_server2 = __esm(() => {
|
|
|
53621
53739
|
init_universalUnwrapWeth2();
|
|
53622
53740
|
init_universalVisualizePortfolio2();
|
|
53623
53741
|
init_universalWrapEth2();
|
|
53742
|
+
init_vaultsERC4626Deposit2();
|
|
53743
|
+
init_vaultsERC4626Withdraw2();
|
|
53624
53744
|
});
|
|
53625
53745
|
|
|
53626
53746
|
// src/mcp-server/cli/start/impl.ts
|
|
@@ -54811,7 +54931,7 @@ var routes = an({
|
|
|
54811
54931
|
var app = He(routes, {
|
|
54812
54932
|
name: "mcp",
|
|
54813
54933
|
versionInfo: {
|
|
54814
|
-
currentVersion: "0.5.
|
|
54934
|
+
currentVersion: "0.5.22"
|
|
54815
54935
|
}
|
|
54816
54936
|
});
|
|
54817
54937
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -54819,5 +54939,5 @@ export {
|
|
|
54819
54939
|
app
|
|
54820
54940
|
};
|
|
54821
54941
|
|
|
54822
|
-
//# debugId=
|
|
54942
|
+
//# debugId=6FB6B37D1F75E88B64756E2164756E21
|
|
54823
54943
|
//# sourceMappingURL=mcp-server.js.map
|