@compass-labs/api-sdk 0.5.14 → 0.5.16

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.
Files changed (133) hide show
  1. package/bin/mcp-server.js +145 -97
  2. package/bin/mcp-server.js.map +18 -18
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts +5 -0
  8. package/dist/commonjs/models/components/pendleaddliquidityparams.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/pendleaddliquidityparams.js +4 -0
  10. package/dist/commonjs/models/components/pendleaddliquidityparams.js.map +1 -1
  11. package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts +5 -0
  12. package/dist/commonjs/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/pendleaddliquidityrequest.js +4 -0
  14. package/dist/commonjs/models/components/pendleaddliquidityrequest.js.map +1 -1
  15. package/dist/commonjs/models/components/pendlebuyptparams.d.ts +5 -0
  16. package/dist/commonjs/models/components/pendlebuyptparams.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/pendlebuyptparams.js +4 -0
  18. package/dist/commonjs/models/components/pendlebuyptparams.js.map +1 -1
  19. package/dist/commonjs/models/components/pendlebuyptrequest.d.ts +5 -0
  20. package/dist/commonjs/models/components/pendlebuyptrequest.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/pendlebuyptrequest.js +4 -0
  22. package/dist/commonjs/models/components/pendlebuyptrequest.js.map +1 -1
  23. package/dist/commonjs/models/components/pendlebuyytparams.d.ts +5 -0
  24. package/dist/commonjs/models/components/pendlebuyytparams.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/pendlebuyytparams.js +4 -0
  26. package/dist/commonjs/models/components/pendlebuyytparams.js.map +1 -1
  27. package/dist/commonjs/models/components/pendlebuyytrequest.d.ts +5 -0
  28. package/dist/commonjs/models/components/pendlebuyytrequest.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/pendlebuyytrequest.js +4 -0
  30. package/dist/commonjs/models/components/pendlebuyytrequest.js.map +1 -1
  31. package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts +5 -0
  32. package/dist/commonjs/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/pendleremoveliquidityparams.js +4 -0
  34. package/dist/commonjs/models/components/pendleremoveliquidityparams.js.map +1 -1
  35. package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts +5 -0
  36. package/dist/commonjs/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/pendleremoveliquidityrequest.js +4 -0
  38. package/dist/commonjs/models/components/pendleremoveliquidityrequest.js.map +1 -1
  39. package/dist/commonjs/models/components/pendlesellptparams.d.ts +5 -0
  40. package/dist/commonjs/models/components/pendlesellptparams.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/pendlesellptparams.js +4 -0
  42. package/dist/commonjs/models/components/pendlesellptparams.js.map +1 -1
  43. package/dist/commonjs/models/components/pendlesellptrequest.d.ts +5 -0
  44. package/dist/commonjs/models/components/pendlesellptrequest.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/pendlesellptrequest.js +4 -0
  46. package/dist/commonjs/models/components/pendlesellptrequest.js.map +1 -1
  47. package/dist/commonjs/models/components/pendlesellytparams.d.ts +5 -0
  48. package/dist/commonjs/models/components/pendlesellytparams.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/pendlesellytparams.js +4 -0
  50. package/dist/commonjs/models/components/pendlesellytparams.js.map +1 -1
  51. package/dist/commonjs/models/components/pendlesellytrequest.d.ts +5 -0
  52. package/dist/commonjs/models/components/pendlesellytrequest.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/pendlesellytrequest.js +4 -0
  54. package/dist/commonjs/models/components/pendlesellytrequest.js.map +1 -1
  55. package/dist/commonjs/models/components/useroperation.d.ts +48 -48
  56. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/useroperation.js +56 -56
  58. package/dist/commonjs/models/components/useroperation.js.map +1 -1
  59. package/dist/esm/lib/config.d.ts +2 -2
  60. package/dist/esm/lib/config.js +2 -2
  61. package/dist/esm/mcp-server/mcp-server.js +1 -1
  62. package/dist/esm/mcp-server/server.js +1 -1
  63. package/dist/esm/models/components/pendleaddliquidityparams.d.ts +5 -0
  64. package/dist/esm/models/components/pendleaddliquidityparams.d.ts.map +1 -1
  65. package/dist/esm/models/components/pendleaddliquidityparams.js +4 -0
  66. package/dist/esm/models/components/pendleaddliquidityparams.js.map +1 -1
  67. package/dist/esm/models/components/pendleaddliquidityrequest.d.ts +5 -0
  68. package/dist/esm/models/components/pendleaddliquidityrequest.d.ts.map +1 -1
  69. package/dist/esm/models/components/pendleaddliquidityrequest.js +4 -0
  70. package/dist/esm/models/components/pendleaddliquidityrequest.js.map +1 -1
  71. package/dist/esm/models/components/pendlebuyptparams.d.ts +5 -0
  72. package/dist/esm/models/components/pendlebuyptparams.d.ts.map +1 -1
  73. package/dist/esm/models/components/pendlebuyptparams.js +4 -0
  74. package/dist/esm/models/components/pendlebuyptparams.js.map +1 -1
  75. package/dist/esm/models/components/pendlebuyptrequest.d.ts +5 -0
  76. package/dist/esm/models/components/pendlebuyptrequest.d.ts.map +1 -1
  77. package/dist/esm/models/components/pendlebuyptrequest.js +4 -0
  78. package/dist/esm/models/components/pendlebuyptrequest.js.map +1 -1
  79. package/dist/esm/models/components/pendlebuyytparams.d.ts +5 -0
  80. package/dist/esm/models/components/pendlebuyytparams.d.ts.map +1 -1
  81. package/dist/esm/models/components/pendlebuyytparams.js +4 -0
  82. package/dist/esm/models/components/pendlebuyytparams.js.map +1 -1
  83. package/dist/esm/models/components/pendlebuyytrequest.d.ts +5 -0
  84. package/dist/esm/models/components/pendlebuyytrequest.d.ts.map +1 -1
  85. package/dist/esm/models/components/pendlebuyytrequest.js +4 -0
  86. package/dist/esm/models/components/pendlebuyytrequest.js.map +1 -1
  87. package/dist/esm/models/components/pendleremoveliquidityparams.d.ts +5 -0
  88. package/dist/esm/models/components/pendleremoveliquidityparams.d.ts.map +1 -1
  89. package/dist/esm/models/components/pendleremoveliquidityparams.js +4 -0
  90. package/dist/esm/models/components/pendleremoveliquidityparams.js.map +1 -1
  91. package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts +5 -0
  92. package/dist/esm/models/components/pendleremoveliquidityrequest.d.ts.map +1 -1
  93. package/dist/esm/models/components/pendleremoveliquidityrequest.js +4 -0
  94. package/dist/esm/models/components/pendleremoveliquidityrequest.js.map +1 -1
  95. package/dist/esm/models/components/pendlesellptparams.d.ts +5 -0
  96. package/dist/esm/models/components/pendlesellptparams.d.ts.map +1 -1
  97. package/dist/esm/models/components/pendlesellptparams.js +4 -0
  98. package/dist/esm/models/components/pendlesellptparams.js.map +1 -1
  99. package/dist/esm/models/components/pendlesellptrequest.d.ts +5 -0
  100. package/dist/esm/models/components/pendlesellptrequest.d.ts.map +1 -1
  101. package/dist/esm/models/components/pendlesellptrequest.js +4 -0
  102. package/dist/esm/models/components/pendlesellptrequest.js.map +1 -1
  103. package/dist/esm/models/components/pendlesellytparams.d.ts +5 -0
  104. package/dist/esm/models/components/pendlesellytparams.d.ts.map +1 -1
  105. package/dist/esm/models/components/pendlesellytparams.js +4 -0
  106. package/dist/esm/models/components/pendlesellytparams.js.map +1 -1
  107. package/dist/esm/models/components/pendlesellytrequest.d.ts +5 -0
  108. package/dist/esm/models/components/pendlesellytrequest.d.ts.map +1 -1
  109. package/dist/esm/models/components/pendlesellytrequest.js +4 -0
  110. package/dist/esm/models/components/pendlesellytrequest.js.map +1 -1
  111. package/dist/esm/models/components/useroperation.d.ts +48 -48
  112. package/dist/esm/models/components/useroperation.d.ts.map +1 -1
  113. package/dist/esm/models/components/useroperation.js +56 -56
  114. package/dist/esm/models/components/useroperation.js.map +1 -1
  115. package/docs/sdks/pendle/README.md +12 -0
  116. package/jsr.json +1 -1
  117. package/package.json +1 -1
  118. package/src/lib/config.ts +2 -2
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +1 -1
  121. package/src/models/components/pendleaddliquidityparams.ts +9 -0
  122. package/src/models/components/pendleaddliquidityrequest.ts +9 -0
  123. package/src/models/components/pendlebuyptparams.ts +9 -0
  124. package/src/models/components/pendlebuyptrequest.ts +9 -0
  125. package/src/models/components/pendlebuyytparams.ts +9 -0
  126. package/src/models/components/pendlebuyytrequest.ts +9 -0
  127. package/src/models/components/pendleremoveliquidityparams.ts +9 -0
  128. package/src/models/components/pendleremoveliquidityrequest.ts +9 -0
  129. package/src/models/components/pendlesellptparams.ts +9 -0
  130. package/src/models/components/pendlesellptrequest.ts +9 -0
  131. package/src/models/components/pendlesellytparams.ts +9 -0
  132. package/src/models/components/pendlesellytrequest.ts +9 -0
  133. package/src/models/components/useroperation.ts +152 -152
