@compass-labs/api-sdk 0.2.1 → 0.2.3
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 +6 -2
- package/bin/mcp-server.js +893 -413
- package/bin/mcp-server.js.map +36 -21
- package/dist/commonjs/funcs/pendleMarkets.d.ts +18 -0
- package/dist/commonjs/funcs/pendleMarkets.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleMarkets.js +121 -0
- package/dist/commonjs/funcs/pendleMarkets.js.map +1 -0
- package/dist/commonjs/funcs/pendlePositions.d.ts +18 -0
- package/dist/commonjs/funcs/pendlePositions.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendlePositions.js +122 -0
- package/dist/commonjs/funcs/pendlePositions.js.map +1 -0
- package/dist/commonjs/funcs/universalAllowanceSet.d.ts +1 -1
- package/dist/commonjs/funcs/universalAllowanceSet.js +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.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleMarkets.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleMarkets.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleMarkets.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendleMarkets.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendlePositions.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendlePositions.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendlePositions.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendlePositions.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/universalAllowanceSet.js +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsgenericreadresponseportfoliotokenbalance.d.ts +63 -0
- package/dist/commonjs/models/components/compassapibackendmodelsgenericreadresponseportfoliotokenbalance.d.ts.map +1 -0
- package/dist/commonjs/models/components/{tokenbalance.js → compassapibackendmodelsgenericreadresponseportfoliotokenbalance.js} +19 -17
- package/dist/commonjs/models/components/compassapibackendmodelsgenericreadresponseportfoliotokenbalance.js.map +1 -0
- package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.d.ts +31 -0
- package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.d.ts.map +1 -0
- package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.js +73 -0
- package/dist/commonjs/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.js.map +1 -0
- package/dist/commonjs/models/components/details.d.ts +45 -0
- package/dist/commonjs/models/components/details.d.ts.map +1 -0
- package/dist/commonjs/models/components/details.js +85 -0
- package/dist/commonjs/models/components/details.js.map +1 -0
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts +29 -10
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/increaseallowanceparams.js +26 -3
- package/dist/commonjs/models/components/increaseallowanceparams.js.map +1 -1
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts +29 -10
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/increaseallowancerequest.js +26 -3
- package/dist/commonjs/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +12 -3
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +12 -3
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/lpbalance.d.ts +33 -0
- package/dist/commonjs/models/components/lpbalance.d.ts.map +1 -0
- package/dist/commonjs/models/components/lpbalance.js +73 -0
- package/dist/commonjs/models/components/lpbalance.js.map +1 -0
- package/dist/commonjs/models/components/movement10percent.d.ts +35 -0
- package/dist/commonjs/models/components/movement10percent.d.ts.map +1 -0
- package/dist/commonjs/models/components/movement10percent.js +75 -0
- package/dist/commonjs/models/components/movement10percent.js.map +1 -0
- package/dist/commonjs/models/components/multicallactiontype.d.ts +0 -3
- package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.js +0 -1
- package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
- package/dist/commonjs/models/components/openposition.d.ts +37 -0
- package/dist/commonjs/models/components/openposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/openposition.js +77 -0
- package/dist/commonjs/models/components/openposition.js.map +1 -0
- package/dist/commonjs/models/components/pendlelistmarketsresponse.d.ts +33 -0
- package/dist/commonjs/models/components/pendlelistmarketsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlelistmarketsresponse.js +70 -0
- package/dist/commonjs/models/components/pendlelistmarketsresponse.js.map +1 -0
- package/dist/commonjs/models/components/pendlelistuserpositionsresponse.d.ts +33 -0
- package/dist/commonjs/models/components/pendlelistuserpositionsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlelistuserpositionsresponse.js +70 -0
- package/dist/commonjs/models/components/pendlelistuserpositionsresponse.js.map +1 -0
- package/dist/commonjs/models/components/pendlemarket.d.ts +50 -0
- package/dist/commonjs/models/components/pendlemarket.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlemarket.js +90 -0
- package/dist/commonjs/models/components/pendlemarket.js.map +1 -0
- package/dist/commonjs/models/components/portfolio.d.ts +3 -3
- package/dist/commonjs/models/components/portfolio.d.ts.map +1 -1
- package/dist/commonjs/models/components/portfolio.js +3 -3
- package/dist/commonjs/models/components/portfolio.js.map +1 -1
- package/dist/commonjs/models/components/position.d.ts +45 -0
- package/dist/commonjs/models/components/position.d.ts.map +1 -0
- package/dist/commonjs/models/components/position.js +85 -0
- package/dist/commonjs/models/components/position.js.map +1 -0
- package/dist/commonjs/models/components/syposition.d.ts +31 -0
- package/dist/commonjs/models/components/syposition.d.ts.map +1 -0
- package/dist/commonjs/models/components/syposition.js +71 -0
- package/dist/commonjs/models/components/syposition.js.map +1 -0
- package/dist/commonjs/models/components/tokentransferrequest.d.ts +11 -11
- package/dist/commonjs/models/components/tokentransferrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokentransferrequest.js +16 -17
- package/dist/commonjs/models/components/tokentransferrequest.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +4 -5
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +0 -5
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/models/components/yieldrange.d.ts +31 -0
- package/dist/commonjs/models/components/yieldrange.d.ts.map +1 -0
- package/dist/commonjs/models/components/yieldrange.js +71 -0
- package/dist/commonjs/models/components/yieldrange.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/pendlemarket.js +2 -2
- package/dist/commonjs/models/operations/pendlemarkets.d.ts +72 -0
- package/dist/commonjs/models/operations/pendlemarkets.d.ts.map +1 -0
- package/dist/commonjs/models/operations/pendlemarkets.js +94 -0
- package/dist/commonjs/models/operations/pendlemarkets.js.map +1 -0
- package/dist/commonjs/models/operations/pendleposition.js +2 -2
- package/dist/commonjs/models/operations/pendlepositions.d.ts +77 -0
- package/dist/commonjs/models/operations/pendlepositions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/pendlepositions.js +105 -0
- package/dist/commonjs/models/operations/pendlepositions.js.map +1 -0
- package/dist/commonjs/sdk/pendle.d.ts +14 -0
- package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
- package/dist/commonjs/sdk/pendle.js +20 -0
- package/dist/commonjs/sdk/pendle.js.map +1 -1
- package/dist/commonjs/sdk/universal.d.ts +1 -1
- package/dist/commonjs/sdk/universal.js +1 -1
- package/dist/esm/funcs/pendleMarkets.d.ts +18 -0
- package/dist/esm/funcs/pendleMarkets.d.ts.map +1 -0
- package/dist/esm/funcs/pendleMarkets.js +85 -0
- package/dist/esm/funcs/pendleMarkets.js.map +1 -0
- package/dist/esm/funcs/pendlePositions.d.ts +18 -0
- package/dist/esm/funcs/pendlePositions.d.ts.map +1 -0
- package/dist/esm/funcs/pendlePositions.js +86 -0
- package/dist/esm/funcs/pendlePositions.js.map +1 -0
- package/dist/esm/funcs/universalAllowanceSet.d.ts +1 -1
- package/dist/esm/funcs/universalAllowanceSet.js +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.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleMarkets.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleMarkets.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleMarkets.js +28 -0
- package/dist/esm/mcp-server/tools/pendleMarkets.js.map +1 -0
- package/dist/esm/mcp-server/tools/pendlePositions.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendlePositions.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendlePositions.js +28 -0
- package/dist/esm/mcp-server/tools/pendlePositions.js.map +1 -0
- package/dist/esm/mcp-server/tools/universalAllowanceSet.js +1 -1
- package/dist/esm/models/components/compassapibackendmodelsgenericreadresponseportfoliotokenbalance.d.ts +63 -0
- package/dist/esm/models/components/compassapibackendmodelsgenericreadresponseportfoliotokenbalance.d.ts.map +1 -0
- package/dist/esm/models/components/compassapibackendmodelsgenericreadresponseportfoliotokenbalance.js +57 -0
- package/dist/esm/models/components/compassapibackendmodelsgenericreadresponseportfoliotokenbalance.js.map +1 -0
- package/dist/esm/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.d.ts +31 -0
- package/dist/esm/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.d.ts.map +1 -0
- package/dist/esm/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.js +35 -0
- package/dist/esm/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.js.map +1 -0
- package/dist/esm/models/components/details.d.ts +45 -0
- package/dist/esm/models/components/details.d.ts.map +1 -0
- package/dist/esm/models/components/details.js +47 -0
- package/dist/esm/models/components/details.js.map +1 -0
- package/dist/esm/models/components/increaseallowanceparams.d.ts +29 -10
- package/dist/esm/models/components/increaseallowanceparams.d.ts.map +1 -1
- package/dist/esm/models/components/increaseallowanceparams.js +23 -2
- package/dist/esm/models/components/increaseallowanceparams.js.map +1 -1
- package/dist/esm/models/components/increaseallowancerequest.d.ts +29 -10
- package/dist/esm/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/esm/models/components/increaseallowancerequest.js +23 -2
- package/dist/esm/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +12 -3
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +12 -3
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/lpbalance.d.ts +33 -0
- package/dist/esm/models/components/lpbalance.d.ts.map +1 -0
- package/dist/esm/models/components/lpbalance.js +35 -0
- package/dist/esm/models/components/lpbalance.js.map +1 -0
- package/dist/esm/models/components/movement10percent.d.ts +35 -0
- package/dist/esm/models/components/movement10percent.d.ts.map +1 -0
- package/dist/esm/models/components/movement10percent.js +37 -0
- package/dist/esm/models/components/movement10percent.js.map +1 -0
- package/dist/esm/models/components/multicallactiontype.d.ts +0 -3
- package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/esm/models/components/multicallactiontype.js +0 -1
- package/dist/esm/models/components/multicallactiontype.js.map +1 -1
- package/dist/esm/models/components/openposition.d.ts +37 -0
- package/dist/esm/models/components/openposition.d.ts.map +1 -0
- package/dist/esm/models/components/openposition.js +39 -0
- package/dist/esm/models/components/openposition.js.map +1 -0
- package/dist/esm/models/components/pendlelistmarketsresponse.d.ts +33 -0
- package/dist/esm/models/components/pendlelistmarketsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/pendlelistmarketsresponse.js +32 -0
- package/dist/esm/models/components/pendlelistmarketsresponse.js.map +1 -0
- package/dist/esm/models/components/pendlelistuserpositionsresponse.d.ts +33 -0
- package/dist/esm/models/components/pendlelistuserpositionsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/pendlelistuserpositionsresponse.js +32 -0
- package/dist/esm/models/components/pendlelistuserpositionsresponse.js.map +1 -0
- package/dist/esm/models/components/pendlemarket.d.ts +50 -0
- package/dist/esm/models/components/pendlemarket.d.ts.map +1 -0
- package/dist/esm/models/components/pendlemarket.js +52 -0
- package/dist/esm/models/components/pendlemarket.js.map +1 -0
- package/dist/esm/models/components/portfolio.d.ts +3 -3
- package/dist/esm/models/components/portfolio.d.ts.map +1 -1
- package/dist/esm/models/components/portfolio.js +3 -3
- package/dist/esm/models/components/portfolio.js.map +1 -1
- package/dist/esm/models/components/position.d.ts +45 -0
- package/dist/esm/models/components/position.d.ts.map +1 -0
- package/dist/esm/models/components/position.js +47 -0
- package/dist/esm/models/components/position.js.map +1 -0
- package/dist/esm/models/components/syposition.d.ts +31 -0
- package/dist/esm/models/components/syposition.d.ts.map +1 -0
- package/dist/esm/models/components/syposition.js +33 -0
- package/dist/esm/models/components/syposition.js.map +1 -0
- package/dist/esm/models/components/tokentransferrequest.d.ts +11 -11
- package/dist/esm/models/components/tokentransferrequest.d.ts.map +1 -1
- package/dist/esm/models/components/tokentransferrequest.js +13 -14
- package/dist/esm/models/components/tokentransferrequest.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +4 -5
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +0 -5
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/models/components/yieldrange.d.ts +31 -0
- package/dist/esm/models/components/yieldrange.d.ts.map +1 -0
- package/dist/esm/models/components/yieldrange.js +33 -0
- package/dist/esm/models/components/yieldrange.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/pendlemarket.js +2 -2
- package/dist/esm/models/operations/pendlemarkets.d.ts +72 -0
- package/dist/esm/models/operations/pendlemarkets.d.ts.map +1 -0
- package/dist/esm/models/operations/pendlemarkets.js +56 -0
- package/dist/esm/models/operations/pendlemarkets.js.map +1 -0
- package/dist/esm/models/operations/pendleposition.js +2 -2
- package/dist/esm/models/operations/pendlepositions.d.ts +77 -0
- package/dist/esm/models/operations/pendlepositions.d.ts.map +1 -0
- package/dist/esm/models/operations/pendlepositions.js +67 -0
- package/dist/esm/models/operations/pendlepositions.js.map +1 -0
- package/dist/esm/sdk/pendle.d.ts +14 -0
- package/dist/esm/sdk/pendle.d.ts.map +1 -1
- package/dist/esm/sdk/pendle.js +20 -0
- package/dist/esm/sdk/pendle.js.map +1 -1
- package/dist/esm/sdk/universal.d.ts +1 -1
- package/dist/esm/sdk/universal.js +1 -1
- package/docs/sdks/pendle/README.md +162 -4
- package/docs/sdks/universal/README.md +3 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/pendleMarkets.ts +169 -0
- package/src/funcs/pendlePositions.ts +170 -0
- package/src/funcs/universalAllowanceSet.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/pendleMarkets.ts +37 -0
- package/src/mcp-server/tools/pendlePositions.ts +37 -0
- package/src/mcp-server/tools/universalAllowanceSet.ts +1 -1
- package/src/models/components/compassapibackendmodelsgenericreadresponseportfoliotokenbalance.ts +140 -0
- package/src/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.ts +83 -0
- package/src/models/components/details.ts +99 -0
- package/src/models/components/increaseallowanceparams.ts +62 -12
- package/src/models/components/increaseallowancerequest.ts +62 -12
- package/src/models/components/index.ts +12 -3
- package/src/models/components/lpbalance.ts +70 -0
- package/src/models/components/movement10percent.ts +78 -0
- package/src/models/components/multicallactiontype.ts +0 -1
- package/src/models/components/openposition.ts +90 -0
- package/src/models/components/pendlelistmarketsresponse.ts +75 -0
- package/src/models/components/pendlelistuserpositionsresponse.ts +77 -0
- package/src/models/components/pendlemarket.ts +108 -0
- package/src/models/components/portfolio.ts +17 -9
- package/src/models/components/position.ts +102 -0
- package/src/models/components/syposition.ts +66 -0
- package/src/models/components/tokentransferrequest.ts +27 -20
- package/src/models/components/useroperation.ts +0 -14
- package/src/models/components/yieldrange.ts +66 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/pendlemarket.ts +2 -2
- package/src/models/operations/pendlemarkets.ts +111 -0
- package/src/models/operations/pendleposition.ts +2 -2
- package/src/models/operations/pendlepositions.ts +129 -0
- package/src/sdk/pendle.ts +36 -0
- package/src/sdk/universal.ts +1 -1
- package/dist/commonjs/models/components/contractname.d.ts +0 -117
- package/dist/commonjs/models/components/contractname.d.ts.map +0 -1
- package/dist/commonjs/models/components/contractname.js +0 -92
- package/dist/commonjs/models/components/contractname.js.map +0 -1
- package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts +0 -80
- package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts.map +0 -1
- package/dist/commonjs/models/components/increaseallowanceanyparams.js +0 -107
- package/dist/commonjs/models/components/increaseallowanceanyparams.js.map +0 -1
- package/dist/commonjs/models/components/tokenbalance.d.ts +0 -63
- package/dist/commonjs/models/components/tokenbalance.d.ts.map +0 -1
- package/dist/commonjs/models/components/tokenbalance.js.map +0 -1
- package/dist/esm/models/components/contractname.d.ts +0 -117
- package/dist/esm/models/components/contractname.d.ts.map +0 -1
- package/dist/esm/models/components/contractname.js +0 -56
- package/dist/esm/models/components/contractname.js.map +0 -1
- package/dist/esm/models/components/increaseallowanceanyparams.d.ts +0 -80
- package/dist/esm/models/components/increaseallowanceanyparams.d.ts.map +0 -1
- package/dist/esm/models/components/increaseallowanceanyparams.js +0 -67
- package/dist/esm/models/components/increaseallowanceanyparams.js.map +0 -1
- package/dist/esm/models/components/tokenbalance.d.ts +0 -63
- package/dist/esm/models/components/tokenbalance.d.ts.map +0 -1
- package/dist/esm/models/components/tokenbalance.js +0 -55
- package/dist/esm/models/components/tokenbalance.js.map +0 -1
- package/src/models/components/contractname.ts +0 -71
- package/src/models/components/increaseallowanceanyparams.ts +0 -169
- package/src/models/components/tokenbalance.ts +0 -123
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.2.
|
|
34208
|
+
sdkVersion: "0.2.3",
|
|
34209
34209
|
genVersion: "2.610.0",
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.2.3 2.610.0 0.0.1 @compass-labs/api-sdk"
|
|
34211
34211
|
};
|
|
34212
34212
|
});
|
|
34213
34213
|
|
|
@@ -37491,86 +37491,8 @@ var init_allowanceinforesponse = __esm(() => {
|
|
|
37491
37491
|
})(AllowanceInfoResponse$ ||= {});
|
|
37492
37492
|
});
|
|
37493
37493
|
|
|
37494
|
-
// src/models/components/contractname.ts
|
|
37495
|
-
var ContractName, ContractName$inboundSchema, ContractName$outboundSchema, ContractName$;
|
|
37496
|
-
var init_contractname = __esm(() => {
|
|
37497
|
-
init_esm();
|
|
37498
|
-
ContractName = {
|
|
37499
|
-
AaveV3Pool: "AaveV3Pool",
|
|
37500
|
-
AaveV3Oracle: "AaveV3Oracle",
|
|
37501
|
-
AaveV3ProtocolDataProvider: "AaveV3ProtocolDataProvider",
|
|
37502
|
-
AerodromeBasicFactory: "AerodromeBasicFactory",
|
|
37503
|
-
AerodromeSlipstreamFactory: "AerodromeSlipstreamFactory",
|
|
37504
|
-
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
37505
|
-
AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
|
|
37506
|
-
AerodromeBasicPool: "AerodromeBasicPool",
|
|
37507
|
-
AerodromeSlipstreamPool: "AerodromeSlipstreamPool",
|
|
37508
|
-
AerodromeSlipstreamNonfungiblePositionManager: "AerodromeSlipstreamNonfungiblePositionManager",
|
|
37509
|
-
UniswapV3Pool: "UniswapV3Pool",
|
|
37510
|
-
UniswapV3Router: "UniswapV3Router",
|
|
37511
|
-
UniswapV3Factory: "UniswapV3Factory",
|
|
37512
|
-
UniswapV3NFTPositionManager: "UniswapV3NFTPositionManager",
|
|
37513
|
-
UniswapV3Quoter: "UniswapV3Quoter",
|
|
37514
|
-
ChainlinkEACAggregatorProxy: "ChainlinkEACAggregatorProxy",
|
|
37515
|
-
Morpho: "Morpho",
|
|
37516
|
-
MorphoVault: "MorphoVault",
|
|
37517
|
-
MorphoOracle: "MorphoOracle",
|
|
37518
|
-
SkyDaiUsdsConverter: "SkyDaiUsdsConverter",
|
|
37519
|
-
SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
|
|
37520
|
-
SkyUsdsVault: "SkyUsdsVault",
|
|
37521
|
-
PendleRouter: "PendleRouter",
|
|
37522
|
-
PendleMarket: "PendleMarket",
|
|
37523
|
-
PendleSy: "PendleSy",
|
|
37524
|
-
PendleYt: "PendleYt",
|
|
37525
|
-
Multicall: "Multicall"
|
|
37526
|
-
};
|
|
37527
|
-
ContractName$inboundSchema = nativeEnumType(ContractName);
|
|
37528
|
-
ContractName$outboundSchema = ContractName$inboundSchema;
|
|
37529
|
-
((ContractName$) => {
|
|
37530
|
-
ContractName$.inboundSchema = ContractName$inboundSchema;
|
|
37531
|
-
ContractName$.outboundSchema = ContractName$outboundSchema;
|
|
37532
|
-
})(ContractName$ ||= {});
|
|
37533
|
-
});
|
|
37534
|
-
|
|
37535
|
-
// src/models/components/increaseallowanceanyparams.ts
|
|
37536
|
-
var IncreaseAllowanceAnyParamsAmount$inboundSchema, IncreaseAllowanceAnyParamsAmount$outboundSchema, IncreaseAllowanceAnyParamsAmount$, IncreaseAllowanceAnyParams$inboundSchema, IncreaseAllowanceAnyParams$outboundSchema, IncreaseAllowanceAnyParams$;
|
|
37537
|
-
var init_increaseallowanceanyparams = __esm(() => {
|
|
37538
|
-
init_esm();
|
|
37539
|
-
init_primitives();
|
|
37540
|
-
init_contractname();
|
|
37541
|
-
init_tokenenum();
|
|
37542
|
-
IncreaseAllowanceAnyParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
37543
|
-
IncreaseAllowanceAnyParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
37544
|
-
((IncreaseAllowanceAnyParamsAmount$) => {
|
|
37545
|
-
IncreaseAllowanceAnyParamsAmount$.inboundSchema = IncreaseAllowanceAnyParamsAmount$inboundSchema;
|
|
37546
|
-
IncreaseAllowanceAnyParamsAmount$.outboundSchema = IncreaseAllowanceAnyParamsAmount$outboundSchema;
|
|
37547
|
-
})(IncreaseAllowanceAnyParamsAmount$ ||= {});
|
|
37548
|
-
IncreaseAllowanceAnyParams$inboundSchema = objectType({
|
|
37549
|
-
token: TokenEnum$inboundSchema,
|
|
37550
|
-
contract_name: ContractName$inboundSchema,
|
|
37551
|
-
amount: unionType([numberType(), stringType()])
|
|
37552
|
-
}).transform((v2) => {
|
|
37553
|
-
return remap(v2, {
|
|
37554
|
-
contract_name: "contractName"
|
|
37555
|
-
});
|
|
37556
|
-
});
|
|
37557
|
-
IncreaseAllowanceAnyParams$outboundSchema = objectType({
|
|
37558
|
-
token: TokenEnum$outboundSchema,
|
|
37559
|
-
contractName: ContractName$outboundSchema,
|
|
37560
|
-
amount: unionType([numberType(), stringType()])
|
|
37561
|
-
}).transform((v2) => {
|
|
37562
|
-
return remap(v2, {
|
|
37563
|
-
contractName: "contract_name"
|
|
37564
|
-
});
|
|
37565
|
-
});
|
|
37566
|
-
((IncreaseAllowanceAnyParams$) => {
|
|
37567
|
-
IncreaseAllowanceAnyParams$.inboundSchema = IncreaseAllowanceAnyParams$inboundSchema;
|
|
37568
|
-
IncreaseAllowanceAnyParams$.outboundSchema = IncreaseAllowanceAnyParams$outboundSchema;
|
|
37569
|
-
})(IncreaseAllowanceAnyParams$ ||= {});
|
|
37570
|
-
});
|
|
37571
|
-
|
|
37572
37494
|
// src/models/components/increaseallowanceparams.ts
|
|
37573
|
-
var IncreaseAllowanceParamsContractName, IncreaseAllowanceParamsContractName$inboundSchema, IncreaseAllowanceParamsContractName$outboundSchema, IncreaseAllowanceParamsContractName$, IncreaseAllowanceParamsAmount$inboundSchema, IncreaseAllowanceParamsAmount$outboundSchema, IncreaseAllowanceParamsAmount$, IncreaseAllowanceParams$inboundSchema, IncreaseAllowanceParams$outboundSchema, IncreaseAllowanceParams$;
|
|
37495
|
+
var IncreaseAllowanceParamsContractName, IncreaseAllowanceParamsToken$inboundSchema, IncreaseAllowanceParamsToken$outboundSchema, IncreaseAllowanceParamsToken$, IncreaseAllowanceParamsContractName$inboundSchema, IncreaseAllowanceParamsContractName$outboundSchema, IncreaseAllowanceParamsContractName$, IncreaseAllowanceParamsAmount$inboundSchema, IncreaseAllowanceParamsAmount$outboundSchema, IncreaseAllowanceParamsAmount$, IncreaseAllowanceParams$inboundSchema, IncreaseAllowanceParams$outboundSchema, IncreaseAllowanceParams$;
|
|
37574
37496
|
var init_increaseallowanceparams = __esm(() => {
|
|
37575
37497
|
init_esm();
|
|
37576
37498
|
init_primitives();
|
|
@@ -37588,6 +37510,12 @@ var init_increaseallowanceparams = __esm(() => {
|
|
|
37588
37510
|
SkyUsdsVault: "SkyUsdsVault",
|
|
37589
37511
|
PendleRouter: "PendleRouter"
|
|
37590
37512
|
};
|
|
37513
|
+
IncreaseAllowanceParamsToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
37514
|
+
IncreaseAllowanceParamsToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
37515
|
+
((IncreaseAllowanceParamsToken$) => {
|
|
37516
|
+
IncreaseAllowanceParamsToken$.inboundSchema = IncreaseAllowanceParamsToken$inboundSchema;
|
|
37517
|
+
IncreaseAllowanceParamsToken$.outboundSchema = IncreaseAllowanceParamsToken$outboundSchema;
|
|
37518
|
+
})(IncreaseAllowanceParamsToken$ ||= {});
|
|
37591
37519
|
IncreaseAllowanceParamsContractName$inboundSchema = nativeEnumType(IncreaseAllowanceParamsContractName);
|
|
37592
37520
|
IncreaseAllowanceParamsContractName$outboundSchema = IncreaseAllowanceParamsContractName$inboundSchema;
|
|
37593
37521
|
((IncreaseAllowanceParamsContractName$) => {
|
|
@@ -37601,7 +37529,7 @@ var init_increaseallowanceparams = __esm(() => {
|
|
|
37601
37529
|
IncreaseAllowanceParamsAmount$.outboundSchema = IncreaseAllowanceParamsAmount$outboundSchema;
|
|
37602
37530
|
})(IncreaseAllowanceParamsAmount$ ||= {});
|
|
37603
37531
|
IncreaseAllowanceParams$inboundSchema = objectType({
|
|
37604
|
-
token: TokenEnum$inboundSchema,
|
|
37532
|
+
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
37605
37533
|
contract_name: IncreaseAllowanceParamsContractName$inboundSchema,
|
|
37606
37534
|
amount: unionType([numberType(), stringType()])
|
|
37607
37535
|
}).transform((v2) => {
|
|
@@ -37610,7 +37538,7 @@ var init_increaseallowanceparams = __esm(() => {
|
|
|
37610
37538
|
});
|
|
37611
37539
|
});
|
|
37612
37540
|
IncreaseAllowanceParams$outboundSchema = objectType({
|
|
37613
|
-
token: TokenEnum$outboundSchema,
|
|
37541
|
+
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
37614
37542
|
contractName: IncreaseAllowanceParamsContractName$outboundSchema,
|
|
37615
37543
|
amount: unionType([numberType(), stringType()])
|
|
37616
37544
|
}).transform((v2) => {
|
|
@@ -37892,7 +37820,6 @@ var init_multicallactiontype = __esm(() => {
|
|
|
37892
37820
|
AerodromeSlipstreamSellExactly: "AERODROME_SLIPSTREAM_SELL_EXACTLY",
|
|
37893
37821
|
AerodromeSlipstreamWithdrawLiquidity: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY",
|
|
37894
37822
|
AllowanceIncrease: "ALLOWANCE_INCREASE",
|
|
37895
|
-
AllowanceIncreaseAny: "ALLOWANCE_INCREASE_ANY",
|
|
37896
37823
|
MorphoBorrow: "MORPHO_BORROW",
|
|
37897
37824
|
MorphoDeposit: "MORPHO_DEPOSIT",
|
|
37898
37825
|
MorphoRepay: "MORPHO_REPAY",
|
|
@@ -38429,7 +38356,6 @@ var init_useroperation = __esm(() => {
|
|
|
38429
38356
|
init_aerodromeslipstreammintliquidityprovisionparams();
|
|
38430
38357
|
init_aerodromeslipstreamsellexactlyparams();
|
|
38431
38358
|
init_aerodromeslipstreamwithdrawliquidityprovisionparams();
|
|
38432
|
-
init_increaseallowanceanyparams();
|
|
38433
38359
|
init_increaseallowanceparams();
|
|
38434
38360
|
init_morphoborrowparams();
|
|
38435
38361
|
init_morphodepositparams();
|
|
@@ -38467,7 +38393,6 @@ var init_useroperation = __esm(() => {
|
|
|
38467
38393
|
MorphoWithdrawParams$inboundSchema,
|
|
38468
38394
|
TokenTransferErc20Params$inboundSchema,
|
|
38469
38395
|
IncreaseAllowanceParams$inboundSchema,
|
|
38470
|
-
IncreaseAllowanceAnyParams$inboundSchema,
|
|
38471
38396
|
AaveBorrowParams$inboundSchema,
|
|
38472
38397
|
AaveRepayParams$inboundSchema,
|
|
38473
38398
|
MorphoBorrowParams$inboundSchema,
|
|
@@ -38499,7 +38424,6 @@ var init_useroperation = __esm(() => {
|
|
|
38499
38424
|
MorphoWithdrawParams$outboundSchema,
|
|
38500
38425
|
TokenTransferErc20Params$outboundSchema,
|
|
38501
38426
|
IncreaseAllowanceParams$outboundSchema,
|
|
38502
|
-
IncreaseAllowanceAnyParams$outboundSchema,
|
|
38503
38427
|
AaveBorrowParams$outboundSchema,
|
|
38504
38428
|
AaveRepayParams$outboundSchema,
|
|
38505
38429
|
MorphoBorrowParams$outboundSchema,
|
|
@@ -38537,7 +38461,6 @@ var init_useroperation = __esm(() => {
|
|
|
38537
38461
|
MorphoWithdrawParams$inboundSchema,
|
|
38538
38462
|
TokenTransferErc20Params$inboundSchema,
|
|
38539
38463
|
IncreaseAllowanceParams$inboundSchema,
|
|
38540
|
-
IncreaseAllowanceAnyParams$inboundSchema,
|
|
38541
38464
|
AaveBorrowParams$inboundSchema,
|
|
38542
38465
|
AaveRepayParams$inboundSchema,
|
|
38543
38466
|
MorphoBorrowParams$inboundSchema,
|
|
@@ -38576,7 +38499,6 @@ var init_useroperation = __esm(() => {
|
|
|
38576
38499
|
MorphoWithdrawParams$outboundSchema,
|
|
38577
38500
|
TokenTransferErc20Params$outboundSchema,
|
|
38578
38501
|
IncreaseAllowanceParams$outboundSchema,
|
|
38579
|
-
IncreaseAllowanceAnyParams$outboundSchema,
|
|
38580
38502
|
AaveBorrowParams$outboundSchema,
|
|
38581
38503
|
AaveRepayParams$outboundSchema,
|
|
38582
38504
|
MorphoBorrowParams$outboundSchema,
|
|
@@ -38678,6 +38600,46 @@ var init_chaininfo = __esm(() => {
|
|
|
38678
38600
|
})(ChainInfo$ ||= {});
|
|
38679
38601
|
});
|
|
38680
38602
|
|
|
38603
|
+
// src/models/components/compassapibackendmodelsgenericreadresponseportfoliotokenbalance.ts
|
|
38604
|
+
var CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$inboundSchema, CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$outboundSchema, CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$;
|
|
38605
|
+
var init_compassapibackendmodelsgenericreadresponseportfoliotokenbalance = __esm(() => {
|
|
38606
|
+
init_esm();
|
|
38607
|
+
init_primitives();
|
|
38608
|
+
init_tokenenum();
|
|
38609
|
+
CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$inboundSchema = objectType({
|
|
38610
|
+
amount: stringType(),
|
|
38611
|
+
decimals: numberType().int(),
|
|
38612
|
+
token_symbol: TokenEnum$inboundSchema,
|
|
38613
|
+
token_address: stringType(),
|
|
38614
|
+
price: stringType(),
|
|
38615
|
+
token_value_in_usd: stringType()
|
|
38616
|
+
}).transform((v2) => {
|
|
38617
|
+
return remap(v2, {
|
|
38618
|
+
token_symbol: "tokenSymbol",
|
|
38619
|
+
token_address: "tokenAddress",
|
|
38620
|
+
token_value_in_usd: "tokenValueInUsd"
|
|
38621
|
+
});
|
|
38622
|
+
});
|
|
38623
|
+
CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$outboundSchema = objectType({
|
|
38624
|
+
amount: stringType(),
|
|
38625
|
+
decimals: numberType().int(),
|
|
38626
|
+
tokenSymbol: TokenEnum$outboundSchema,
|
|
38627
|
+
tokenAddress: stringType(),
|
|
38628
|
+
price: stringType(),
|
|
38629
|
+
tokenValueInUsd: stringType()
|
|
38630
|
+
}).transform((v2) => {
|
|
38631
|
+
return remap(v2, {
|
|
38632
|
+
tokenSymbol: "token_symbol",
|
|
38633
|
+
tokenAddress: "token_address",
|
|
38634
|
+
tokenValueInUsd: "token_value_in_usd"
|
|
38635
|
+
});
|
|
38636
|
+
});
|
|
38637
|
+
((CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$) => {
|
|
38638
|
+
CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$.inboundSchema = CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$inboundSchema;
|
|
38639
|
+
CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$.outboundSchema = CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$outboundSchema;
|
|
38640
|
+
})(CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$ ||= {});
|
|
38641
|
+
});
|
|
38642
|
+
|
|
38681
38643
|
// src/models/components/compassapibackendmodelsmorphoreadresponsecheckuserpositionapydata.ts
|
|
38682
38644
|
var CompassApiBackendModelsMorphoReadResponseCheckUserPositionApyData$inboundSchema, CompassApiBackendModelsMorphoReadResponseCheckUserPositionApyData$outboundSchema, CompassApiBackendModelsMorphoReadResponseCheckUserPositionApyData$;
|
|
38683
38645
|
var init_compassapibackendmodelsmorphoreadresponsecheckuserpositionapydata = __esm(() => {
|
|
@@ -39027,6 +38989,24 @@ var init_compassapibackendmodelsmorphoreadresponsegetvaultvaultstate = __esm(()
|
|
|
39027
38989
|
})(CompassApiBackendModelsMorphoReadResponseGetVaultVaultState$ ||= {});
|
|
39028
38990
|
});
|
|
39029
38991
|
|
|
38992
|
+
// src/models/components/compassapibackendmodelspendlereadresponsepositionstokenbalance.ts
|
|
38993
|
+
var CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema, CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema, CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$;
|
|
38994
|
+
var init_compassapibackendmodelspendlereadresponsepositionstokenbalance = __esm(() => {
|
|
38995
|
+
init_esm();
|
|
38996
|
+
CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema = objectType({
|
|
38997
|
+
valuation: numberType(),
|
|
38998
|
+
balance: stringType()
|
|
38999
|
+
});
|
|
39000
|
+
CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema = objectType({
|
|
39001
|
+
valuation: numberType(),
|
|
39002
|
+
balance: stringType()
|
|
39003
|
+
});
|
|
39004
|
+
((CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$) => {
|
|
39005
|
+
CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$.inboundSchema = CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema;
|
|
39006
|
+
CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$.outboundSchema = CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema;
|
|
39007
|
+
})(CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$ ||= {});
|
|
39008
|
+
});
|
|
39009
|
+
|
|
39030
39010
|
// src/models/components/curator.ts
|
|
39031
39011
|
var Curator$inboundSchema, Curator$outboundSchema, Curator$;
|
|
39032
39012
|
var init_curator = __esm(() => {
|
|
@@ -39049,6 +39029,78 @@ var init_curator = __esm(() => {
|
|
|
39049
39029
|
})(Curator$ ||= {});
|
|
39050
39030
|
});
|
|
39051
39031
|
|
|
39032
|
+
// src/models/components/movement10percent.ts
|
|
39033
|
+
var Movement10Percent$inboundSchema, Movement10Percent$outboundSchema, Movement10Percent$;
|
|
39034
|
+
var init_movement10percent = __esm(() => {
|
|
39035
|
+
init_esm();
|
|
39036
|
+
Movement10Percent$inboundSchema = objectType({
|
|
39037
|
+
ptMovementUpUsd: numberType(),
|
|
39038
|
+
ptMovementDownUsd: numberType(),
|
|
39039
|
+
ytMovementUpUsd: numberType(),
|
|
39040
|
+
ytMovementDownUsd: numberType()
|
|
39041
|
+
});
|
|
39042
|
+
Movement10Percent$outboundSchema = objectType({
|
|
39043
|
+
ptMovementUpUsd: numberType(),
|
|
39044
|
+
ptMovementDownUsd: numberType(),
|
|
39045
|
+
ytMovementUpUsd: numberType(),
|
|
39046
|
+
ytMovementDownUsd: numberType()
|
|
39047
|
+
});
|
|
39048
|
+
((Movement10Percent$) => {
|
|
39049
|
+
Movement10Percent$.inboundSchema = Movement10Percent$inboundSchema;
|
|
39050
|
+
Movement10Percent$.outboundSchema = Movement10Percent$outboundSchema;
|
|
39051
|
+
})(Movement10Percent$ ||= {});
|
|
39052
|
+
});
|
|
39053
|
+
|
|
39054
|
+
// src/models/components/yieldrange.ts
|
|
39055
|
+
var YieldRange$inboundSchema, YieldRange$outboundSchema, YieldRange$;
|
|
39056
|
+
var init_yieldrange = __esm(() => {
|
|
39057
|
+
init_esm();
|
|
39058
|
+
YieldRange$inboundSchema = objectType({
|
|
39059
|
+
min: numberType(),
|
|
39060
|
+
max: numberType()
|
|
39061
|
+
});
|
|
39062
|
+
YieldRange$outboundSchema = objectType({
|
|
39063
|
+
min: numberType(),
|
|
39064
|
+
max: numberType()
|
|
39065
|
+
});
|
|
39066
|
+
((YieldRange$) => {
|
|
39067
|
+
YieldRange$.inboundSchema = YieldRange$inboundSchema;
|
|
39068
|
+
YieldRange$.outboundSchema = YieldRange$outboundSchema;
|
|
39069
|
+
})(YieldRange$ ||= {});
|
|
39070
|
+
});
|
|
39071
|
+
|
|
39072
|
+
// src/models/components/details.ts
|
|
39073
|
+
var Details$inboundSchema, Details$outboundSchema, Details$;
|
|
39074
|
+
var init_details = __esm(() => {
|
|
39075
|
+
init_esm();
|
|
39076
|
+
init_movement10percent();
|
|
39077
|
+
init_yieldrange();
|
|
39078
|
+
Details$inboundSchema = objectType({
|
|
39079
|
+
liquidity: numberType(),
|
|
39080
|
+
pendleApy: numberType(),
|
|
39081
|
+
impliedApy: numberType(),
|
|
39082
|
+
feeRate: numberType(),
|
|
39083
|
+
movement10Percent: Movement10Percent$inboundSchema,
|
|
39084
|
+
yieldRange: YieldRange$inboundSchema,
|
|
39085
|
+
aggregatedApy: numberType(),
|
|
39086
|
+
maxBoostedApy: numberType()
|
|
39087
|
+
});
|
|
39088
|
+
Details$outboundSchema = objectType({
|
|
39089
|
+
liquidity: numberType(),
|
|
39090
|
+
pendleApy: numberType(),
|
|
39091
|
+
impliedApy: numberType(),
|
|
39092
|
+
feeRate: numberType(),
|
|
39093
|
+
movement10Percent: Movement10Percent$outboundSchema,
|
|
39094
|
+
yieldRange: YieldRange$outboundSchema,
|
|
39095
|
+
aggregatedApy: numberType(),
|
|
39096
|
+
maxBoostedApy: numberType()
|
|
39097
|
+
});
|
|
39098
|
+
((Details$) => {
|
|
39099
|
+
Details$.inboundSchema = Details$inboundSchema;
|
|
39100
|
+
Details$.outboundSchema = Details$outboundSchema;
|
|
39101
|
+
})(Details$ ||= {});
|
|
39102
|
+
});
|
|
39103
|
+
|
|
39052
39104
|
// src/models/components/ensnameinforesponse.ts
|
|
39053
39105
|
var EnsNameInfoResponse$inboundSchema, EnsNameInfoResponse$outboundSchema, EnsNameInfoResponse$;
|
|
39054
39106
|
var init_ensnameinforesponse = __esm(() => {
|
|
@@ -39113,7 +39165,7 @@ var init_image = __esm(() => {
|
|
|
39113
39165
|
});
|
|
39114
39166
|
|
|
39115
39167
|
// src/models/components/increaseallowancerequest.ts
|
|
39116
|
-
var IncreaseAllowanceRequestContractName, IncreaseAllowanceRequestContractName$inboundSchema, IncreaseAllowanceRequestContractName$outboundSchema, IncreaseAllowanceRequestContractName$, IncreaseAllowanceRequestAmount$inboundSchema, IncreaseAllowanceRequestAmount$outboundSchema, IncreaseAllowanceRequestAmount$, IncreaseAllowanceRequest$inboundSchema, IncreaseAllowanceRequest$outboundSchema, IncreaseAllowanceRequest$;
|
|
39168
|
+
var IncreaseAllowanceRequestContractName, IncreaseAllowanceRequestToken$inboundSchema, IncreaseAllowanceRequestToken$outboundSchema, IncreaseAllowanceRequestToken$, IncreaseAllowanceRequestContractName$inboundSchema, IncreaseAllowanceRequestContractName$outboundSchema, IncreaseAllowanceRequestContractName$, IncreaseAllowanceRequestAmount$inboundSchema, IncreaseAllowanceRequestAmount$outboundSchema, IncreaseAllowanceRequestAmount$, IncreaseAllowanceRequest$inboundSchema, IncreaseAllowanceRequest$outboundSchema, IncreaseAllowanceRequest$;
|
|
39117
39169
|
var init_increaseallowancerequest = __esm(() => {
|
|
39118
39170
|
init_esm();
|
|
39119
39171
|
init_primitives();
|
|
@@ -39132,6 +39184,12 @@ var init_increaseallowancerequest = __esm(() => {
|
|
|
39132
39184
|
SkyUsdsVault: "SkyUsdsVault",
|
|
39133
39185
|
PendleRouter: "PendleRouter"
|
|
39134
39186
|
};
|
|
39187
|
+
IncreaseAllowanceRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
39188
|
+
IncreaseAllowanceRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
39189
|
+
((IncreaseAllowanceRequestToken$) => {
|
|
39190
|
+
IncreaseAllowanceRequestToken$.inboundSchema = IncreaseAllowanceRequestToken$inboundSchema;
|
|
39191
|
+
IncreaseAllowanceRequestToken$.outboundSchema = IncreaseAllowanceRequestToken$outboundSchema;
|
|
39192
|
+
})(IncreaseAllowanceRequestToken$ ||= {});
|
|
39135
39193
|
IncreaseAllowanceRequestContractName$inboundSchema = nativeEnumType(IncreaseAllowanceRequestContractName);
|
|
39136
39194
|
IncreaseAllowanceRequestContractName$outboundSchema = IncreaseAllowanceRequestContractName$inboundSchema;
|
|
39137
39195
|
((IncreaseAllowanceRequestContractName$) => {
|
|
@@ -39145,7 +39203,7 @@ var init_increaseallowancerequest = __esm(() => {
|
|
|
39145
39203
|
IncreaseAllowanceRequestAmount$.outboundSchema = IncreaseAllowanceRequestAmount$outboundSchema;
|
|
39146
39204
|
})(IncreaseAllowanceRequestAmount$ ||= {});
|
|
39147
39205
|
IncreaseAllowanceRequest$inboundSchema = objectType({
|
|
39148
|
-
token: TokenEnum$inboundSchema,
|
|
39206
|
+
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
39149
39207
|
contract_name: IncreaseAllowanceRequestContractName$inboundSchema,
|
|
39150
39208
|
amount: unionType([numberType(), stringType()]),
|
|
39151
39209
|
chain: Chain$inboundSchema,
|
|
@@ -39156,7 +39214,7 @@ var init_increaseallowancerequest = __esm(() => {
|
|
|
39156
39214
|
});
|
|
39157
39215
|
});
|
|
39158
39216
|
IncreaseAllowanceRequest$outboundSchema = objectType({
|
|
39159
|
-
token: TokenEnum$outboundSchema,
|
|
39217
|
+
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
39160
39218
|
contractName: IncreaseAllowanceRequestContractName$outboundSchema,
|
|
39161
39219
|
amount: unionType([numberType(), stringType()]),
|
|
39162
39220
|
chain: Chain$outboundSchema,
|
|
@@ -39190,6 +39248,26 @@ var init_liquidity = __esm(() => {
|
|
|
39190
39248
|
})(Liquidity$ ||= {});
|
|
39191
39249
|
});
|
|
39192
39250
|
|
|
39251
|
+
// src/models/components/lpbalance.ts
|
|
39252
|
+
var LpBalance$inboundSchema, LpBalance$outboundSchema, LpBalance$;
|
|
39253
|
+
var init_lpbalance = __esm(() => {
|
|
39254
|
+
init_esm();
|
|
39255
|
+
LpBalance$inboundSchema = objectType({
|
|
39256
|
+
valuation: numberType(),
|
|
39257
|
+
balance: stringType(),
|
|
39258
|
+
activeBalance: stringType()
|
|
39259
|
+
});
|
|
39260
|
+
LpBalance$outboundSchema = objectType({
|
|
39261
|
+
valuation: numberType(),
|
|
39262
|
+
balance: stringType(),
|
|
39263
|
+
activeBalance: stringType()
|
|
39264
|
+
});
|
|
39265
|
+
((LpBalance$) => {
|
|
39266
|
+
LpBalance$.inboundSchema = LpBalance$inboundSchema;
|
|
39267
|
+
LpBalance$.outboundSchema = LpBalance$outboundSchema;
|
|
39268
|
+
})(LpBalance$ ||= {});
|
|
39269
|
+
});
|
|
39270
|
+
|
|
39193
39271
|
// src/models/components/market.ts
|
|
39194
39272
|
var Market$inboundSchema, Market$outboundSchema, Market$;
|
|
39195
39273
|
var init_market = __esm(() => {
|
|
@@ -40043,6 +40121,30 @@ var init_multicallexecuterequest = __esm(() => {
|
|
|
40043
40121
|
})(MulticallExecuteRequest$ ||= {});
|
|
40044
40122
|
});
|
|
40045
40123
|
|
|
40124
|
+
// src/models/components/openposition.ts
|
|
40125
|
+
var OpenPosition$inboundSchema, OpenPosition$outboundSchema, OpenPosition$;
|
|
40126
|
+
var init_openposition = __esm(() => {
|
|
40127
|
+
init_esm();
|
|
40128
|
+
init_compassapibackendmodelspendlereadresponsepositionstokenbalance();
|
|
40129
|
+
init_lpbalance();
|
|
40130
|
+
OpenPosition$inboundSchema = objectType({
|
|
40131
|
+
marketId: stringType(),
|
|
40132
|
+
pt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema,
|
|
40133
|
+
yt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$inboundSchema,
|
|
40134
|
+
lp: LpBalance$inboundSchema
|
|
40135
|
+
});
|
|
40136
|
+
OpenPosition$outboundSchema = objectType({
|
|
40137
|
+
marketId: stringType(),
|
|
40138
|
+
pt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema,
|
|
40139
|
+
yt: CompassApiBackendModelsPendleReadResponsePositionsTokenBalance$outboundSchema,
|
|
40140
|
+
lp: LpBalance$outboundSchema
|
|
40141
|
+
});
|
|
40142
|
+
((OpenPosition$) => {
|
|
40143
|
+
OpenPosition$.inboundSchema = OpenPosition$inboundSchema;
|
|
40144
|
+
OpenPosition$.outboundSchema = OpenPosition$outboundSchema;
|
|
40145
|
+
})(OpenPosition$ ||= {});
|
|
40146
|
+
});
|
|
40147
|
+
|
|
40046
40148
|
// src/models/components/pendlegetmarketresponse.ts
|
|
40047
40149
|
var PendleGetMarketResponse$inboundSchema, PendleGetMarketResponse$outboundSchema, PendleGetMarketResponse$;
|
|
40048
40150
|
var init_pendlegetmarketresponse = __esm(() => {
|
|
@@ -40136,44 +40238,125 @@ var init_pendlegetuserpositionresponse = __esm(() => {
|
|
|
40136
40238
|
})(PendleGetUserPositionResponse$ ||= {});
|
|
40137
40239
|
});
|
|
40138
40240
|
|
|
40139
|
-
// src/models/components/
|
|
40140
|
-
var
|
|
40141
|
-
var
|
|
40241
|
+
// src/models/components/pendlemarket.ts
|
|
40242
|
+
var PendleMarket$inboundSchema, PendleMarket$outboundSchema, PendleMarket$;
|
|
40243
|
+
var init_pendlemarket = __esm(() => {
|
|
40142
40244
|
init_esm();
|
|
40143
|
-
|
|
40144
|
-
|
|
40145
|
-
|
|
40146
|
-
|
|
40147
|
-
|
|
40148
|
-
|
|
40149
|
-
|
|
40150
|
-
|
|
40151
|
-
|
|
40152
|
-
|
|
40153
|
-
|
|
40154
|
-
|
|
40155
|
-
|
|
40156
|
-
|
|
40157
|
-
|
|
40245
|
+
init_details();
|
|
40246
|
+
PendleMarket$inboundSchema = objectType({
|
|
40247
|
+
name: stringType(),
|
|
40248
|
+
address: stringType(),
|
|
40249
|
+
expiry: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
40250
|
+
pt: stringType(),
|
|
40251
|
+
yt: stringType(),
|
|
40252
|
+
sy: stringType(),
|
|
40253
|
+
underlyingAsset: stringType(),
|
|
40254
|
+
details: Details$inboundSchema,
|
|
40255
|
+
isNew: booleanType(),
|
|
40256
|
+
isPrime: booleanType(),
|
|
40257
|
+
timestamp: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
40258
|
+
});
|
|
40259
|
+
PendleMarket$outboundSchema = objectType({
|
|
40260
|
+
name: stringType(),
|
|
40261
|
+
address: stringType(),
|
|
40262
|
+
expiry: dateType().transform((v2) => v2.toISOString()),
|
|
40263
|
+
pt: stringType(),
|
|
40264
|
+
yt: stringType(),
|
|
40265
|
+
sy: stringType(),
|
|
40266
|
+
underlyingAsset: stringType(),
|
|
40267
|
+
details: Details$outboundSchema,
|
|
40268
|
+
isNew: booleanType(),
|
|
40269
|
+
isPrime: booleanType(),
|
|
40270
|
+
timestamp: dateType().transform((v2) => v2.toISOString())
|
|
40271
|
+
});
|
|
40272
|
+
((PendleMarket$) => {
|
|
40273
|
+
PendleMarket$.inboundSchema = PendleMarket$inboundSchema;
|
|
40274
|
+
PendleMarket$.outboundSchema = PendleMarket$outboundSchema;
|
|
40275
|
+
})(PendleMarket$ ||= {});
|
|
40276
|
+
});
|
|
40277
|
+
|
|
40278
|
+
// src/models/components/pendlelistmarketsresponse.ts
|
|
40279
|
+
var PendleListMarketsResponse$inboundSchema, PendleListMarketsResponse$outboundSchema, PendleListMarketsResponse$;
|
|
40280
|
+
var init_pendlelistmarketsresponse = __esm(() => {
|
|
40281
|
+
init_esm();
|
|
40282
|
+
init_pendlemarket();
|
|
40283
|
+
PendleListMarketsResponse$inboundSchema = objectType({
|
|
40284
|
+
markets: arrayType(PendleMarket$inboundSchema)
|
|
40158
40285
|
});
|
|
40159
|
-
|
|
40160
|
-
|
|
40161
|
-
|
|
40162
|
-
|
|
40163
|
-
|
|
40164
|
-
|
|
40165
|
-
|
|
40166
|
-
|
|
40167
|
-
|
|
40168
|
-
|
|
40169
|
-
|
|
40170
|
-
|
|
40171
|
-
|
|
40286
|
+
PendleListMarketsResponse$outboundSchema = objectType({
|
|
40287
|
+
markets: arrayType(PendleMarket$outboundSchema)
|
|
40288
|
+
});
|
|
40289
|
+
((PendleListMarketsResponse$) => {
|
|
40290
|
+
PendleListMarketsResponse$.inboundSchema = PendleListMarketsResponse$inboundSchema;
|
|
40291
|
+
PendleListMarketsResponse$.outboundSchema = PendleListMarketsResponse$outboundSchema;
|
|
40292
|
+
})(PendleListMarketsResponse$ ||= {});
|
|
40293
|
+
});
|
|
40294
|
+
|
|
40295
|
+
// src/models/components/syposition.ts
|
|
40296
|
+
var SyPosition$inboundSchema, SyPosition$outboundSchema, SyPosition$;
|
|
40297
|
+
var init_syposition = __esm(() => {
|
|
40298
|
+
init_esm();
|
|
40299
|
+
SyPosition$inboundSchema = objectType({
|
|
40300
|
+
syId: stringType(),
|
|
40301
|
+
balance: stringType()
|
|
40302
|
+
});
|
|
40303
|
+
SyPosition$outboundSchema = objectType({
|
|
40304
|
+
syId: stringType(),
|
|
40305
|
+
balance: stringType()
|
|
40306
|
+
});
|
|
40307
|
+
((SyPosition$) => {
|
|
40308
|
+
SyPosition$.inboundSchema = SyPosition$inboundSchema;
|
|
40309
|
+
SyPosition$.outboundSchema = SyPosition$outboundSchema;
|
|
40310
|
+
})(SyPosition$ ||= {});
|
|
40311
|
+
});
|
|
40312
|
+
|
|
40313
|
+
// src/models/components/position.ts
|
|
40314
|
+
var Position$inboundSchema, Position$outboundSchema, Position$;
|
|
40315
|
+
var init_position = __esm(() => {
|
|
40316
|
+
init_esm();
|
|
40317
|
+
init_openposition();
|
|
40318
|
+
init_syposition();
|
|
40319
|
+
Position$inboundSchema = objectType({
|
|
40320
|
+
chainId: numberType().int(),
|
|
40321
|
+
totalOpen: numberType().int(),
|
|
40322
|
+
totalClosed: numberType().int(),
|
|
40323
|
+
totalSy: numberType().int(),
|
|
40324
|
+
openPositions: arrayType(OpenPosition$inboundSchema),
|
|
40325
|
+
closedPositions: arrayType(OpenPosition$inboundSchema),
|
|
40326
|
+
syPositions: arrayType(SyPosition$inboundSchema),
|
|
40327
|
+
updatedAt: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
40328
|
+
});
|
|
40329
|
+
Position$outboundSchema = objectType({
|
|
40330
|
+
chainId: numberType().int(),
|
|
40331
|
+
totalOpen: numberType().int(),
|
|
40332
|
+
totalClosed: numberType().int(),
|
|
40333
|
+
totalSy: numberType().int(),
|
|
40334
|
+
openPositions: arrayType(OpenPosition$outboundSchema),
|
|
40335
|
+
closedPositions: arrayType(OpenPosition$outboundSchema),
|
|
40336
|
+
syPositions: arrayType(SyPosition$outboundSchema),
|
|
40337
|
+
updatedAt: dateType().transform((v2) => v2.toISOString())
|
|
40338
|
+
});
|
|
40339
|
+
((Position$) => {
|
|
40340
|
+
Position$.inboundSchema = Position$inboundSchema;
|
|
40341
|
+
Position$.outboundSchema = Position$outboundSchema;
|
|
40342
|
+
})(Position$ ||= {});
|
|
40343
|
+
});
|
|
40344
|
+
|
|
40345
|
+
// src/models/components/pendlelistuserpositionsresponse.ts
|
|
40346
|
+
var PendleListUserPositionsResponse$inboundSchema, PendleListUserPositionsResponse$outboundSchema, PendleListUserPositionsResponse$;
|
|
40347
|
+
var init_pendlelistuserpositionsresponse = __esm(() => {
|
|
40348
|
+
init_esm();
|
|
40349
|
+
init_position();
|
|
40350
|
+
PendleListUserPositionsResponse$inboundSchema = objectType({
|
|
40351
|
+
positions: arrayType(Position$inboundSchema)
|
|
40352
|
+
});
|
|
40353
|
+
PendleListUserPositionsResponse$outboundSchema = objectType({
|
|
40354
|
+
positions: arrayType(Position$outboundSchema)
|
|
40172
40355
|
});
|
|
40173
|
-
((
|
|
40174
|
-
|
|
40175
|
-
|
|
40176
|
-
})(
|
|
40356
|
+
((PendleListUserPositionsResponse$) => {
|
|
40357
|
+
PendleListUserPositionsResponse$.inboundSchema = PendleListUserPositionsResponse$inboundSchema;
|
|
40358
|
+
PendleListUserPositionsResponse$.outboundSchema = PendleListUserPositionsResponse$outboundSchema;
|
|
40359
|
+
})(PendleListUserPositionsResponse$ ||= {});
|
|
40177
40360
|
});
|
|
40178
40361
|
|
|
40179
40362
|
// src/models/components/portfolio.ts
|
|
@@ -40181,10 +40364,10 @@ var Portfolio$inboundSchema, Portfolio$outboundSchema, Portfolio$;
|
|
|
40181
40364
|
var init_portfolio = __esm(() => {
|
|
40182
40365
|
init_esm();
|
|
40183
40366
|
init_primitives();
|
|
40184
|
-
|
|
40367
|
+
init_compassapibackendmodelsgenericreadresponseportfoliotokenbalance();
|
|
40185
40368
|
Portfolio$inboundSchema = objectType({
|
|
40186
40369
|
total_value_in_usd: stringType(),
|
|
40187
|
-
token_balances: arrayType(
|
|
40370
|
+
token_balances: arrayType(CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$inboundSchema)
|
|
40188
40371
|
}).transform((v2) => {
|
|
40189
40372
|
return remap(v2, {
|
|
40190
40373
|
total_value_in_usd: "totalValueInUsd",
|
|
@@ -40193,7 +40376,7 @@ var init_portfolio = __esm(() => {
|
|
|
40193
40376
|
});
|
|
40194
40377
|
Portfolio$outboundSchema = objectType({
|
|
40195
40378
|
totalValueInUsd: stringType(),
|
|
40196
|
-
tokenBalances: arrayType(
|
|
40379
|
+
tokenBalances: arrayType(CompassApiBackendModelsGenericReadResponsePortfolioTokenBalance$outboundSchema)
|
|
40197
40380
|
}).transform((v2) => {
|
|
40198
40381
|
return remap(v2, {
|
|
40199
40382
|
totalValueInUsd: "total_value_in_usd",
|
|
@@ -40492,7 +40675,7 @@ var init_tokenpriceresponse = __esm(() => {
|
|
|
40492
40675
|
});
|
|
40493
40676
|
|
|
40494
40677
|
// src/models/components/tokentransferrequest.ts
|
|
40495
|
-
var TokenTransferRequestAmount$inboundSchema, TokenTransferRequestAmount$outboundSchema, TokenTransferRequestAmount$,
|
|
40678
|
+
var TokenTransferRequestAmount$inboundSchema, TokenTransferRequestAmount$outboundSchema, TokenTransferRequestAmount$, TokenTransferRequestToken$inboundSchema, TokenTransferRequestToken$outboundSchema, TokenTransferRequestToken$, TokenTransferRequest$inboundSchema, TokenTransferRequest$outboundSchema, TokenTransferRequest$;
|
|
40496
40679
|
var init_tokentransferrequest = __esm(() => {
|
|
40497
40680
|
init_esm();
|
|
40498
40681
|
init_chain();
|
|
@@ -40503,12 +40686,12 @@ var init_tokentransferrequest = __esm(() => {
|
|
|
40503
40686
|
TokenTransferRequestAmount$.inboundSchema = TokenTransferRequestAmount$inboundSchema;
|
|
40504
40687
|
TokenTransferRequestAmount$.outboundSchema = TokenTransferRequestAmount$outboundSchema;
|
|
40505
40688
|
})(TokenTransferRequestAmount$ ||= {});
|
|
40506
|
-
|
|
40507
|
-
|
|
40508
|
-
((
|
|
40509
|
-
|
|
40510
|
-
|
|
40511
|
-
})(
|
|
40689
|
+
TokenTransferRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
40690
|
+
TokenTransferRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
40691
|
+
((TokenTransferRequestToken$) => {
|
|
40692
|
+
TokenTransferRequestToken$.inboundSchema = TokenTransferRequestToken$inboundSchema;
|
|
40693
|
+
TokenTransferRequestToken$.outboundSchema = TokenTransferRequestToken$outboundSchema;
|
|
40694
|
+
})(TokenTransferRequestToken$ ||= {});
|
|
40512
40695
|
TokenTransferRequest$inboundSchema = objectType({
|
|
40513
40696
|
amount: unionType([numberType(), stringType()]),
|
|
40514
40697
|
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
@@ -41231,6 +41414,7 @@ var init_components = __esm(() => {
|
|
|
41231
41414
|
init_borrow();
|
|
41232
41415
|
init_chain();
|
|
41233
41416
|
init_chaininfo();
|
|
41417
|
+
init_compassapibackendmodelsgenericreadresponseportfoliotokenbalance();
|
|
41234
41418
|
init_compassapibackendmodelsmorphoreadresponsecheckuserpositionapydata();
|
|
41235
41419
|
init_compassapibackendmodelsmorphoreadresponsecheckuserpositionasset();
|
|
41236
41420
|
init_compassapibackendmodelsmorphoreadresponsecheckuserpositionmarketstate();
|
|
@@ -41244,18 +41428,19 @@ var init_components = __esm(() => {
|
|
|
41244
41428
|
init_compassapibackendmodelsmorphoreadresponsegetvaultsasset();
|
|
41245
41429
|
init_compassapibackendmodelsmorphoreadresponsegetvaultsvaultstate();
|
|
41246
41430
|
init_compassapibackendmodelsmorphoreadresponsegetvaultvaultstate();
|
|
41247
|
-
|
|
41431
|
+
init_compassapibackendmodelspendlereadresponsepositionstokenbalance();
|
|
41248
41432
|
init_curator();
|
|
41433
|
+
init_details();
|
|
41249
41434
|
init_ensnameinforesponse();
|
|
41250
41435
|
init_erc20data();
|
|
41251
41436
|
init_feeenum();
|
|
41252
41437
|
init_image();
|
|
41253
|
-
init_increaseallowanceanyparams();
|
|
41254
41438
|
init_increaseallowanceparams();
|
|
41255
41439
|
init_increaseallowancerequest();
|
|
41256
41440
|
init_interestratemode();
|
|
41257
41441
|
init_liquidationcall();
|
|
41258
41442
|
init_liquidity();
|
|
41443
|
+
init_lpbalance();
|
|
41259
41444
|
init_market();
|
|
41260
41445
|
init_marketposition();
|
|
41261
41446
|
init_metadata();
|
|
@@ -41282,13 +41467,19 @@ var init_components = __esm(() => {
|
|
|
41282
41467
|
init_morphowithdrawcollateralrequest();
|
|
41283
41468
|
init_morphowithdrawparams();
|
|
41284
41469
|
init_morphowithdrawrequest();
|
|
41470
|
+
init_movement10percent();
|
|
41285
41471
|
init_multicallactiontype();
|
|
41286
41472
|
init_multicallauthorizationrequest();
|
|
41287
41473
|
init_multicallauthorizationresponse();
|
|
41288
41474
|
init_multicallexecuterequest();
|
|
41475
|
+
init_openposition();
|
|
41289
41476
|
init_pendlegetmarketresponse();
|
|
41290
41477
|
init_pendlegetuserpositionresponse();
|
|
41478
|
+
init_pendlelistmarketsresponse();
|
|
41479
|
+
init_pendlelistuserpositionsresponse();
|
|
41480
|
+
init_pendlemarket();
|
|
41291
41481
|
init_portfolio();
|
|
41482
|
+
init_position();
|
|
41292
41483
|
init_redeemunderlying();
|
|
41293
41484
|
init_repay();
|
|
41294
41485
|
init_reserve();
|
|
@@ -41305,8 +41496,8 @@ var init_components = __esm(() => {
|
|
|
41305
41496
|
init_skywithdrawrequest();
|
|
41306
41497
|
init_supply();
|
|
41307
41498
|
init_swapborrowrate();
|
|
41499
|
+
init_syposition();
|
|
41308
41500
|
init_tokenaddressresponse();
|
|
41309
|
-
init_tokenbalance();
|
|
41310
41501
|
init_tokenbalanceresponse();
|
|
41311
41502
|
init_tokenenum();
|
|
41312
41503
|
init_tokeninfo();
|
|
@@ -41344,6 +41535,7 @@ var init_components = __esm(() => {
|
|
|
41344
41535
|
init_weeklyapys();
|
|
41345
41536
|
init_wrapethparams();
|
|
41346
41537
|
init_wrapethrequest();
|
|
41538
|
+
init_yieldrange();
|
|
41347
41539
|
});
|
|
41348
41540
|
|
|
41349
41541
|
// src/models/errors/httpvalidationerror.ts
|
|
@@ -42246,7 +42438,7 @@ var init_aerodromeslipstreampoolprice = __esm(() => {
|
|
|
42246
42438
|
});
|
|
42247
42439
|
|
|
42248
42440
|
// src/models/operations/genericallowance.ts
|
|
42249
|
-
var GenericAllowanceChain, GenericAllowanceToken,
|
|
42441
|
+
var GenericAllowanceChain, GenericAllowanceToken, ContractName, GenericAllowanceChain$inboundSchema, GenericAllowanceChain$outboundSchema, GenericAllowanceChain$, GenericAllowanceToken$inboundSchema, GenericAllowanceToken$outboundSchema, GenericAllowanceToken$, ContractName$inboundSchema, ContractName$outboundSchema, ContractName$, GenericAllowanceRequest$inboundSchema, GenericAllowanceRequest$outboundSchema, GenericAllowanceRequest$;
|
|
42250
42442
|
var init_genericallowance = __esm(() => {
|
|
42251
42443
|
init_esm();
|
|
42252
42444
|
init_primitives();
|
|
@@ -42301,7 +42493,7 @@ var init_genericallowance = __esm(() => {
|
|
|
42301
42493
|
Eur: "EUR",
|
|
42302
42494
|
Virtual: "VIRTUAL"
|
|
42303
42495
|
};
|
|
42304
|
-
|
|
42496
|
+
ContractName = {
|
|
42305
42497
|
AaveV3Pool: "AaveV3Pool",
|
|
42306
42498
|
AerodromeBasicRouter: "AerodromeBasicRouter",
|
|
42307
42499
|
AerodromeSlipstreamRouter: "AerodromeSlipstreamRouter",
|
|
@@ -42326,18 +42518,18 @@ var init_genericallowance = __esm(() => {
|
|
|
42326
42518
|
GenericAllowanceToken$.inboundSchema = GenericAllowanceToken$inboundSchema;
|
|
42327
42519
|
GenericAllowanceToken$.outboundSchema = GenericAllowanceToken$outboundSchema;
|
|
42328
42520
|
})(GenericAllowanceToken$ ||= {});
|
|
42329
|
-
ContractName$
|
|
42330
|
-
ContractName$
|
|
42521
|
+
ContractName$inboundSchema = nativeEnumType(ContractName);
|
|
42522
|
+
ContractName$outboundSchema = ContractName$inboundSchema;
|
|
42331
42523
|
((ContractName$) => {
|
|
42332
|
-
ContractName$.inboundSchema = ContractName$
|
|
42333
|
-
ContractName$.outboundSchema = ContractName$
|
|
42334
|
-
})(ContractName$
|
|
42524
|
+
ContractName$.inboundSchema = ContractName$inboundSchema;
|
|
42525
|
+
ContractName$.outboundSchema = ContractName$outboundSchema;
|
|
42526
|
+
})(ContractName$ ||= {});
|
|
42335
42527
|
GenericAllowanceRequest$inboundSchema = objectType({
|
|
42336
42528
|
chain: GenericAllowanceChain$inboundSchema.default("arbitrum:mainnet"),
|
|
42337
42529
|
block: nullableType(numberType().int()).optional(),
|
|
42338
42530
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
42339
42531
|
token: GenericAllowanceToken$inboundSchema.default("USDC"),
|
|
42340
|
-
contract_name: ContractName$
|
|
42532
|
+
contract_name: ContractName$inboundSchema.default("AaveV3Pool")
|
|
42341
42533
|
}).transform((v2) => {
|
|
42342
42534
|
return remap(v2, {
|
|
42343
42535
|
contract_name: "contractName"
|
|
@@ -42348,7 +42540,7 @@ var init_genericallowance = __esm(() => {
|
|
|
42348
42540
|
block: nullableType(numberType().int()).optional(),
|
|
42349
42541
|
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"),
|
|
42350
42542
|
token: GenericAllowanceToken$outboundSchema.default("USDC"),
|
|
42351
|
-
contractName: ContractName$
|
|
42543
|
+
contractName: ContractName$outboundSchema.default("AaveV3Pool")
|
|
42352
42544
|
}).transform((v2) => {
|
|
42353
42545
|
return remap(v2, {
|
|
42354
42546
|
contractName: "contract_name"
|
|
@@ -42778,7 +42970,7 @@ var init_morphovaults = __esm(() => {
|
|
|
42778
42970
|
|
|
42779
42971
|
// src/models/operations/pendlemarket.ts
|
|
42780
42972
|
var PendleMarketChain, PendleMarketChain$inboundSchema, PendleMarketChain$outboundSchema, PendleMarketChain$, PendleMarketRequest$inboundSchema, PendleMarketRequest$outboundSchema, PendleMarketRequest$;
|
|
42781
|
-
var
|
|
42973
|
+
var init_pendlemarket2 = __esm(() => {
|
|
42782
42974
|
init_esm();
|
|
42783
42975
|
init_primitives();
|
|
42784
42976
|
PendleMarketChain = {
|
|
@@ -42796,7 +42988,7 @@ var init_pendlemarket = __esm(() => {
|
|
|
42796
42988
|
chain: PendleMarketChain$inboundSchema.default("ethereum:mainnet"),
|
|
42797
42989
|
block: nullableType(numberType().int()).optional(),
|
|
42798
42990
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
42799
|
-
market_address: stringType().default("
|
|
42991
|
+
market_address: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
42800
42992
|
}).transform((v2) => {
|
|
42801
42993
|
return remap(v2, {
|
|
42802
42994
|
user_address: "userAddress",
|
|
@@ -42807,7 +42999,7 @@ var init_pendlemarket = __esm(() => {
|
|
|
42807
42999
|
chain: PendleMarketChain$outboundSchema.default("ethereum:mainnet"),
|
|
42808
43000
|
block: nullableType(numberType().int()).optional(),
|
|
42809
43001
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
42810
|
-
marketAddress: stringType().default("
|
|
43002
|
+
marketAddress: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
42811
43003
|
}).transform((v2) => {
|
|
42812
43004
|
return remap(v2, {
|
|
42813
43005
|
userAddress: "user_address",
|
|
@@ -42820,6 +43012,35 @@ var init_pendlemarket = __esm(() => {
|
|
|
42820
43012
|
})(PendleMarketRequest$ ||= {});
|
|
42821
43013
|
});
|
|
42822
43014
|
|
|
43015
|
+
// src/models/operations/pendlemarkets.ts
|
|
43016
|
+
var PendleMarketsChain, PendleMarketsChain$inboundSchema, PendleMarketsChain$outboundSchema, PendleMarketsChain$, PendleMarketsRequest$inboundSchema, PendleMarketsRequest$outboundSchema, PendleMarketsRequest$;
|
|
43017
|
+
var init_pendlemarkets = __esm(() => {
|
|
43018
|
+
init_esm();
|
|
43019
|
+
PendleMarketsChain = {
|
|
43020
|
+
BaseMainnet: "base:mainnet",
|
|
43021
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
43022
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
43023
|
+
};
|
|
43024
|
+
PendleMarketsChain$inboundSchema = nativeEnumType(PendleMarketsChain);
|
|
43025
|
+
PendleMarketsChain$outboundSchema = PendleMarketsChain$inboundSchema;
|
|
43026
|
+
((PendleMarketsChain$) => {
|
|
43027
|
+
PendleMarketsChain$.inboundSchema = PendleMarketsChain$inboundSchema;
|
|
43028
|
+
PendleMarketsChain$.outboundSchema = PendleMarketsChain$outboundSchema;
|
|
43029
|
+
})(PendleMarketsChain$ ||= {});
|
|
43030
|
+
PendleMarketsRequest$inboundSchema = objectType({
|
|
43031
|
+
chain: PendleMarketsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43032
|
+
block: nullableType(numberType().int()).optional()
|
|
43033
|
+
});
|
|
43034
|
+
PendleMarketsRequest$outboundSchema = objectType({
|
|
43035
|
+
chain: PendleMarketsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43036
|
+
block: nullableType(numberType().int()).optional()
|
|
43037
|
+
});
|
|
43038
|
+
((PendleMarketsRequest$) => {
|
|
43039
|
+
PendleMarketsRequest$.inboundSchema = PendleMarketsRequest$inboundSchema;
|
|
43040
|
+
PendleMarketsRequest$.outboundSchema = PendleMarketsRequest$outboundSchema;
|
|
43041
|
+
})(PendleMarketsRequest$ ||= {});
|
|
43042
|
+
});
|
|
43043
|
+
|
|
42823
43044
|
// src/models/operations/pendleposition.ts
|
|
42824
43045
|
var PendlePositionChain, PendlePositionChain$inboundSchema, PendlePositionChain$outboundSchema, PendlePositionChain$, PendlePositionRequest$inboundSchema, PendlePositionRequest$outboundSchema, PendlePositionRequest$;
|
|
42825
43046
|
var init_pendleposition = __esm(() => {
|
|
@@ -42840,7 +43061,7 @@ var init_pendleposition = __esm(() => {
|
|
|
42840
43061
|
chain: PendlePositionChain$inboundSchema.default("ethereum:mainnet"),
|
|
42841
43062
|
block: nullableType(numberType().int()).optional(),
|
|
42842
43063
|
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
42843
|
-
market_address: stringType().default("
|
|
43064
|
+
market_address: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
42844
43065
|
}).transform((v2) => {
|
|
42845
43066
|
return remap(v2, {
|
|
42846
43067
|
user_address: "userAddress",
|
|
@@ -42851,7 +43072,7 @@ var init_pendleposition = __esm(() => {
|
|
|
42851
43072
|
chain: PendlePositionChain$outboundSchema.default("ethereum:mainnet"),
|
|
42852
43073
|
block: nullableType(numberType().int()).optional(),
|
|
42853
43074
|
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B"),
|
|
42854
|
-
marketAddress: stringType().default("
|
|
43075
|
+
marketAddress: stringType().default("0xc374f7ec85f8c7de3207a10bb1978ba104bda3b2")
|
|
42855
43076
|
}).transform((v2) => {
|
|
42856
43077
|
return remap(v2, {
|
|
42857
43078
|
userAddress: "user_address",
|
|
@@ -42864,6 +43085,46 @@ var init_pendleposition = __esm(() => {
|
|
|
42864
43085
|
})(PendlePositionRequest$ ||= {});
|
|
42865
43086
|
});
|
|
42866
43087
|
|
|
43088
|
+
// src/models/operations/pendlepositions.ts
|
|
43089
|
+
var PendlePositionsChain, PendlePositionsChain$inboundSchema, PendlePositionsChain$outboundSchema, PendlePositionsChain$, PendlePositionsRequest$inboundSchema, PendlePositionsRequest$outboundSchema, PendlePositionsRequest$;
|
|
43090
|
+
var init_pendlepositions = __esm(() => {
|
|
43091
|
+
init_esm();
|
|
43092
|
+
init_primitives();
|
|
43093
|
+
PendlePositionsChain = {
|
|
43094
|
+
BaseMainnet: "base:mainnet",
|
|
43095
|
+
EthereumMainnet: "ethereum:mainnet",
|
|
43096
|
+
ArbitrumMainnet: "arbitrum:mainnet"
|
|
43097
|
+
};
|
|
43098
|
+
PendlePositionsChain$inboundSchema = nativeEnumType(PendlePositionsChain);
|
|
43099
|
+
PendlePositionsChain$outboundSchema = PendlePositionsChain$inboundSchema;
|
|
43100
|
+
((PendlePositionsChain$) => {
|
|
43101
|
+
PendlePositionsChain$.inboundSchema = PendlePositionsChain$inboundSchema;
|
|
43102
|
+
PendlePositionsChain$.outboundSchema = PendlePositionsChain$outboundSchema;
|
|
43103
|
+
})(PendlePositionsChain$ ||= {});
|
|
43104
|
+
PendlePositionsRequest$inboundSchema = objectType({
|
|
43105
|
+
chain: PendlePositionsChain$inboundSchema.default("ethereum:mainnet"),
|
|
43106
|
+
block: nullableType(numberType().int()).optional(),
|
|
43107
|
+
user_address: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43108
|
+
}).transform((v2) => {
|
|
43109
|
+
return remap(v2, {
|
|
43110
|
+
user_address: "userAddress"
|
|
43111
|
+
});
|
|
43112
|
+
});
|
|
43113
|
+
PendlePositionsRequest$outboundSchema = objectType({
|
|
43114
|
+
chain: PendlePositionsChain$outboundSchema.default("ethereum:mainnet"),
|
|
43115
|
+
block: nullableType(numberType().int()).optional(),
|
|
43116
|
+
userAddress: stringType().default("0xa829B388A3DF7f581cE957a95edbe419dd146d1B")
|
|
43117
|
+
}).transform((v2) => {
|
|
43118
|
+
return remap(v2, {
|
|
43119
|
+
userAddress: "user_address"
|
|
43120
|
+
});
|
|
43121
|
+
});
|
|
43122
|
+
((PendlePositionsRequest$) => {
|
|
43123
|
+
PendlePositionsRequest$.inboundSchema = PendlePositionsRequest$inboundSchema;
|
|
43124
|
+
PendlePositionsRequest$.outboundSchema = PendlePositionsRequest$outboundSchema;
|
|
43125
|
+
})(PendlePositionsRequest$ ||= {});
|
|
43126
|
+
});
|
|
43127
|
+
|
|
42867
43128
|
// src/models/operations/skyposition.ts
|
|
42868
43129
|
var SkyPositionRequest$inboundSchema, SkyPositionRequest$outboundSchema, SkyPositionRequest$;
|
|
42869
43130
|
var init_skyposition = __esm(() => {
|
|
@@ -42978,7 +43239,7 @@ var init_tokenaddress = __esm(() => {
|
|
|
42978
43239
|
|
|
42979
43240
|
// src/models/operations/tokenbalance.ts
|
|
42980
43241
|
var TokenBalanceChain, TokenBalanceChain$inboundSchema, TokenBalanceChain$outboundSchema, TokenBalanceChain$, TokenBalanceToken$inboundSchema, TokenBalanceToken$outboundSchema, TokenBalanceToken$, TokenBalanceRequest$inboundSchema, TokenBalanceRequest$outboundSchema, TokenBalanceRequest$;
|
|
42981
|
-
var
|
|
43242
|
+
var init_tokenbalance = __esm(() => {
|
|
42982
43243
|
init_esm();
|
|
42983
43244
|
init_components();
|
|
42984
43245
|
TokenBalanceChain = {
|
|
@@ -43699,11 +43960,13 @@ var init_operations = __esm(() => {
|
|
|
43699
43960
|
init_morphovault2();
|
|
43700
43961
|
init_morphovaultposition();
|
|
43701
43962
|
init_morphovaults();
|
|
43702
|
-
|
|
43963
|
+
init_pendlemarket2();
|
|
43964
|
+
init_pendlemarkets();
|
|
43703
43965
|
init_pendleposition();
|
|
43966
|
+
init_pendlepositions();
|
|
43704
43967
|
init_skyposition();
|
|
43705
43968
|
init_tokenaddress();
|
|
43706
|
-
|
|
43969
|
+
init_tokenbalance();
|
|
43707
43970
|
init_tokenprice();
|
|
43708
43971
|
init_uniswapliquidityprovisioninrange();
|
|
43709
43972
|
init_uniswapliquidityprovisionpositions();
|
|
@@ -47615,23 +47878,21 @@ Get the market's implied APY, maturity date and the associated token data.`,
|
|
|
47615
47878
|
};
|
|
47616
47879
|
});
|
|
47617
47880
|
|
|
47618
|
-
// src/funcs/
|
|
47619
|
-
function
|
|
47881
|
+
// src/funcs/pendleMarkets.ts
|
|
47882
|
+
function pendleMarkets(client, request, options) {
|
|
47620
47883
|
return new APIPromise($do36(client, request, options));
|
|
47621
47884
|
}
|
|
47622
47885
|
async function $do36(client, request, options) {
|
|
47623
|
-
const parsed = safeParse(request, (value) =>
|
|
47886
|
+
const parsed = safeParse(request, (value) => PendleMarketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47624
47887
|
if (!parsed.ok) {
|
|
47625
47888
|
return [parsed, { status: "invalid" }];
|
|
47626
47889
|
}
|
|
47627
47890
|
const payload = parsed.value;
|
|
47628
47891
|
const body = null;
|
|
47629
|
-
const path = pathToFunc("/v0/pendle/
|
|
47892
|
+
const path = pathToFunc("/v0/pendle/markets")();
|
|
47630
47893
|
const query = encodeFormQuery({
|
|
47631
47894
|
block: payload.block,
|
|
47632
|
-
chain: payload.chain
|
|
47633
|
-
market_address: payload.market_address,
|
|
47634
|
-
user_address: payload.user_address
|
|
47895
|
+
chain: payload.chain
|
|
47635
47896
|
});
|
|
47636
47897
|
const headers = new Headers(compactMap({
|
|
47637
47898
|
Accept: "application/json"
|
|
@@ -47641,7 +47902,7 @@ async function $do36(client, request, options) {
|
|
|
47641
47902
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47642
47903
|
const context = {
|
|
47643
47904
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47644
|
-
operationID: "
|
|
47905
|
+
operationID: "pendle_markets",
|
|
47645
47906
|
oAuth2Scopes: [],
|
|
47646
47907
|
resolvedSecurity: requestSecurity,
|
|
47647
47908
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -47675,13 +47936,13 @@ async function $do36(client, request, options) {
|
|
|
47675
47936
|
const responseFields = {
|
|
47676
47937
|
HttpMeta: { Response: response, Request: req }
|
|
47677
47938
|
};
|
|
47678
|
-
const [result] = await match(json(200,
|
|
47939
|
+
const [result] = await match(json(200, PendleListMarketsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47679
47940
|
if (!result.ok) {
|
|
47680
47941
|
return [result, { status: "complete", request: req, response }];
|
|
47681
47942
|
}
|
|
47682
47943
|
return [result, { status: "complete", request: req, response }];
|
|
47683
47944
|
}
|
|
47684
|
-
var
|
|
47945
|
+
var init_pendleMarkets = __esm(() => {
|
|
47685
47946
|
init_encodings();
|
|
47686
47947
|
init_matchers();
|
|
47687
47948
|
init_primitives();
|
|
@@ -47694,23 +47955,23 @@ var init_pendlePosition = __esm(() => {
|
|
|
47694
47955
|
init_async();
|
|
47695
47956
|
});
|
|
47696
47957
|
|
|
47697
|
-
// src/mcp-server/tools/
|
|
47698
|
-
var args36, tool$
|
|
47699
|
-
var
|
|
47700
|
-
|
|
47958
|
+
// src/mcp-server/tools/pendleMarkets.ts
|
|
47959
|
+
var args36, tool$pendleMarkets;
|
|
47960
|
+
var init_pendleMarkets2 = __esm(() => {
|
|
47961
|
+
init_pendleMarkets();
|
|
47701
47962
|
init_operations();
|
|
47702
47963
|
init_tools();
|
|
47703
47964
|
args36 = {
|
|
47704
|
-
request:
|
|
47965
|
+
request: PendleMarketsRequest$inboundSchema
|
|
47705
47966
|
};
|
|
47706
|
-
tool$
|
|
47707
|
-
name: "pendle-
|
|
47708
|
-
description: `
|
|
47967
|
+
tool$pendleMarkets = {
|
|
47968
|
+
name: "pendle-markets",
|
|
47969
|
+
description: `List Market Data
|
|
47709
47970
|
|
|
47710
|
-
|
|
47971
|
+
Get a list of active markets.`,
|
|
47711
47972
|
args: args36,
|
|
47712
47973
|
tool: async (client, args37, ctx) => {
|
|
47713
|
-
const [result, apiCall] = await
|
|
47974
|
+
const [result, apiCall] = await pendleMarkets(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47714
47975
|
if (!result.ok) {
|
|
47715
47976
|
return {
|
|
47716
47977
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47723,20 +47984,25 @@ Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
|
47723
47984
|
};
|
|
47724
47985
|
});
|
|
47725
47986
|
|
|
47726
|
-
// src/funcs/
|
|
47727
|
-
function
|
|
47987
|
+
// src/funcs/pendlePosition.ts
|
|
47988
|
+
function pendlePosition(client, request, options) {
|
|
47728
47989
|
return new APIPromise($do37(client, request, options));
|
|
47729
47990
|
}
|
|
47730
47991
|
async function $do37(client, request, options) {
|
|
47731
|
-
const parsed = safeParse(request, (value) =>
|
|
47992
|
+
const parsed = safeParse(request, (value) => PendlePositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47732
47993
|
if (!parsed.ok) {
|
|
47733
47994
|
return [parsed, { status: "invalid" }];
|
|
47734
47995
|
}
|
|
47735
47996
|
const payload = parsed.value;
|
|
47736
|
-
const body =
|
|
47737
|
-
const path = pathToFunc("/v0/
|
|
47997
|
+
const body = null;
|
|
47998
|
+
const path = pathToFunc("/v0/pendle/position")();
|
|
47999
|
+
const query = encodeFormQuery({
|
|
48000
|
+
block: payload.block,
|
|
48001
|
+
chain: payload.chain,
|
|
48002
|
+
market_address: payload.market_address,
|
|
48003
|
+
user_address: payload.user_address
|
|
48004
|
+
});
|
|
47738
48005
|
const headers = new Headers(compactMap({
|
|
47739
|
-
"Content-Type": "application/json",
|
|
47740
48006
|
Accept: "application/json"
|
|
47741
48007
|
}));
|
|
47742
48008
|
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
@@ -47744,7 +48010,7 @@ async function $do37(client, request, options) {
|
|
|
47744
48010
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47745
48011
|
const context = {
|
|
47746
48012
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47747
|
-
operationID: "
|
|
48013
|
+
operationID: "pendle_position",
|
|
47748
48014
|
oAuth2Scopes: [],
|
|
47749
48015
|
resolvedSecurity: requestSecurity,
|
|
47750
48016
|
securitySource: client._options.apiKeyAuth,
|
|
@@ -47753,10 +48019,11 @@ async function $do37(client, request, options) {
|
|
|
47753
48019
|
};
|
|
47754
48020
|
const requestRes = client._createRequest(context, {
|
|
47755
48021
|
security: requestSecurity,
|
|
47756
|
-
method: "
|
|
48022
|
+
method: "GET",
|
|
47757
48023
|
baseURL: options?.serverURL,
|
|
47758
48024
|
path,
|
|
47759
48025
|
headers,
|
|
48026
|
+
query,
|
|
47760
48027
|
body,
|
|
47761
48028
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47762
48029
|
}, options);
|
|
@@ -47777,13 +48044,13 @@ async function $do37(client, request, options) {
|
|
|
47777
48044
|
const responseFields = {
|
|
47778
48045
|
HttpMeta: { Response: response, Request: req }
|
|
47779
48046
|
};
|
|
47780
|
-
const [result] = await match(json(200,
|
|
48047
|
+
const [result] = await match(json(200, PendleGetUserPositionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47781
48048
|
if (!result.ok) {
|
|
47782
48049
|
return [result, { status: "complete", request: req, response }];
|
|
47783
48050
|
}
|
|
47784
48051
|
return [result, { status: "complete", request: req, response }];
|
|
47785
48052
|
}
|
|
47786
|
-
var
|
|
48053
|
+
var init_pendlePosition = __esm(() => {
|
|
47787
48054
|
init_encodings();
|
|
47788
48055
|
init_matchers();
|
|
47789
48056
|
init_primitives();
|
|
@@ -47792,21 +48059,230 @@ var init_skyBuy = __esm(() => {
|
|
|
47792
48059
|
init_url();
|
|
47793
48060
|
init_components();
|
|
47794
48061
|
init_errors2();
|
|
48062
|
+
init_operations();
|
|
47795
48063
|
init_async();
|
|
47796
48064
|
});
|
|
47797
48065
|
|
|
47798
|
-
// src/mcp-server/tools/
|
|
47799
|
-
var args37, tool$
|
|
47800
|
-
var
|
|
47801
|
-
|
|
47802
|
-
|
|
48066
|
+
// src/mcp-server/tools/pendlePosition.ts
|
|
48067
|
+
var args37, tool$pendlePosition;
|
|
48068
|
+
var init_pendlePosition2 = __esm(() => {
|
|
48069
|
+
init_pendlePosition();
|
|
48070
|
+
init_operations();
|
|
47803
48071
|
init_tools();
|
|
47804
48072
|
args37 = {
|
|
47805
|
-
request:
|
|
48073
|
+
request: PendlePositionRequest$inboundSchema
|
|
47806
48074
|
};
|
|
47807
|
-
tool$
|
|
47808
|
-
name: "
|
|
47809
|
-
description: `
|
|
48075
|
+
tool$pendlePosition = {
|
|
48076
|
+
name: "pendle-position",
|
|
48077
|
+
description: `Check User's Market Position
|
|
48078
|
+
|
|
48079
|
+
Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
48080
|
+
args: args37,
|
|
48081
|
+
tool: async (client, args38, ctx) => {
|
|
48082
|
+
const [result, apiCall] = await pendlePosition(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48083
|
+
if (!result.ok) {
|
|
48084
|
+
return {
|
|
48085
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48086
|
+
isError: true
|
|
48087
|
+
};
|
|
48088
|
+
}
|
|
48089
|
+
const value = result.value;
|
|
48090
|
+
return formatResult(value, apiCall);
|
|
48091
|
+
}
|
|
48092
|
+
};
|
|
48093
|
+
});
|
|
48094
|
+
|
|
48095
|
+
// src/funcs/pendlePositions.ts
|
|
48096
|
+
function pendlePositions(client, request, options) {
|
|
48097
|
+
return new APIPromise($do38(client, request, options));
|
|
48098
|
+
}
|
|
48099
|
+
async function $do38(client, request, options) {
|
|
48100
|
+
const parsed = safeParse(request, (value) => PendlePositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48101
|
+
if (!parsed.ok) {
|
|
48102
|
+
return [parsed, { status: "invalid" }];
|
|
48103
|
+
}
|
|
48104
|
+
const payload = parsed.value;
|
|
48105
|
+
const body = null;
|
|
48106
|
+
const path = pathToFunc("/v0/pendle/positions")();
|
|
48107
|
+
const query = encodeFormQuery({
|
|
48108
|
+
block: payload.block,
|
|
48109
|
+
chain: payload.chain,
|
|
48110
|
+
user_address: payload.user_address
|
|
48111
|
+
});
|
|
48112
|
+
const headers = new Headers(compactMap({
|
|
48113
|
+
Accept: "application/json"
|
|
48114
|
+
}));
|
|
48115
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
48116
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
48117
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48118
|
+
const context = {
|
|
48119
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48120
|
+
operationID: "pendle_positions",
|
|
48121
|
+
oAuth2Scopes: [],
|
|
48122
|
+
resolvedSecurity: requestSecurity,
|
|
48123
|
+
securitySource: client._options.apiKeyAuth,
|
|
48124
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48125
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48126
|
+
};
|
|
48127
|
+
const requestRes = client._createRequest(context, {
|
|
48128
|
+
security: requestSecurity,
|
|
48129
|
+
method: "GET",
|
|
48130
|
+
baseURL: options?.serverURL,
|
|
48131
|
+
path,
|
|
48132
|
+
headers,
|
|
48133
|
+
query,
|
|
48134
|
+
body,
|
|
48135
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48136
|
+
}, options);
|
|
48137
|
+
if (!requestRes.ok) {
|
|
48138
|
+
return [requestRes, { status: "invalid" }];
|
|
48139
|
+
}
|
|
48140
|
+
const req = requestRes.value;
|
|
48141
|
+
const doResult = await client._do(req, {
|
|
48142
|
+
context,
|
|
48143
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
48144
|
+
retryConfig: context.retryConfig,
|
|
48145
|
+
retryCodes: context.retryCodes
|
|
48146
|
+
});
|
|
48147
|
+
if (!doResult.ok) {
|
|
48148
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48149
|
+
}
|
|
48150
|
+
const response = doResult.value;
|
|
48151
|
+
const responseFields = {
|
|
48152
|
+
HttpMeta: { Response: response, Request: req }
|
|
48153
|
+
};
|
|
48154
|
+
const [result] = await match(json(200, PendleListUserPositionsResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48155
|
+
if (!result.ok) {
|
|
48156
|
+
return [result, { status: "complete", request: req, response }];
|
|
48157
|
+
}
|
|
48158
|
+
return [result, { status: "complete", request: req, response }];
|
|
48159
|
+
}
|
|
48160
|
+
var init_pendlePositions = __esm(() => {
|
|
48161
|
+
init_encodings();
|
|
48162
|
+
init_matchers();
|
|
48163
|
+
init_primitives();
|
|
48164
|
+
init_schemas();
|
|
48165
|
+
init_security();
|
|
48166
|
+
init_url();
|
|
48167
|
+
init_components();
|
|
48168
|
+
init_errors2();
|
|
48169
|
+
init_operations();
|
|
48170
|
+
init_async();
|
|
48171
|
+
});
|
|
48172
|
+
|
|
48173
|
+
// src/mcp-server/tools/pendlePositions.ts
|
|
48174
|
+
var args38, tool$pendlePositions;
|
|
48175
|
+
var init_pendlePositions2 = __esm(() => {
|
|
48176
|
+
init_pendlePositions();
|
|
48177
|
+
init_operations();
|
|
48178
|
+
init_tools();
|
|
48179
|
+
args38 = {
|
|
48180
|
+
request: PendlePositionsRequest$inboundSchema
|
|
48181
|
+
};
|
|
48182
|
+
tool$pendlePositions = {
|
|
48183
|
+
name: "pendle-positions",
|
|
48184
|
+
description: `List User's Market Positions
|
|
48185
|
+
|
|
48186
|
+
List the user's SY, PT, YT and LP positions for all markets on a given chain.`,
|
|
48187
|
+
args: args38,
|
|
48188
|
+
tool: async (client, args39, ctx) => {
|
|
48189
|
+
const [result, apiCall] = await pendlePositions(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48190
|
+
if (!result.ok) {
|
|
48191
|
+
return {
|
|
48192
|
+
content: [{ type: "text", text: result.error.message }],
|
|
48193
|
+
isError: true
|
|
48194
|
+
};
|
|
48195
|
+
}
|
|
48196
|
+
const value = result.value;
|
|
48197
|
+
return formatResult(value, apiCall);
|
|
48198
|
+
}
|
|
48199
|
+
};
|
|
48200
|
+
});
|
|
48201
|
+
|
|
48202
|
+
// src/funcs/skyBuy.ts
|
|
48203
|
+
function skyBuy(client, request, options) {
|
|
48204
|
+
return new APIPromise($do39(client, request, options));
|
|
48205
|
+
}
|
|
48206
|
+
async function $do39(client, request, options) {
|
|
48207
|
+
const parsed = safeParse(request, (value) => SkyBuyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48208
|
+
if (!parsed.ok) {
|
|
48209
|
+
return [parsed, { status: "invalid" }];
|
|
48210
|
+
}
|
|
48211
|
+
const payload = parsed.value;
|
|
48212
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
48213
|
+
const path = pathToFunc("/v0/sky/buy")();
|
|
48214
|
+
const headers = new Headers(compactMap({
|
|
48215
|
+
"Content-Type": "application/json",
|
|
48216
|
+
Accept: "application/json"
|
|
48217
|
+
}));
|
|
48218
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
48219
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
48220
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
48221
|
+
const context = {
|
|
48222
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
48223
|
+
operationID: "sky_buy",
|
|
48224
|
+
oAuth2Scopes: [],
|
|
48225
|
+
resolvedSecurity: requestSecurity,
|
|
48226
|
+
securitySource: client._options.apiKeyAuth,
|
|
48227
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
48228
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
48229
|
+
};
|
|
48230
|
+
const requestRes = client._createRequest(context, {
|
|
48231
|
+
security: requestSecurity,
|
|
48232
|
+
method: "POST",
|
|
48233
|
+
baseURL: options?.serverURL,
|
|
48234
|
+
path,
|
|
48235
|
+
headers,
|
|
48236
|
+
body,
|
|
48237
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
48238
|
+
}, options);
|
|
48239
|
+
if (!requestRes.ok) {
|
|
48240
|
+
return [requestRes, { status: "invalid" }];
|
|
48241
|
+
}
|
|
48242
|
+
const req = requestRes.value;
|
|
48243
|
+
const doResult = await client._do(req, {
|
|
48244
|
+
context,
|
|
48245
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
48246
|
+
retryConfig: context.retryConfig,
|
|
48247
|
+
retryCodes: context.retryCodes
|
|
48248
|
+
});
|
|
48249
|
+
if (!doResult.ok) {
|
|
48250
|
+
return [doResult, { status: "request-error", request: req }];
|
|
48251
|
+
}
|
|
48252
|
+
const response = doResult.value;
|
|
48253
|
+
const responseFields = {
|
|
48254
|
+
HttpMeta: { Response: response, Request: req }
|
|
48255
|
+
};
|
|
48256
|
+
const [result] = await match(json(200, TxResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
48257
|
+
if (!result.ok) {
|
|
48258
|
+
return [result, { status: "complete", request: req, response }];
|
|
48259
|
+
}
|
|
48260
|
+
return [result, { status: "complete", request: req, response }];
|
|
48261
|
+
}
|
|
48262
|
+
var init_skyBuy = __esm(() => {
|
|
48263
|
+
init_encodings();
|
|
48264
|
+
init_matchers();
|
|
48265
|
+
init_primitives();
|
|
48266
|
+
init_schemas();
|
|
48267
|
+
init_security();
|
|
48268
|
+
init_url();
|
|
48269
|
+
init_components();
|
|
48270
|
+
init_errors2();
|
|
48271
|
+
init_async();
|
|
48272
|
+
});
|
|
48273
|
+
|
|
48274
|
+
// src/mcp-server/tools/skyBuy.ts
|
|
48275
|
+
var args39, tool$skyBuy;
|
|
48276
|
+
var init_skyBuy2 = __esm(() => {
|
|
48277
|
+
init_skyBuy();
|
|
48278
|
+
init_components();
|
|
48279
|
+
init_tools();
|
|
48280
|
+
args39 = {
|
|
48281
|
+
request: SkyBuyRequest$inboundSchema
|
|
48282
|
+
};
|
|
48283
|
+
tool$skyBuy = {
|
|
48284
|
+
name: "sky-buy",
|
|
48285
|
+
description: `Buy USDS
|
|
47810
48286
|
|
|
47811
48287
|
Buy USDS with DAI or USDC on a 1:1 basis. There are no fees.
|
|
47812
48288
|
|
|
@@ -47815,9 +48291,9 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
|
|
|
47815
48291
|
|
|
47816
48292
|
If buying with USDC, user will need to set an allowance on the USDC contract for the
|
|
47817
48293
|
'SkyDaiUsdsConverter' contract beforehand.`,
|
|
47818
|
-
args:
|
|
47819
|
-
tool: async (client,
|
|
47820
|
-
const [result, apiCall] = await skyBuy(client,
|
|
48294
|
+
args: args39,
|
|
48295
|
+
tool: async (client, args40, ctx) => {
|
|
48296
|
+
const [result, apiCall] = await skyBuy(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47821
48297
|
if (!result.ok) {
|
|
47822
48298
|
return {
|
|
47823
48299
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47832,9 +48308,9 @@ If buying with USDC, user will need to set an allowance on the USDC contract for
|
|
|
47832
48308
|
|
|
47833
48309
|
// src/funcs/skyDeposit.ts
|
|
47834
48310
|
function skyDeposit(client, request, options) {
|
|
47835
|
-
return new APIPromise($
|
|
48311
|
+
return new APIPromise($do40(client, request, options));
|
|
47836
48312
|
}
|
|
47837
|
-
async function $
|
|
48313
|
+
async function $do40(client, request, options) {
|
|
47838
48314
|
const parsed = safeParse(request, (value) => SkyDepositRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47839
48315
|
if (!parsed.ok) {
|
|
47840
48316
|
return [parsed, { status: "invalid" }];
|
|
@@ -47903,12 +48379,12 @@ var init_skyDeposit = __esm(() => {
|
|
|
47903
48379
|
});
|
|
47904
48380
|
|
|
47905
48381
|
// src/mcp-server/tools/skyDeposit.ts
|
|
47906
|
-
var
|
|
48382
|
+
var args40, tool$skyDeposit;
|
|
47907
48383
|
var init_skyDeposit2 = __esm(() => {
|
|
47908
48384
|
init_skyDeposit();
|
|
47909
48385
|
init_components();
|
|
47910
48386
|
init_tools();
|
|
47911
|
-
|
|
48387
|
+
args40 = {
|
|
47912
48388
|
request: SkyDepositRequest$inboundSchema
|
|
47913
48389
|
};
|
|
47914
48390
|
tool$skyDeposit = {
|
|
@@ -47918,9 +48394,9 @@ var init_skyDeposit2 = __esm(() => {
|
|
|
47918
48394
|
Deposit USDS for sUSDS to earn yield.
|
|
47919
48395
|
|
|
47920
48396
|
There are no fees.`,
|
|
47921
|
-
args:
|
|
47922
|
-
tool: async (client,
|
|
47923
|
-
const [result, apiCall] = await skyDeposit(client,
|
|
48397
|
+
args: args40,
|
|
48398
|
+
tool: async (client, args41, ctx) => {
|
|
48399
|
+
const [result, apiCall] = await skyDeposit(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47924
48400
|
if (!result.ok) {
|
|
47925
48401
|
return {
|
|
47926
48402
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47935,9 +48411,9 @@ There are no fees.`,
|
|
|
47935
48411
|
|
|
47936
48412
|
// src/funcs/skyPosition.ts
|
|
47937
48413
|
function skyPosition(client, request, options) {
|
|
47938
|
-
return new APIPromise($
|
|
48414
|
+
return new APIPromise($do41(client, request, options));
|
|
47939
48415
|
}
|
|
47940
|
-
async function $
|
|
48416
|
+
async function $do41(client, request, options) {
|
|
47941
48417
|
const parsed = safeParse(request, (value) => SkyPositionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47942
48418
|
if (!parsed.ok) {
|
|
47943
48419
|
return [parsed, { status: "invalid" }];
|
|
@@ -48012,12 +48488,12 @@ var init_skyPosition = __esm(() => {
|
|
|
48012
48488
|
});
|
|
48013
48489
|
|
|
48014
48490
|
// src/mcp-server/tools/skyPosition.ts
|
|
48015
|
-
var
|
|
48491
|
+
var args41, tool$skyPosition;
|
|
48016
48492
|
var init_skyPosition2 = __esm(() => {
|
|
48017
48493
|
init_skyPosition();
|
|
48018
48494
|
init_operations();
|
|
48019
48495
|
init_tools();
|
|
48020
|
-
|
|
48496
|
+
args41 = {
|
|
48021
48497
|
request: SkyPositionRequest$inboundSchema
|
|
48022
48498
|
};
|
|
48023
48499
|
tool$skyPosition = {
|
|
@@ -48025,9 +48501,9 @@ var init_skyPosition2 = __esm(() => {
|
|
|
48025
48501
|
description: `Check USDS Position
|
|
48026
48502
|
|
|
48027
48503
|
Check the USDS overall position.`,
|
|
48028
|
-
args:
|
|
48029
|
-
tool: async (client,
|
|
48030
|
-
const [result, apiCall] = await skyPosition(client,
|
|
48504
|
+
args: args41,
|
|
48505
|
+
tool: async (client, args42, ctx) => {
|
|
48506
|
+
const [result, apiCall] = await skyPosition(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48031
48507
|
if (!result.ok) {
|
|
48032
48508
|
return {
|
|
48033
48509
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48042,9 +48518,9 @@ Check the USDS overall position.`,
|
|
|
48042
48518
|
|
|
48043
48519
|
// src/funcs/skySell.ts
|
|
48044
48520
|
function skySell(client, request, options) {
|
|
48045
|
-
return new APIPromise($
|
|
48521
|
+
return new APIPromise($do42(client, request, options));
|
|
48046
48522
|
}
|
|
48047
|
-
async function $
|
|
48523
|
+
async function $do42(client, request, options) {
|
|
48048
48524
|
const parsed = safeParse(request, (value) => SkySellRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48049
48525
|
if (!parsed.ok) {
|
|
48050
48526
|
return [parsed, { status: "invalid" }];
|
|
@@ -48113,12 +48589,12 @@ var init_skySell = __esm(() => {
|
|
|
48113
48589
|
});
|
|
48114
48590
|
|
|
48115
48591
|
// src/mcp-server/tools/skySell.ts
|
|
48116
|
-
var
|
|
48592
|
+
var args42, tool$skySell;
|
|
48117
48593
|
var init_skySell2 = __esm(() => {
|
|
48118
48594
|
init_skySell();
|
|
48119
48595
|
init_components();
|
|
48120
48596
|
init_tools();
|
|
48121
|
-
|
|
48597
|
+
args42 = {
|
|
48122
48598
|
request: SkySellRequest$inboundSchema
|
|
48123
48599
|
};
|
|
48124
48600
|
tool$skySell = {
|
|
@@ -48132,9 +48608,9 @@ If swapping to DAI, user will need to set an allowance on the USDS contract for
|
|
|
48132
48608
|
|
|
48133
48609
|
If swapping to USDC, user will need to set an allowance on the USDS contract for the
|
|
48134
48610
|
'SkyUsdcUsdsConverter' contract beforehand.`,
|
|
48135
|
-
args:
|
|
48136
|
-
tool: async (client,
|
|
48137
|
-
const [result, apiCall] = await skySell(client,
|
|
48611
|
+
args: args42,
|
|
48612
|
+
tool: async (client, args43, ctx) => {
|
|
48613
|
+
const [result, apiCall] = await skySell(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48138
48614
|
if (!result.ok) {
|
|
48139
48615
|
return {
|
|
48140
48616
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48149,9 +48625,9 @@ If swapping to USDC, user will need to set an allowance on the USDS contract for
|
|
|
48149
48625
|
|
|
48150
48626
|
// src/funcs/skyWithdraw.ts
|
|
48151
48627
|
function skyWithdraw(client, request, options) {
|
|
48152
|
-
return new APIPromise($
|
|
48628
|
+
return new APIPromise($do43(client, request, options));
|
|
48153
48629
|
}
|
|
48154
|
-
async function $
|
|
48630
|
+
async function $do43(client, request, options) {
|
|
48155
48631
|
const parsed = safeParse(request, (value) => SkyWithdrawRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48156
48632
|
if (!parsed.ok) {
|
|
48157
48633
|
return [parsed, { status: "invalid" }];
|
|
@@ -48220,12 +48696,12 @@ var init_skyWithdraw = __esm(() => {
|
|
|
48220
48696
|
});
|
|
48221
48697
|
|
|
48222
48698
|
// src/mcp-server/tools/skyWithdraw.ts
|
|
48223
|
-
var
|
|
48699
|
+
var args43, tool$skyWithdraw;
|
|
48224
48700
|
var init_skyWithdraw2 = __esm(() => {
|
|
48225
48701
|
init_skyWithdraw();
|
|
48226
48702
|
init_components();
|
|
48227
48703
|
init_tools();
|
|
48228
|
-
|
|
48704
|
+
args43 = {
|
|
48229
48705
|
request: SkyWithdrawRequest$inboundSchema
|
|
48230
48706
|
};
|
|
48231
48707
|
tool$skyWithdraw = {
|
|
@@ -48233,9 +48709,9 @@ var init_skyWithdraw2 = __esm(() => {
|
|
|
48233
48709
|
description: `Withdraw USDS
|
|
48234
48710
|
|
|
48235
48711
|
Withdraw USDS for sUSDS to stop earning yield.`,
|
|
48236
|
-
args:
|
|
48237
|
-
tool: async (client,
|
|
48238
|
-
const [result, apiCall] = await skyWithdraw(client,
|
|
48712
|
+
args: args43,
|
|
48713
|
+
tool: async (client, args44, ctx) => {
|
|
48714
|
+
const [result, apiCall] = await skyWithdraw(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48239
48715
|
if (!result.ok) {
|
|
48240
48716
|
return {
|
|
48241
48717
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48250,9 +48726,9 @@ Withdraw USDS for sUSDS to stop earning yield.`,
|
|
|
48250
48726
|
|
|
48251
48727
|
// src/funcs/smartAccountAccountBatchedUserOperations.ts
|
|
48252
48728
|
function smartAccountAccountBatchedUserOperations(client, request, options) {
|
|
48253
|
-
return new APIPromise($
|
|
48729
|
+
return new APIPromise($do44(client, request, options));
|
|
48254
48730
|
}
|
|
48255
|
-
async function $
|
|
48731
|
+
async function $do44(client, request, options) {
|
|
48256
48732
|
const parsed = safeParse(request, (value) => BatchedUserOperationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48257
48733
|
if (!parsed.ok) {
|
|
48258
48734
|
return [parsed, { status: "invalid" }];
|
|
@@ -48321,12 +48797,12 @@ var init_smartAccountAccountBatchedUserOperations = __esm(() => {
|
|
|
48321
48797
|
});
|
|
48322
48798
|
|
|
48323
48799
|
// src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts
|
|
48324
|
-
var
|
|
48800
|
+
var args44, tool$smartAccountAccountBatchedUserOperations;
|
|
48325
48801
|
var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
48326
48802
|
init_smartAccountAccountBatchedUserOperations();
|
|
48327
48803
|
init_components();
|
|
48328
48804
|
init_tools();
|
|
48329
|
-
|
|
48805
|
+
args44 = {
|
|
48330
48806
|
request: BatchedUserOperationsRequest$inboundSchema
|
|
48331
48807
|
};
|
|
48332
48808
|
tool$smartAccountAccountBatchedUserOperations = {
|
|
@@ -48334,9 +48810,9 @@ var init_smartAccountAccountBatchedUserOperations2 = __esm(() => {
|
|
|
48334
48810
|
description: `Get Smart Account Batched User Operations
|
|
48335
48811
|
|
|
48336
48812
|
Generate a list of user operations for smart account batching.`,
|
|
48337
|
-
args:
|
|
48338
|
-
tool: async (client,
|
|
48339
|
-
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client,
|
|
48813
|
+
args: args44,
|
|
48814
|
+
tool: async (client, args45, ctx) => {
|
|
48815
|
+
const [result, apiCall] = await smartAccountAccountBatchedUserOperations(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48340
48816
|
if (!result.ok) {
|
|
48341
48817
|
return {
|
|
48342
48818
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48351,9 +48827,9 @@ Generate a list of user operations for smart account batching.`,
|
|
|
48351
48827
|
|
|
48352
48828
|
// src/funcs/tokenAddress.ts
|
|
48353
48829
|
function tokenAddress(client, request, options) {
|
|
48354
|
-
return new APIPromise($
|
|
48830
|
+
return new APIPromise($do45(client, request, options));
|
|
48355
48831
|
}
|
|
48356
|
-
async function $
|
|
48832
|
+
async function $do45(client, request, options) {
|
|
48357
48833
|
const parsed = safeParse(request, (value) => TokenAddressRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48358
48834
|
if (!parsed.ok) {
|
|
48359
48835
|
return [parsed, { status: "invalid" }];
|
|
@@ -48428,12 +48904,12 @@ var init_tokenAddress = __esm(() => {
|
|
|
48428
48904
|
});
|
|
48429
48905
|
|
|
48430
48906
|
// src/mcp-server/tools/tokenAddress.ts
|
|
48431
|
-
var
|
|
48907
|
+
var args45, tool$tokenAddress;
|
|
48432
48908
|
var init_tokenAddress2 = __esm(() => {
|
|
48433
48909
|
init_tokenAddress();
|
|
48434
48910
|
init_operations();
|
|
48435
48911
|
init_tools();
|
|
48436
|
-
|
|
48912
|
+
args45 = {
|
|
48437
48913
|
request: TokenAddressRequest$inboundSchema
|
|
48438
48914
|
};
|
|
48439
48915
|
tool$tokenAddress = {
|
|
@@ -48441,9 +48917,9 @@ var init_tokenAddress2 = __esm(() => {
|
|
|
48441
48917
|
description: `Token Address
|
|
48442
48918
|
|
|
48443
48919
|
This endpoint retrieves the address for a token supported by us.`,
|
|
48444
|
-
args:
|
|
48445
|
-
tool: async (client,
|
|
48446
|
-
const [result, apiCall] = await tokenAddress(client,
|
|
48920
|
+
args: args45,
|
|
48921
|
+
tool: async (client, args46, ctx) => {
|
|
48922
|
+
const [result, apiCall] = await tokenAddress(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48447
48923
|
if (!result.ok) {
|
|
48448
48924
|
return {
|
|
48449
48925
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48458,9 +48934,9 @@ This endpoint retrieves the address for a token supported by us.`,
|
|
|
48458
48934
|
|
|
48459
48935
|
// src/funcs/tokenBalance.ts
|
|
48460
48936
|
function tokenBalance(client, request, options) {
|
|
48461
|
-
return new APIPromise($
|
|
48937
|
+
return new APIPromise($do46(client, request, options));
|
|
48462
48938
|
}
|
|
48463
|
-
async function $
|
|
48939
|
+
async function $do46(client, request, options) {
|
|
48464
48940
|
const parsed = safeParse(request, (value) => TokenBalanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48465
48941
|
if (!parsed.ok) {
|
|
48466
48942
|
return [parsed, { status: "invalid" }];
|
|
@@ -48536,12 +49012,12 @@ var init_tokenBalance = __esm(() => {
|
|
|
48536
49012
|
});
|
|
48537
49013
|
|
|
48538
49014
|
// src/mcp-server/tools/tokenBalance.ts
|
|
48539
|
-
var
|
|
49015
|
+
var args46, tool$tokenBalance;
|
|
48540
49016
|
var init_tokenBalance2 = __esm(() => {
|
|
48541
49017
|
init_tokenBalance();
|
|
48542
49018
|
init_operations();
|
|
48543
49019
|
init_tools();
|
|
48544
|
-
|
|
49020
|
+
args46 = {
|
|
48545
49021
|
request: TokenBalanceRequest$inboundSchema
|
|
48546
49022
|
};
|
|
48547
49023
|
tool$tokenBalance = {
|
|
@@ -48549,9 +49025,9 @@ var init_tokenBalance2 = __esm(() => {
|
|
|
48549
49025
|
description: `Token Balance
|
|
48550
49026
|
|
|
48551
49027
|
Returns the balance of a specific ERC20 token for a given user address.`,
|
|
48552
|
-
args:
|
|
48553
|
-
tool: async (client,
|
|
48554
|
-
const [result, apiCall] = await tokenBalance(client,
|
|
49028
|
+
args: args46,
|
|
49029
|
+
tool: async (client, args47, ctx) => {
|
|
49030
|
+
const [result, apiCall] = await tokenBalance(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48555
49031
|
if (!result.ok) {
|
|
48556
49032
|
return {
|
|
48557
49033
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48566,9 +49042,9 @@ Returns the balance of a specific ERC20 token for a given user address.`,
|
|
|
48566
49042
|
|
|
48567
49043
|
// src/funcs/tokenPrice.ts
|
|
48568
49044
|
function tokenPrice(client, request, options) {
|
|
48569
|
-
return new APIPromise($
|
|
49045
|
+
return new APIPromise($do47(client, request, options));
|
|
48570
49046
|
}
|
|
48571
|
-
async function $
|
|
49047
|
+
async function $do47(client, request, options) {
|
|
48572
49048
|
const parsed = safeParse(request, (value) => TokenPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48573
49049
|
if (!parsed.ok) {
|
|
48574
49050
|
return [parsed, { status: "invalid" }];
|
|
@@ -48642,12 +49118,12 @@ var init_tokenPrice = __esm(() => {
|
|
|
48642
49118
|
});
|
|
48643
49119
|
|
|
48644
49120
|
// src/mcp-server/tools/tokenPrice.ts
|
|
48645
|
-
var
|
|
49121
|
+
var args47, tool$tokenPrice;
|
|
48646
49122
|
var init_tokenPrice2 = __esm(() => {
|
|
48647
49123
|
init_tokenPrice();
|
|
48648
49124
|
init_operations();
|
|
48649
49125
|
init_tools();
|
|
48650
|
-
|
|
49126
|
+
args47 = {
|
|
48651
49127
|
request: TokenPriceRequest$inboundSchema
|
|
48652
49128
|
};
|
|
48653
49129
|
tool$tokenPrice = {
|
|
@@ -48659,9 +49135,9 @@ Retrieves the price of a token in USD using Chainlink's on-chain price feeds.
|
|
|
48659
49135
|
Chainlink is a decentralized oracle that aggregates price data from off-chain
|
|
48660
49136
|
sources. This ensures the price is tamper-resistant but the price might be stale
|
|
48661
49137
|
with the update frequency of the oracle.`,
|
|
48662
|
-
args:
|
|
48663
|
-
tool: async (client,
|
|
48664
|
-
const [result, apiCall] = await tokenPrice(client,
|
|
49138
|
+
args: args47,
|
|
49139
|
+
tool: async (client, args48, ctx) => {
|
|
49140
|
+
const [result, apiCall] = await tokenPrice(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48665
49141
|
if (!result.ok) {
|
|
48666
49142
|
return {
|
|
48667
49143
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48676,9 +49152,9 @@ with the update frequency of the oracle.`,
|
|
|
48676
49152
|
|
|
48677
49153
|
// src/funcs/tokenTransfer.ts
|
|
48678
49154
|
function tokenTransfer(client, request, options) {
|
|
48679
|
-
return new APIPromise($
|
|
49155
|
+
return new APIPromise($do48(client, request, options));
|
|
48680
49156
|
}
|
|
48681
|
-
async function $
|
|
49157
|
+
async function $do48(client, request, options) {
|
|
48682
49158
|
const parsed = safeParse(request, (value) => TokenTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48683
49159
|
if (!parsed.ok) {
|
|
48684
49160
|
return [parsed, { status: "invalid" }];
|
|
@@ -48747,12 +49223,12 @@ var init_tokenTransfer = __esm(() => {
|
|
|
48747
49223
|
});
|
|
48748
49224
|
|
|
48749
49225
|
// src/mcp-server/tools/tokenTransfer.ts
|
|
48750
|
-
var
|
|
49226
|
+
var args48, tool$tokenTransfer;
|
|
48751
49227
|
var init_tokenTransfer2 = __esm(() => {
|
|
48752
49228
|
init_tokenTransfer();
|
|
48753
49229
|
init_components();
|
|
48754
49230
|
init_tools();
|
|
48755
|
-
|
|
49231
|
+
args48 = {
|
|
48756
49232
|
request: TokenTransferRequest$inboundSchema
|
|
48757
49233
|
};
|
|
48758
49234
|
tool$tokenTransfer = {
|
|
@@ -48760,9 +49236,9 @@ var init_tokenTransfer2 = __esm(() => {
|
|
|
48760
49236
|
description: `Transfer ETH or ERC20 Tokens.
|
|
48761
49237
|
|
|
48762
49238
|
Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
48763
|
-
args:
|
|
48764
|
-
tool: async (client,
|
|
48765
|
-
const [result, apiCall] = await tokenTransfer(client,
|
|
49239
|
+
args: args48,
|
|
49240
|
+
tool: async (client, args49, ctx) => {
|
|
49241
|
+
const [result, apiCall] = await tokenTransfer(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48766
49242
|
if (!result.ok) {
|
|
48767
49243
|
return {
|
|
48768
49244
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48777,9 +49253,9 @@ Sends native ETH or ERC20 tokens from the sender's address to another address.`,
|
|
|
48777
49253
|
|
|
48778
49254
|
// src/funcs/transactionBatchingAaveLoop.ts
|
|
48779
49255
|
function transactionBatchingAaveLoop(client, request, options) {
|
|
48780
|
-
return new APIPromise($
|
|
49256
|
+
return new APIPromise($do49(client, request, options));
|
|
48781
49257
|
}
|
|
48782
|
-
async function $
|
|
49258
|
+
async function $do49(client, request, options) {
|
|
48783
49259
|
const parsed = safeParse(request, (value) => AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48784
49260
|
if (!parsed.ok) {
|
|
48785
49261
|
return [parsed, { status: "invalid" }];
|
|
@@ -48848,12 +49324,12 @@ var init_transactionBatchingAaveLoop = __esm(() => {
|
|
|
48848
49324
|
});
|
|
48849
49325
|
|
|
48850
49326
|
// src/mcp-server/tools/transactionBatchingAaveLoop.ts
|
|
48851
|
-
var
|
|
49327
|
+
var args49, tool$transactionBatchingAaveLoop;
|
|
48852
49328
|
var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
48853
49329
|
init_transactionBatchingAaveLoop();
|
|
48854
49330
|
init_components();
|
|
48855
49331
|
init_tools();
|
|
48856
|
-
|
|
49332
|
+
args49 = {
|
|
48857
49333
|
request: AaveLoopRequest$inboundSchema
|
|
48858
49334
|
};
|
|
48859
49335
|
tool$transactionBatchingAaveLoop = {
|
|
@@ -48871,9 +49347,9 @@ This endpoint creates a multicall transaction that performs a series of operatio
|
|
|
48871
49347
|
- Supplies the swapped tokens
|
|
48872
49348
|
|
|
48873
49349
|
The transaction must be authorized using the /authorization endpoint to prevent replay attacks.`,
|
|
48874
|
-
args:
|
|
48875
|
-
tool: async (client,
|
|
48876
|
-
const [result, apiCall] = await transactionBatchingAaveLoop(client,
|
|
49350
|
+
args: args49,
|
|
49351
|
+
tool: async (client, args50, ctx) => {
|
|
49352
|
+
const [result, apiCall] = await transactionBatchingAaveLoop(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48877
49353
|
if (!result.ok) {
|
|
48878
49354
|
return {
|
|
48879
49355
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48888,9 +49364,9 @@ The transaction must be authorized using the /authorization endpoint to prevent
|
|
|
48888
49364
|
|
|
48889
49365
|
// src/funcs/transactionBatchingAuthorization.ts
|
|
48890
49366
|
function transactionBatchingAuthorization(client, request, options) {
|
|
48891
|
-
return new APIPromise($
|
|
49367
|
+
return new APIPromise($do50(client, request, options));
|
|
48892
49368
|
}
|
|
48893
|
-
async function $
|
|
49369
|
+
async function $do50(client, request, options) {
|
|
48894
49370
|
const parsed = safeParse(request, (value) => MulticallAuthorizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48895
49371
|
if (!parsed.ok) {
|
|
48896
49372
|
return [parsed, { status: "invalid" }];
|
|
@@ -48959,12 +49435,12 @@ var init_transactionBatchingAuthorization = __esm(() => {
|
|
|
48959
49435
|
});
|
|
48960
49436
|
|
|
48961
49437
|
// src/mcp-server/tools/transactionBatchingAuthorization.ts
|
|
48962
|
-
var
|
|
49438
|
+
var args50, tool$transactionBatchingAuthorization;
|
|
48963
49439
|
var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
48964
49440
|
init_transactionBatchingAuthorization();
|
|
48965
49441
|
init_components();
|
|
48966
49442
|
init_tools();
|
|
48967
|
-
|
|
49443
|
+
args50 = {
|
|
48968
49444
|
request: MulticallAuthorizationRequest$inboundSchema
|
|
48969
49445
|
};
|
|
48970
49446
|
tool$transactionBatchingAuthorization = {
|
|
@@ -48977,9 +49453,9 @@ This authorization is required to prevent replay attacks and ensure transaction
|
|
|
48977
49453
|
ordering when batching multiple actions into a single transaction. The authorization
|
|
48978
49454
|
includes a nonce and chain ID to guarantee transaction uniqueness and proper network
|
|
48979
49455
|
targeting.`,
|
|
48980
|
-
args:
|
|
48981
|
-
tool: async (client,
|
|
48982
|
-
const [result, apiCall] = await transactionBatchingAuthorization(client,
|
|
49456
|
+
args: args50,
|
|
49457
|
+
tool: async (client, args51, ctx) => {
|
|
49458
|
+
const [result, apiCall] = await transactionBatchingAuthorization(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48983
49459
|
if (!result.ok) {
|
|
48984
49460
|
return {
|
|
48985
49461
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48994,9 +49470,9 @@ targeting.`,
|
|
|
48994
49470
|
|
|
48995
49471
|
// src/funcs/transactionBatchingExecute.ts
|
|
48996
49472
|
function transactionBatchingExecute(client, request, options) {
|
|
48997
|
-
return new APIPromise($
|
|
49473
|
+
return new APIPromise($do51(client, request, options));
|
|
48998
49474
|
}
|
|
48999
|
-
async function $
|
|
49475
|
+
async function $do51(client, request, options) {
|
|
49000
49476
|
const parsed = safeParse(request, (value) => MulticallExecuteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49001
49477
|
if (!parsed.ok) {
|
|
49002
49478
|
return [parsed, { status: "invalid" }];
|
|
@@ -49065,12 +49541,12 @@ var init_transactionBatchingExecute = __esm(() => {
|
|
|
49065
49541
|
});
|
|
49066
49542
|
|
|
49067
49543
|
// src/mcp-server/tools/transactionBatchingExecute.ts
|
|
49068
|
-
var
|
|
49544
|
+
var args51, tool$transactionBatchingExecute;
|
|
49069
49545
|
var init_transactionBatchingExecute2 = __esm(() => {
|
|
49070
49546
|
init_transactionBatchingExecute();
|
|
49071
49547
|
init_components();
|
|
49072
49548
|
init_tools();
|
|
49073
|
-
|
|
49549
|
+
args51 = {
|
|
49074
49550
|
request: MulticallExecuteRequest$inboundSchema
|
|
49075
49551
|
};
|
|
49076
49552
|
tool$transactionBatchingExecute = {
|
|
@@ -49083,9 +49559,9 @@ This endpoint allows bundling multiple contract calls into a single atomic
|
|
|
49083
49559
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
49084
49560
|
together. The transaction must be authorized using the /authorization endpoint to
|
|
49085
49561
|
prevent replay attacks.`,
|
|
49086
|
-
args:
|
|
49087
|
-
tool: async (client,
|
|
49088
|
-
const [result, apiCall] = await transactionBatchingExecute(client,
|
|
49562
|
+
args: args51,
|
|
49563
|
+
tool: async (client, args52, ctx) => {
|
|
49564
|
+
const [result, apiCall] = await transactionBatchingExecute(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49089
49565
|
if (!result.ok) {
|
|
49090
49566
|
return {
|
|
49091
49567
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49100,9 +49576,9 @@ prevent replay attacks.`,
|
|
|
49100
49576
|
|
|
49101
49577
|
// src/funcs/uniswapV3LiquidityProvisionIncrease.ts
|
|
49102
49578
|
function uniswapV3LiquidityProvisionIncrease(client, request, options) {
|
|
49103
|
-
return new APIPromise($
|
|
49579
|
+
return new APIPromise($do52(client, request, options));
|
|
49104
49580
|
}
|
|
49105
|
-
async function $
|
|
49581
|
+
async function $do52(client, request, options) {
|
|
49106
49582
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49107
49583
|
if (!parsed.ok) {
|
|
49108
49584
|
return [parsed, { status: "invalid" }];
|
|
@@ -49171,12 +49647,12 @@ var init_uniswapV3LiquidityProvisionIncrease = __esm(() => {
|
|
|
49171
49647
|
});
|
|
49172
49648
|
|
|
49173
49649
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionIncrease.ts
|
|
49174
|
-
var
|
|
49650
|
+
var args52, tool$uniswapV3LiquidityProvisionIncrease;
|
|
49175
49651
|
var init_uniswapV3LiquidityProvisionIncrease2 = __esm(() => {
|
|
49176
49652
|
init_uniswapV3LiquidityProvisionIncrease();
|
|
49177
49653
|
init_components();
|
|
49178
49654
|
init_tools();
|
|
49179
|
-
|
|
49655
|
+
args52 = {
|
|
49180
49656
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
49181
49657
|
};
|
|
49182
49658
|
tool$uniswapV3LiquidityProvisionIncrease = {
|
|
@@ -49192,9 +49668,9 @@ beneficial for users who wish to enhance their potential earnings from trading f
|
|
|
49192
49668
|
within the pool. The endpoint requires details such as the token pair, additional
|
|
49193
49669
|
amount to be added, and any other parameters necessary for the liquidity increase
|
|
49194
49670
|
process.`,
|
|
49195
|
-
args:
|
|
49196
|
-
tool: async (client,
|
|
49197
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client,
|
|
49671
|
+
args: args52,
|
|
49672
|
+
tool: async (client, args53, ctx) => {
|
|
49673
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionIncrease(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49198
49674
|
if (!result.ok) {
|
|
49199
49675
|
return {
|
|
49200
49676
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49209,9 +49685,9 @@ process.`,
|
|
|
49209
49685
|
|
|
49210
49686
|
// src/funcs/uniswapV3LiquidityProvisionInRange.ts
|
|
49211
49687
|
function uniswapV3LiquidityProvisionInRange(client, request, options) {
|
|
49212
|
-
return new APIPromise($
|
|
49688
|
+
return new APIPromise($do53(client, request, options));
|
|
49213
49689
|
}
|
|
49214
|
-
async function $
|
|
49690
|
+
async function $do53(client, request, options) {
|
|
49215
49691
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49216
49692
|
if (!parsed.ok) {
|
|
49217
49693
|
return [parsed, { status: "invalid" }];
|
|
@@ -49286,12 +49762,12 @@ var init_uniswapV3LiquidityProvisionInRange = __esm(() => {
|
|
|
49286
49762
|
});
|
|
49287
49763
|
|
|
49288
49764
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionInRange.ts
|
|
49289
|
-
var
|
|
49765
|
+
var args53, tool$uniswapV3LiquidityProvisionInRange;
|
|
49290
49766
|
var init_uniswapV3LiquidityProvisionInRange2 = __esm(() => {
|
|
49291
49767
|
init_uniswapV3LiquidityProvisionInRange();
|
|
49292
49768
|
init_operations();
|
|
49293
49769
|
init_tools();
|
|
49294
|
-
|
|
49770
|
+
args53 = {
|
|
49295
49771
|
request: UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
49296
49772
|
};
|
|
49297
49773
|
tool$uniswapV3LiquidityProvisionInRange = {
|
|
@@ -49306,9 +49782,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
49306
49782
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
49307
49783
|
they are actively participating in the trading activities within the liquidity pool
|
|
49308
49784
|
and earning trading fees.`,
|
|
49309
|
-
args:
|
|
49310
|
-
tool: async (client,
|
|
49311
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client,
|
|
49785
|
+
args: args53,
|
|
49786
|
+
tool: async (client, args54, ctx) => {
|
|
49787
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionInRange(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49312
49788
|
if (!result.ok) {
|
|
49313
49789
|
return {
|
|
49314
49790
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49323,9 +49799,9 @@ and earning trading fees.`,
|
|
|
49323
49799
|
|
|
49324
49800
|
// src/funcs/uniswapV3LiquidityProvisionMint.ts
|
|
49325
49801
|
function uniswapV3LiquidityProvisionMint(client, request, options) {
|
|
49326
|
-
return new APIPromise($
|
|
49802
|
+
return new APIPromise($do54(client, request, options));
|
|
49327
49803
|
}
|
|
49328
|
-
async function $
|
|
49804
|
+
async function $do54(client, request, options) {
|
|
49329
49805
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49330
49806
|
if (!parsed.ok) {
|
|
49331
49807
|
return [parsed, { status: "invalid" }];
|
|
@@ -49394,12 +49870,12 @@ var init_uniswapV3LiquidityProvisionMint = __esm(() => {
|
|
|
49394
49870
|
});
|
|
49395
49871
|
|
|
49396
49872
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionMint.ts
|
|
49397
|
-
var
|
|
49873
|
+
var args54, tool$uniswapV3LiquidityProvisionMint;
|
|
49398
49874
|
var init_uniswapV3LiquidityProvisionMint2 = __esm(() => {
|
|
49399
49875
|
init_uniswapV3LiquidityProvisionMint();
|
|
49400
49876
|
init_components();
|
|
49401
49877
|
init_tools();
|
|
49402
|
-
|
|
49878
|
+
args54 = {
|
|
49403
49879
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
49404
49880
|
};
|
|
49405
49881
|
tool$uniswapV3LiquidityProvisionMint = {
|
|
@@ -49415,9 +49891,9 @@ This operation is essential for users looking to participate in liquidity provis
|
|
|
49415
49891
|
enabling them to earn fees from trades that occur within the pool. The endpoint
|
|
49416
49892
|
requires details such as the token pair, amount, and any additional parameters
|
|
49417
49893
|
needed for the minting process.`,
|
|
49418
|
-
args:
|
|
49419
|
-
tool: async (client,
|
|
49420
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client,
|
|
49894
|
+
args: args54,
|
|
49895
|
+
tool: async (client, args55, ctx) => {
|
|
49896
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionMint(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49421
49897
|
if (!result.ok) {
|
|
49422
49898
|
return {
|
|
49423
49899
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49432,9 +49908,9 @@ needed for the minting process.`,
|
|
|
49432
49908
|
|
|
49433
49909
|
// src/funcs/uniswapV3LiquidityProvisionPositions.ts
|
|
49434
49910
|
function uniswapV3LiquidityProvisionPositions(client, request, options) {
|
|
49435
|
-
return new APIPromise($
|
|
49911
|
+
return new APIPromise($do55(client, request, options));
|
|
49436
49912
|
}
|
|
49437
|
-
async function $
|
|
49913
|
+
async function $do55(client, request, options) {
|
|
49438
49914
|
const parsed = safeParse(request, (value) => UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49439
49915
|
if (!parsed.ok) {
|
|
49440
49916
|
return [parsed, { status: "invalid" }];
|
|
@@ -49509,12 +49985,12 @@ var init_uniswapV3LiquidityProvisionPositions = __esm(() => {
|
|
|
49509
49985
|
});
|
|
49510
49986
|
|
|
49511
49987
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionPositions.ts
|
|
49512
|
-
var
|
|
49988
|
+
var args55, tool$uniswapV3LiquidityProvisionPositions;
|
|
49513
49989
|
var init_uniswapV3LiquidityProvisionPositions2 = __esm(() => {
|
|
49514
49990
|
init_uniswapV3LiquidityProvisionPositions();
|
|
49515
49991
|
init_operations();
|
|
49516
49992
|
init_tools();
|
|
49517
|
-
|
|
49993
|
+
args55 = {
|
|
49518
49994
|
request: UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
49519
49995
|
};
|
|
49520
49996
|
tool$uniswapV3LiquidityProvisionPositions = {
|
|
@@ -49528,9 +50004,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
49528
50004
|
positions, including the total number of positions and relevant metadata. This
|
|
49529
50005
|
information is crucial for users to manage and analyze their liquidity provision
|
|
49530
50006
|
activities effectively.`,
|
|
49531
|
-
args:
|
|
49532
|
-
tool: async (client,
|
|
49533
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client,
|
|
50007
|
+
args: args55,
|
|
50008
|
+
tool: async (client, args56, ctx) => {
|
|
50009
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionPositions(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49534
50010
|
if (!result.ok) {
|
|
49535
50011
|
return {
|
|
49536
50012
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49545,9 +50021,9 @@ activities effectively.`,
|
|
|
49545
50021
|
|
|
49546
50022
|
// src/funcs/uniswapV3LiquidityProvisionWithdraw.ts
|
|
49547
50023
|
function uniswapV3LiquidityProvisionWithdraw(client, request, options) {
|
|
49548
|
-
return new APIPromise($
|
|
50024
|
+
return new APIPromise($do56(client, request, options));
|
|
49549
50025
|
}
|
|
49550
|
-
async function $
|
|
50026
|
+
async function $do56(client, request, options) {
|
|
49551
50027
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49552
50028
|
if (!parsed.ok) {
|
|
49553
50029
|
return [parsed, { status: "invalid" }];
|
|
@@ -49616,12 +50092,12 @@ var init_uniswapV3LiquidityProvisionWithdraw = __esm(() => {
|
|
|
49616
50092
|
});
|
|
49617
50093
|
|
|
49618
50094
|
// src/mcp-server/tools/uniswapV3LiquidityProvisionWithdraw.ts
|
|
49619
|
-
var
|
|
50095
|
+
var args56, tool$uniswapV3LiquidityProvisionWithdraw;
|
|
49620
50096
|
var init_uniswapV3LiquidityProvisionWithdraw2 = __esm(() => {
|
|
49621
50097
|
init_uniswapV3LiquidityProvisionWithdraw();
|
|
49622
50098
|
init_components();
|
|
49623
50099
|
init_tools();
|
|
49624
|
-
|
|
50100
|
+
args56 = {
|
|
49625
50101
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
49626
50102
|
};
|
|
49627
50103
|
tool$uniswapV3LiquidityProvisionWithdraw = {
|
|
@@ -49638,9 +50114,9 @@ pools or investments. The endpoint requires details such as the token pair, the
|
|
|
49638
50114
|
amount to be withdrawn, and any additional parameters needed for the withdrawal
|
|
49639
50115
|
process. Users should ensure they meet any protocol requirements or conditions
|
|
49640
50116
|
before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
49641
|
-
args:
|
|
49642
|
-
tool: async (client,
|
|
49643
|
-
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client,
|
|
50117
|
+
args: args56,
|
|
50118
|
+
tool: async (client, args57, ctx) => {
|
|
50119
|
+
const [result, apiCall] = await uniswapV3LiquidityProvisionWithdraw(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49644
50120
|
if (!result.ok) {
|
|
49645
50121
|
return {
|
|
49646
50122
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49655,9 +50131,9 @@ before initiating a withdrawal to avoid potential issues or penalties.`,
|
|
|
49655
50131
|
|
|
49656
50132
|
// src/funcs/uniswapV3PoolPrice.ts
|
|
49657
50133
|
function uniswapV3PoolPrice(client, request, options) {
|
|
49658
|
-
return new APIPromise($
|
|
50134
|
+
return new APIPromise($do57(client, request, options));
|
|
49659
50135
|
}
|
|
49660
|
-
async function $
|
|
50136
|
+
async function $do57(client, request, options) {
|
|
49661
50137
|
const parsed = safeParse(request, (value) => UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49662
50138
|
if (!parsed.ok) {
|
|
49663
50139
|
return [parsed, { status: "invalid" }];
|
|
@@ -49734,12 +50210,12 @@ var init_uniswapV3PoolPrice = __esm(() => {
|
|
|
49734
50210
|
});
|
|
49735
50211
|
|
|
49736
50212
|
// src/mcp-server/tools/uniswapV3PoolPrice.ts
|
|
49737
|
-
var
|
|
50213
|
+
var args57, tool$uniswapV3PoolPrice;
|
|
49738
50214
|
var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
49739
50215
|
init_uniswapV3PoolPrice();
|
|
49740
50216
|
init_operations();
|
|
49741
50217
|
init_tools();
|
|
49742
|
-
|
|
50218
|
+
args57 = {
|
|
49743
50219
|
request: UniswapPoolPriceRequest$inboundSchema
|
|
49744
50220
|
};
|
|
49745
50221
|
tool$uniswapV3PoolPrice = {
|
|
@@ -49749,9 +50225,9 @@ var init_uniswapV3PoolPrice2 = __esm(() => {
|
|
|
49749
50225
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
49750
50226
|
|
|
49751
50227
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
49752
|
-
args:
|
|
49753
|
-
tool: async (client,
|
|
49754
|
-
const [result, apiCall] = await uniswapV3PoolPrice(client,
|
|
50228
|
+
args: args57,
|
|
50229
|
+
tool: async (client, args58, ctx) => {
|
|
50230
|
+
const [result, apiCall] = await uniswapV3PoolPrice(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49755
50231
|
if (!result.ok) {
|
|
49756
50232
|
return {
|
|
49757
50233
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49766,9 +50242,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
49766
50242
|
|
|
49767
50243
|
// src/funcs/uniswapV3QuoteBuyExactly.ts
|
|
49768
50244
|
function uniswapV3QuoteBuyExactly(client, request, options) {
|
|
49769
|
-
return new APIPromise($
|
|
50245
|
+
return new APIPromise($do58(client, request, options));
|
|
49770
50246
|
}
|
|
49771
|
-
async function $
|
|
50247
|
+
async function $do58(client, request, options) {
|
|
49772
50248
|
const parsed = safeParse(request, (value) => UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49773
50249
|
if (!parsed.ok) {
|
|
49774
50250
|
return [parsed, { status: "invalid" }];
|
|
@@ -49846,12 +50322,12 @@ var init_uniswapV3QuoteBuyExactly = __esm(() => {
|
|
|
49846
50322
|
});
|
|
49847
50323
|
|
|
49848
50324
|
// src/mcp-server/tools/uniswapV3QuoteBuyExactly.ts
|
|
49849
|
-
var
|
|
50325
|
+
var args58, tool$uniswapV3QuoteBuyExactly;
|
|
49850
50326
|
var init_uniswapV3QuoteBuyExactly2 = __esm(() => {
|
|
49851
50327
|
init_uniswapV3QuoteBuyExactly();
|
|
49852
50328
|
init_operations();
|
|
49853
50329
|
init_tools();
|
|
49854
|
-
|
|
50330
|
+
args58 = {
|
|
49855
50331
|
request: UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
49856
50332
|
};
|
|
49857
50333
|
tool$uniswapV3QuoteBuyExactly = {
|
|
@@ -49863,9 +50339,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
49863
50339
|
|
|
49864
50340
|
It also provides the resulting price after the transaction. The calculation takes
|
|
49865
50341
|
into account the current pool state and the specified fee tier.`,
|
|
49866
|
-
args:
|
|
49867
|
-
tool: async (client,
|
|
49868
|
-
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client,
|
|
50342
|
+
args: args58,
|
|
50343
|
+
tool: async (client, args59, ctx) => {
|
|
50344
|
+
const [result, apiCall] = await uniswapV3QuoteBuyExactly(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49869
50345
|
if (!result.ok) {
|
|
49870
50346
|
return {
|
|
49871
50347
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49880,9 +50356,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
49880
50356
|
|
|
49881
50357
|
// src/funcs/uniswapV3QuoteSellExactly.ts
|
|
49882
50358
|
function uniswapV3QuoteSellExactly(client, request, options) {
|
|
49883
|
-
return new APIPromise($
|
|
50359
|
+
return new APIPromise($do59(client, request, options));
|
|
49884
50360
|
}
|
|
49885
|
-
async function $
|
|
50361
|
+
async function $do59(client, request, options) {
|
|
49886
50362
|
const parsed = safeParse(request, (value) => UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
49887
50363
|
if (!parsed.ok) {
|
|
49888
50364
|
return [parsed, { status: "invalid" }];
|
|
@@ -49960,12 +50436,12 @@ var init_uniswapV3QuoteSellExactly = __esm(() => {
|
|
|
49960
50436
|
});
|
|
49961
50437
|
|
|
49962
50438
|
// src/mcp-server/tools/uniswapV3QuoteSellExactly.ts
|
|
49963
|
-
var
|
|
50439
|
+
var args59, tool$uniswapV3QuoteSellExactly;
|
|
49964
50440
|
var init_uniswapV3QuoteSellExactly2 = __esm(() => {
|
|
49965
50441
|
init_uniswapV3QuoteSellExactly();
|
|
49966
50442
|
init_operations();
|
|
49967
50443
|
init_tools();
|
|
49968
|
-
|
|
50444
|
+
args59 = {
|
|
49969
50445
|
request: UniswapQuoteSellExactlyRequest$inboundSchema
|
|
49970
50446
|
};
|
|
49971
50447
|
tool$uniswapV3QuoteSellExactly = {
|
|
@@ -49977,9 +50453,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
49977
50453
|
|
|
49978
50454
|
It also provides the resulting price after the transaction. The calculation takes
|
|
49979
50455
|
into account the current pool state and the specified fee tier.`,
|
|
49980
|
-
args:
|
|
49981
|
-
tool: async (client,
|
|
49982
|
-
const [result, apiCall] = await uniswapV3QuoteSellExactly(client,
|
|
50456
|
+
args: args59,
|
|
50457
|
+
tool: async (client, args60, ctx) => {
|
|
50458
|
+
const [result, apiCall] = await uniswapV3QuoteSellExactly(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
49983
50459
|
if (!result.ok) {
|
|
49984
50460
|
return {
|
|
49985
50461
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -49994,9 +50470,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
49994
50470
|
|
|
49995
50471
|
// src/funcs/uniswapV3SwapBuyExactly.ts
|
|
49996
50472
|
function uniswapV3SwapBuyExactly(client, request, options) {
|
|
49997
|
-
return new APIPromise($
|
|
50473
|
+
return new APIPromise($do60(client, request, options));
|
|
49998
50474
|
}
|
|
49999
|
-
async function $
|
|
50475
|
+
async function $do60(client, request, options) {
|
|
50000
50476
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50001
50477
|
if (!parsed.ok) {
|
|
50002
50478
|
return [parsed, { status: "invalid" }];
|
|
@@ -50065,12 +50541,12 @@ var init_uniswapV3SwapBuyExactly = __esm(() => {
|
|
|
50065
50541
|
});
|
|
50066
50542
|
|
|
50067
50543
|
// src/mcp-server/tools/uniswapV3SwapBuyExactly.ts
|
|
50068
|
-
var
|
|
50544
|
+
var args60, tool$uniswapV3SwapBuyExactly;
|
|
50069
50545
|
var init_uniswapV3SwapBuyExactly2 = __esm(() => {
|
|
50070
50546
|
init_uniswapV3SwapBuyExactly();
|
|
50071
50547
|
init_components();
|
|
50072
50548
|
init_tools();
|
|
50073
|
-
|
|
50549
|
+
args60 = {
|
|
50074
50550
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
50075
50551
|
};
|
|
50076
50552
|
tool$uniswapV3SwapBuyExactly = {
|
|
@@ -50084,9 +50560,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
50084
50560
|
provide the necessary transaction details, including the token to buy, the token to
|
|
50085
50561
|
pay with, and the exact amount to receive. If the token being paid with is WETH and
|
|
50086
50562
|
needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
50087
|
-
args:
|
|
50088
|
-
tool: async (client,
|
|
50089
|
-
const [result, apiCall] = await uniswapV3SwapBuyExactly(client,
|
|
50563
|
+
args: args60,
|
|
50564
|
+
tool: async (client, args61, ctx) => {
|
|
50565
|
+
const [result, apiCall] = await uniswapV3SwapBuyExactly(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50090
50566
|
if (!result.ok) {
|
|
50091
50567
|
return {
|
|
50092
50568
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50101,9 +50577,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
50101
50577
|
|
|
50102
50578
|
// src/funcs/uniswapV3SwapSellExactly.ts
|
|
50103
50579
|
function uniswapV3SwapSellExactly(client, request, options) {
|
|
50104
|
-
return new APIPromise($
|
|
50580
|
+
return new APIPromise($do61(client, request, options));
|
|
50105
50581
|
}
|
|
50106
|
-
async function $
|
|
50582
|
+
async function $do61(client, request, options) {
|
|
50107
50583
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50108
50584
|
if (!parsed.ok) {
|
|
50109
50585
|
return [parsed, { status: "invalid" }];
|
|
@@ -50172,12 +50648,12 @@ var init_uniswapV3SwapSellExactly = __esm(() => {
|
|
|
50172
50648
|
});
|
|
50173
50649
|
|
|
50174
50650
|
// src/mcp-server/tools/uniswapV3SwapSellExactly.ts
|
|
50175
|
-
var
|
|
50651
|
+
var args61, tool$uniswapV3SwapSellExactly;
|
|
50176
50652
|
var init_uniswapV3SwapSellExactly2 = __esm(() => {
|
|
50177
50653
|
init_uniswapV3SwapSellExactly();
|
|
50178
50654
|
init_components();
|
|
50179
50655
|
init_tools();
|
|
50180
|
-
|
|
50656
|
+
args61 = {
|
|
50181
50657
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
50182
50658
|
};
|
|
50183
50659
|
tool$uniswapV3SwapSellExactly = {
|
|
@@ -50191,9 +50667,9 @@ The transaction is executed on the specified blockchain network, and the user mu
|
|
|
50191
50667
|
provide the necessary transaction details, including the token to sell, the token to
|
|
50192
50668
|
receive, and the amount to sell. If the token being sold is WETH and needs to be
|
|
50193
50669
|
wrapped, the appropriate amount will be wrapped automatically.`,
|
|
50194
|
-
args:
|
|
50195
|
-
tool: async (client,
|
|
50196
|
-
const [result, apiCall] = await uniswapV3SwapSellExactly(client,
|
|
50670
|
+
args: args61,
|
|
50671
|
+
tool: async (client, args62, ctx) => {
|
|
50672
|
+
const [result, apiCall] = await uniswapV3SwapSellExactly(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50197
50673
|
if (!result.ok) {
|
|
50198
50674
|
return {
|
|
50199
50675
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50208,9 +50684,9 @@ wrapped, the appropriate amount will be wrapped automatically.`,
|
|
|
50208
50684
|
|
|
50209
50685
|
// src/funcs/universalAllowance.ts
|
|
50210
50686
|
function universalAllowance(client, request, options) {
|
|
50211
|
-
return new APIPromise($
|
|
50687
|
+
return new APIPromise($do62(client, request, options));
|
|
50212
50688
|
}
|
|
50213
|
-
async function $
|
|
50689
|
+
async function $do62(client, request, options) {
|
|
50214
50690
|
const parsed = safeParse(request, (value) => GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50215
50691
|
if (!parsed.ok) {
|
|
50216
50692
|
return [parsed, { status: "invalid" }];
|
|
@@ -50287,12 +50763,12 @@ var init_universalAllowance = __esm(() => {
|
|
|
50287
50763
|
});
|
|
50288
50764
|
|
|
50289
50765
|
// src/mcp-server/tools/universalAllowance.ts
|
|
50290
|
-
var
|
|
50766
|
+
var args62, tool$universalAllowance;
|
|
50291
50767
|
var init_universalAllowance2 = __esm(() => {
|
|
50292
50768
|
init_universalAllowance();
|
|
50293
50769
|
init_operations();
|
|
50294
50770
|
init_tools();
|
|
50295
|
-
|
|
50771
|
+
args62 = {
|
|
50296
50772
|
request: GenericAllowanceRequest$inboundSchema
|
|
50297
50773
|
};
|
|
50298
50774
|
tool$universalAllowance = {
|
|
@@ -50306,9 +50782,9 @@ tokens on their behalf.
|
|
|
50306
50782
|
This is a crucial step before engaging in any transactions or operations within
|
|
50307
50783
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
50308
50784
|
the user's tokens securely and efficiently.`,
|
|
50309
|
-
args:
|
|
50310
|
-
tool: async (client,
|
|
50311
|
-
const [result, apiCall] = await universalAllowance(client,
|
|
50785
|
+
args: args62,
|
|
50786
|
+
tool: async (client, args63, ctx) => {
|
|
50787
|
+
const [result, apiCall] = await universalAllowance(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50312
50788
|
if (!result.ok) {
|
|
50313
50789
|
return {
|
|
50314
50790
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50323,9 +50799,9 @@ the user's tokens securely and efficiently.`,
|
|
|
50323
50799
|
|
|
50324
50800
|
// src/funcs/universalAllowanceSet.ts
|
|
50325
50801
|
function universalAllowanceSet(client, request, options) {
|
|
50326
|
-
return new APIPromise($
|
|
50802
|
+
return new APIPromise($do63(client, request, options));
|
|
50327
50803
|
}
|
|
50328
|
-
async function $
|
|
50804
|
+
async function $do63(client, request, options) {
|
|
50329
50805
|
const parsed = safeParse(request, (value) => IncreaseAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50330
50806
|
if (!parsed.ok) {
|
|
50331
50807
|
return [parsed, { status: "invalid" }];
|
|
@@ -50394,17 +50870,17 @@ var init_universalAllowanceSet = __esm(() => {
|
|
|
50394
50870
|
});
|
|
50395
50871
|
|
|
50396
50872
|
// src/mcp-server/tools/universalAllowanceSet.ts
|
|
50397
|
-
var
|
|
50873
|
+
var args63, tool$universalAllowanceSet;
|
|
50398
50874
|
var init_universalAllowanceSet2 = __esm(() => {
|
|
50399
50875
|
init_universalAllowanceSet();
|
|
50400
50876
|
init_components();
|
|
50401
50877
|
init_tools();
|
|
50402
|
-
|
|
50878
|
+
args63 = {
|
|
50403
50879
|
request: IncreaseAllowanceRequest$inboundSchema
|
|
50404
50880
|
};
|
|
50405
50881
|
tool$universalAllowanceSet = {
|
|
50406
50882
|
name: "universal-allowance-set",
|
|
50407
|
-
description: `Set Allowance
|
|
50883
|
+
description: `Set Allowance (symbol)
|
|
50408
50884
|
|
|
50409
50885
|
This endpoint allows users to modify the token allowance for a specific protocol.
|
|
50410
50886
|
|
|
@@ -50413,9 +50889,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
50413
50889
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
50414
50890
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
50415
50891
|
within the DeFi ecosystem.`,
|
|
50416
|
-
args:
|
|
50417
|
-
tool: async (client,
|
|
50418
|
-
const [result, apiCall] = await universalAllowanceSet(client,
|
|
50892
|
+
args: args63,
|
|
50893
|
+
tool: async (client, args64, ctx) => {
|
|
50894
|
+
const [result, apiCall] = await universalAllowanceSet(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50419
50895
|
if (!result.ok) {
|
|
50420
50896
|
return {
|
|
50421
50897
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50430,9 +50906,9 @@ within the DeFi ecosystem.`,
|
|
|
50430
50906
|
|
|
50431
50907
|
// src/funcs/universalEns.ts
|
|
50432
50908
|
function universalEns(client, request, options) {
|
|
50433
|
-
return new APIPromise($
|
|
50909
|
+
return new APIPromise($do64(client, request, options));
|
|
50434
50910
|
}
|
|
50435
|
-
async function $
|
|
50911
|
+
async function $do64(client, request, options) {
|
|
50436
50912
|
const parsed = safeParse(request, (value) => GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50437
50913
|
if (!parsed.ok) {
|
|
50438
50914
|
return [parsed, { status: "invalid" }];
|
|
@@ -50507,12 +50983,12 @@ var init_universalEns = __esm(() => {
|
|
|
50507
50983
|
});
|
|
50508
50984
|
|
|
50509
50985
|
// src/mcp-server/tools/universalEns.ts
|
|
50510
|
-
var
|
|
50986
|
+
var args64, tool$universalEns;
|
|
50511
50987
|
var init_universalEns2 = __esm(() => {
|
|
50512
50988
|
init_universalEns();
|
|
50513
50989
|
init_operations();
|
|
50514
50990
|
init_tools();
|
|
50515
|
-
|
|
50991
|
+
args64 = {
|
|
50516
50992
|
request: GenericEnsRequest$inboundSchema
|
|
50517
50993
|
};
|
|
50518
50994
|
tool$universalEns = {
|
|
@@ -50523,9 +50999,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
50523
50999
|
|
|
50524
51000
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
50525
51001
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
50526
|
-
args:
|
|
50527
|
-
tool: async (client,
|
|
50528
|
-
const [result, apiCall] = await universalEns(client,
|
|
51002
|
+
args: args64,
|
|
51003
|
+
tool: async (client, args65, ctx) => {
|
|
51004
|
+
const [result, apiCall] = await universalEns(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50529
51005
|
if (!result.ok) {
|
|
50530
51006
|
return {
|
|
50531
51007
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50540,9 +51016,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
50540
51016
|
|
|
50541
51017
|
// src/funcs/universalPortfolio.ts
|
|
50542
51018
|
function universalPortfolio(client, request, options) {
|
|
50543
|
-
return new APIPromise($
|
|
51019
|
+
return new APIPromise($do65(client, request, options));
|
|
50544
51020
|
}
|
|
50545
|
-
async function $
|
|
51021
|
+
async function $do65(client, request, options) {
|
|
50546
51022
|
const parsed = safeParse(request, (value) => GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50547
51023
|
if (!parsed.ok) {
|
|
50548
51024
|
return [parsed, { status: "invalid" }];
|
|
@@ -50617,12 +51093,12 @@ var init_universalPortfolio = __esm(() => {
|
|
|
50617
51093
|
});
|
|
50618
51094
|
|
|
50619
51095
|
// src/mcp-server/tools/universalPortfolio.ts
|
|
50620
|
-
var
|
|
51096
|
+
var args65, tool$universalPortfolio;
|
|
50621
51097
|
var init_universalPortfolio2 = __esm(() => {
|
|
50622
51098
|
init_universalPortfolio();
|
|
50623
51099
|
init_operations();
|
|
50624
51100
|
init_tools();
|
|
50625
|
-
|
|
51101
|
+
args65 = {
|
|
50626
51102
|
request: GenericPortfolioRequest$inboundSchema
|
|
50627
51103
|
};
|
|
50628
51104
|
tool$universalPortfolio = {
|
|
@@ -50633,9 +51109,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
50633
51109
|
|
|
50634
51110
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
50635
51111
|
balances, including their respective values and quantities.`,
|
|
50636
|
-
args:
|
|
50637
|
-
tool: async (client,
|
|
50638
|
-
const [result, apiCall] = await universalPortfolio(client,
|
|
51112
|
+
args: args65,
|
|
51113
|
+
tool: async (client, args66, ctx) => {
|
|
51114
|
+
const [result, apiCall] = await universalPortfolio(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50639
51115
|
if (!result.ok) {
|
|
50640
51116
|
return {
|
|
50641
51117
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50650,9 +51126,9 @@ balances, including their respective values and quantities.`,
|
|
|
50650
51126
|
|
|
50651
51127
|
// src/funcs/universalSupportedTokens.ts
|
|
50652
51128
|
function universalSupportedTokens(client, request, options) {
|
|
50653
|
-
return new APIPromise($
|
|
51129
|
+
return new APIPromise($do66(client, request, options));
|
|
50654
51130
|
}
|
|
50655
|
-
async function $
|
|
51131
|
+
async function $do66(client, request, options) {
|
|
50656
51132
|
const parsed = safeParse(request, (value) => GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50657
51133
|
if (!parsed.ok) {
|
|
50658
51134
|
return [parsed, { status: "invalid" }];
|
|
@@ -50726,12 +51202,12 @@ var init_universalSupportedTokens = __esm(() => {
|
|
|
50726
51202
|
});
|
|
50727
51203
|
|
|
50728
51204
|
// src/mcp-server/tools/universalSupportedTokens.ts
|
|
50729
|
-
var
|
|
51205
|
+
var args66, tool$universalSupportedTokens;
|
|
50730
51206
|
var init_universalSupportedTokens2 = __esm(() => {
|
|
50731
51207
|
init_universalSupportedTokens();
|
|
50732
51208
|
init_operations();
|
|
50733
51209
|
init_tools();
|
|
50734
|
-
|
|
51210
|
+
args66 = {
|
|
50735
51211
|
request: GenericSupportedTokensRequest$inboundSchema
|
|
50736
51212
|
};
|
|
50737
51213
|
tool$universalSupportedTokens = {
|
|
@@ -50739,9 +51215,9 @@ var init_universalSupportedTokens2 = __esm(() => {
|
|
|
50739
51215
|
description: `List supported tokens
|
|
50740
51216
|
|
|
50741
51217
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
50742
|
-
args:
|
|
50743
|
-
tool: async (client,
|
|
50744
|
-
const [result, apiCall] = await universalSupportedTokens(client,
|
|
51218
|
+
args: args66,
|
|
51219
|
+
tool: async (client, args67, ctx) => {
|
|
51220
|
+
const [result, apiCall] = await universalSupportedTokens(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50745
51221
|
if (!result.ok) {
|
|
50746
51222
|
return {
|
|
50747
51223
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50756,9 +51232,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
50756
51232
|
|
|
50757
51233
|
// src/funcs/universalUnwrapWeth.ts
|
|
50758
51234
|
function universalUnwrapWeth(client, request, options) {
|
|
50759
|
-
return new APIPromise($
|
|
51235
|
+
return new APIPromise($do67(client, request, options));
|
|
50760
51236
|
}
|
|
50761
|
-
async function $
|
|
51237
|
+
async function $do67(client, request, options) {
|
|
50762
51238
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50763
51239
|
if (!parsed.ok) {
|
|
50764
51240
|
return [parsed, { status: "invalid" }];
|
|
@@ -50827,12 +51303,12 @@ var init_universalUnwrapWeth = __esm(() => {
|
|
|
50827
51303
|
});
|
|
50828
51304
|
|
|
50829
51305
|
// src/mcp-server/tools/universalUnwrapWeth.ts
|
|
50830
|
-
var
|
|
51306
|
+
var args67, tool$universalUnwrapWeth;
|
|
50831
51307
|
var init_universalUnwrapWeth2 = __esm(() => {
|
|
50832
51308
|
init_universalUnwrapWeth();
|
|
50833
51309
|
init_components();
|
|
50834
51310
|
init_tools();
|
|
50835
|
-
|
|
51311
|
+
args67 = {
|
|
50836
51312
|
request: UnwrapWethRequest$inboundSchema
|
|
50837
51313
|
};
|
|
50838
51314
|
tool$universalUnwrapWeth = {
|
|
@@ -50841,9 +51317,9 @@ var init_universalUnwrapWeth2 = __esm(() => {
|
|
|
50841
51317
|
|
|
50842
51318
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
50843
51319
|
can be used for gas and other native purposes.`,
|
|
50844
|
-
args:
|
|
50845
|
-
tool: async (client,
|
|
50846
|
-
const [result, apiCall] = await universalUnwrapWeth(client,
|
|
51320
|
+
args: args67,
|
|
51321
|
+
tool: async (client, args68, ctx) => {
|
|
51322
|
+
const [result, apiCall] = await universalUnwrapWeth(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50847
51323
|
if (!result.ok) {
|
|
50848
51324
|
return {
|
|
50849
51325
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50858,9 +51334,9 @@ can be used for gas and other native purposes.`,
|
|
|
50858
51334
|
|
|
50859
51335
|
// src/funcs/universalVisualizePortfolio.ts
|
|
50860
51336
|
function universalVisualizePortfolio(client, request, options) {
|
|
50861
|
-
return new APIPromise($
|
|
51337
|
+
return new APIPromise($do68(client, request, options));
|
|
50862
51338
|
}
|
|
50863
|
-
async function $
|
|
51339
|
+
async function $do68(client, request, options) {
|
|
50864
51340
|
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50865
51341
|
if (!parsed.ok) {
|
|
50866
51342
|
return [parsed, { status: "invalid" }];
|
|
@@ -50935,12 +51411,12 @@ var init_universalVisualizePortfolio = __esm(() => {
|
|
|
50935
51411
|
});
|
|
50936
51412
|
|
|
50937
51413
|
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
50938
|
-
var
|
|
51414
|
+
var args68, tool$universalVisualizePortfolio;
|
|
50939
51415
|
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
50940
51416
|
init_universalVisualizePortfolio();
|
|
50941
51417
|
init_operations();
|
|
50942
51418
|
init_tools();
|
|
50943
|
-
|
|
51419
|
+
args68 = {
|
|
50944
51420
|
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
50945
51421
|
};
|
|
50946
51422
|
tool$universalVisualizePortfolio = {
|
|
@@ -50952,9 +51428,9 @@ Generate a visual representation of the token portfolio for a wallet address.
|
|
|
50952
51428
|
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
50953
51429
|
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
50954
51430
|
USD.`,
|
|
50955
|
-
args:
|
|
50956
|
-
tool: async (client,
|
|
50957
|
-
const [result, apiCall] = await universalVisualizePortfolio(client,
|
|
51431
|
+
args: args68,
|
|
51432
|
+
tool: async (client, args69, ctx) => {
|
|
51433
|
+
const [result, apiCall] = await universalVisualizePortfolio(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
50958
51434
|
if (!result.ok) {
|
|
50959
51435
|
return {
|
|
50960
51436
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -50969,9 +51445,9 @@ USD.`,
|
|
|
50969
51445
|
|
|
50970
51446
|
// src/funcs/universalWrapEth.ts
|
|
50971
51447
|
function universalWrapEth(client, request, options) {
|
|
50972
|
-
return new APIPromise($
|
|
51448
|
+
return new APIPromise($do69(client, request, options));
|
|
50973
51449
|
}
|
|
50974
|
-
async function $
|
|
51450
|
+
async function $do69(client, request, options) {
|
|
50975
51451
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
50976
51452
|
if (!parsed.ok) {
|
|
50977
51453
|
return [parsed, { status: "invalid" }];
|
|
@@ -51040,12 +51516,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
51040
51516
|
});
|
|
51041
51517
|
|
|
51042
51518
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
51043
|
-
var
|
|
51519
|
+
var args69, tool$universalWrapEth;
|
|
51044
51520
|
var init_universalWrapEth2 = __esm(() => {
|
|
51045
51521
|
init_universalWrapEth();
|
|
51046
51522
|
init_components();
|
|
51047
51523
|
init_tools();
|
|
51048
|
-
|
|
51524
|
+
args69 = {
|
|
51049
51525
|
request: WrapEthRequest$inboundSchema
|
|
51050
51526
|
};
|
|
51051
51527
|
tool$universalWrapEth = {
|
|
@@ -51054,9 +51530,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
51054
51530
|
|
|
51055
51531
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
51056
51532
|
it to be traded on DeFi protocols.`,
|
|
51057
|
-
args:
|
|
51058
|
-
tool: async (client,
|
|
51059
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
51533
|
+
args: args69,
|
|
51534
|
+
tool: async (client, args70, ctx) => {
|
|
51535
|
+
const [result, apiCall] = await universalWrapEth(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
51060
51536
|
if (!result.ok) {
|
|
51061
51537
|
return {
|
|
51062
51538
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -51073,7 +51549,7 @@ it to be traded on DeFi protocols.`,
|
|
|
51073
51549
|
function createMCPServer(deps) {
|
|
51074
51550
|
const server = new McpServer({
|
|
51075
51551
|
name: "CompassApiSDK",
|
|
51076
|
-
version: "0.2.
|
|
51552
|
+
version: "0.2.3"
|
|
51077
51553
|
});
|
|
51078
51554
|
const client = new CompassApiSDKCore({
|
|
51079
51555
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -51149,6 +51625,8 @@ function createMCPServer(deps) {
|
|
|
51149
51625
|
tool(tool$universalUnwrapWeth);
|
|
51150
51626
|
tool(tool$universalAllowanceSet);
|
|
51151
51627
|
tool(tool$pendlePosition);
|
|
51628
|
+
tool(tool$pendlePositions);
|
|
51629
|
+
tool(tool$pendleMarkets);
|
|
51152
51630
|
tool(tool$pendleMarket);
|
|
51153
51631
|
tool(tool$transactionBatchingAuthorization);
|
|
51154
51632
|
tool(tool$transactionBatchingExecute);
|
|
@@ -51196,7 +51674,9 @@ var init_server2 = __esm(() => {
|
|
|
51196
51674
|
init_morphoWithdraw2();
|
|
51197
51675
|
init_morphoWithdrawCollateral2();
|
|
51198
51676
|
init_pendleMarket2();
|
|
51677
|
+
init_pendleMarkets2();
|
|
51199
51678
|
init_pendlePosition2();
|
|
51679
|
+
init_pendlePositions2();
|
|
51200
51680
|
init_skyBuy2();
|
|
51201
51681
|
init_skyDeposit2();
|
|
51202
51682
|
init_skyPosition2();
|
|
@@ -52418,7 +52898,7 @@ var routes = an({
|
|
|
52418
52898
|
var app = He(routes, {
|
|
52419
52899
|
name: "mcp",
|
|
52420
52900
|
versionInfo: {
|
|
52421
|
-
currentVersion: "0.2.
|
|
52901
|
+
currentVersion: "0.2.3"
|
|
52422
52902
|
}
|
|
52423
52903
|
});
|
|
52424
52904
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -52426,5 +52906,5 @@ export {
|
|
|
52426
52906
|
app
|
|
52427
52907
|
};
|
|
52428
52908
|
|
|
52429
|
-
//# debugId=
|
|
52909
|
+
//# debugId=B40ECAE121457BA264756E2164756E21
|
|
52430
52910
|
//# sourceMappingURL=mcp-server.js.map
|