@compass-labs/api-sdk 0.5.13 → 0.5.15
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 +9 -0
- package/bin/mcp-server.js +919 -384
- package/bin/mcp-server.js.map +33 -23
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts +28 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +128 -0
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts +23 -0
- package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionBatchingAuthorization.js +123 -0
- package/dist/commonjs/funcs/transactionBatchingAuthorization.js.map +1 -0
- package/dist/commonjs/funcs/transactionBatchingExecute.d.ts +24 -0
- package/dist/commonjs/funcs/transactionBatchingExecute.d.ts.map +1 -0
- package/dist/commonjs/funcs/transactionBatchingExecute.js +124 -0
- package/dist/commonjs/funcs/transactionBatchingExecute.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/files.d.ts +5 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +41 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- 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 +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js +74 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js +69 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js +70 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
- package/dist/commonjs/models/components/aavelooprequest.d.ts +181 -0
- package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavelooprequest.js +199 -0
- package/dist/commonjs/models/components/aavelooprequest.js.map +1 -0
- package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts +8 -8
- package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js +8 -8
- package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/metadata.d.ts +0 -4
- package/dist/commonjs/models/components/metadata.d.ts.map +1 -1
- package/dist/commonjs/models/components/metadata.js +0 -4
- package/dist/commonjs/models/components/metadata.js.map +1 -1
- package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts +49 -0
- package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/multicallauthorizationrequest.js +72 -0
- package/dist/commonjs/models/components/multicallauthorizationrequest.js.map +1 -0
- package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts +45 -0
- package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/multicallauthorizationresponse.js +73 -0
- package/dist/commonjs/models/components/multicallauthorizationresponse.js.map +1 -0
- package/dist/commonjs/models/components/multicallexecuterequest.d.ts +50 -0
- package/dist/commonjs/models/components/multicallexecuterequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/multicallexecuterequest.js +87 -0
- package/dist/commonjs/models/components/multicallexecuterequest.js.map +1 -0
- package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityparams.js +4 -0
- package/dist/commonjs/models/components/pendleaddliquidityparams.js.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleaddliquidityrequest.js +4 -0
- package/dist/commonjs/models/components/pendleaddliquidityrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlebuyptparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendlebuyptparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlebuyptparams.js +4 -0
- package/dist/commonjs/models/components/pendlebuyptparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlebuyptrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendlebuyptrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlebuyptrequest.js +4 -0
- package/dist/commonjs/models/components/pendlebuyptrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlebuyytparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendlebuyytparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlebuyytparams.js +4 -0
- package/dist/commonjs/models/components/pendlebuyytparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlebuyytrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendlebuyytrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlebuyytrequest.js +4 -0
- package/dist/commonjs/models/components/pendlebuyytrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityparams.js +4 -0
- package/dist/commonjs/models/components/pendleremoveliquidityparams.js.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.js +4 -0
- package/dist/commonjs/models/components/pendleremoveliquidityrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellptparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendlesellptparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellptparams.js +4 -0
- package/dist/commonjs/models/components/pendlesellptparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellptrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendlesellptrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellptrequest.js +4 -0
- package/dist/commonjs/models/components/pendlesellptrequest.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellytparams.d.ts +5 -0
- package/dist/commonjs/models/components/pendlesellytparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellytparams.js +4 -0
- package/dist/commonjs/models/components/pendlesellytparams.js.map +1 -1
- package/dist/commonjs/models/components/pendlesellytrequest.d.ts +5 -0
- package/dist/commonjs/models/components/pendlesellytrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendlesellytrequest.js +4 -0
- package/dist/commonjs/models/components/pendlesellytrequest.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +48 -48
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +56 -56
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/transactionbatching.d.ts +47 -0
- package/dist/commonjs/sdk/transactionbatching.d.ts.map +1 -0
- package/dist/commonjs/sdk/transactionbatching.js +63 -0
- package/dist/commonjs/sdk/transactionbatching.js.map +1 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts +28 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.js +92 -0
- package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/esm/funcs/transactionBatchingAuthorization.d.ts +23 -0
- package/dist/esm/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
- package/dist/esm/funcs/transactionBatchingAuthorization.js +87 -0
- package/dist/esm/funcs/transactionBatchingAuthorization.js.map +1 -0
- package/dist/esm/funcs/transactionBatchingExecute.d.ts +24 -0
- package/dist/esm/funcs/transactionBatchingExecute.d.ts.map +1 -0
- package/dist/esm/funcs/transactionBatchingExecute.js +88 -0
- package/dist/esm/funcs/transactionBatchingExecute.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/files.d.ts +5 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +40 -0
- package/dist/esm/lib/files.js.map +1 -1
- 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 +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts +8 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js +38 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js +33 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.js +34 -0
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
- package/dist/esm/models/components/aavelooprequest.d.ts +181 -0
- package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -0
- package/dist/esm/models/components/aavelooprequest.js +153 -0
- package/dist/esm/models/components/aavelooprequest.js.map +1 -0
- package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts +8 -8
- package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js +8 -8
- package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/metadata.d.ts +0 -4
- package/dist/esm/models/components/metadata.d.ts.map +1 -1
- package/dist/esm/models/components/metadata.js +0 -4
- package/dist/esm/models/components/metadata.js.map +1 -1
- package/dist/esm/models/components/multicallauthorizationrequest.d.ts +49 -0
- package/dist/esm/models/components/multicallauthorizationrequest.d.ts.map +1 -0
- package/dist/esm/models/components/multicallauthorizationrequest.js +34 -0
- package/dist/esm/models/components/multicallauthorizationrequest.js.map +1 -0
- package/dist/esm/models/components/multicallauthorizationresponse.d.ts +45 -0
- package/dist/esm/models/components/multicallauthorizationresponse.d.ts.map +1 -0
- package/dist/esm/models/components/multicallauthorizationresponse.js +35 -0
- package/dist/esm/models/components/multicallauthorizationresponse.js.map +1 -0
- package/dist/esm/models/components/multicallexecuterequest.d.ts +50 -0
- package/dist/esm/models/components/multicallexecuterequest.d.ts.map +1 -0
- package/dist/esm/models/components/multicallexecuterequest.js +49 -0
- package/dist/esm/models/components/multicallexecuterequest.js.map +1 -0
- package/dist/esm/models/components/pendleaddliquidityparams.d.ts +5 -0
- package/dist/esm/models/components/pendleaddliquidityparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityparams.js +4 -0
- package/dist/esm/models/components/pendleaddliquidityparams.js.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityrequest.d.ts +5 -0
- package/dist/esm/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendleaddliquidityrequest.js +4 -0
- package/dist/esm/models/components/pendleaddliquidityrequest.js.map +1 -1
- package/dist/esm/models/components/pendlebuyptparams.d.ts +5 -0
- package/dist/esm/models/components/pendlebuyptparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlebuyptparams.js +4 -0
- package/dist/esm/models/components/pendlebuyptparams.js.map +1 -1
- package/dist/esm/models/components/pendlebuyptrequest.d.ts +5 -0
- package/dist/esm/models/components/pendlebuyptrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlebuyptrequest.js +4 -0
- package/dist/esm/models/components/pendlebuyptrequest.js.map +1 -1
- package/dist/esm/models/components/pendlebuyytparams.d.ts +5 -0
- package/dist/esm/models/components/pendlebuyytparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlebuyytparams.js +4 -0
- package/dist/esm/models/components/pendlebuyytparams.js.map +1 -1
- package/dist/esm/models/components/pendlebuyytrequest.d.ts +5 -0
- package/dist/esm/models/components/pendlebuyytrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlebuyytrequest.js +4 -0
- package/dist/esm/models/components/pendlebuyytrequest.js.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityparams.d.ts +5 -0
- package/dist/esm/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityparams.js +4 -0
- package/dist/esm/models/components/pendleremoveliquidityparams.js.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts +5 -0
- package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendleremoveliquidityrequest.js +4 -0
- package/dist/esm/models/components/pendleremoveliquidityrequest.js.map +1 -1
- package/dist/esm/models/components/pendlesellptparams.d.ts +5 -0
- package/dist/esm/models/components/pendlesellptparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellptparams.js +4 -0
- package/dist/esm/models/components/pendlesellptparams.js.map +1 -1
- package/dist/esm/models/components/pendlesellptrequest.d.ts +5 -0
- package/dist/esm/models/components/pendlesellptrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellptrequest.js +4 -0
- package/dist/esm/models/components/pendlesellptrequest.js.map +1 -1
- package/dist/esm/models/components/pendlesellytparams.d.ts +5 -0
- package/dist/esm/models/components/pendlesellytparams.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellytparams.js +4 -0
- package/dist/esm/models/components/pendlesellytparams.js.map +1 -1
- package/dist/esm/models/components/pendlesellytrequest.d.ts +5 -0
- package/dist/esm/models/components/pendlesellytrequest.d.ts.map +1 -1
- package/dist/esm/models/components/pendlesellytrequest.js +4 -0
- package/dist/esm/models/components/pendlesellytrequest.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +48 -48
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +56 -56
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/transactionbatching.d.ts +47 -0
- package/dist/esm/sdk/transactionbatching.d.ts.map +1 -0
- package/dist/esm/sdk/transactionbatching.js +59 -0
- package/dist/esm/sdk/transactionbatching.js.map +1 -0
- package/docs/sdks/pendle/README.md +12 -0
- package/docs/sdks/transactionbatching/README.md +318 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/transactionBatchingAaveLoop.ts +179 -0
- package/src/funcs/transactionBatchingAuthorization.ts +175 -0
- package/src/funcs/transactionBatchingExecute.ts +175 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/transactionBatchingAaveLoop.ts +47 -0
- package/src/mcp-server/tools/transactionBatchingAuthorization.ts +44 -0
- package/src/mcp-server/tools/transactionBatchingExecute.ts +43 -0
- package/src/models/components/aavelooprequest.ts +368 -0
- package/src/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.ts +16 -16
- package/src/models/components/index.ts +4 -0
- package/src/models/components/metadata.ts +0 -8
- package/src/models/components/multicallauthorizationrequest.ts +90 -0
- package/src/models/components/multicallauthorizationresponse.ts +88 -0
- package/src/models/components/multicallexecuterequest.ts +112 -0
- package/src/models/components/pendleaddliquidityparams.ts +9 -0
- package/src/models/components/pendleaddliquidityrequest.ts +9 -0
- package/src/models/components/pendlebuyptparams.ts +9 -0
- package/src/models/components/pendlebuyptrequest.ts +9 -0
- package/src/models/components/pendlebuyytparams.ts +9 -0
- package/src/models/components/pendlebuyytrequest.ts +9 -0
- package/src/models/components/pendleremoveliquidityparams.ts +9 -0
- package/src/models/components/pendleremoveliquidityrequest.ts +9 -0
- package/src/models/components/pendlesellptparams.ts +9 -0
- package/src/models/components/pendlesellptrequest.ts +9 -0
- package/src/models/components/pendlesellytparams.ts +9 -0
- package/src/models/components/pendlesellytrequest.ts +9 -0
- package/src/models/components/useroperation.ts +152 -152
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/transactionbatching.ts +84 -0
|
@@ -233,12 +233,6 @@ export type Body =
|
|
|
233
233
|
| (MorphoSetVaultAllowanceParams & {
|
|
234
234
|
actionType: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
235
235
|
})
|
|
236
|
-
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
237
|
-
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
238
|
-
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
239
|
-
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
240
|
-
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
241
|
-
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
242
236
|
| (SkyBuyParams & { actionType: "SKY_BUY" })
|
|
243
237
|
| (SkyDepositParams & { actionType: "SKY_DEPOSIT" })
|
|
244
238
|
| (SkySellParams & { actionType: "SKY_SELL" })
|
|
@@ -251,6 +245,12 @@ export type Body =
|
|
|
251
245
|
| (IncreaseAllowanceParams & { actionType: "ALLOWANCE_INCREASE" })
|
|
252
246
|
| (MorphoDepositParams & { actionType: "MORPHO_DEPOSIT" })
|
|
253
247
|
| (MorphoWithdrawParams & { actionType: "MORPHO_WITHDRAW" })
|
|
248
|
+
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
249
|
+
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
250
|
+
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
251
|
+
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
252
|
+
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
253
|
+
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
254
254
|
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
255
255
|
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
256
256
|
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
@@ -292,12 +292,6 @@ export type UserOperation = {
|
|
|
292
292
|
| (MorphoSetVaultAllowanceParams & {
|
|
293
293
|
actionType: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
294
294
|
})
|
|
295
|
-
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
296
|
-
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
297
|
-
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
298
|
-
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
299
|
-
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
300
|
-
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
301
295
|
| (SkyBuyParams & { actionType: "SKY_BUY" })
|
|
302
296
|
| (SkyDepositParams & { actionType: "SKY_DEPOSIT" })
|
|
303
297
|
| (SkySellParams & { actionType: "SKY_SELL" })
|
|
@@ -310,6 +304,12 @@ export type UserOperation = {
|
|
|
310
304
|
| (IncreaseAllowanceParams & { actionType: "ALLOWANCE_INCREASE" })
|
|
311
305
|
| (MorphoDepositParams & { actionType: "MORPHO_DEPOSIT" })
|
|
312
306
|
| (MorphoWithdrawParams & { actionType: "MORPHO_WITHDRAW" })
|
|
307
|
+
| (PendleAddLiquidityParams & { actionType: "PENDLE_ADD_LIQUIDITY" })
|
|
308
|
+
| (PendleBuyPtParams & { actionType: "PENDLE_BUY_PT" })
|
|
309
|
+
| (PendleBuyYtParams & { actionType: "PENDLE_BUY_YT" })
|
|
310
|
+
| (PendleRemoveLiquidityParams & { actionType: "PENDLE_REMOVE_LIQUIDITY" })
|
|
311
|
+
| (PendleSellPtParams & { actionType: "PENDLE_SELL_PT" })
|
|
312
|
+
| (PendleSellYtParams & { actionType: "PENDLE_SELL_YT" })
|
|
313
313
|
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
314
314
|
| (AaveBorrowParams & { actionType: "AAVE_BORROW" })
|
|
315
315
|
| (AaveRepayParams & { actionType: "AAVE_REPAY" })
|
|
@@ -372,36 +372,6 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
372
372
|
z.object({ action_type: z.literal("MORPHO_SET_VAULT_ALLOWANCE") })
|
|
373
373
|
.transform((v) => ({ actionType: v.action_type })),
|
|
374
374
|
),
|
|
375
|
-
PendleAddLiquidityParams$inboundSchema.and(
|
|
376
|
-
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
377
|
-
v,
|
|
378
|
-
) => ({ actionType: v.action_type })),
|
|
379
|
-
),
|
|
380
|
-
PendleBuyPtParams$inboundSchema.and(
|
|
381
|
-
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
382
|
-
actionType: v.action_type,
|
|
383
|
-
})),
|
|
384
|
-
),
|
|
385
|
-
PendleBuyYtParams$inboundSchema.and(
|
|
386
|
-
z.object({ action_type: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
387
|
-
actionType: v.action_type,
|
|
388
|
-
})),
|
|
389
|
-
),
|
|
390
|
-
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
391
|
-
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
392
|
-
(v) => ({ actionType: v.action_type })
|
|
393
|
-
),
|
|
394
|
-
),
|
|
395
|
-
PendleSellPtParams$inboundSchema.and(
|
|
396
|
-
z.object({ action_type: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
397
|
-
actionType: v.action_type,
|
|
398
|
-
})),
|
|
399
|
-
),
|
|
400
|
-
PendleSellYtParams$inboundSchema.and(
|
|
401
|
-
z.object({ action_type: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
402
|
-
actionType: v.action_type,
|
|
403
|
-
})),
|
|
404
|
-
),
|
|
405
375
|
SkyBuyParams$inboundSchema.and(
|
|
406
376
|
z.object({ action_type: z.literal("SKY_BUY") }).transform((v) => ({
|
|
407
377
|
actionType: v.action_type,
|
|
@@ -452,6 +422,36 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
452
422
|
v,
|
|
453
423
|
) => ({ actionType: v.action_type })),
|
|
454
424
|
),
|
|
425
|
+
PendleAddLiquidityParams$inboundSchema.and(
|
|
426
|
+
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
427
|
+
v,
|
|
428
|
+
) => ({ actionType: v.action_type })),
|
|
429
|
+
),
|
|
430
|
+
PendleBuyPtParams$inboundSchema.and(
|
|
431
|
+
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
432
|
+
actionType: v.action_type,
|
|
433
|
+
})),
|
|
434
|
+
),
|
|
435
|
+
PendleBuyYtParams$inboundSchema.and(
|
|
436
|
+
z.object({ action_type: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
437
|
+
actionType: v.action_type,
|
|
438
|
+
})),
|
|
439
|
+
),
|
|
440
|
+
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
441
|
+
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
442
|
+
(v) => ({ actionType: v.action_type })
|
|
443
|
+
),
|
|
444
|
+
),
|
|
445
|
+
PendleSellPtParams$inboundSchema.and(
|
|
446
|
+
z.object({ action_type: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
447
|
+
actionType: v.action_type,
|
|
448
|
+
})),
|
|
449
|
+
),
|
|
450
|
+
PendleSellYtParams$inboundSchema.and(
|
|
451
|
+
z.object({ action_type: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
452
|
+
actionType: v.action_type,
|
|
453
|
+
})),
|
|
454
|
+
),
|
|
455
455
|
TokenTransferErc20Params$inboundSchema.and(
|
|
456
456
|
z.object({ action_type: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
457
457
|
v,
|
|
@@ -537,16 +537,6 @@ export type Body$Outbound =
|
|
|
537
537
|
| (MorphoSetVaultAllowanceParams$Outbound & {
|
|
538
538
|
action_type: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
539
539
|
})
|
|
540
|
-
| (PendleAddLiquidityParams$Outbound & {
|
|
541
|
-
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
542
|
-
})
|
|
543
|
-
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
544
|
-
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
545
|
-
| (PendleRemoveLiquidityParams$Outbound & {
|
|
546
|
-
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
547
|
-
})
|
|
548
|
-
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
549
|
-
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
550
540
|
| (SkyBuyParams$Outbound & { action_type: "SKY_BUY" })
|
|
551
541
|
| (SkyDepositParams$Outbound & { action_type: "SKY_DEPOSIT" })
|
|
552
542
|
| (SkySellParams$Outbound & { action_type: "SKY_SELL" })
|
|
@@ -559,6 +549,16 @@ export type Body$Outbound =
|
|
|
559
549
|
| (IncreaseAllowanceParams$Outbound & { action_type: "ALLOWANCE_INCREASE" })
|
|
560
550
|
| (MorphoDepositParams$Outbound & { action_type: "MORPHO_DEPOSIT" })
|
|
561
551
|
| (MorphoWithdrawParams$Outbound & { action_type: "MORPHO_WITHDRAW" })
|
|
552
|
+
| (PendleAddLiquidityParams$Outbound & {
|
|
553
|
+
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
554
|
+
})
|
|
555
|
+
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
556
|
+
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
557
|
+
| (PendleRemoveLiquidityParams$Outbound & {
|
|
558
|
+
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
559
|
+
})
|
|
560
|
+
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
561
|
+
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
562
562
|
| (TokenTransferErc20Params$Outbound & {
|
|
563
563
|
action_type: "TOKEN_TRANSFER_ERC20";
|
|
564
564
|
})
|
|
@@ -624,36 +624,6 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
624
624
|
z.object({ actionType: z.literal("MORPHO_SET_VAULT_ALLOWANCE") })
|
|
625
625
|
.transform((v) => ({ action_type: v.actionType })),
|
|
626
626
|
),
|
|
627
|
-
PendleAddLiquidityParams$outboundSchema.and(
|
|
628
|
-
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
629
|
-
v,
|
|
630
|
-
) => ({ action_type: v.actionType })),
|
|
631
|
-
),
|
|
632
|
-
PendleBuyPtParams$outboundSchema.and(
|
|
633
|
-
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
634
|
-
action_type: v.actionType,
|
|
635
|
-
})),
|
|
636
|
-
),
|
|
637
|
-
PendleBuyYtParams$outboundSchema.and(
|
|
638
|
-
z.object({ actionType: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
639
|
-
action_type: v.actionType,
|
|
640
|
-
})),
|
|
641
|
-
),
|
|
642
|
-
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
643
|
-
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
644
|
-
v,
|
|
645
|
-
) => ({ action_type: v.actionType })),
|
|
646
|
-
),
|
|
647
|
-
PendleSellPtParams$outboundSchema.and(
|
|
648
|
-
z.object({ actionType: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
649
|
-
action_type: v.actionType,
|
|
650
|
-
})),
|
|
651
|
-
),
|
|
652
|
-
PendleSellYtParams$outboundSchema.and(
|
|
653
|
-
z.object({ actionType: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
654
|
-
action_type: v.actionType,
|
|
655
|
-
})),
|
|
656
|
-
),
|
|
657
627
|
SkyBuyParams$outboundSchema.and(
|
|
658
628
|
z.object({ actionType: z.literal("SKY_BUY") }).transform((v) => ({
|
|
659
629
|
action_type: v.actionType,
|
|
@@ -704,6 +674,36 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
704
674
|
action_type: v.actionType,
|
|
705
675
|
})),
|
|
706
676
|
),
|
|
677
|
+
PendleAddLiquidityParams$outboundSchema.and(
|
|
678
|
+
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
679
|
+
v,
|
|
680
|
+
) => ({ action_type: v.actionType })),
|
|
681
|
+
),
|
|
682
|
+
PendleBuyPtParams$outboundSchema.and(
|
|
683
|
+
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
684
|
+
action_type: v.actionType,
|
|
685
|
+
})),
|
|
686
|
+
),
|
|
687
|
+
PendleBuyYtParams$outboundSchema.and(
|
|
688
|
+
z.object({ actionType: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
689
|
+
action_type: v.actionType,
|
|
690
|
+
})),
|
|
691
|
+
),
|
|
692
|
+
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
693
|
+
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
694
|
+
v,
|
|
695
|
+
) => ({ action_type: v.actionType })),
|
|
696
|
+
),
|
|
697
|
+
PendleSellPtParams$outboundSchema.and(
|
|
698
|
+
z.object({ actionType: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
699
|
+
action_type: v.actionType,
|
|
700
|
+
})),
|
|
701
|
+
),
|
|
702
|
+
PendleSellYtParams$outboundSchema.and(
|
|
703
|
+
z.object({ actionType: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
704
|
+
action_type: v.actionType,
|
|
705
|
+
})),
|
|
706
|
+
),
|
|
707
707
|
TokenTransferErc20Params$outboundSchema.and(
|
|
708
708
|
z.object({ actionType: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
709
709
|
v,
|
|
@@ -839,36 +839,6 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
839
839
|
z.object({ action_type: z.literal("MORPHO_SET_VAULT_ALLOWANCE") })
|
|
840
840
|
.transform((v) => ({ actionType: v.action_type })),
|
|
841
841
|
),
|
|
842
|
-
PendleAddLiquidityParams$inboundSchema.and(
|
|
843
|
-
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
844
|
-
v,
|
|
845
|
-
) => ({ actionType: v.action_type })),
|
|
846
|
-
),
|
|
847
|
-
PendleBuyPtParams$inboundSchema.and(
|
|
848
|
-
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
849
|
-
actionType: v.action_type,
|
|
850
|
-
})),
|
|
851
|
-
),
|
|
852
|
-
PendleBuyYtParams$inboundSchema.and(
|
|
853
|
-
z.object({ action_type: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
854
|
-
actionType: v.action_type,
|
|
855
|
-
})),
|
|
856
|
-
),
|
|
857
|
-
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
858
|
-
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
859
|
-
(v) => ({ actionType: v.action_type })
|
|
860
|
-
),
|
|
861
|
-
),
|
|
862
|
-
PendleSellPtParams$inboundSchema.and(
|
|
863
|
-
z.object({ action_type: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
864
|
-
actionType: v.action_type,
|
|
865
|
-
})),
|
|
866
|
-
),
|
|
867
|
-
PendleSellYtParams$inboundSchema.and(
|
|
868
|
-
z.object({ action_type: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
869
|
-
actionType: v.action_type,
|
|
870
|
-
})),
|
|
871
|
-
),
|
|
872
842
|
SkyBuyParams$inboundSchema.and(
|
|
873
843
|
z.object({ action_type: z.literal("SKY_BUY") }).transform((v) => ({
|
|
874
844
|
actionType: v.action_type,
|
|
@@ -919,6 +889,36 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
919
889
|
v,
|
|
920
890
|
) => ({ actionType: v.action_type })),
|
|
921
891
|
),
|
|
892
|
+
PendleAddLiquidityParams$inboundSchema.and(
|
|
893
|
+
z.object({ action_type: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
894
|
+
v,
|
|
895
|
+
) => ({ actionType: v.action_type })),
|
|
896
|
+
),
|
|
897
|
+
PendleBuyPtParams$inboundSchema.and(
|
|
898
|
+
z.object({ action_type: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
899
|
+
actionType: v.action_type,
|
|
900
|
+
})),
|
|
901
|
+
),
|
|
902
|
+
PendleBuyYtParams$inboundSchema.and(
|
|
903
|
+
z.object({ action_type: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
904
|
+
actionType: v.action_type,
|
|
905
|
+
})),
|
|
906
|
+
),
|
|
907
|
+
PendleRemoveLiquidityParams$inboundSchema.and(
|
|
908
|
+
z.object({ action_type: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform(
|
|
909
|
+
(v) => ({ actionType: v.action_type })
|
|
910
|
+
),
|
|
911
|
+
),
|
|
912
|
+
PendleSellPtParams$inboundSchema.and(
|
|
913
|
+
z.object({ action_type: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
914
|
+
actionType: v.action_type,
|
|
915
|
+
})),
|
|
916
|
+
),
|
|
917
|
+
PendleSellYtParams$inboundSchema.and(
|
|
918
|
+
z.object({ action_type: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
919
|
+
actionType: v.action_type,
|
|
920
|
+
})),
|
|
921
|
+
),
|
|
922
922
|
TokenTransferErc20Params$inboundSchema.and(
|
|
923
923
|
z.object({ action_type: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
924
924
|
v,
|
|
@@ -1008,16 +1008,6 @@ export type UserOperation$Outbound = {
|
|
|
1008
1008
|
| (MorphoSetVaultAllowanceParams$Outbound & {
|
|
1009
1009
|
action_type: "MORPHO_SET_VAULT_ALLOWANCE";
|
|
1010
1010
|
})
|
|
1011
|
-
| (PendleAddLiquidityParams$Outbound & {
|
|
1012
|
-
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
1013
|
-
})
|
|
1014
|
-
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
1015
|
-
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
1016
|
-
| (PendleRemoveLiquidityParams$Outbound & {
|
|
1017
|
-
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
1018
|
-
})
|
|
1019
|
-
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
1020
|
-
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
1021
1011
|
| (SkyBuyParams$Outbound & { action_type: "SKY_BUY" })
|
|
1022
1012
|
| (SkyDepositParams$Outbound & { action_type: "SKY_DEPOSIT" })
|
|
1023
1013
|
| (SkySellParams$Outbound & { action_type: "SKY_SELL" })
|
|
@@ -1030,6 +1020,16 @@ export type UserOperation$Outbound = {
|
|
|
1030
1020
|
| (IncreaseAllowanceParams$Outbound & { action_type: "ALLOWANCE_INCREASE" })
|
|
1031
1021
|
| (MorphoDepositParams$Outbound & { action_type: "MORPHO_DEPOSIT" })
|
|
1032
1022
|
| (MorphoWithdrawParams$Outbound & { action_type: "MORPHO_WITHDRAW" })
|
|
1023
|
+
| (PendleAddLiquidityParams$Outbound & {
|
|
1024
|
+
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
1025
|
+
})
|
|
1026
|
+
| (PendleBuyPtParams$Outbound & { action_type: "PENDLE_BUY_PT" })
|
|
1027
|
+
| (PendleBuyYtParams$Outbound & { action_type: "PENDLE_BUY_YT" })
|
|
1028
|
+
| (PendleRemoveLiquidityParams$Outbound & {
|
|
1029
|
+
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
1030
|
+
})
|
|
1031
|
+
| (PendleSellPtParams$Outbound & { action_type: "PENDLE_SELL_PT" })
|
|
1032
|
+
| (PendleSellYtParams$Outbound & { action_type: "PENDLE_SELL_YT" })
|
|
1033
1033
|
| (TokenTransferErc20Params$Outbound & {
|
|
1034
1034
|
action_type: "TOKEN_TRANSFER_ERC20";
|
|
1035
1035
|
})
|
|
@@ -1102,36 +1102,6 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1102
1102
|
z.object({ actionType: z.literal("MORPHO_SET_VAULT_ALLOWANCE") })
|
|
1103
1103
|
.transform((v) => ({ action_type: v.actionType })),
|
|
1104
1104
|
),
|
|
1105
|
-
PendleAddLiquidityParams$outboundSchema.and(
|
|
1106
|
-
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
1107
|
-
v,
|
|
1108
|
-
) => ({ action_type: v.actionType })),
|
|
1109
|
-
),
|
|
1110
|
-
PendleBuyPtParams$outboundSchema.and(
|
|
1111
|
-
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
1112
|
-
action_type: v.actionType,
|
|
1113
|
-
})),
|
|
1114
|
-
),
|
|
1115
|
-
PendleBuyYtParams$outboundSchema.and(
|
|
1116
|
-
z.object({ actionType: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
1117
|
-
action_type: v.actionType,
|
|
1118
|
-
})),
|
|
1119
|
-
),
|
|
1120
|
-
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
1121
|
-
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
1122
|
-
v,
|
|
1123
|
-
) => ({ action_type: v.actionType })),
|
|
1124
|
-
),
|
|
1125
|
-
PendleSellPtParams$outboundSchema.and(
|
|
1126
|
-
z.object({ actionType: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
1127
|
-
action_type: v.actionType,
|
|
1128
|
-
})),
|
|
1129
|
-
),
|
|
1130
|
-
PendleSellYtParams$outboundSchema.and(
|
|
1131
|
-
z.object({ actionType: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
1132
|
-
action_type: v.actionType,
|
|
1133
|
-
})),
|
|
1134
|
-
),
|
|
1135
1105
|
SkyBuyParams$outboundSchema.and(
|
|
1136
1106
|
z.object({ actionType: z.literal("SKY_BUY") }).transform((v) => ({
|
|
1137
1107
|
action_type: v.actionType,
|
|
@@ -1182,6 +1152,36 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1182
1152
|
action_type: v.actionType,
|
|
1183
1153
|
})),
|
|
1184
1154
|
),
|
|
1155
|
+
PendleAddLiquidityParams$outboundSchema.and(
|
|
1156
|
+
z.object({ actionType: z.literal("PENDLE_ADD_LIQUIDITY") }).transform((
|
|
1157
|
+
v,
|
|
1158
|
+
) => ({ action_type: v.actionType })),
|
|
1159
|
+
),
|
|
1160
|
+
PendleBuyPtParams$outboundSchema.and(
|
|
1161
|
+
z.object({ actionType: z.literal("PENDLE_BUY_PT") }).transform((v) => ({
|
|
1162
|
+
action_type: v.actionType,
|
|
1163
|
+
})),
|
|
1164
|
+
),
|
|
1165
|
+
PendleBuyYtParams$outboundSchema.and(
|
|
1166
|
+
z.object({ actionType: z.literal("PENDLE_BUY_YT") }).transform((v) => ({
|
|
1167
|
+
action_type: v.actionType,
|
|
1168
|
+
})),
|
|
1169
|
+
),
|
|
1170
|
+
PendleRemoveLiquidityParams$outboundSchema.and(
|
|
1171
|
+
z.object({ actionType: z.literal("PENDLE_REMOVE_LIQUIDITY") }).transform((
|
|
1172
|
+
v,
|
|
1173
|
+
) => ({ action_type: v.actionType })),
|
|
1174
|
+
),
|
|
1175
|
+
PendleSellPtParams$outboundSchema.and(
|
|
1176
|
+
z.object({ actionType: z.literal("PENDLE_SELL_PT") }).transform((v) => ({
|
|
1177
|
+
action_type: v.actionType,
|
|
1178
|
+
})),
|
|
1179
|
+
),
|
|
1180
|
+
PendleSellYtParams$outboundSchema.and(
|
|
1181
|
+
z.object({ actionType: z.literal("PENDLE_SELL_YT") }).transform((v) => ({
|
|
1182
|
+
action_type: v.actionType,
|
|
1183
|
+
})),
|
|
1184
|
+
),
|
|
1185
1185
|
TokenTransferErc20Params$outboundSchema.and(
|
|
1186
1186
|
z.object({ actionType: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
1187
1187
|
v,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { Pendle } from "./pendle.js";
|
|
|
10
10
|
import { Sky } from "./sky.js";
|
|
11
11
|
import { SmartAccount } from "./smartaccount.js";
|
|
12
12
|
import { Token } from "./token.js";
|
|
13
|
+
import { TransactionBatching } from "./transactionbatching.js";
|
|
13
14
|
import { UniswapV3 } from "./uniswapv3.js";
|
|
14
15
|
import { Universal } from "./universal.js";
|
|
15
16
|
|
|
@@ -56,6 +57,13 @@ export class CompassApiSDK extends ClientSDK {
|
|
|
56
57
|
return (this._pendle ??= new Pendle(this._options));
|
|
57
58
|
}
|
|
58
59
|
|
|
60
|
+
private _transactionBatching?: TransactionBatching;
|
|
61
|
+
get transactionBatching(): TransactionBatching {
|
|
62
|
+
return (this._transactionBatching ??= new TransactionBatching(
|
|
63
|
+
this._options,
|
|
64
|
+
));
|
|
65
|
+
}
|
|
66
|
+
|
|
59
67
|
private _smartAccount?: SmartAccount;
|
|
60
68
|
get smartAccount(): SmartAccount {
|
|
61
69
|
return (this._smartAccount ??= new SmartAccount(this._options));
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { transactionBatchingAaveLoop } from "../funcs/transactionBatchingAaveLoop.js";
|
|
6
|
+
import { transactionBatchingAuthorization } from "../funcs/transactionBatchingAuthorization.js";
|
|
7
|
+
import { transactionBatchingExecute } from "../funcs/transactionBatchingExecute.js";
|
|
8
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import * as components from "../models/components/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
|
|
12
|
+
export class TransactionBatching extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Enable transaction bundling.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Get authorization for bundling transactions.
|
|
18
|
+
*
|
|
19
|
+
* Currently this is required for every transaction bundle to prevent replay attacks
|
|
20
|
+
* and ensure transaction ordering when batching multiple actions into a single
|
|
21
|
+
* transaction. The authorization includes a nonce and chain ID to guarantee
|
|
22
|
+
* transaction uniqueness and proper network targeting.
|
|
23
|
+
*/
|
|
24
|
+
async authorization(
|
|
25
|
+
request: components.MulticallAuthorizationRequest,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): Promise<components.MulticallAuthorizationResponse> {
|
|
28
|
+
return unwrapAsync(transactionBatchingAuthorization(
|
|
29
|
+
this,
|
|
30
|
+
request,
|
|
31
|
+
options,
|
|
32
|
+
));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Construct Bundled Transaction
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* Bundle arbitrary transactions together into a single multicall transaction using
|
|
40
|
+
* EIP-7702.
|
|
41
|
+
*
|
|
42
|
+
* This endpoint allows bundling multiple contract calls into a single atomic
|
|
43
|
+
* transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
44
|
+
* together. The transaction must be authorized using the /authorization endpoint to
|
|
45
|
+
* prevent replay attacks.
|
|
46
|
+
*/
|
|
47
|
+
async execute(
|
|
48
|
+
request: components.MulticallExecuteRequest,
|
|
49
|
+
options?: RequestOptions,
|
|
50
|
+
): Promise<components.UnsignedMulticallTransaction> {
|
|
51
|
+
return unwrapAsync(transactionBatchingExecute(
|
|
52
|
+
this,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* AAVE leverage long/short
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* Execute an Aave looping strategy that involves repeated supply and borrow
|
|
63
|
+
* operations.
|
|
64
|
+
*
|
|
65
|
+
* This endpoint creates a multicall transaction that performs a series of operations:
|
|
66
|
+
* 1. Approves and supplies initial token
|
|
67
|
+
* 2. For each loop:
|
|
68
|
+
* - Borrows another token
|
|
69
|
+
* - Swaps borrowed token back to supply token
|
|
70
|
+
* - Supplies the swapped tokens
|
|
71
|
+
*
|
|
72
|
+
* The transaction must be authorized using the /authorization endpoint to prevent replay attacks.
|
|
73
|
+
*/
|
|
74
|
+
async aaveLoop(
|
|
75
|
+
request: components.AaveLoopRequest,
|
|
76
|
+
options?: RequestOptions,
|
|
77
|
+
): Promise<components.UnsignedMulticallTransaction> {
|
|
78
|
+
return unwrapAsync(transactionBatchingAaveLoop(
|
|
79
|
+
this,
|
|
80
|
+
request,
|
|
81
|
+
options,
|
|
82
|
+
));
|
|
83
|
+
}
|
|
84
|
+
}
|