@compass-labs/api-sdk 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/mcp-server.js +115 -120
- package/bin/mcp-server.js.map +14 -14
- package/dist/commonjs/funcs/ethenaEthenaRequest.d.ts +1 -6
- package/dist/commonjs/funcs/ethenaEthenaRequest.d.ts.map +1 -1
- package/dist/commonjs/funcs/ethenaEthenaRequest.js +1 -6
- package/dist/commonjs/funcs/ethenaEthenaRequest.js.map +1 -1
- package/dist/commonjs/funcs/{ethenaEthenaWithdraw.d.ts → ethenaEthenaUnstake.d.ts} +12 -10
- package/dist/commonjs/funcs/ethenaEthenaUnstake.d.ts.map +1 -0
- package/dist/commonjs/funcs/{ethenaEthenaWithdraw.js → ethenaEthenaUnstake.js} +16 -14
- package/dist/commonjs/funcs/{ethenaEthenaWithdraw.js.map → ethenaEthenaUnstake.js.map} +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.js +1 -7
- package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaUnstake.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/ethenaEthenaUnstake.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{ethenaEthenaWithdraw.js → ethenaEthenaUnstake.js} +17 -16
- package/dist/commonjs/mcp-server/tools/ethenaEthenaUnstake.js.map +1 -0
- package/dist/commonjs/models/components/ethenaunstakeparams.d.ts +34 -0
- package/dist/commonjs/models/components/ethenaunstakeparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/{ethenawithdrawparams.js → ethenaunstakeparams.js} +19 -21
- package/dist/commonjs/models/components/ethenaunstakeparams.js.map +1 -0
- package/dist/commonjs/models/components/ethenaunstakerequest.d.ts +64 -0
- package/dist/commonjs/models/components/ethenaunstakerequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/{ethenawithdrawrequest.js → ethenaunstakerequest.js} +31 -33
- package/dist/commonjs/models/components/ethenaunstakerequest.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -2
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -2
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +9 -9
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +13 -9
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/sdk/ethena.d.ts +21 -24
- package/dist/commonjs/sdk/ethena.d.ts.map +1 -1
- package/dist/commonjs/sdk/ethena.js +24 -27
- package/dist/commonjs/sdk/ethena.js.map +1 -1
- package/dist/esm/funcs/ethenaEthenaRequest.d.ts +1 -6
- package/dist/esm/funcs/ethenaEthenaRequest.d.ts.map +1 -1
- package/dist/esm/funcs/ethenaEthenaRequest.js +1 -6
- package/dist/esm/funcs/ethenaEthenaRequest.js.map +1 -1
- package/dist/esm/funcs/{ethenaEthenaWithdraw.d.ts → ethenaEthenaUnstake.d.ts} +12 -10
- package/dist/esm/funcs/ethenaEthenaUnstake.d.ts.map +1 -0
- package/dist/esm/funcs/{ethenaEthenaWithdraw.js → ethenaEthenaUnstake.js} +15 -13
- package/dist/esm/funcs/{ethenaEthenaWithdraw.js.map → ethenaEthenaUnstake.js.map} +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +3 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.js +1 -7
- package/dist/esm/mcp-server/tools/ethenaEthenaRequest.js.map +1 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaUnstake.d.ts +8 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaUnstake.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaUnstake.js +41 -0
- package/dist/esm/mcp-server/tools/ethenaEthenaUnstake.js.map +1 -0
- package/dist/esm/models/components/ethenaunstakeparams.d.ts +34 -0
- package/dist/esm/models/components/ethenaunstakeparams.d.ts.map +1 -0
- package/dist/esm/models/components/ethenaunstakeparams.js +42 -0
- package/dist/esm/models/components/ethenaunstakeparams.js.map +1 -0
- package/dist/esm/models/components/ethenaunstakerequest.d.ts +64 -0
- package/dist/esm/models/components/ethenaunstakerequest.d.ts.map +1 -0
- package/dist/esm/models/components/ethenaunstakerequest.js +64 -0
- package/dist/esm/models/components/ethenaunstakerequest.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -2
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -2
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +9 -9
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +13 -9
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/sdk/ethena.d.ts +21 -24
- package/dist/esm/sdk/ethena.d.ts.map +1 -1
- package/dist/esm/sdk/ethena.js +24 -27
- package/dist/esm/sdk/ethena.js.map +1 -1
- package/docs/sdks/ethena/README.md +36 -43
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/ethenaEthenaRequest.ts +1 -6
- package/src/funcs/{ethenaEthenaWithdraw.ts → ethenaEthenaUnstake.ts} +16 -14
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/ethenaEthenaRequest.ts +1 -7
- package/src/mcp-server/tools/{ethenaEthenaWithdraw.ts → ethenaEthenaUnstake.ts} +15 -14
- package/src/models/components/ethenaunstakeparams.ts +82 -0
- package/src/models/components/ethenaunstakerequest.ts +122 -0
- package/src/models/components/index.ts +2 -2
- package/src/models/components/useroperation.ts +33 -33
- package/src/sdk/ethena.ts +30 -33
- package/dist/commonjs/funcs/ethenaEthenaWithdraw.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.js.map +0 -1
- package/dist/commonjs/models/components/ethenawithdrawparams.d.ts +0 -39
- package/dist/commonjs/models/components/ethenawithdrawparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/ethenawithdrawparams.js.map +0 -1
- package/dist/commonjs/models/components/ethenawithdrawrequest.d.ts +0 -69
- package/dist/commonjs/models/components/ethenawithdrawrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/ethenawithdrawrequest.js.map +0 -1
- package/dist/esm/funcs/ethenaEthenaWithdraw.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.d.ts +0 -8
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.js +0 -40
- package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.js.map +0 -1
- package/dist/esm/models/components/ethenawithdrawparams.d.ts +0 -39
- package/dist/esm/models/components/ethenawithdrawparams.d.ts.map +0 -1
- package/dist/esm/models/components/ethenawithdrawparams.js +0 -44
- package/dist/esm/models/components/ethenawithdrawparams.js.map +0 -1
- package/dist/esm/models/components/ethenawithdrawrequest.d.ts +0 -69
- package/dist/esm/models/components/ethenawithdrawrequest.d.ts.map +0 -1
- package/dist/esm/models/components/ethenawithdrawrequest.js +0 -66
- package/dist/esm/models/components/ethenawithdrawrequest.js.map +0 -1
- package/src/models/components/ethenawithdrawparams.ts +0 -89
- package/src/models/components/ethenawithdrawrequest.ts +0 -129
package/README.md
CHANGED
|
@@ -252,8 +252,8 @@ run();
|
|
|
252
252
|
|
|
253
253
|
* [ethenaVault](docs/sdks/ethena/README.md#ethenavault) - Get Vault & User Position
|
|
254
254
|
* [ethenaDeposit](docs/sdks/ethena/README.md#ethenadeposit) - Deposit USDe
|
|
255
|
-
* [ethenaWithdraw](docs/sdks/ethena/README.md#ethenawithdraw) - Withdraw USDe
|
|
256
255
|
* [ethenaRequest](docs/sdks/ethena/README.md#ethenarequest) - Request to Withdraw USDe
|
|
256
|
+
* [ethenaUnstake](docs/sdks/ethena/README.md#ethenaunstake) - Unstake USDe
|
|
257
257
|
|
|
258
258
|
### [morpho](docs/sdks/morpho/README.md)
|
|
259
259
|
|
|
@@ -377,8 +377,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
377
377
|
- [`erc4626VaultsVaultsWithdraw`](docs/sdks/erc4626vaults/README.md#vaultswithdraw) - Withdraw from Vault
|
|
378
378
|
- [`ethenaEthenaDeposit`](docs/sdks/ethena/README.md#ethenadeposit) - Deposit USDe
|
|
379
379
|
- [`ethenaEthenaRequest`](docs/sdks/ethena/README.md#ethenarequest) - Request to Withdraw USDe
|
|
380
|
+
- [`ethenaEthenaUnstake`](docs/sdks/ethena/README.md#ethenaunstake) - Unstake USDe
|
|
380
381
|
- [`ethenaEthenaVault`](docs/sdks/ethena/README.md#ethenavault) - Get Vault & User Position
|
|
381
|
-
- [`ethenaEthenaWithdraw`](docs/sdks/ethena/README.md#ethenawithdraw) - Withdraw USDe
|
|
382
382
|
- [`morphoMorphoBorrow`](docs/sdks/morpho/README.md#morphoborrow) - Borrow from Market
|
|
383
383
|
- [`morphoMorphoDeposit`](docs/sdks/morpho/README.md#morphodeposit) - Deposit to Vault
|
|
384
384
|
- [`morphoMorphoMarket`](docs/sdks/morpho/README.md#morphomarket) - Get Market
|
package/bin/mcp-server.js
CHANGED
|
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34264
34264
|
SDK_METADATA = {
|
|
34265
34265
|
language: "typescript",
|
|
34266
34266
|
openapiDocVersion: "0.0.1",
|
|
34267
|
-
sdkVersion: "1.0.
|
|
34267
|
+
sdkVersion: "1.0.18",
|
|
34268
34268
|
genVersion: "2.684.0",
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 1.0.18 2.684.0 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -37976,33 +37976,31 @@ var init_ethenarequesttowithdrawparams = __esm(() => {
|
|
|
37976
37976
|
})(EthenaRequestToWithdrawParams$ ||= {});
|
|
37977
37977
|
});
|
|
37978
37978
|
|
|
37979
|
-
// src/models/components/
|
|
37980
|
-
var
|
|
37981
|
-
var
|
|
37979
|
+
// src/models/components/ethenaunstakeparams.ts
|
|
37980
|
+
var EthenaUnstakeParams$inboundSchema, EthenaUnstakeParams$outboundSchema, EthenaUnstakeParams$;
|
|
37981
|
+
var init_ethenaunstakeparams = __esm(() => {
|
|
37982
37982
|
init_zod();
|
|
37983
37983
|
init_primitives();
|
|
37984
|
-
|
|
37985
|
-
action_type: literalType("
|
|
37986
|
-
amount: anyType().optional(),
|
|
37984
|
+
EthenaUnstakeParams$inboundSchema = objectType({
|
|
37985
|
+
action_type: literalType("ETHENA_UNSTAKE").default("ETHENA_UNSTAKE"),
|
|
37987
37986
|
receiver: nullableType(stringType()).optional()
|
|
37988
37987
|
}).transform((v2) => {
|
|
37989
37988
|
return remap(v2, {
|
|
37990
37989
|
action_type: "actionType"
|
|
37991
37990
|
});
|
|
37992
37991
|
});
|
|
37993
|
-
|
|
37994
|
-
actionType: literalType("
|
|
37995
|
-
amount: anyType().optional(),
|
|
37992
|
+
EthenaUnstakeParams$outboundSchema = objectType({
|
|
37993
|
+
actionType: literalType("ETHENA_UNSTAKE").default("ETHENA_UNSTAKE"),
|
|
37996
37994
|
receiver: nullableType(stringType()).optional()
|
|
37997
37995
|
}).transform((v2) => {
|
|
37998
37996
|
return remap(v2, {
|
|
37999
37997
|
actionType: "action_type"
|
|
38000
37998
|
});
|
|
38001
37999
|
});
|
|
38002
|
-
((
|
|
38003
|
-
|
|
38004
|
-
|
|
38005
|
-
})(
|
|
38000
|
+
((EthenaUnstakeParams$) => {
|
|
38001
|
+
EthenaUnstakeParams$.inboundSchema = EthenaUnstakeParams$inboundSchema;
|
|
38002
|
+
EthenaUnstakeParams$.outboundSchema = EthenaUnstakeParams$outboundSchema;
|
|
38003
|
+
})(EthenaUnstakeParams$ ||= {});
|
|
38006
38004
|
});
|
|
38007
38005
|
|
|
38008
38006
|
// src/models/components/morphoborrowparams.ts
|
|
@@ -39292,7 +39290,7 @@ var init_useroperation = __esm(() => {
|
|
|
39292
39290
|
init_aerodromeslipstreamwithdrawliquidityprovisionparams();
|
|
39293
39291
|
init_ethenadepositparams();
|
|
39294
39292
|
init_ethenarequesttowithdrawparams();
|
|
39295
|
-
|
|
39293
|
+
init_ethenaunstakeparams();
|
|
39296
39294
|
init_morphoborrowparams();
|
|
39297
39295
|
init_morphodepositparams();
|
|
39298
39296
|
init_morphorepayparams();
|
|
@@ -39390,7 +39388,6 @@ var init_useroperation = __esm(() => {
|
|
|
39390
39388
|
actionType: v2.action_type
|
|
39391
39389
|
}))),
|
|
39392
39390
|
EthenaRequestToWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("ETHENA_REQUEST_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39393
|
-
EthenaWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("ETHENA_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39394
39391
|
PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39395
39392
|
SkyDepositParams$inboundSchema.and(objectType({ action_type: literalType("SKY_DEPOSIT") }).transform((v2) => ({
|
|
39396
39393
|
actionType: v2.action_type
|
|
@@ -39403,6 +39400,9 @@ var init_useroperation = __esm(() => {
|
|
|
39403
39400
|
}))),
|
|
39404
39401
|
WrapEthParams$inboundSchema.and(objectType({ action_type: literalType("WRAP_ETH") }).transform((v2) => ({
|
|
39405
39402
|
actionType: v2.action_type
|
|
39403
|
+
}))),
|
|
39404
|
+
EthenaUnstakeParams$inboundSchema.and(objectType({ action_type: literalType("ETHENA_UNSTAKE") }).transform((v2) => ({
|
|
39405
|
+
actionType: v2.action_type
|
|
39406
39406
|
})))
|
|
39407
39407
|
]);
|
|
39408
39408
|
Body$outboundSchema = unionType([
|
|
@@ -39482,9 +39482,6 @@ var init_useroperation = __esm(() => {
|
|
|
39482
39482
|
action_type: v2.actionType
|
|
39483
39483
|
}))),
|
|
39484
39484
|
EthenaRequestToWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("ETHENA_REQUEST_WITHDRAW") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39485
|
-
EthenaWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("ETHENA_WITHDRAW") }).transform((v2) => ({
|
|
39486
|
-
action_type: v2.actionType
|
|
39487
|
-
}))),
|
|
39488
39485
|
PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39489
39486
|
SkyDepositParams$outboundSchema.and(objectType({ actionType: literalType("SKY_DEPOSIT") }).transform((v2) => ({
|
|
39490
39487
|
action_type: v2.actionType
|
|
@@ -39497,6 +39494,9 @@ var init_useroperation = __esm(() => {
|
|
|
39497
39494
|
}))),
|
|
39498
39495
|
WrapEthParams$outboundSchema.and(objectType({ actionType: literalType("WRAP_ETH") }).transform((v2) => ({
|
|
39499
39496
|
action_type: v2.actionType
|
|
39497
|
+
}))),
|
|
39498
|
+
EthenaUnstakeParams$outboundSchema.and(objectType({ actionType: literalType("ETHENA_UNSTAKE") }).transform((v2) => ({
|
|
39499
|
+
action_type: v2.actionType
|
|
39500
39500
|
})))
|
|
39501
39501
|
]);
|
|
39502
39502
|
((Body$) => {
|
|
@@ -39575,7 +39575,6 @@ var init_useroperation = __esm(() => {
|
|
|
39575
39575
|
actionType: v2.action_type
|
|
39576
39576
|
}))),
|
|
39577
39577
|
EthenaRequestToWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("ETHENA_REQUEST_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39578
|
-
EthenaWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("ETHENA_WITHDRAW") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39579
39578
|
PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39580
39579
|
SkyDepositParams$inboundSchema.and(objectType({ action_type: literalType("SKY_DEPOSIT") }).transform((v2) => ({
|
|
39581
39580
|
actionType: v2.action_type
|
|
@@ -39588,6 +39587,9 @@ var init_useroperation = __esm(() => {
|
|
|
39588
39587
|
}))),
|
|
39589
39588
|
WrapEthParams$inboundSchema.and(objectType({ action_type: literalType("WRAP_ETH") }).transform((v2) => ({
|
|
39590
39589
|
actionType: v2.action_type
|
|
39590
|
+
}))),
|
|
39591
|
+
EthenaUnstakeParams$inboundSchema.and(objectType({ action_type: literalType("ETHENA_UNSTAKE") }).transform((v2) => ({
|
|
39592
|
+
actionType: v2.action_type
|
|
39591
39593
|
})))
|
|
39592
39594
|
])
|
|
39593
39595
|
});
|
|
@@ -39669,9 +39671,6 @@ var init_useroperation = __esm(() => {
|
|
|
39669
39671
|
action_type: v2.actionType
|
|
39670
39672
|
}))),
|
|
39671
39673
|
EthenaRequestToWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("ETHENA_REQUEST_WITHDRAW") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39672
|
-
EthenaWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("ETHENA_WITHDRAW") }).transform((v2) => ({
|
|
39673
|
-
action_type: v2.actionType
|
|
39674
|
-
}))),
|
|
39675
39674
|
PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39676
39675
|
SkyDepositParams$outboundSchema.and(objectType({ actionType: literalType("SKY_DEPOSIT") }).transform((v2) => ({
|
|
39677
39676
|
action_type: v2.actionType
|
|
@@ -39684,6 +39683,9 @@ var init_useroperation = __esm(() => {
|
|
|
39684
39683
|
}))),
|
|
39685
39684
|
WrapEthParams$outboundSchema.and(objectType({ actionType: literalType("WRAP_ETH") }).transform((v2) => ({
|
|
39686
39685
|
action_type: v2.actionType
|
|
39686
|
+
}))),
|
|
39687
|
+
EthenaUnstakeParams$outboundSchema.and(objectType({ actionType: literalType("ETHENA_UNSTAKE") }).transform((v2) => ({
|
|
39688
|
+
action_type: v2.actionType
|
|
39687
39689
|
})))
|
|
39688
39690
|
])
|
|
39689
39691
|
});
|
|
@@ -40682,46 +40684,44 @@ var init_ethenarequesttowithdrawtransactionresponse = __esm(() => {
|
|
|
40682
40684
|
})(EthenaRequestToWithdrawTransactionResponse$ ||= {});
|
|
40683
40685
|
});
|
|
40684
40686
|
|
|
40685
|
-
// src/models/components/
|
|
40686
|
-
var
|
|
40687
|
-
var
|
|
40687
|
+
// src/models/components/ethenaunstakerequest.ts
|
|
40688
|
+
var EthenaUnstakeRequestChain, EthenaUnstakeRequestChain$inboundSchema, EthenaUnstakeRequestChain$outboundSchema, EthenaUnstakeRequestChain$, EthenaUnstakeRequest$inboundSchema, EthenaUnstakeRequest$outboundSchema, EthenaUnstakeRequest$;
|
|
40689
|
+
var init_ethenaunstakerequest = __esm(() => {
|
|
40688
40690
|
init_zod();
|
|
40689
40691
|
init_primitives();
|
|
40690
|
-
|
|
40692
|
+
EthenaUnstakeRequestChain = {
|
|
40691
40693
|
Ethereum: "ethereum"
|
|
40692
40694
|
};
|
|
40693
|
-
|
|
40694
|
-
|
|
40695
|
-
((
|
|
40696
|
-
|
|
40697
|
-
|
|
40698
|
-
})(
|
|
40699
|
-
|
|
40700
|
-
action_type: literalType("
|
|
40701
|
-
amount: anyType().optional(),
|
|
40695
|
+
EthenaUnstakeRequestChain$inboundSchema = nativeEnumType(EthenaUnstakeRequestChain);
|
|
40696
|
+
EthenaUnstakeRequestChain$outboundSchema = EthenaUnstakeRequestChain$inboundSchema;
|
|
40697
|
+
((EthenaUnstakeRequestChain$) => {
|
|
40698
|
+
EthenaUnstakeRequestChain$.inboundSchema = EthenaUnstakeRequestChain$inboundSchema;
|
|
40699
|
+
EthenaUnstakeRequestChain$.outboundSchema = EthenaUnstakeRequestChain$outboundSchema;
|
|
40700
|
+
})(EthenaUnstakeRequestChain$ ||= {});
|
|
40701
|
+
EthenaUnstakeRequest$inboundSchema = objectType({
|
|
40702
|
+
action_type: literalType("ETHENA_UNSTAKE").default("ETHENA_UNSTAKE"),
|
|
40702
40703
|
receiver: nullableType(stringType()).optional(),
|
|
40703
|
-
chain:
|
|
40704
|
+
chain: EthenaUnstakeRequestChain$inboundSchema,
|
|
40704
40705
|
sender: stringType()
|
|
40705
40706
|
}).transform((v2) => {
|
|
40706
40707
|
return remap(v2, {
|
|
40707
40708
|
action_type: "actionType"
|
|
40708
40709
|
});
|
|
40709
40710
|
});
|
|
40710
|
-
|
|
40711
|
-
actionType: literalType("
|
|
40712
|
-
amount: anyType().optional(),
|
|
40711
|
+
EthenaUnstakeRequest$outboundSchema = objectType({
|
|
40712
|
+
actionType: literalType("ETHENA_UNSTAKE").default("ETHENA_UNSTAKE"),
|
|
40713
40713
|
receiver: nullableType(stringType()).optional(),
|
|
40714
|
-
chain:
|
|
40714
|
+
chain: EthenaUnstakeRequestChain$outboundSchema,
|
|
40715
40715
|
sender: stringType()
|
|
40716
40716
|
}).transform((v2) => {
|
|
40717
40717
|
return remap(v2, {
|
|
40718
40718
|
actionType: "action_type"
|
|
40719
40719
|
});
|
|
40720
40720
|
});
|
|
40721
|
-
((
|
|
40722
|
-
|
|
40723
|
-
|
|
40724
|
-
})(
|
|
40721
|
+
((EthenaUnstakeRequest$) => {
|
|
40722
|
+
EthenaUnstakeRequest$.inboundSchema = EthenaUnstakeRequest$inboundSchema;
|
|
40723
|
+
EthenaUnstakeRequest$.outboundSchema = EthenaUnstakeRequest$outboundSchema;
|
|
40724
|
+
})(EthenaUnstakeRequest$ ||= {});
|
|
40725
40725
|
});
|
|
40726
40726
|
|
|
40727
40727
|
// src/models/components/lpbalance.ts
|
|
@@ -43818,8 +43818,8 @@ var init_components = __esm(() => {
|
|
|
43818
43818
|
init_ethenarequesttowithdrawparams();
|
|
43819
43819
|
init_ethenarequesttowithdrawrequest();
|
|
43820
43820
|
init_ethenarequesttowithdrawtransactionresponse();
|
|
43821
|
-
|
|
43822
|
-
|
|
43821
|
+
init_ethenaunstakeparams();
|
|
43822
|
+
init_ethenaunstakerequest();
|
|
43823
43823
|
init_feeenum();
|
|
43824
43824
|
init_interestratemode();
|
|
43825
43825
|
init_liquidationcall();
|
|
@@ -49728,14 +49728,8 @@ If an additional amount of USDe is requested to be withdrawn anytime before
|
|
|
49728
49728
|
withdrawing the originally requested amount, the cooldown period restarts.
|
|
49729
49729
|
|
|
49730
49730
|
Yield is not earned on USDe while in its cooldown period.
|
|
49731
|
-
<Info>
|
|
49732
|
-
**Required Allowances**
|
|
49733
|
-
|
|
49734
|
-
In order to make this transaction, token allowances need to be set for the following contracts.
|
|
49735
49731
|
|
|
49736
|
-
|
|
49737
|
-
</Info>
|
|
49738
|
-
`,
|
|
49732
|
+
An allowance does not have to be set to initiate the cooldown period.`,
|
|
49739
49733
|
args: args26,
|
|
49740
49734
|
tool: async (client, args27, ctx) => {
|
|
49741
49735
|
const [result, apiCall] = await ethenaEthenaRequest(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -49751,24 +49745,20 @@ Yield is not earned on USDe while in its cooldown period.
|
|
|
49751
49745
|
};
|
|
49752
49746
|
});
|
|
49753
49747
|
|
|
49754
|
-
// src/funcs/
|
|
49755
|
-
function
|
|
49748
|
+
// src/funcs/ethenaEthenaUnstake.ts
|
|
49749
|
+
function ethenaEthenaUnstake(client, request, options) {
|
|
49756
49750
|
return new APIPromise($do27(client, request, options));
|
|
49757
49751
|
}
|
|
49758
49752
|
async function $do27(client, request, options) {
|
|
49759
|
-
const parsed = safeParse(request, (value) =>
|
|
49753
|
+
const parsed = safeParse(request, (value) => EthenaUnstakeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49760
49754
|
if (!parsed.ok) {
|
|
49761
49755
|
return [parsed, { status: "invalid" }];
|
|
49762
49756
|
}
|
|
49763
49757
|
const payload = parsed.value;
|
|
49764
|
-
const body =
|
|
49765
|
-
const path = pathToFunc("/v1/ethena/
|
|
49766
|
-
const query = encodeFormQuery({
|
|
49767
|
-
block: payload.block,
|
|
49768
|
-
chain: payload.chain,
|
|
49769
|
-
user_address: payload.user_address
|
|
49770
|
-
});
|
|
49758
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
49759
|
+
const path = pathToFunc("/v1/ethena/unstake")();
|
|
49771
49760
|
const headers = new Headers(compactMap({
|
|
49761
|
+
"Content-Type": "application/json",
|
|
49772
49762
|
Accept: "application/json"
|
|
49773
49763
|
}));
|
|
49774
49764
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -49777,7 +49767,7 @@ async function $do27(client, request, options) {
|
|
|
49777
49767
|
const context = {
|
|
49778
49768
|
options: client._options,
|
|
49779
49769
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49780
|
-
operationID: "
|
|
49770
|
+
operationID: "v1_ethena_unstake",
|
|
49781
49771
|
oAuth2Scopes: [],
|
|
49782
49772
|
resolvedSecurity: requestSecurity,
|
|
49783
49773
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -49786,11 +49776,10 @@ async function $do27(client, request, options) {
|
|
|
49786
49776
|
};
|
|
49787
49777
|
const requestRes = client._createRequest(context, {
|
|
49788
49778
|
security: requestSecurity,
|
|
49789
|
-
method: "
|
|
49779
|
+
method: "POST",
|
|
49790
49780
|
baseURL: options?.serverURL,
|
|
49791
49781
|
path,
|
|
49792
49782
|
headers,
|
|
49793
|
-
query,
|
|
49794
49783
|
body,
|
|
49795
49784
|
userAgent: client._options.userAgent,
|
|
49796
49785
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -49812,13 +49801,13 @@ async function $do27(client, request, options) {
|
|
|
49812
49801
|
const responseFields = {
|
|
49813
49802
|
HttpMeta: { Response: response, Request: req }
|
|
49814
49803
|
};
|
|
49815
|
-
const [result] = await match(json(200,
|
|
49804
|
+
const [result] = await match(json(200, TransactionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49816
49805
|
if (!result.ok) {
|
|
49817
49806
|
return [result, { status: "complete", request: req, response }];
|
|
49818
49807
|
}
|
|
49819
49808
|
return [result, { status: "complete", request: req, response }];
|
|
49820
49809
|
}
|
|
49821
|
-
var
|
|
49810
|
+
var init_ethenaEthenaUnstake = __esm(() => {
|
|
49822
49811
|
init_encodings();
|
|
49823
49812
|
init_matchers();
|
|
49824
49813
|
init_primitives();
|
|
@@ -49827,31 +49816,39 @@ var init_ethenaEthenaVault = __esm(() => {
|
|
|
49827
49816
|
init_url();
|
|
49828
49817
|
init_components();
|
|
49829
49818
|
init_errors2();
|
|
49830
|
-
init_operations();
|
|
49831
49819
|
init_async();
|
|
49832
49820
|
});
|
|
49833
49821
|
|
|
49834
|
-
// src/mcp-server/tools/
|
|
49835
|
-
var args27, tool$
|
|
49836
|
-
var
|
|
49837
|
-
|
|
49838
|
-
|
|
49822
|
+
// src/mcp-server/tools/ethenaEthenaUnstake.ts
|
|
49823
|
+
var args27, tool$ethenaEthenaUnstake;
|
|
49824
|
+
var init_ethenaEthenaUnstake2 = __esm(() => {
|
|
49825
|
+
init_ethenaEthenaUnstake();
|
|
49826
|
+
init_components();
|
|
49839
49827
|
init_tools();
|
|
49840
49828
|
args27 = {
|
|
49841
|
-
request:
|
|
49829
|
+
request: EthenaUnstakeRequest$inboundSchema
|
|
49842
49830
|
};
|
|
49843
|
-
tool$
|
|
49844
|
-
name: "ethena-ethena-
|
|
49845
|
-
description: `
|
|
49831
|
+
tool$ethenaEthenaUnstake = {
|
|
49832
|
+
name: "ethena-ethena-unstake",
|
|
49833
|
+
description: `Unstake USDe
|
|
49846
49834
|
|
|
49847
|
-
|
|
49835
|
+
Unstake deposited USDe from Ethena's vault.
|
|
49848
49836
|
|
|
49849
|
-
|
|
49837
|
+
Verify that the USDe being unstaked has completed its mandatory cooldown period
|
|
49838
|
+
using the Ethena 'Get Vault & User Position' endpoint.
|
|
49850
49839
|
|
|
49851
|
-
|
|
49840
|
+
This is an all or nothing action. All of the USDe that has completed its cooldown
|
|
49841
|
+
period must be withdrawn.
|
|
49842
|
+
|
|
49843
|
+
The passive yield earned on USDe deposits is represented by the increased value of
|
|
49844
|
+
the shares received (sUSDe) upon depositing USDe. Trade in these shares in exchange
|
|
49845
|
+
for the intial USDe deposited and any accrued yield since depositing.
|
|
49846
|
+
|
|
49847
|
+
An allowance does not have to be set to unstake USDe that has completed its cooldown
|
|
49848
|
+
period.`,
|
|
49852
49849
|
args: args27,
|
|
49853
49850
|
tool: async (client, args28, ctx) => {
|
|
49854
|
-
const [result, apiCall] = await
|
|
49851
|
+
const [result, apiCall] = await ethenaEthenaUnstake(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49855
49852
|
if (!result.ok) {
|
|
49856
49853
|
return {
|
|
49857
49854
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49864,20 +49861,24 @@ The user position is only included in the response if 'user_address' parameter i
|
|
|
49864
49861
|
};
|
|
49865
49862
|
});
|
|
49866
49863
|
|
|
49867
|
-
// src/funcs/
|
|
49868
|
-
function
|
|
49864
|
+
// src/funcs/ethenaEthenaVault.ts
|
|
49865
|
+
function ethenaEthenaVault(client, request, options) {
|
|
49869
49866
|
return new APIPromise($do28(client, request, options));
|
|
49870
49867
|
}
|
|
49871
49868
|
async function $do28(client, request, options) {
|
|
49872
|
-
const parsed = safeParse(request, (value) =>
|
|
49869
|
+
const parsed = safeParse(request, (value) => V1EthenaVaultRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49873
49870
|
if (!parsed.ok) {
|
|
49874
49871
|
return [parsed, { status: "invalid" }];
|
|
49875
49872
|
}
|
|
49876
49873
|
const payload = parsed.value;
|
|
49877
|
-
const body =
|
|
49878
|
-
const path = pathToFunc("/v1/ethena/
|
|
49874
|
+
const body = null;
|
|
49875
|
+
const path = pathToFunc("/v1/ethena/vault")();
|
|
49876
|
+
const query = encodeFormQuery({
|
|
49877
|
+
block: payload.block,
|
|
49878
|
+
chain: payload.chain,
|
|
49879
|
+
user_address: payload.user_address
|
|
49880
|
+
});
|
|
49879
49881
|
const headers = new Headers(compactMap({
|
|
49880
|
-
"Content-Type": "application/json",
|
|
49881
49882
|
Accept: "application/json"
|
|
49882
49883
|
}));
|
|
49883
49884
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -49886,7 +49887,7 @@ async function $do28(client, request, options) {
|
|
|
49886
49887
|
const context = {
|
|
49887
49888
|
options: client._options,
|
|
49888
49889
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
49889
|
-
operationID: "
|
|
49890
|
+
operationID: "v1_ethena_vault",
|
|
49890
49891
|
oAuth2Scopes: [],
|
|
49891
49892
|
resolvedSecurity: requestSecurity,
|
|
49892
49893
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -49895,10 +49896,11 @@ async function $do28(client, request, options) {
|
|
|
49895
49896
|
};
|
|
49896
49897
|
const requestRes = client._createRequest(context, {
|
|
49897
49898
|
security: requestSecurity,
|
|
49898
|
-
method: "
|
|
49899
|
+
method: "GET",
|
|
49899
49900
|
baseURL: options?.serverURL,
|
|
49900
49901
|
path,
|
|
49901
49902
|
headers,
|
|
49903
|
+
query,
|
|
49902
49904
|
body,
|
|
49903
49905
|
userAgent: client._options.userAgent,
|
|
49904
49906
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -49920,13 +49922,13 @@ async function $do28(client, request, options) {
|
|
|
49920
49922
|
const responseFields = {
|
|
49921
49923
|
HttpMeta: { Response: response, Request: req }
|
|
49922
49924
|
};
|
|
49923
|
-
const [result] = await match(json(200,
|
|
49925
|
+
const [result] = await match(json(200, EthenaGetVaultResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
49924
49926
|
if (!result.ok) {
|
|
49925
49927
|
return [result, { status: "complete", request: req, response }];
|
|
49926
49928
|
}
|
|
49927
49929
|
return [result, { status: "complete", request: req, response }];
|
|
49928
49930
|
}
|
|
49929
|
-
var
|
|
49931
|
+
var init_ethenaEthenaVault = __esm(() => {
|
|
49930
49932
|
init_encodings();
|
|
49931
49933
|
init_matchers();
|
|
49932
49934
|
init_primitives();
|
|
@@ -49935,38 +49937,31 @@ var init_ethenaEthenaWithdraw = __esm(() => {
|
|
|
49935
49937
|
init_url();
|
|
49936
49938
|
init_components();
|
|
49937
49939
|
init_errors2();
|
|
49940
|
+
init_operations();
|
|
49938
49941
|
init_async();
|
|
49939
49942
|
});
|
|
49940
49943
|
|
|
49941
|
-
// src/mcp-server/tools/
|
|
49942
|
-
var args28, tool$
|
|
49943
|
-
var
|
|
49944
|
-
|
|
49945
|
-
|
|
49944
|
+
// src/mcp-server/tools/ethenaEthenaVault.ts
|
|
49945
|
+
var args28, tool$ethenaEthenaVault;
|
|
49946
|
+
var init_ethenaEthenaVault2 = __esm(() => {
|
|
49947
|
+
init_ethenaEthenaVault();
|
|
49948
|
+
init_operations();
|
|
49946
49949
|
init_tools();
|
|
49947
49950
|
args28 = {
|
|
49948
|
-
request:
|
|
49951
|
+
request: V1EthenaVaultRequest$inboundSchema
|
|
49949
49952
|
};
|
|
49950
|
-
tool$
|
|
49951
|
-
name: "ethena-ethena-
|
|
49952
|
-
description: `
|
|
49953
|
-
|
|
49954
|
-
Withdraw deposited USDe from Ethena's vault and cease earning passive yield.
|
|
49953
|
+
tool$ethenaEthenaVault = {
|
|
49954
|
+
name: "ethena-ethena-vault",
|
|
49955
|
+
description: `Get Vault & User Position
|
|
49955
49956
|
|
|
49956
|
-
|
|
49957
|
-
the shares received (sUSDe) upon depositing USDe. Trade in these shares in exchange
|
|
49958
|
-
for the intial USDe deposited and any accrued yield since depositing.
|
|
49959
|
-
<Info>
|
|
49960
|
-
**Required Allowances**
|
|
49957
|
+
Get data & user Position for the Ethena vault on Ethereum.
|
|
49961
49958
|
|
|
49962
|
-
|
|
49959
|
+
Vault address: 0x9d39a5de30e57443bff2a8307a4256c8797a3497
|
|
49963
49960
|
|
|
49964
|
-
|
|
49965
|
-
</Info>
|
|
49966
|
-
`,
|
|
49961
|
+
The user position is only included in the response if 'user_address' parameter is included in the request.`,
|
|
49967
49962
|
args: args28,
|
|
49968
49963
|
tool: async (client, args29, ctx) => {
|
|
49969
|
-
const [result, apiCall] = await
|
|
49964
|
+
const [result, apiCall] = await ethenaEthenaVault(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49970
49965
|
if (!result.ok) {
|
|
49971
49966
|
return {
|
|
49972
49967
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55739,7 +55734,7 @@ it to be traded on DeFi protocols.`,
|
|
|
55739
55734
|
function createMCPServer(deps) {
|
|
55740
55735
|
const server = new McpServer({
|
|
55741
55736
|
name: "CompassApiSDK",
|
|
55742
|
-
version: "1.0.
|
|
55737
|
+
version: "1.0.18"
|
|
55743
55738
|
});
|
|
55744
55739
|
const client = new CompassApiSDKCore({
|
|
55745
55740
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -55830,8 +55825,8 @@ function createMCPServer(deps) {
|
|
|
55830
55825
|
tool(tool$erc4626VaultsVaultsWithdraw);
|
|
55831
55826
|
tool(tool$ethenaEthenaVault);
|
|
55832
55827
|
tool(tool$ethenaEthenaDeposit);
|
|
55833
|
-
tool(tool$ethenaEthenaWithdraw);
|
|
55834
55828
|
tool(tool$ethenaEthenaRequest);
|
|
55829
|
+
tool(tool$ethenaEthenaUnstake);
|
|
55835
55830
|
return server;
|
|
55836
55831
|
}
|
|
55837
55832
|
var init_server2 = __esm(() => {
|
|
@@ -55865,8 +55860,8 @@ var init_server2 = __esm(() => {
|
|
|
55865
55860
|
init_erc4626VaultsVaultsWithdraw2();
|
|
55866
55861
|
init_ethenaEthenaDeposit2();
|
|
55867
55862
|
init_ethenaEthenaRequest2();
|
|
55863
|
+
init_ethenaEthenaUnstake2();
|
|
55868
55864
|
init_ethenaEthenaVault2();
|
|
55869
|
-
init_ethenaEthenaWithdraw2();
|
|
55870
55865
|
init_morphoMorphoBorrow2();
|
|
55871
55866
|
init_morphoMorphoDeposit2();
|
|
55872
55867
|
init_morphoMorphoMarket2();
|
|
@@ -57113,7 +57108,7 @@ var routes = ln({
|
|
|
57113
57108
|
var app = _e(routes, {
|
|
57114
57109
|
name: "mcp",
|
|
57115
57110
|
versionInfo: {
|
|
57116
|
-
currentVersion: "1.0.
|
|
57111
|
+
currentVersion: "1.0.18"
|
|
57117
57112
|
}
|
|
57118
57113
|
});
|
|
57119
57114
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -57121,5 +57116,5 @@ export {
|
|
|
57121
57116
|
app
|
|
57122
57117
|
};
|
|
57123
57118
|
|
|
57124
|
-
//# debugId=
|
|
57119
|
+
//# debugId=F2B0C2D80C69213864756E2164756E21
|
|
57125
57120
|
//# sourceMappingURL=mcp-server.js.map
|