@compass-labs/api-sdk 2.2.76-rc.3 → 2.2.76

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 (265) hide show
  1. package/README.md +3 -7
  2. package/codeSamples_typescript.yaml +0 -12
  3. package/dist/commonjs/models/components/aavelooprequest.d.ts +16 -16
  4. package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -1
  5. package/dist/commonjs/models/components/aavelooprequest.js +17 -17
  6. package/dist/commonjs/models/components/aavelooprequest.js.map +1 -1
  7. package/dist/commonjs/models/components/accountsummary.d.ts +0 -4
  8. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  10. package/dist/commonjs/models/components/collateralposition.d.ts +0 -12
  11. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/collateralposition.js +0 -4
  13. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  14. package/dist/commonjs/models/components/creditborrowparams.d.ts +0 -9
  15. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  16. package/dist/commonjs/models/components/creditborrowparams.js +0 -2
  17. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  18. package/dist/commonjs/models/components/creditborrowrequest.d.ts +0 -9
  19. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/creditborrowrequest.js +0 -2
  21. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  22. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +0 -4
  23. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  25. package/dist/commonjs/models/components/creditprotocol.d.ts +0 -9
  26. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  27. package/dist/commonjs/models/components/creditprotocol.js +0 -5
  28. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  29. package/dist/commonjs/models/components/creditrepayparams.d.ts +0 -9
  30. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/creditrepayparams.js +0 -2
  32. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  33. package/dist/commonjs/models/components/creditrepayrequest.d.ts +0 -9
  34. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  35. package/dist/commonjs/models/components/creditrepayrequest.js +0 -2
  36. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  37. package/dist/commonjs/models/components/creditsupplyparams.d.ts +0 -9
  38. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/creditsupplyparams.js +0 -2
  40. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  41. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +0 -9
  42. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/creditwithdrawparams.js +0 -2
  44. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  45. package/dist/commonjs/models/components/debtposition.d.ts +0 -12
  46. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/debtposition.js +0 -4
  48. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  49. package/dist/commonjs/models/components/index.d.ts +0 -6
  50. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  51. package/dist/commonjs/models/components/index.js +0 -6
  52. package/dist/commonjs/models/components/index.js.map +1 -1
  53. package/dist/commonjs/models/operations/index.d.ts +0 -1
  54. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  55. package/dist/commonjs/models/operations/index.js +0 -1
  56. package/dist/commonjs/models/operations/index.js.map +1 -1
  57. package/dist/commonjs/sdk/credit.d.ts +0 -32
  58. package/dist/commonjs/sdk/credit.d.ts.map +1 -1
  59. package/dist/commonjs/sdk/credit.js +0 -38
  60. package/dist/commonjs/sdk/credit.js.map +1 -1
  61. package/dist/esm/models/components/aavelooprequest.d.ts +16 -16
  62. package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -1
  63. package/dist/esm/models/components/aavelooprequest.js +12 -12
  64. package/dist/esm/models/components/aavelooprequest.js.map +1 -1
  65. package/dist/esm/models/components/accountsummary.d.ts +0 -4
  66. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  67. package/dist/esm/models/components/accountsummary.js.map +1 -1
  68. package/dist/esm/models/components/collateralposition.d.ts +0 -12
  69. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  70. package/dist/esm/models/components/collateralposition.js +0 -4
  71. package/dist/esm/models/components/collateralposition.js.map +1 -1
  72. package/dist/esm/models/components/creditborrowparams.d.ts +0 -9
  73. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  74. package/dist/esm/models/components/creditborrowparams.js +0 -2
  75. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  76. package/dist/esm/models/components/creditborrowrequest.d.ts +0 -9
  77. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  78. package/dist/esm/models/components/creditborrowrequest.js +0 -2
  79. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  80. package/dist/esm/models/components/creditenablecollateralparams.d.ts +0 -4
  81. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  82. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  83. package/dist/esm/models/components/creditprotocol.d.ts +0 -9
  84. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  85. package/dist/esm/models/components/creditprotocol.js +0 -5
  86. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  87. package/dist/esm/models/components/creditrepayparams.d.ts +0 -9
  88. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  89. package/dist/esm/models/components/creditrepayparams.js +0 -2
  90. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  91. package/dist/esm/models/components/creditrepayrequest.d.ts +0 -9
  92. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  93. package/dist/esm/models/components/creditrepayrequest.js +0 -2
  94. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  95. package/dist/esm/models/components/creditsupplyparams.d.ts +0 -9
  96. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  97. package/dist/esm/models/components/creditsupplyparams.js +0 -2
  98. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  99. package/dist/esm/models/components/creditwithdrawparams.d.ts +0 -9
  100. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  101. package/dist/esm/models/components/creditwithdrawparams.js +0 -2
  102. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  103. package/dist/esm/models/components/debtposition.d.ts +0 -12
  104. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  105. package/dist/esm/models/components/debtposition.js +0 -4
  106. package/dist/esm/models/components/debtposition.js.map +1 -1
  107. package/dist/esm/models/components/index.d.ts +0 -6
  108. package/dist/esm/models/components/index.d.ts.map +1 -1
  109. package/dist/esm/models/components/index.js +0 -6
  110. package/dist/esm/models/components/index.js.map +1 -1
  111. package/dist/esm/models/operations/index.d.ts +0 -1
  112. package/dist/esm/models/operations/index.d.ts.map +1 -1
  113. package/dist/esm/models/operations/index.js +0 -1
  114. package/dist/esm/models/operations/index.js.map +1 -1
  115. package/dist/esm/sdk/credit.d.ts +0 -32
  116. package/dist/esm/sdk/credit.d.ts.map +1 -1
  117. package/dist/esm/sdk/credit.js +0 -38
  118. package/dist/esm/sdk/credit.js.map +1 -1
  119. package/docs/models/components/aavelooprequest.md +4 -4
  120. package/docs/models/components/accountsummary.md +10 -10
  121. package/docs/models/components/collateralposition.md +14 -16
  122. package/docs/models/components/creditborrowparams.md +9 -10
  123. package/docs/models/components/creditborrowrequest.md +19 -20
  124. package/docs/models/components/creditenablecollateralparams.md +6 -6
  125. package/docs/models/components/creditprotocol.md +1 -5
  126. package/docs/models/components/creditrepayparams.md +8 -9
  127. package/docs/models/components/creditrepayrequest.md +18 -19
  128. package/docs/models/components/creditsupplyparams.md +7 -8
  129. package/docs/models/components/creditwithdrawparams.md +7 -8
  130. package/docs/models/components/debtposition.md +13 -15
  131. package/docs/models/components/{aavelooprequestinitialcollateralamount.md → initialcollateralamount.md} +1 -1
  132. package/docs/models/components/{aavelooprequestloantovalue.md → loantovalue.md} +1 -1
  133. package/docs/models/components/{aavelooprequestmaxslippagepercent.md → maxslippagepercent.md} +1 -1
  134. package/docs/models/components/{aavelooprequestmultiplier.md → multiplier.md} +1 -1
  135. package/docs/sdks/credit/README.md +0 -186
  136. package/examples/node_modules/tsx/dist/cli.cjs +1 -1
  137. package/examples/node_modules/tsx/dist/cli.mjs +1 -1
  138. package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
  139. package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
  140. package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
  141. package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
  142. package/examples/node_modules/tsx/dist/loader.cjs +1 -1
  143. package/examples/node_modules/tsx/dist/loader.mjs +1 -1
  144. package/examples/node_modules/tsx/dist/package-BhsaYzSJ.cjs +1 -0
  145. package/examples/node_modules/tsx/dist/package-REq4Oepp.mjs +1 -0
  146. package/examples/node_modules/tsx/dist/register-BBZNEaBg.cjs +2 -0
  147. package/examples/node_modules/tsx/dist/register-tkXbOgAS.mjs +2 -0
  148. package/examples/node_modules/tsx/dist/repl.cjs +1 -1
  149. package/examples/node_modules/tsx/dist/repl.mjs +1 -1
  150. package/examples/node_modules/tsx/package.json +1 -1
  151. package/examples/package-lock.json +3 -3
  152. package/openapi_prepped_for_speakeasy.json +2 -658
  153. package/package.json +1 -1
  154. package/src/models/components/aavelooprequest.ts +30 -43
  155. package/src/models/components/accountsummary.ts +0 -4
  156. package/src/models/components/collateralposition.ts +0 -16
  157. package/src/models/components/creditborrowparams.ts +0 -11
  158. package/src/models/components/creditborrowrequest.ts +0 -11
  159. package/src/models/components/creditenablecollateralparams.ts +0 -4
  160. package/src/models/components/creditprotocol.ts +0 -9
  161. package/src/models/components/creditrepayparams.ts +0 -11
  162. package/src/models/components/creditrepayrequest.ts +0 -11
  163. package/src/models/components/creditsupplyparams.ts +0 -11
  164. package/src/models/components/creditwithdrawparams.ts +0 -11
  165. package/src/models/components/debtposition.ts +0 -16
  166. package/src/models/components/index.ts +0 -6
  167. package/src/models/operations/index.ts +0 -1
  168. package/src/sdk/credit.ts +0 -54
  169. package/dist/commonjs/funcs/creditCreditLoop.d.ts +0 -31
  170. package/dist/commonjs/funcs/creditCreditLoop.d.ts.map +0 -1
  171. package/dist/commonjs/funcs/creditCreditLoop.js +0 -132
  172. package/dist/commonjs/funcs/creditCreditLoop.js.map +0 -1
  173. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts +0 -24
  174. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts.map +0 -1
  175. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js +0 -128
  176. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js.map +0 -1
  177. package/dist/commonjs/models/components/creditlooppreview.d.ts +0 -45
  178. package/dist/commonjs/models/components/creditlooppreview.d.ts.map +0 -1
  179. package/dist/commonjs/models/components/creditlooppreview.js +0 -68
  180. package/dist/commonjs/models/components/creditlooppreview.js.map +0 -1
  181. package/dist/commonjs/models/components/creditlooprequest.d.ts +0 -125
  182. package/dist/commonjs/models/components/creditlooprequest.d.ts.map +0 -1
  183. package/dist/commonjs/models/components/creditlooprequest.js +0 -98
  184. package/dist/commonjs/models/components/creditlooprequest.js.map +0 -1
  185. package/dist/commonjs/models/components/creditloopresponse.d.ts +0 -27
  186. package/dist/commonjs/models/components/creditloopresponse.d.ts.map +0 -1
  187. package/dist/commonjs/models/components/creditloopresponse.js +0 -61
  188. package/dist/commonjs/models/components/creditloopresponse.js.map +0 -1
  189. package/dist/commonjs/models/components/looplegpreview.d.ts +0 -24
  190. package/dist/commonjs/models/components/looplegpreview.d.ts.map +0 -1
  191. package/dist/commonjs/models/components/looplegpreview.js +0 -59
  192. package/dist/commonjs/models/components/looplegpreview.js.map +0 -1
  193. package/dist/commonjs/models/components/morpholendingmarket.d.ts +0 -80
  194. package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +0 -1
  195. package/dist/commonjs/models/components/morpholendingmarket.js +0 -82
  196. package/dist/commonjs/models/components/morpholendingmarket.js.map +0 -1
  197. package/dist/commonjs/models/components/morphomarketsresponse.d.ts +0 -21
  198. package/dist/commonjs/models/components/morphomarketsresponse.d.ts.map +0 -1
  199. package/dist/commonjs/models/components/morphomarketsresponse.js +0 -52
  200. package/dist/commonjs/models/components/morphomarketsresponse.js.map +0 -1
  201. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts +0 -22
  202. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts.map +0 -1
  203. package/dist/commonjs/models/operations/v2creditmorphomarkets.js +0 -57
  204. package/dist/commonjs/models/operations/v2creditmorphomarkets.js.map +0 -1
  205. package/dist/esm/funcs/creditCreditLoop.d.ts +0 -31
  206. package/dist/esm/funcs/creditCreditLoop.d.ts.map +0 -1
  207. package/dist/esm/funcs/creditCreditLoop.js +0 -96
  208. package/dist/esm/funcs/creditCreditLoop.js.map +0 -1
  209. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts +0 -24
  210. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts.map +0 -1
  211. package/dist/esm/funcs/creditCreditMorphoMarkets.js +0 -92
  212. package/dist/esm/funcs/creditCreditMorphoMarkets.js.map +0 -1
  213. package/dist/esm/models/components/creditlooppreview.d.ts +0 -45
  214. package/dist/esm/models/components/creditlooppreview.d.ts.map +0 -1
  215. package/dist/esm/models/components/creditlooppreview.js +0 -31
  216. package/dist/esm/models/components/creditlooppreview.js.map +0 -1
  217. package/dist/esm/models/components/creditlooprequest.d.ts +0 -125
  218. package/dist/esm/models/components/creditlooprequest.d.ts.map +0 -1
  219. package/dist/esm/models/components/creditlooprequest.js +0 -57
  220. package/dist/esm/models/components/creditlooprequest.js.map +0 -1
  221. package/dist/esm/models/components/creditloopresponse.d.ts +0 -27
  222. package/dist/esm/models/components/creditloopresponse.d.ts.map +0 -1
  223. package/dist/esm/models/components/creditloopresponse.js +0 -24
  224. package/dist/esm/models/components/creditloopresponse.js.map +0 -1
  225. package/dist/esm/models/components/looplegpreview.d.ts +0 -24
  226. package/dist/esm/models/components/looplegpreview.d.ts.map +0 -1
  227. package/dist/esm/models/components/looplegpreview.js +0 -22
  228. package/dist/esm/models/components/looplegpreview.js.map +0 -1
  229. package/dist/esm/models/components/morpholendingmarket.d.ts +0 -80
  230. package/dist/esm/models/components/morpholendingmarket.d.ts.map +0 -1
  231. package/dist/esm/models/components/morpholendingmarket.js +0 -45
  232. package/dist/esm/models/components/morpholendingmarket.js.map +0 -1
  233. package/dist/esm/models/components/morphomarketsresponse.d.ts +0 -21
  234. package/dist/esm/models/components/morphomarketsresponse.d.ts.map +0 -1
  235. package/dist/esm/models/components/morphomarketsresponse.js +0 -15
  236. package/dist/esm/models/components/morphomarketsresponse.js.map +0 -1
  237. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts +0 -22
  238. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts.map +0 -1
  239. package/dist/esm/models/operations/v2creditmorphomarkets.js +0 -20
  240. package/dist/esm/models/operations/v2creditmorphomarkets.js.map +0 -1
  241. package/docs/models/components/creditlooppreview.md +0 -33
  242. package/docs/models/components/creditlooprequest.md +0 -41
  243. package/docs/models/components/creditlooprequestinitialcollateralamount.md +0 -19
  244. package/docs/models/components/creditlooprequestloantovalue.md +0 -19
  245. package/docs/models/components/creditlooprequestmaxslippagepercent.md +0 -19
  246. package/docs/models/components/creditlooprequestmultiplier.md +0 -19
  247. package/docs/models/components/creditloopresponse.md +0 -30
  248. package/docs/models/components/looplegpreview.md +0 -21
  249. package/docs/models/components/morpholendingmarket.md +0 -49
  250. package/docs/models/components/morphomarketsresponse.md +0 -21
  251. package/docs/models/operations/v2creditmorphomarketschain.md +0 -15
  252. package/docs/models/operations/v2creditmorphomarketsrequest.md +0 -17
  253. package/examples/node_modules/tsx/dist/package-Bj47PlGH.mjs +0 -1
  254. package/examples/node_modules/tsx/dist/package-DMqO70yR.cjs +0 -1
  255. package/examples/node_modules/tsx/dist/register-CKju0f8h.cjs +0 -2
  256. package/examples/node_modules/tsx/dist/register-CqMfTiWi.mjs +0 -2
  257. package/src/funcs/creditCreditLoop.ts +0 -184
  258. package/src/funcs/creditCreditMorphoMarkets.ts +0 -182
  259. package/src/models/components/creditlooppreview.ts +0 -86
  260. package/src/models/components/creditlooprequest.ts +0 -235
  261. package/src/models/components/creditloopresponse.ts +0 -65
  262. package/src/models/components/looplegpreview.ts +0 -54
  263. package/src/models/components/morpholendingmarket.ts +0 -133
  264. package/src/models/components/morphomarketsresponse.ts +0 -46
  265. package/src/models/operations/v2creditmorphomarkets.ts +0 -49