@@ -310,6 +310,7 @@ async function run() {
310
310
  const result = await compassApiSDK.pendle.buyPt({
311
311
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
312
312
  amount: 1.5,
313
+ maxSlippagePercent: 0.5,
313
314
  chain: "arbitrum:mainnet",
314
315
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
315
316
  });
@@ -338,6 +339,7 @@ async function run() {
338
339
  const res = await pendleBuyPt(compassApiSDK, {
339
340
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
340
341
  amount: 1.5,
342
+ maxSlippagePercent: 0.5,
341
343
  chain: "arbitrum:mainnet",
342
344
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
343
345
  });
@@ -389,6 +391,7 @@ async function run() {
389
391
  const result = await compassApiSDK.pendle.sellPt({
390
392
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
391
393
  amount: 1.5,
394
+ maxSlippagePercent: 0.5,
392
395
  chain: "base:mainnet",
393
396
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
394
397
  });
@@ -417,6 +420,7 @@ async function run() {
417
420
  const res = await pendleSellPt(compassApiSDK, {
418
421
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
419
422
  amount: 1.5,
423
+ maxSlippagePercent: 0.5,
420
424
  chain: "base:mainnet",
421
425
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
422
426
  });
@@ -468,6 +472,7 @@ async function run() {
468
472
  const result = await compassApiSDK.pendle.buyYt({
469
473
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
470
474
  amount: 1.5,
475
+ maxSlippagePercent: 0.5,
471
476
  chain: "arbitrum:mainnet",
472
477
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
473
478
  });
@@ -496,6 +501,7 @@ async function run() {
496
501
  const res = await pendleBuyYt(compassApiSDK, {
497
502
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
498
503
  amount: 1.5,
504
+ maxSlippagePercent: 0.5,
499
505
  chain: "arbitrum:mainnet",
500
506
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
501
507
  });
@@ -547,6 +553,7 @@ async function run() {
547
553
  const result = await compassApiSDK.pendle.sellYt({
548
554
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
549
555
  amount: 1.5,
556
+ maxSlippagePercent: 0.5,
550
557
  chain: "arbitrum:mainnet",
551
558
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
552
559
  });
@@ -575,6 +582,7 @@ async function run() {
575
582
  const res = await pendleSellYt(compassApiSDK, {
576
583
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
577
584
  amount: 1.5,
585
+ maxSlippagePercent: 0.5,
578
586
  chain: "arbitrum:mainnet",
579
587
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
580
588
  });
@@ -706,6 +714,7 @@ async function run() {
706
714
  const result = await compassApiSDK.pendle.addLiquidity({
707
715
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
708
716
  amount: 1.5,
717
+ maxSlippagePercent: 0.5,
709
718
  chain: "base:mainnet",
710
719
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
711
720
  });
@@ -734,6 +743,7 @@ async function run() {
734
743
  const res = await pendleAddLiquidity(compassApiSDK, {
735
744
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
736
745
  amount: 1.5,
746
+ maxSlippagePercent: 0.5,
737
747
  chain: "base:mainnet",
738
748
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
739
749
  });
@@ -789,6 +799,7 @@ async function run() {
789
799
  const result = await compassApiSDK.pendle.removeLiquidity({
790
800
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
791
801
  amount: 1.5,
802
+ maxSlippagePercent: 0.5,
792
803
  chain: "arbitrum:mainnet",
793
804
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
794
805
  });
@@ -817,6 +828,7 @@ async function run() {
817
828
  const res = await pendleRemoveLiquidity(compassApiSDK, {
818
829
  marketAddress: "0x08a152834de126d2ef83d612ff36e4523fd0017f",
819
830
  amount: 1.5,
831
+ maxSlippagePercent: 0.5,
820
832
  chain: "arbitrum:mainnet",
821
833
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
822
834
  });
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@compass-labs/api-sdk",
5
- "version": "0.5.14",
5
+ "version": "0.5.16",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "0.5.14",
3
+ "version": "0.5.16",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "bin": {
package/src/lib/config.ts CHANGED
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "0.0.1",
64
- sdkVersion: "0.5.14",
64
+ sdkVersion: "0.5.16",
65
65
  genVersion: "2.628.0",
66
66
  userAgent:
67
- "speakeasy-sdk/typescript 0.5.14 2.628.0 0.0.1 @compass-labs/api-sdk",
67
+ "speakeasy-sdk/typescript 0.5.16 2.628.0 0.0.1 @compass-labs/api-sdk",
68
68
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.5.14",
22
+ currentVersion: "0.5.16",
23
23
  },
24
24
  });
25
25
 
@@ -100,7 +100,7 @@ export function createMCPServer(deps: {
100
100
  }) {
101
101
  const server = new McpServer({
102
102
  name: "CompassApiSDK",
103
- version: "0.5.14",
103
+ version: "0.5.16",
104
104
  });
105
105
 
106
106
  const client = new CompassApiSDKCore({
@@ -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