@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
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { Chain, Chain$inboundSchema, Chain$outboundSchema } from "./chain.js";
|
|
11
|
+
import {
|
|
12
|
+
SignedAuthorization,
|
|
13
|
+
SignedAuthorization$inboundSchema,
|
|
14
|
+
SignedAuthorization$Outbound,
|
|
15
|
+
SignedAuthorization$outboundSchema,
|
|
16
|
+
} from "./signedauthorization.js";
|
|
17
|
+
import {
|
|
18
|
+
UserOperation,
|
|
19
|
+
UserOperation$inboundSchema,
|
|
20
|
+
UserOperation$Outbound,
|
|
21
|
+
UserOperation$outboundSchema,
|
|
22
|
+
} from "./useroperation.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Request model for executing a multicall.
|
|
26
|
+
*/
|
|
27
|
+
export type MulticallExecuteRequest = {
|
|
28
|
+
/**
|
|
29
|
+
* The chain to use.
|
|
30
|
+
*/
|
|
31
|
+
chain: Chain;
|
|
32
|
+
/**
|
|
33
|
+
* The address of the transaction sender.
|
|
34
|
+
*/
|
|
35
|
+
sender: string;
|
|
36
|
+
signedAuthorization: SignedAuthorization;
|
|
37
|
+
/**
|
|
38
|
+
* List of possible actions for multicall
|
|
39
|
+
*/
|
|
40
|
+
actions: Array<UserOperation>;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const MulticallExecuteRequest$inboundSchema: z.ZodType<
|
|
45
|
+
MulticallExecuteRequest,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
chain: Chain$inboundSchema,
|
|
50
|
+
sender: z.string(),
|
|
51
|
+
signed_authorization: SignedAuthorization$inboundSchema,
|
|
52
|
+
actions: z.array(UserOperation$inboundSchema),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
"signed_authorization": "signedAuthorization",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type MulticallExecuteRequest$Outbound = {
|
|
61
|
+
chain: string;
|
|
62
|
+
sender: string;
|
|
63
|
+
signed_authorization: SignedAuthorization$Outbound;
|
|
64
|
+
actions: Array<UserOperation$Outbound>;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const MulticallExecuteRequest$outboundSchema: z.ZodType<
|
|
69
|
+
MulticallExecuteRequest$Outbound,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
MulticallExecuteRequest
|
|
72
|
+
> = z.object({
|
|
73
|
+
chain: Chain$outboundSchema,
|
|
74
|
+
sender: z.string(),
|
|
75
|
+
signedAuthorization: SignedAuthorization$outboundSchema,
|
|
76
|
+
actions: z.array(UserOperation$outboundSchema),
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
signedAuthorization: "signed_authorization",
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export namespace MulticallExecuteRequest$ {
|
|
88
|
+
/** @deprecated use `MulticallExecuteRequest$inboundSchema` instead. */
|
|
89
|
+
export const inboundSchema = MulticallExecuteRequest$inboundSchema;
|
|
90
|
+
/** @deprecated use `MulticallExecuteRequest$outboundSchema` instead. */
|
|
91
|
+
export const outboundSchema = MulticallExecuteRequest$outboundSchema;
|
|
92
|
+
/** @deprecated use `MulticallExecuteRequest$Outbound` instead. */
|
|
93
|
+
export type Outbound = MulticallExecuteRequest$Outbound;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function multicallExecuteRequestToJSON(
|
|
97
|
+
multicallExecuteRequest: MulticallExecuteRequest,
|
|
98
|
+
): string {
|
|
99
|
+
return JSON.stringify(
|
|
100
|
+
MulticallExecuteRequest$outboundSchema.parse(multicallExecuteRequest),
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function multicallExecuteRequestFromJSON(
|
|
105
|
+
jsonString: string,
|
|
106
|
+
): SafeParseResult<MulticallExecuteRequest, SDKValidationError> {
|
|
107
|
+
return safeParse(
|
|
108
|
+
jsonString,
|
|
109
|
+
(x) => MulticallExecuteRequest$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'MulticallExecuteRequest' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
@@ -23,6 +23,10 @@ export type PendleAddLiquidityParams = {
|
|
|
23
23
|
* The amount of liquidity you would like to add to the market denominated in the market's Underlying Token.
|
|
24
24
|
*/
|
|
25
25
|
amount: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
28
|
+
*/
|
|
29
|
+
maxSlippagePercent: number;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
/** @internal */
|
|
@@ -86,10 +90,12 @@ export const PendleAddLiquidityParams$inboundSchema: z.ZodType<
|
|
|
86
90
|
),
|
|
87
91
|
market_address: z.string(),
|
|
88
92
|
amount: z.union([z.number(), z.string()]),
|
|
93
|
+
max_slippage_percent: z.number(),
|
|
89
94
|
}).transform((v) => {
|
|
90
95
|
return remap$(v, {
|
|
91
96
|
"action_type": "actionType",
|
|
92
97
|
"market_address": "marketAddress",
|
|
98
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
93
99
|
});
|
|
94
100
|
});
|
|
95
101
|
|
|
@@ -98,6 +104,7 @@ export type PendleAddLiquidityParams$Outbound = {
|
|
|
98
104
|
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
99
105
|
market_address: string;
|
|
100
106
|
amount: number | string;
|
|
107
|
+
max_slippage_percent: number;
|
|
101
108
|
};
|
|
102
109
|
|
|
103
110
|
/** @internal */
|
|
@@ -111,10 +118,12 @@ export const PendleAddLiquidityParams$outboundSchema: z.ZodType<
|
|
|
111
118
|
),
|
|
112
119
|
marketAddress: z.string(),
|
|
113
120
|
amount: z.union([z.number(), z.string()]),
|
|
121
|
+
maxSlippagePercent: z.number(),
|
|
114
122
|
}).transform((v) => {
|
|
115
123
|
return remap$(v, {
|
|
116
124
|
actionType: "action_type",
|
|
117
125
|
marketAddress: "market_address",
|
|
126
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
118
127
|
});
|
|
119
128
|
});
|
|
120
129
|
|
|
@@ -24,6 +24,10 @@ export type PendleAddLiquidityRequest = {
|
|
|
24
24
|
* The amount of liquidity you would like to add to the market denominated in the market's Underlying Token.
|
|
25
25
|
*/
|
|
26
26
|
amount: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
29
|
+
*/
|
|
30
|
+
maxSlippagePercent: number;
|
|
27
31
|
/**
|
|
28
32
|
* The chain to use.
|
|
29
33
|
*/
|
|
@@ -95,12 +99,14 @@ export const PendleAddLiquidityRequest$inboundSchema: z.ZodType<
|
|
|
95
99
|
),
|
|
96
100
|
market_address: z.string(),
|
|
97
101
|
amount: z.union([z.number(), z.string()]),
|
|
102
|
+
max_slippage_percent: z.number(),
|
|
98
103
|
chain: Chain$inboundSchema,
|
|
99
104
|
sender: z.string(),
|
|
100
105
|
}).transform((v) => {
|
|
101
106
|
return remap$(v, {
|
|
102
107
|
"action_type": "actionType",
|
|
103
108
|
"market_address": "marketAddress",
|
|
109
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
104
110
|
});
|
|
105
111
|
});
|
|
106
112
|
|
|
@@ -109,6 +115,7 @@ export type PendleAddLiquidityRequest$Outbound = {
|
|
|
109
115
|
action_type: "PENDLE_ADD_LIQUIDITY";
|
|
110
116
|
market_address: string;
|
|
111
117
|
amount: number | string;
|
|
118
|
+
max_slippage_percent: number;
|
|
112
119
|
chain: string;
|
|
113
120
|
sender: string;
|
|
114
121
|
};
|
|
@@ -124,12 +131,14 @@ export const PendleAddLiquidityRequest$outboundSchema: z.ZodType<
|
|
|
124
131
|
),
|
|
125
132
|
marketAddress: z.string(),
|
|
126
133
|
amount: z.union([z.number(), z.string()]),
|
|
134
|
+
maxSlippagePercent: z.number(),
|
|
127
135
|
chain: Chain$outboundSchema,
|
|
128
136
|
sender: z.string(),
|
|
129
137
|
}).transform((v) => {
|
|
130
138
|
return remap$(v, {
|
|
131
139
|
actionType: "action_type",
|
|
132
140
|
marketAddress: "market_address",
|
|
141
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
133
142
|
});
|
|
134
143
|
});
|
|
135
144
|
|
|
@@ -23,6 +23,10 @@ export type PendleBuyPtParams = {
|
|
|
23
23
|
* The amount of market's Underlying Token you would like to sell for market's Principal Token (PT).
|
|
24
24
|
*/
|
|
25
25
|
amount: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
28
|
+
*/
|
|
29
|
+
maxSlippagePercent: number;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
/** @internal */
|
|
@@ -82,10 +86,12 @@ export const PendleBuyPtParams$inboundSchema: z.ZodType<
|
|
|
82
86
|
action_type: z.literal("PENDLE_BUY_PT").default("PENDLE_BUY_PT"),
|
|
83
87
|
market_address: z.string(),
|
|
84
88
|
amount: z.union([z.number(), z.string()]),
|
|
89
|
+
max_slippage_percent: z.number(),
|
|
85
90
|
}).transform((v) => {
|
|
86
91
|
return remap$(v, {
|
|
87
92
|
"action_type": "actionType",
|
|
88
93
|
"market_address": "marketAddress",
|
|
94
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
89
95
|
});
|
|
90
96
|
});
|
|
91
97
|
|
|
@@ -94,6 +100,7 @@ export type PendleBuyPtParams$Outbound = {
|
|
|
94
100
|
action_type: "PENDLE_BUY_PT";
|
|
95
101
|
market_address: string;
|
|
96
102
|
amount: number | string;
|
|
103
|
+
max_slippage_percent: number;
|
|
97
104
|
};
|
|
98
105
|
|
|
99
106
|
/** @internal */
|
|
@@ -105,10 +112,12 @@ export const PendleBuyPtParams$outboundSchema: z.ZodType<
|
|
|
105
112
|
actionType: z.literal("PENDLE_BUY_PT").default("PENDLE_BUY_PT" as const),
|
|
106
113
|
marketAddress: z.string(),
|
|
107
114
|
amount: z.union([z.number(), z.string()]),
|
|
115
|
+
maxSlippagePercent: z.number(),
|
|
108
116
|
}).transform((v) => {
|
|
109
117
|
return remap$(v, {
|
|
110
118
|
actionType: "action_type",
|
|
111
119
|
marketAddress: "market_address",
|
|
120
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
112
121
|
});
|
|
113
122
|
});
|
|
114
123
|
|
|
@@ -24,6 +24,10 @@ export type PendleBuyPtRequest = {
|
|
|
24
24
|
* The amount of market's Underlying Token you would like to sell for market's Principal Token (PT).
|
|
25
25
|
*/
|
|
26
26
|
amount: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
29
|
+
*/
|
|
30
|
+
maxSlippagePercent: number;
|
|
27
31
|
/**
|
|
28
32
|
* The chain to use.
|
|
29
33
|
*/
|
|
@@ -91,12 +95,14 @@ export const PendleBuyPtRequest$inboundSchema: z.ZodType<
|
|
|
91
95
|
action_type: z.literal("PENDLE_BUY_PT").default("PENDLE_BUY_PT"),
|
|
92
96
|
market_address: z.string(),
|
|
93
97
|
amount: z.union([z.number(), z.string()]),
|
|
98
|
+
max_slippage_percent: z.number(),
|
|
94
99
|
chain: Chain$inboundSchema,
|
|
95
100
|
sender: z.string(),
|
|
96
101
|
}).transform((v) => {
|
|
97
102
|
return remap$(v, {
|
|
98
103
|
"action_type": "actionType",
|
|
99
104
|
"market_address": "marketAddress",
|
|
105
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
100
106
|
});
|
|
101
107
|
});
|
|
102
108
|
|
|
@@ -105,6 +111,7 @@ export type PendleBuyPtRequest$Outbound = {
|
|
|
105
111
|
action_type: "PENDLE_BUY_PT";
|
|
106
112
|
market_address: string;
|
|
107
113
|
amount: number | string;
|
|
114
|
+
max_slippage_percent: number;
|
|
108
115
|
chain: string;
|
|
109
116
|
sender: string;
|
|
110
117
|
};
|
|
@@ -118,12 +125,14 @@ export const PendleBuyPtRequest$outboundSchema: z.ZodType<
|
|
|
118
125
|
actionType: z.literal("PENDLE_BUY_PT").default("PENDLE_BUY_PT" as const),
|
|
119
126
|
marketAddress: z.string(),
|
|
120
127
|
amount: z.union([z.number(), z.string()]),
|
|
128
|
+
maxSlippagePercent: z.number(),
|
|
121
129
|
chain: Chain$outboundSchema,
|
|
122
130
|
sender: z.string(),
|
|
123
131
|
}).transform((v) => {
|
|
124
132
|
return remap$(v, {
|
|
125
133
|
actionType: "action_type",
|
|
126
134
|
marketAddress: "market_address",
|
|
135
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -23,6 +23,10 @@ export type PendleBuyYtParams = {
|
|
|
23
23
|
* The amount of market's Underlying Token you would like to sell for market's Yield Token (YT).
|
|
24
24
|
*/
|
|
25
25
|
amount: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
28
|
+
*/
|
|
29
|
+
maxSlippagePercent: number;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
/** @internal */
|
|
@@ -82,10 +86,12 @@ export const PendleBuyYtParams$inboundSchema: z.ZodType<
|
|
|
82
86
|
action_type: z.literal("PENDLE_BUY_YT").default("PENDLE_BUY_YT"),
|
|
83
87
|
market_address: z.string(),
|
|
84
88
|
amount: z.union([z.number(), z.string()]),
|
|
89
|
+
max_slippage_percent: z.number(),
|
|
85
90
|
}).transform((v) => {
|
|
86
91
|
return remap$(v, {
|
|
87
92
|
"action_type": "actionType",
|
|
88
93
|
"market_address": "marketAddress",
|
|
94
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
89
95
|
});
|
|
90
96
|
});
|
|
91
97
|
|
|
@@ -94,6 +100,7 @@ export type PendleBuyYtParams$Outbound = {
|
|
|
94
100
|
action_type: "PENDLE_BUY_YT";
|
|
95
101
|
market_address: string;
|
|
96
102
|
amount: number | string;
|
|
103
|
+
max_slippage_percent: number;
|
|
97
104
|
};
|
|
98
105
|
|
|
99
106
|
/** @internal */
|
|
@@ -105,10 +112,12 @@ export const PendleBuyYtParams$outboundSchema: z.ZodType<
|
|
|
105
112
|
actionType: z.literal("PENDLE_BUY_YT").default("PENDLE_BUY_YT" as const),
|
|
106
113
|
marketAddress: z.string(),
|
|
107
114
|
amount: z.union([z.number(), z.string()]),
|
|
115
|
+
maxSlippagePercent: z.number(),
|
|
108
116
|
}).transform((v) => {
|
|
109
117
|
return remap$(v, {
|
|
110
118
|
actionType: "action_type",
|
|
111
119
|
marketAddress: "market_address",
|
|
120
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
112
121
|
});
|
|
113
122
|
});
|
|
114
123
|
|
|
@@ -24,6 +24,10 @@ export type PendleBuyYtRequest = {
|
|
|
24
24
|
* The amount of market's Underlying Token you would like to sell for market's Yield Token (YT).
|
|
25
25
|
*/
|
|
26
26
|
amount: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
29
|
+
*/
|
|
30
|
+
maxSlippagePercent: number;
|
|
27
31
|
/**
|
|
28
32
|
* The chain to use.
|
|
29
33
|
*/
|
|
@@ -91,12 +95,14 @@ export const PendleBuyYtRequest$inboundSchema: z.ZodType<
|
|
|
91
95
|
action_type: z.literal("PENDLE_BUY_YT").default("PENDLE_BUY_YT"),
|
|
92
96
|
market_address: z.string(),
|
|
93
97
|
amount: z.union([z.number(), z.string()]),
|
|
98
|
+
max_slippage_percent: z.number(),
|
|
94
99
|
chain: Chain$inboundSchema,
|
|
95
100
|
sender: z.string(),
|
|
96
101
|
}).transform((v) => {
|
|
97
102
|
return remap$(v, {
|
|
98
103
|
"action_type": "actionType",
|
|
99
104
|
"market_address": "marketAddress",
|
|
105
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
100
106
|
});
|
|
101
107
|
});
|
|
102
108
|
|
|
@@ -105,6 +111,7 @@ export type PendleBuyYtRequest$Outbound = {
|
|
|
105
111
|
action_type: "PENDLE_BUY_YT";
|
|
106
112
|
market_address: string;
|
|
107
113
|
amount: number | string;
|
|
114
|
+
max_slippage_percent: number;
|
|
108
115
|
chain: string;
|
|
109
116
|
sender: string;
|
|
110
117
|
};
|
|
@@ -118,12 +125,14 @@ export const PendleBuyYtRequest$outboundSchema: z.ZodType<
|
|
|
118
125
|
actionType: z.literal("PENDLE_BUY_YT").default("PENDLE_BUY_YT" as const),
|
|
119
126
|
marketAddress: z.string(),
|
|
120
127
|
amount: z.union([z.number(), z.string()]),
|
|
128
|
+
maxSlippagePercent: z.number(),
|
|
121
129
|
chain: Chain$outboundSchema,
|
|
122
130
|
sender: z.string(),
|
|
123
131
|
}).transform((v) => {
|
|
124
132
|
return remap$(v, {
|
|
125
133
|
actionType: "action_type",
|
|
126
134
|
marketAddress: "market_address",
|
|
135
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -23,6 +23,10 @@ export type PendleRemoveLiquidityParams = {
|
|
|
23
23
|
* The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP).
|
|
24
24
|
*/
|
|
25
25
|
amount: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
28
|
+
*/
|
|
29
|
+
maxSlippagePercent: number;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
/** @internal */
|
|
@@ -87,10 +91,12 @@ export const PendleRemoveLiquidityParams$inboundSchema: z.ZodType<
|
|
|
87
91
|
),
|
|
88
92
|
market_address: z.string(),
|
|
89
93
|
amount: z.union([z.number(), z.string()]),
|
|
94
|
+
max_slippage_percent: z.number(),
|
|
90
95
|
}).transform((v) => {
|
|
91
96
|
return remap$(v, {
|
|
92
97
|
"action_type": "actionType",
|
|
93
98
|
"market_address": "marketAddress",
|
|
99
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
94
100
|
});
|
|
95
101
|
});
|
|
96
102
|
|
|
@@ -99,6 +105,7 @@ export type PendleRemoveLiquidityParams$Outbound = {
|
|
|
99
105
|
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
100
106
|
market_address: string;
|
|
101
107
|
amount: number | string;
|
|
108
|
+
max_slippage_percent: number;
|
|
102
109
|
};
|
|
103
110
|
|
|
104
111
|
/** @internal */
|
|
@@ -112,10 +119,12 @@ export const PendleRemoveLiquidityParams$outboundSchema: z.ZodType<
|
|
|
112
119
|
),
|
|
113
120
|
marketAddress: z.string(),
|
|
114
121
|
amount: z.union([z.number(), z.string()]),
|
|
122
|
+
maxSlippagePercent: z.number(),
|
|
115
123
|
}).transform((v) => {
|
|
116
124
|
return remap$(v, {
|
|
117
125
|
actionType: "action_type",
|
|
118
126
|
marketAddress: "market_address",
|
|
127
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
119
128
|
});
|
|
120
129
|
});
|
|
121
130
|
|
|
@@ -24,6 +24,10 @@ export type PendleRemoveLiquidityRequest = {
|
|
|
24
24
|
* The amount of liquidity you would like to remove from the market denominated in the market's Liquidity Provider Token (LP).
|
|
25
25
|
*/
|
|
26
26
|
amount: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
29
|
+
*/
|
|
30
|
+
maxSlippagePercent: number;
|
|
27
31
|
/**
|
|
28
32
|
* The chain to use.
|
|
29
33
|
*/
|
|
@@ -97,12 +101,14 @@ export const PendleRemoveLiquidityRequest$inboundSchema: z.ZodType<
|
|
|
97
101
|
),
|
|
98
102
|
market_address: z.string(),
|
|
99
103
|
amount: z.union([z.number(), z.string()]),
|
|
104
|
+
max_slippage_percent: z.number(),
|
|
100
105
|
chain: Chain$inboundSchema,
|
|
101
106
|
sender: z.string(),
|
|
102
107
|
}).transform((v) => {
|
|
103
108
|
return remap$(v, {
|
|
104
109
|
"action_type": "actionType",
|
|
105
110
|
"market_address": "marketAddress",
|
|
111
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
106
112
|
});
|
|
107
113
|
});
|
|
108
114
|
|
|
@@ -111,6 +117,7 @@ export type PendleRemoveLiquidityRequest$Outbound = {
|
|
|
111
117
|
action_type: "PENDLE_REMOVE_LIQUIDITY";
|
|
112
118
|
market_address: string;
|
|
113
119
|
amount: number | string;
|
|
120
|
+
max_slippage_percent: number;
|
|
114
121
|
chain: string;
|
|
115
122
|
sender: string;
|
|
116
123
|
};
|
|
@@ -126,12 +133,14 @@ export const PendleRemoveLiquidityRequest$outboundSchema: z.ZodType<
|
|
|
126
133
|
),
|
|
127
134
|
marketAddress: z.string(),
|
|
128
135
|
amount: z.union([z.number(), z.string()]),
|
|
136
|
+
maxSlippagePercent: z.number(),
|
|
129
137
|
chain: Chain$outboundSchema,
|
|
130
138
|
sender: z.string(),
|
|
131
139
|
}).transform((v) => {
|
|
132
140
|
return remap$(v, {
|
|
133
141
|
actionType: "action_type",
|
|
134
142
|
marketAddress: "market_address",
|
|
143
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
135
144
|
});
|
|
136
145
|
});
|
|
137
146
|
|
|
@@ -23,6 +23,10 @@ export type PendleSellPtParams = {
|
|
|
23
23
|
* The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token.
|
|
24
24
|
*/
|
|
25
25
|
amount: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
28
|
+
*/
|
|
29
|
+
maxSlippagePercent: number;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
/** @internal */
|
|
@@ -82,10 +86,12 @@ export const PendleSellPtParams$inboundSchema: z.ZodType<
|
|
|
82
86
|
action_type: z.literal("PENDLE_SELL_PT").default("PENDLE_SELL_PT"),
|
|
83
87
|
market_address: z.string(),
|
|
84
88
|
amount: z.union([z.number(), z.string()]),
|
|
89
|
+
max_slippage_percent: z.number(),
|
|
85
90
|
}).transform((v) => {
|
|
86
91
|
return remap$(v, {
|
|
87
92
|
"action_type": "actionType",
|
|
88
93
|
"market_address": "marketAddress",
|
|
94
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
89
95
|
});
|
|
90
96
|
});
|
|
91
97
|
|
|
@@ -94,6 +100,7 @@ export type PendleSellPtParams$Outbound = {
|
|
|
94
100
|
action_type: "PENDLE_SELL_PT";
|
|
95
101
|
market_address: string;
|
|
96
102
|
amount: number | string;
|
|
103
|
+
max_slippage_percent: number;
|
|
97
104
|
};
|
|
98
105
|
|
|
99
106
|
/** @internal */
|
|
@@ -105,10 +112,12 @@ export const PendleSellPtParams$outboundSchema: z.ZodType<
|
|
|
105
112
|
actionType: z.literal("PENDLE_SELL_PT").default("PENDLE_SELL_PT" as const),
|
|
106
113
|
marketAddress: z.string(),
|
|
107
114
|
amount: z.union([z.number(), z.string()]),
|
|
115
|
+
maxSlippagePercent: z.number(),
|
|
108
116
|
}).transform((v) => {
|
|
109
117
|
return remap$(v, {
|
|
110
118
|
actionType: "action_type",
|
|
111
119
|
marketAddress: "market_address",
|
|
120
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
112
121
|
});
|
|
113
122
|
});
|
|
114
123
|
|
|
@@ -24,6 +24,10 @@ export type PendleSellPtRequest = {
|
|
|
24
24
|
* The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token.
|
|
25
25
|
*/
|
|
26
26
|
amount: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
29
|
+
*/
|
|
30
|
+
maxSlippagePercent: number;
|
|
27
31
|
/**
|
|
28
32
|
* The chain to use.
|
|
29
33
|
*/
|
|
@@ -91,12 +95,14 @@ export const PendleSellPtRequest$inboundSchema: z.ZodType<
|
|
|
91
95
|
action_type: z.literal("PENDLE_SELL_PT").default("PENDLE_SELL_PT"),
|
|
92
96
|
market_address: z.string(),
|
|
93
97
|
amount: z.union([z.number(), z.string()]),
|
|
98
|
+
max_slippage_percent: z.number(),
|
|
94
99
|
chain: Chain$inboundSchema,
|
|
95
100
|
sender: z.string(),
|
|
96
101
|
}).transform((v) => {
|
|
97
102
|
return remap$(v, {
|
|
98
103
|
"action_type": "actionType",
|
|
99
104
|
"market_address": "marketAddress",
|
|
105
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
100
106
|
});
|
|
101
107
|
});
|
|
102
108
|
|
|
@@ -105,6 +111,7 @@ export type PendleSellPtRequest$Outbound = {
|
|
|
105
111
|
action_type: "PENDLE_SELL_PT";
|
|
106
112
|
market_address: string;
|
|
107
113
|
amount: number | string;
|
|
114
|
+
max_slippage_percent: number;
|
|
108
115
|
chain: string;
|
|
109
116
|
sender: string;
|
|
110
117
|
};
|
|
@@ -118,12 +125,14 @@ export const PendleSellPtRequest$outboundSchema: z.ZodType<
|
|
|
118
125
|
actionType: z.literal("PENDLE_SELL_PT").default("PENDLE_SELL_PT" as const),
|
|
119
126
|
marketAddress: z.string(),
|
|
120
127
|
amount: z.union([z.number(), z.string()]),
|
|
128
|
+
maxSlippagePercent: z.number(),
|
|
121
129
|
chain: Chain$outboundSchema,
|
|
122
130
|
sender: z.string(),
|
|
123
131
|
}).transform((v) => {
|
|
124
132
|
return remap$(v, {
|
|
125
133
|
actionType: "action_type",
|
|
126
134
|
marketAddress: "market_address",
|
|
135
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|
|
@@ -23,6 +23,10 @@ export type PendleSellYtParams = {
|
|
|
23
23
|
* The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token.
|
|
24
24
|
*/
|
|
25
25
|
amount: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
28
|
+
*/
|
|
29
|
+
maxSlippagePercent: number;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
/** @internal */
|
|
@@ -82,10 +86,12 @@ export const PendleSellYtParams$inboundSchema: z.ZodType<
|
|
|
82
86
|
action_type: z.literal("PENDLE_SELL_YT").default("PENDLE_SELL_YT"),
|
|
83
87
|
market_address: z.string(),
|
|
84
88
|
amount: z.union([z.number(), z.string()]),
|
|
89
|
+
max_slippage_percent: z.number(),
|
|
85
90
|
}).transform((v) => {
|
|
86
91
|
return remap$(v, {
|
|
87
92
|
"action_type": "actionType",
|
|
88
93
|
"market_address": "marketAddress",
|
|
94
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
89
95
|
});
|
|
90
96
|
});
|
|
91
97
|
|
|
@@ -94,6 +100,7 @@ export type PendleSellYtParams$Outbound = {
|
|
|
94
100
|
action_type: "PENDLE_SELL_YT";
|
|
95
101
|
market_address: string;
|
|
96
102
|
amount: number | string;
|
|
103
|
+
max_slippage_percent: number;
|
|
97
104
|
};
|
|
98
105
|
|
|
99
106
|
/** @internal */
|
|
@@ -105,10 +112,12 @@ export const PendleSellYtParams$outboundSchema: z.ZodType<
|
|
|
105
112
|
actionType: z.literal("PENDLE_SELL_YT").default("PENDLE_SELL_YT" as const),
|
|
106
113
|
marketAddress: z.string(),
|
|
107
114
|
amount: z.union([z.number(), z.string()]),
|
|
115
|
+
maxSlippagePercent: z.number(),
|
|
108
116
|
}).transform((v) => {
|
|
109
117
|
return remap$(v, {
|
|
110
118
|
actionType: "action_type",
|
|
111
119
|
marketAddress: "market_address",
|
|
120
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
112
121
|
});
|
|
113
122
|
});
|
|
114
123
|
|
|
@@ -24,6 +24,10 @@ export type PendleSellYtRequest = {
|
|
|
24
24
|
* The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token.
|
|
25
25
|
*/
|
|
26
26
|
amount: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum slippage allowed in percent. e.g. `1` means `1%` slippage allowed.
|
|
29
|
+
*/
|
|
30
|
+
maxSlippagePercent: number;
|
|
27
31
|
/**
|
|
28
32
|
* The chain to use.
|
|
29
33
|
*/
|
|
@@ -91,12 +95,14 @@ export const PendleSellYtRequest$inboundSchema: z.ZodType<
|
|
|
91
95
|
action_type: z.literal("PENDLE_SELL_YT").default("PENDLE_SELL_YT"),
|
|
92
96
|
market_address: z.string(),
|
|
93
97
|
amount: z.union([z.number(), z.string()]),
|
|
98
|
+
max_slippage_percent: z.number(),
|
|
94
99
|
chain: Chain$inboundSchema,
|
|
95
100
|
sender: z.string(),
|
|
96
101
|
}).transform((v) => {
|
|
97
102
|
return remap$(v, {
|
|
98
103
|
"action_type": "actionType",
|
|
99
104
|
"market_address": "marketAddress",
|
|
105
|
+
"max_slippage_percent": "maxSlippagePercent",
|
|
100
106
|
});
|
|
101
107
|
});
|
|
102
108
|
|
|
@@ -105,6 +111,7 @@ export type PendleSellYtRequest$Outbound = {
|
|
|
105
111
|
action_type: "PENDLE_SELL_YT";
|
|
106
112
|
market_address: string;
|
|
107
113
|
amount: number | string;
|
|
114
|
+
max_slippage_percent: number;
|
|
108
115
|
chain: string;
|
|
109
116
|
sender: string;
|
|
110
117
|
};
|
|
@@ -118,12 +125,14 @@ export const PendleSellYtRequest$outboundSchema: z.ZodType<
|
|
|
118
125
|
actionType: z.literal("PENDLE_SELL_YT").default("PENDLE_SELL_YT" as const),
|
|
119
126
|
marketAddress: z.string(),
|
|
120
127
|
amount: z.union([z.number(), z.string()]),
|
|
128
|
+
maxSlippagePercent: z.number(),
|
|
121
129
|
chain: Chain$outboundSchema,
|
|
122
130
|
sender: z.string(),
|
|
123
131
|
}).transform((v) => {
|
|
124
132
|
return remap$(v, {
|
|
125
133
|
actionType: "action_type",
|
|
126
134
|
marketAddress: "market_address",
|
|
135
|
+
maxSlippagePercent: "max_slippage_percent",
|
|
127
136
|
});
|
|
128
137
|
});
|
|
129
138
|
|