@@ -21,23 +21,22 @@ let value: CreditBorrowRequest = {
21
21
 
22
22
  ## Fields
23
23
 
24
- | Field | Type | Required | Description | Example |
25
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
26
- | `owner` | *string* | :heavy_check_mark: | The address that owns the Credit Account. | 0xfeEb60eBf707DAA8248277058eb8D28EaeCF5425 |
27
- | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
28
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
29
- | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to supply into. Required when protocol=EULER and supplying collateral. | |
30
- | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault to borrow from. Required when protocol=EULER. | |
31
- | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
32
- | `tokenIn` | *string* | :heavy_minus_sign: | Token currently held in the Credit Account to use as input. If the same as collateral_token, no swap is performed. Omit together with amount_in and collateral_token to borrow against existing collateral. | USDC |
33
- | `amountIn` | *components.CreditBorrowRequestAmountIn* | :heavy_minus_sign: | Amount of token_in to use (in token units, not wei). Omit together with token_in and collateral_token for borrow-only mode. | 100 |
34
- | `collateralToken` | *string* | :heavy_minus_sign: | Aave reserve token to supply as collateral. Omit together with token_in and amount_in for borrow-only mode. | USDC |
35
- | `borrowToken` | *string* | :heavy_check_mark: | Asset to borrow from Aave. | WETH |
36
- | `borrowAmount` | *components.BorrowAmount* | :heavy_check_mark: | Amount to borrow (in token units, not wei). | 0.01 |
37
- | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
38
- | `slippage` | *components.CreditBorrowRequestSlippage* | :heavy_minus_sign: | Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed. | 0.5 |
39
- | `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 signature data instead of an unsigned transaction. | false |
40
- | `fee` | [components.CreditFee](../../models/components/creditfee.md) | :heavy_minus_sign: | Optional fee configuration. If provided, a fee will be deducted from the borrowed amount and sent to the specified recipient address. | |
41
- | `permit2Signature` | *string* | :heavy_minus_sign: | The EOA owner's signature of the Permit2 PermitTransferFrom typed data. When provided, the borrow bundle will first pull token_in from the owner's EOA into the Credit Account via Permit2. Obtain by calling /v2/credit/transfer and signing the returned EIP-712 data. | |
42
- | `permit2Nonce` | *number* | :heavy_minus_sign: | The nonce used in the Permit2 signature (from the signed typed data). | |
43
- | `permit2Deadline` | *number* | :heavy_minus_sign: | The deadline timestamp used in the Permit2 signature (from the signed typed data). | |
24
+ | Field | Type | Required | Description | Example |
25
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
26
+ | `owner` | *string* | :heavy_check_mark: | The address that owns the Credit Account. | 0xfeEb60eBf707DAA8248277058eb8D28EaeCF5425 |
27
+ | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
28
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es). | |
29
+ | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to supply into. Required when protocol=EULER and supplying collateral. | |
30
+ | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault to borrow from. Required when protocol=EULER. | |
31
+ | `tokenIn` | *string* | :heavy_minus_sign: | Token currently held in the Credit Account to use as input. If the same as collateral_token, no swap is performed. Omit together with amount_in and collateral_token to borrow against existing collateral. | USDC |
32
+ | `amountIn` | *components.CreditBorrowRequestAmountIn* | :heavy_minus_sign: | Amount of token_in to use (in token units, not wei). Omit together with token_in and collateral_token for borrow-only mode. | 100 |
33
+ | `collateralToken` | *string* | :heavy_minus_sign: | Aave reserve token to supply as collateral. Omit together with token_in and amount_in for borrow-only mode. | USDC |
34
+ | `borrowToken` | *string* | :heavy_check_mark: | Asset to borrow from Aave. | WETH |
35
+ | `borrowAmount` | *components.BorrowAmount* | :heavy_check_mark: | Amount to borrow (in token units, not wei). | 0.01 |
36
+ | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
37
+ | `slippage` | *components.CreditBorrowRequestSlippage* | :heavy_minus_sign: | Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed. | 0.5 |
38
+ | `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 signature data instead of an unsigned transaction. | false |
39
+ | `fee` | [components.CreditFee](../../models/components/creditfee.md) | :heavy_minus_sign: | Optional fee configuration. If provided, a fee will be deducted from the borrowed amount and sent to the specified recipient address. | |
40
+ | `permit2Signature` | *string* | :heavy_minus_sign: | The EOA owner's signature of the Permit2 PermitTransferFrom typed data. When provided, the borrow bundle will first pull token_in from the owner's EOA into the Credit Account via Permit2. Obtain by calling /v2/credit/transfer and signing the returned EIP-712 data. | |
41
+ | `permit2Nonce` | *number* | :heavy_minus_sign: | The nonce used in the Permit2 signature (from the signed typed data). | |
42
+ | `permit2Deadline` | *number* | :heavy_minus_sign: | The deadline timestamp used in the Permit2 signature (from the signed typed data). | |
@@ -18,9 +18,9 @@ let value: CreditEnableCollateralParams = {
18
18
 
19
19
  ## Fields
20
20
 
21
- | Field | Type | Required | Description | Example |
22
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
23
- | `actionType` | *"CREDIT_ENABLE_COLLATERAL"* | :heavy_check_mark: | N/A | CREDIT_ENABLE_COLLATERAL |
24
- | `token` | *string* | :heavy_check_mark: | The underlying reserve token to enable as collateral (e.g. USDC, not aUSDC). | |
25
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
26
- | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to enable. Required when protocol=EULER. | |
21
+ | Field | Type | Required | Description | Example |
22
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
23
+ | `actionType` | *"CREDIT_ENABLE_COLLATERAL"* | :heavy_check_mark: | N/A | CREDIT_ENABLE_COLLATERAL |
24
+ | `token` | *string* | :heavy_check_mark: | The underlying reserve token to enable as collateral (e.g. USDC, not aUSDC). | |
25
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es). | |
26
+ | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to enable. Required when protocol=EULER. | |
@@ -5,10 +5,6 @@ Which lending protocol a credit action targets.
5
5
  ``AAVE`` is the default so existing callers (which never send a ``protocol``
6
6
  field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
7
7
  Euler V2 path, where the market is identified by EVK vault address(es).
8
- ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
9
- currently read-only: positions and market discovery only — transaction
10
- builders land with the looping work (COM-7106/7107/7108), so transact
11
- endpoints reject it with a 422.
12
8
 
13
9
  ## Example Usage
14
10
 
@@ -21,5 +17,5 @@ let value: CreditProtocol = "AAVE";
21
17
  ## Values
22
18
 
23
19
  ```typescript
24
- "AAVE" | "EULER" | "MORPHO"
20
+ "AAVE" | "EULER"
25
21
  ```
@@ -16,12 +16,11 @@ let value: CreditRepayParams = {
16
16
 
17
17
  ## Fields
18
18
 
19
- | Field | Type | Required | Description | Example |
20
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
21
- | `actionType` | *"CREDIT_REPAY"* | :heavy_check_mark: | N/A | CREDIT_REPAY |
22
- | `token` | *string* | :heavy_check_mark: | Token to repay. | |
23
- | `amount` | *components.CreditRepayParamsAmount* | :heavy_check_mark: | Amount in token units to repay. | |
24
- | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
25
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
26
- | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault the debt is owed to. Required when protocol=EULER. | |
27
- | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
19
+ | Field | Type | Required | Description | Example |
20
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | `actionType` | *"CREDIT_REPAY"* | :heavy_check_mark: | N/A | CREDIT_REPAY |
22
+ | `token` | *string* | :heavy_check_mark: | Token to repay. | |
23
+ | `amount` | *components.CreditRepayParamsAmount* | :heavy_check_mark: | Amount in token units to repay. | |
24
+ | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
25
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es). | |
26
+ | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault the debt is owed to. Required when protocol=EULER. | |