compass_api_sdk 0.9.35__py3-none-any.whl → 2.0.21rc1__py3-none-any.whl

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 (322) hide show
  1. compass_api_sdk/_hooks/sdkhooks.py +4 -4
  2. compass_api_sdk/_hooks/types.py +1 -2
  3. compass_api_sdk/_version.py +3 -3
  4. compass_api_sdk/aave_v3.py +971 -728
  5. compass_api_sdk/aerodrome_slipstream.py +367 -390
  6. compass_api_sdk/basesdk.py +21 -5
  7. compass_api_sdk/bridge.py +536 -0
  8. compass_api_sdk/earn.py +1780 -0
  9. compass_api_sdk/erc_4626_vaults.py +127 -154
  10. compass_api_sdk/errors/__init__.py +38 -4
  11. compass_api_sdk/errors/apierror.py +32 -14
  12. compass_api_sdk/errors/compassapierror.py +30 -0
  13. compass_api_sdk/errors/httpvalidationerror.py +15 -8
  14. compass_api_sdk/errors/mintpreparenotfoundresponse_error.py +49 -0
  15. compass_api_sdk/errors/no_response_error.py +17 -0
  16. compass_api_sdk/errors/responsevalidationerror.py +27 -0
  17. compass_api_sdk/{token_sdk.py → ethena.py} +318 -293
  18. compass_api_sdk/gas_sponsorship.py +446 -0
  19. compass_api_sdk/httpclient.py +0 -1
  20. compass_api_sdk/models/__init__.py +1701 -945
  21. compass_api_sdk/models/aaveborrowparams.py +4 -13
  22. compass_api_sdk/models/aaveborrowrequest.py +19 -19
  23. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +8 -8
  24. compass_api_sdk/models/aavelooprequest.py +88 -36
  25. compass_api_sdk/models/aaveposition.py +49 -0
  26. compass_api_sdk/models/aaverepayparams.py +4 -13
  27. compass_api_sdk/models/aaverepayrequest.py +19 -19
  28. compass_api_sdk/models/aavereserveoverviewresponse.py +34 -3
  29. compass_api_sdk/models/aavesetuseremodeparams.py +28 -0
  30. compass_api_sdk/models/aavesetuseremoderequest.py +48 -0
  31. compass_api_sdk/models/aavesupplyparams.py +4 -13
  32. compass_api_sdk/models/aavesupplyrequest.py +19 -19
  33. compass_api_sdk/models/aavesupportedtokenmetadata.py +30 -0
  34. compass_api_sdk/models/aavesupportedtokensresponse.py +20 -0
  35. compass_api_sdk/models/aavevenue.py +27 -0
  36. compass_api_sdk/models/aavewithdrawparams.py +4 -13
  37. compass_api_sdk/models/aavewithdrawrequest.py +19 -19
  38. compass_api_sdk/models/aerodromeenrichedposition.py +109 -0
  39. compass_api_sdk/models/aerodromelppositionsresponse.py +10 -7
  40. compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
  41. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +21 -31
  42. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +13 -6
  43. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
  44. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +21 -31
  45. compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
  46. compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
  47. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +20 -30
  48. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +13 -6
  49. compass_api_sdk/models/approvetransferrequest.py +32 -0
  50. compass_api_sdk/models/{curator.py → approvetransferresponse.py} +12 -13
  51. compass_api_sdk/models/apy.py +3 -0
  52. compass_api_sdk/models/batchedsafeoperationsresponse_input.py +52 -0
  53. compass_api_sdk/models/batchedsafeoperationsresponse_output.py +52 -0
  54. compass_api_sdk/models/batcheduseroperationsrequest.py +24 -9
  55. compass_api_sdk/models/bundlertransactionresponse.py +17 -0
  56. compass_api_sdk/models/chain.py +3 -3
  57. compass_api_sdk/models/chainmarketinfo.py +29 -0
  58. compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py → compass_api_backend_v1_models_generic_read_response_portfolio_tokenbalance.py} +6 -15
  59. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_apydata.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_apydata.py} +2 -2
  60. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_asset.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_asset.py} +2 -2
  61. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_marketstate.py} +4 -2
  62. compass_api_sdk/models/compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultposition.py +30 -0
  63. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultstate.py} +2 -2
  64. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_apydata.py → compass_api_backend_v1_models_morpho_read_response_get_market_apydata.py} +2 -2
  65. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vault_asset.py → compass_api_backend_v1_models_morpho_read_response_get_market_asset.py} +5 -5
  66. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_market_marketstate.py} +4 -2
  67. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_asset.py → compass_api_backend_v1_models_morpho_read_response_get_markets_asset.py} +2 -2
  68. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_markets_marketstate.py} +2 -2
  69. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_asset.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_asset.py} +2 -2
  70. compass_api_sdk/models/compass_api_backend_v1_models_morpho_read_response_get_vaults_vaultstate.py +73 -0
  71. compass_api_sdk/models/compass_api_backend_v1_models_pendle_read_response_market_userposition.py +82 -0
  72. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_tokenbalance.py → compass_api_backend_v1_models_pendle_read_response_positions_tokenbalance.py} +2 -2
  73. compass_api_sdk/models/compass_api_backend_v1_models_vaults_read_response_vault_userposition.py +20 -0
  74. compass_api_sdk/models/compass_api_backend_v1_models_wildcat_read_response_market_userposition.py +22 -0
  75. compass_api_sdk/models/compass_api_backend_v2_models_earn_read_response_positions_vaultposition.py +49 -0
  76. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain.py +36 -0
  77. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types.py +36 -0
  78. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain.py +37 -0
  79. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types.py +32 -0
  80. compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain.py +29 -0
  81. compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types.py +34 -0
  82. compass_api_sdk/models/cooldownposition.py +35 -0
  83. compass_api_sdk/models/createaccountrequest.py +40 -0
  84. compass_api_sdk/models/createaccountresponse.py +56 -0
  85. compass_api_sdk/models/depositforburnrequest.py +77 -0
  86. compass_api_sdk/models/depositforburnresponse.py +100 -0
  87. compass_api_sdk/models/details.py +44 -7
  88. compass_api_sdk/models/earnmanageparams.py +74 -0
  89. compass_api_sdk/models/earnmanagerequest.py +130 -0
  90. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_asset.py → earnmanageresponse.py} +13 -21
  91. compass_api_sdk/models/earnpositionsresponse.py +39 -0
  92. compass_api_sdk/models/earnswapparams.py +74 -0
  93. compass_api_sdk/models/earnswaprequest.py +90 -0
  94. compass_api_sdk/models/earnswapresponse.py +55 -0
  95. compass_api_sdk/models/earntransferrequest.py +104 -0
  96. compass_api_sdk/models/earntransferresponse.py +71 -0
  97. compass_api_sdk/models/eip712domainfield.py +20 -0
  98. compass_api_sdk/models/eip712field.py +20 -0
  99. compass_api_sdk/models/ethenadepositparams.py +82 -0
  100. compass_api_sdk/models/ethenadepositrequest.py +100 -0
  101. compass_api_sdk/models/ethenagetvaultresponse.py +109 -0
  102. compass_api_sdk/models/ethenarequesttowithdrawparams.py +28 -0
  103. compass_api_sdk/models/ethenarequesttowithdrawrequest.py +46 -0
  104. compass_api_sdk/models/ethenarequesttowithdrawtransactionresponse.py +37 -0
  105. compass_api_sdk/models/ethenaunstakeparams.py +65 -0
  106. compass_api_sdk/models/ethenaunstakerequest.py +83 -0
  107. compass_api_sdk/models/fee.py +42 -0
  108. compass_api_sdk/models/listaavemarketsresponse.py +21 -0
  109. compass_api_sdk/models/marketposition.py +5 -5
  110. compass_api_sdk/models/maxsupplyapyinfo.py +34 -0
  111. compass_api_sdk/models/mintpreparecompletedresponse.py +46 -0
  112. compass_api_sdk/models/mintpreparependingresponse.py +65 -0
  113. compass_api_sdk/models/mintpreparereadyresponse.py +43 -0
  114. compass_api_sdk/models/mintpreparerequest.py +25 -0
  115. compass_api_sdk/models/morphoborrowrequest.py +9 -3
  116. compass_api_sdk/models/morphocheckuserpositionresponse.py +9 -3
  117. compass_api_sdk/models/morphodepositrequest.py +9 -3
  118. compass_api_sdk/models/morphogetmarketresponse.py +72 -31
  119. compass_api_sdk/models/morphomarket.py +26 -20
  120. compass_api_sdk/models/morphorepayrequest.py +14 -3
  121. compass_api_sdk/models/morphosupplycollateralrequest.py +14 -3
  122. compass_api_sdk/models/morphovault.py +10 -10
  123. compass_api_sdk/models/morphowithdrawcollateralrequest.py +9 -3
  124. compass_api_sdk/models/morphowithdrawrequest.py +9 -3
  125. compass_api_sdk/models/movement10percent.py +65 -10
  126. compass_api_sdk/models/multicallauthorizationrequest.py +9 -9
  127. compass_api_sdk/models/multicallexecuterequest.py +59 -11
  128. compass_api_sdk/models/odosswapparams.py +52 -0
  129. compass_api_sdk/models/odosswaprequest.py +72 -0
  130. compass_api_sdk/models/odostransactionresponse.py +37 -0
  131. compass_api_sdk/models/oneinchswapparams.py +59 -0
  132. compass_api_sdk/models/openposition.py +7 -7
  133. compass_api_sdk/models/operationtype.py +11 -0
  134. compass_api_sdk/models/pendlegetmarketresponse.py +52 -2
  135. compass_api_sdk/models/pendlemanageliquidityparams.py +68 -0
  136. compass_api_sdk/models/pendlemanageliquidityrequest.py +87 -0
  137. compass_api_sdk/models/pendleredeemyieldrequest.py +15 -6
  138. compass_api_sdk/models/pendletradeptparams.py +68 -0
  139. compass_api_sdk/models/pendletradeptrequest.py +87 -0
  140. compass_api_sdk/models/pendletradeytparams.py +68 -0
  141. compass_api_sdk/models/pendletradeytrequest.py +87 -0
  142. compass_api_sdk/models/pendletxresponse.py +36 -0
  143. compass_api_sdk/models/permit2typeddata_input.py +46 -0
  144. compass_api_sdk/models/permit2typeddata_output.py +46 -0
  145. compass_api_sdk/models/permitfield.py +20 -0
  146. compass_api_sdk/models/permitmessage.py +39 -0
  147. compass_api_sdk/models/permittransferfrommessage.py +29 -0
  148. compass_api_sdk/models/permittypeddataresponse_input.py +50 -0
  149. compass_api_sdk/models/permittypeddataresponse_output.py +50 -0
  150. compass_api_sdk/models/portfolio.py +5 -5
  151. compass_api_sdk/models/protocol.py +13 -0
  152. compass_api_sdk/models/reserve.py +6 -15
  153. compass_api_sdk/models/safetransactionparams.py +78 -0
  154. compass_api_sdk/models/safetransactionresponse.py +28 -0
  155. compass_api_sdk/models/safetxfield.py +20 -0
  156. compass_api_sdk/models/safetxmessage.py +66 -0
  157. compass_api_sdk/models/setallowanceparams.py +5 -16
  158. compass_api_sdk/models/setallowancerequest.py +19 -22
  159. compass_api_sdk/models/skybuyrequest.py +12 -9
  160. compass_api_sdk/models/skydepositrequest.py +13 -9
  161. compass_api_sdk/models/skysellrequest.py +12 -9
  162. compass_api_sdk/models/skywithdrawrequest.py +13 -9
  163. compass_api_sdk/models/sponsorgasrequest.py +71 -0
  164. compass_api_sdk/models/sponsorgasresponse.py +14 -0
  165. compass_api_sdk/models/supportedchaininfo.py +19 -0
  166. compass_api_sdk/models/tokenbalanceresponse.py +5 -15
  167. compass_api_sdk/models/tokenconfig.py +30 -0
  168. compass_api_sdk/models/tokenlistresponse.py +21 -0
  169. compass_api_sdk/models/tokenmarketdata.py +27 -0
  170. compass_api_sdk/models/tokenpermissions.py +20 -0
  171. compass_api_sdk/models/tokentransferparams.py +54 -0
  172. compass_api_sdk/models/tokentransferrequest.py +23 -27
  173. compass_api_sdk/models/transactionresponse.py +31 -0
  174. compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_asset.py → underlyingtoken.py} +2 -2
  175. compass_api_sdk/models/uniswapbuyexactlyparams.py +19 -41
  176. compass_api_sdk/models/uniswapbuyexactlyrequest.py +31 -44
  177. compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +37 -0
  178. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +15 -6
  179. compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
  180. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +23 -31
  181. compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
  182. compass_api_sdk/models/uniswappositionssolidityresponse.py +42 -2
  183. compass_api_sdk/models/uniswapsellexactlyparams.py +19 -41
  184. compass_api_sdk/models/uniswapsellexactlyrequest.py +31 -44
  185. compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +37 -0
  186. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +15 -6
  187. compass_api_sdk/models/unsignedmulticalltransaction.py +44 -13
  188. compass_api_sdk/models/unsignedtransaction.py +44 -13
  189. compass_api_sdk/models/unwrapwethrequest.py +15 -6
  190. compass_api_sdk/models/useroperation.py +61 -49
  191. compass_api_sdk/models/useroperationresponse.py +2 -2
  192. compass_api_sdk/models/userstate.py +3 -3
  193. compass_api_sdk/models/v1_aave_aave_supported_tokensop.py +69 -0
  194. compass_api_sdk/models/v1_aave_avg_rateop.py +83 -0
  195. compass_api_sdk/models/{aave_historical_transactionsop.py → v1_aave_historical_transactionsop.py} +21 -25
  196. compass_api_sdk/models/v1_aave_liquidity_changeop.py +45 -0
  197. compass_api_sdk/models/{pendle_marketop.py → v1_aave_rateop.py} +16 -20
  198. compass_api_sdk/models/v1_aave_reserve_overviewop.py +76 -0
  199. compass_api_sdk/models/v1_aave_std_rateop.py +83 -0
  200. compass_api_sdk/models/v1_aave_token_priceop.py +76 -0
  201. compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +83 -0
  202. compass_api_sdk/models/{aave_user_position_summaryop.py → v1_aave_user_position_summaryop.py} +16 -20
  203. compass_api_sdk/models/v1_aerodrome_slipstream_liquidity_provision_positionsop.py +76 -0
  204. compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +45 -0
  205. compass_api_sdk/models/v1_ethena_vaultop.py +75 -0
  206. compass_api_sdk/models/{generic_allowanceop.py → v1_generic_allowanceop.py} +28 -41
  207. compass_api_sdk/models/{generic_ensop.py → v1_generic_ensop.py} +8 -14
  208. compass_api_sdk/models/{generic_portfolioop.py → v1_generic_portfolioop.py} +10 -14
  209. compass_api_sdk/models/v1_generic_supported_chainsop.py +57 -0
  210. compass_api_sdk/models/{morpho_market_positionop.py → v1_morpho_market_positionop.py} +11 -10
  211. compass_api_sdk/models/{morpho_marketop.py → v1_morpho_marketop.py} +10 -9
  212. compass_api_sdk/models/{morpho_marketsop.py → v1_morpho_marketsop.py} +13 -12
  213. compass_api_sdk/models/{morpho_user_positionop.py → v1_morpho_user_positionop.py} +10 -9
  214. compass_api_sdk/models/{vaults_vaultop.py → v1_morpho_vaultop.py} +16 -20
  215. compass_api_sdk/models/{morpho_vaultsop.py → v1_morpho_vaultsop.py} +11 -10
  216. compass_api_sdk/models/{pendle_positionop.py → v1_pendle_marketop.py} +24 -27
  217. compass_api_sdk/models/v1_pendle_marketsop.py +24 -0
  218. compass_api_sdk/models/{pendle_positionsop.py → v1_pendle_positionsop.py} +10 -14
  219. compass_api_sdk/models/v1_sky_positionop.py +29 -0
  220. compass_api_sdk/models/v1_token_balanceop.py +38 -0
  221. compass_api_sdk/models/v1_token_listop.py +24 -0
  222. compass_api_sdk/models/v1_token_priceop.py +76 -0
  223. compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +27 -0
  224. compass_api_sdk/models/{uniswap_liquidity_provision_in_rangeop.py → v1_uniswap_liquidity_provision_in_rangeop.py} +10 -14
  225. compass_api_sdk/models/{uniswap_liquidity_provision_positionsop.py → v1_uniswap_liquidity_provision_positionsop.py} +10 -14
  226. compass_api_sdk/models/v1_uniswap_pool_priceop.py +58 -0
  227. compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +79 -0
  228. compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +79 -0
  229. compass_api_sdk/models/v1_vaults_vaultop.py +84 -0
  230. compass_api_sdk/models/v1_wildcat_marketop.py +82 -0
  231. compass_api_sdk/models/v2_cctp_mintop.py +47 -0
  232. compass_api_sdk/models/v2_earn_aave_marketsop.py +57 -0
  233. compass_api_sdk/models/v2_earn_positionsop.py +56 -0
  234. compass_api_sdk/models/v2_earn_vaultsop.py +105 -0
  235. compass_api_sdk/models/v2bundlerequest.py +33 -0
  236. compass_api_sdk/models/v2bundleresponse.py +67 -0
  237. compass_api_sdk/models/v2useroperation.py +37 -0
  238. compass_api_sdk/models/vault.py +14 -14
  239. compass_api_sdk/models/vaultdepositparams.py +85 -0
  240. compass_api_sdk/models/vaultdepositrequest.py +15 -6
  241. compass_api_sdk/models/vaultgetvaultresponse.py +21 -11
  242. compass_api_sdk/models/vaultinfo.py +129 -0
  243. compass_api_sdk/models/vaultsresponse.py +30 -0
  244. compass_api_sdk/models/vaultvenue.py +27 -0
  245. compass_api_sdk/models/vaultwithdrawparams.py +75 -0
  246. compass_api_sdk/models/vaultwithdrawrequest.py +15 -6
  247. compass_api_sdk/models/wildcatgetmarketresponse.py +151 -0
  248. compass_api_sdk/models/{redeemunderlying.py → withdraw.py} +2 -2
  249. compass_api_sdk/models/wrapethrequest.py +15 -6
  250. compass_api_sdk/morpho.py +481 -816
  251. compass_api_sdk/pendle.py +495 -1384
  252. compass_api_sdk/sdk.py +39 -13
  253. compass_api_sdk/sky.py +275 -240
  254. compass_api_sdk/smart_account.py +37 -50
  255. compass_api_sdk/swap.py +248 -0
  256. compass_api_sdk/token.py +1192 -0
  257. compass_api_sdk/transaction_bundler.py +151 -184
  258. compass_api_sdk/uniswap_v3.py +531 -620
  259. compass_api_sdk/universal.py +181 -932
  260. compass_api_sdk/utils/__init__.py +18 -5
  261. compass_api_sdk/utils/annotations.py +32 -8
  262. compass_api_sdk/utils/eventstreaming.py +10 -0
  263. compass_api_sdk/utils/forms.py +21 -10
  264. compass_api_sdk/utils/queryparams.py +14 -2
  265. compass_api_sdk/utils/retries.py +69 -5
  266. compass_api_sdk/utils/serializers.py +3 -2
  267. compass_api_sdk/utils/unmarshal_json_response.py +38 -0
  268. compass_api_sdk/wildcat.py +208 -0
  269. compass_api_sdk-2.0.21rc1.dist-info/METADATA +623 -0
  270. compass_api_sdk-2.0.21rc1.dist-info/RECORD +346 -0
  271. {compass_api_sdk-0.9.35.dist-info → compass_api_sdk-2.0.21rc1.dist-info}/WHEEL +1 -1
  272. compass_api_sdk/models/aave_avg_rateop.py +0 -141
  273. compass_api_sdk/models/aave_liquidity_changeop.py +0 -103
  274. compass_api_sdk/models/aave_rateop.py +0 -134
  275. compass_api_sdk/models/aave_reserve_overviewop.py +0 -134
  276. compass_api_sdk/models/aave_std_rateop.py +0 -141
  277. compass_api_sdk/models/aave_token_priceop.py +0 -134
  278. compass_api_sdk/models/aave_user_position_per_tokenop.py +0 -141
  279. compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +0 -37
  280. compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +0 -159
  281. compass_api_sdk/models/aerodromeposition.py +0 -70
  282. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vault_vaultstate.py +0 -53
  283. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_vaultstate.py +0 -32
  284. compass_api_sdk/models/generic_supported_tokensop.py +0 -28
  285. compass_api_sdk/models/generic_visualize_portfolioop.py +0 -37
  286. compass_api_sdk/models/image.py +0 -15
  287. compass_api_sdk/models/liquidity.py +0 -16
  288. compass_api_sdk/models/metadata.py +0 -50
  289. compass_api_sdk/models/morpho_vault_positionop.py +0 -37
  290. compass_api_sdk/models/morpho_vaultop.py +0 -30
  291. compass_api_sdk/models/morphocheckvaultpositionresponse.py +0 -20
  292. compass_api_sdk/models/morphogetvaultresponse.py +0 -86
  293. compass_api_sdk/models/pendle_marketsop.py +0 -28
  294. compass_api_sdk/models/pendleaddliquidityparams.py +0 -50
  295. compass_api_sdk/models/pendleaddliquidityrequest.py +0 -61
  296. compass_api_sdk/models/pendlebuyptparams.py +0 -48
  297. compass_api_sdk/models/pendlebuyptrequest.py +0 -59
  298. compass_api_sdk/models/pendlebuyytparams.py +0 -48
  299. compass_api_sdk/models/pendlebuyytrequest.py +0 -59
  300. compass_api_sdk/models/pendlegetuserpositionresponse.py +0 -56
  301. compass_api_sdk/models/pendleremoveliquidityparams.py +0 -50
  302. compass_api_sdk/models/pendleremoveliquidityrequest.py +0 -61
  303. compass_api_sdk/models/pendlesellptparams.py +0 -48
  304. compass_api_sdk/models/pendlesellptrequest.py +0 -61
  305. compass_api_sdk/models/pendlesellytparams.py +0 -48
  306. compass_api_sdk/models/pendlesellytrequest.py +0 -61
  307. compass_api_sdk/models/sky_positionop.py +0 -31
  308. compass_api_sdk/models/token_addressop.py +0 -89
  309. compass_api_sdk/models/token_balanceop.py +0 -55
  310. compass_api_sdk/models/token_enum.py +0 -57
  311. compass_api_sdk/models/token_priceop.py +0 -89
  312. compass_api_sdk/models/tokenaddressresponse.py +0 -15
  313. compass_api_sdk/models/tokeninfo.py +0 -17
  314. compass_api_sdk/models/tokentransfererc20params.py +0 -63
  315. compass_api_sdk/models/txresponse.py +0 -27
  316. compass_api_sdk/models/uniswap_pool_priceop.py +0 -170
  317. compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +0 -191
  318. compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +0 -191
  319. compass_api_sdk/models/userposition.py +0 -16
  320. compass_api_sdk/models/vaultposition.py +0 -24
  321. compass_api_sdk-0.9.35.dist-info/METADATA +0 -558
  322. compass_api_sdk-0.9.35.dist-info/RECORD +0 -260
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
7
6
  from enum import Enum
@@ -9,25 +8,13 @@ from typing import Optional, Union
9
8
  from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
10
9
 
11
10
 
12
- class GenericAllowanceChain(str, Enum):
13
- r"""The chain to use."""
11
+ class V1GenericAllowanceChain(str, Enum):
12
+ ARBITRUM = "arbitrum"
13
+ BASE = "base"
14
+ ETHEREUM = "ethereum"
14
15
 
15
- BASE_MAINNET = "base:mainnet"
16
- ETHEREUM_MAINNET = "ethereum:mainnet"
17
- ARBITRUM_MAINNET = "arbitrum:mainnet"
18
16
 
19
-
20
- GenericAllowanceTokenTypedDict = TypeAliasType(
21
- "GenericAllowanceTokenTypedDict", Union[TokenEnum, str]
22
- )
23
- r"""The symbol or address of the token for which the allowance is checked.."""
24
-
25
-
26
- GenericAllowanceToken = TypeAliasType("GenericAllowanceToken", Union[TokenEnum, str])
27
- r"""The symbol or address of the token for which the allowance is checked.."""
28
-
29
-
30
- class GenericAllowanceContractEnum(str, Enum):
17
+ class V1GenericAllowanceContractEnum(str, Enum):
31
18
  AAVE_V3_POOL = "AaveV3Pool"
32
19
  AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
33
20
  AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
@@ -36,57 +23,57 @@ class GenericAllowanceContractEnum(str, Enum):
36
23
  )
37
24
  UNISWAP_V3_ROUTER = "UniswapV3Router"
38
25
  UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
39
- MORPHO = "Morpho"
26
+ MORPHO_MARKET = "MorphoMarket"
40
27
  SKY_DAI_USDS_CONVERTER = "SkyDaiUsdsConverter"
41
28
  SKY_USDC_USDS_CONVERTER = "SkyUsdcUsdsConverter"
42
29
  SKY_USDS_VAULT = "SkyUsdsVault"
43
30
  PENDLE_ROUTER = "PendleRouter"
31
+ ODOS_ROUTER = "OdosRouter"
32
+ ETHENA_VAULT = "EthenaVault"
44
33
 
45
34
 
46
- GenericAllowanceContractUnionTypedDict = TypeAliasType(
47
- "GenericAllowanceContractUnionTypedDict", Union[GenericAllowanceContractEnum, str]
35
+ V1GenericAllowanceContractUnionTypedDict = TypeAliasType(
36
+ "V1GenericAllowanceContractUnionTypedDict",
37
+ Union[V1GenericAllowanceContractEnum, str],
48
38
  )
49
39
  r"""The name or address of the contract to check allowance for."""
50
40
 
51
41
 
52
- GenericAllowanceContractUnion = TypeAliasType(
53
- "GenericAllowanceContractUnion", Union[GenericAllowanceContractEnum, str]
42
+ V1GenericAllowanceContractUnion = TypeAliasType(
43
+ "V1GenericAllowanceContractUnion", Union[V1GenericAllowanceContractEnum, str]
54
44
  )
55
45
  r"""The name or address of the contract to check allowance for."""
56
46
 
57
47
 
58
- class GenericAllowanceRequestTypedDict(TypedDict):
59
- token: GenericAllowanceTokenTypedDict
60
- r"""The symbol or address of the token for which the allowance is checked.."""
61
- contract: GenericAllowanceContractUnionTypedDict
48
+ class V1GenericAllowanceRequestTypedDict(TypedDict):
49
+ chain: V1GenericAllowanceChain
50
+ token: str
51
+ r"""The symbol or address of the token for which the allowance is checked."""
52
+ contract: V1GenericAllowanceContractUnionTypedDict
62
53
  r"""The name or address of the contract to check allowance for."""
63
- chain: GenericAllowanceChain
64
- r"""The chain to use."""
65
54
  user: NotRequired[str]
66
55
  r"""The user to get the ERC20 allowance of."""
67
56
 
68
57
 
69
- class GenericAllowanceRequest(BaseModel):
70
- token: Annotated[
71
- GenericAllowanceToken,
58
+ class V1GenericAllowanceRequest(BaseModel):
59
+ chain: Annotated[
60
+ V1GenericAllowanceChain,
72
61
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
73
62
  ]
74
- r"""The symbol or address of the token for which the allowance is checked.."""
63
+
64
+ token: Annotated[
65
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
66
+ ]
67
+ r"""The symbol or address of the token for which the allowance is checked."""
75
68
 
76
69
  contract: Annotated[
77
- GenericAllowanceContractUnion,
70
+ V1GenericAllowanceContractUnion,
78
71
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
79
72
  ]
80
73
  r"""The name or address of the contract to check allowance for."""
81
74
 
82
- chain: Annotated[
83
- GenericAllowanceChain,
84
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
85
- ] = GenericAllowanceChain.ARBITRUM_MAINNET
86
- r"""The chain to use."""
87
-
88
75
  user: Annotated[
89
76
  Optional[str],
90
77
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
91
- ] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
78
+ ] = None
92
79
  r"""The user to get the ERC20 allowance of."""
@@ -8,30 +8,24 @@ from typing import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
9
9
 
10
10
 
11
- class GenericEnsChain(str, Enum):
12
- r"""The chain to use."""
11
+ class V1GenericEnsChain(str, Enum):
12
+ ETHEREUM = "ethereum"
13
13
 
14
- BASE_MAINNET = "base:mainnet"
15
- ETHEREUM_MAINNET = "ethereum:mainnet"
16
- ARBITRUM_MAINNET = "arbitrum:mainnet"
17
14
 
18
-
19
- class GenericEnsRequestTypedDict(TypedDict):
20
- chain: GenericEnsChain
21
- r"""The chain to use."""
15
+ class V1GenericEnsRequestTypedDict(TypedDict):
16
+ chain: V1GenericEnsChain
22
17
  ens_name: NotRequired[str]
23
18
  r"""The ENS name to resolve."""
24
19
 
25
20
 
26
- class GenericEnsRequest(BaseModel):
21
+ class V1GenericEnsRequest(BaseModel):
27
22
  chain: Annotated[
28
- GenericEnsChain,
23
+ V1GenericEnsChain,
29
24
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
30
- ] = GenericEnsChain.ETHEREUM_MAINNET
31
- r"""The chain to use."""
25
+ ]
32
26
 
33
27
  ens_name: Annotated[
34
28
  Optional[str],
35
29
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
36
- ] = "vitalik.eth"
30
+ ] = None
37
31
  r"""The ENS name to resolve."""
@@ -8,30 +8,26 @@ from typing import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
9
9
 
10
10
 
11
- class GenericPortfolioChain(str, Enum):
12
- r"""The chain to use."""
11
+ class V1GenericPortfolioChain(str, Enum):
12
+ ARBITRUM = "arbitrum"
13
+ BASE = "base"
14
+ ETHEREUM = "ethereum"
13
15
 
14
- BASE_MAINNET = "base:mainnet"
15
- ETHEREUM_MAINNET = "ethereum:mainnet"
16
- ARBITRUM_MAINNET = "arbitrum:mainnet"
17
16
 
18
-
19
- class GenericPortfolioRequestTypedDict(TypedDict):
20
- chain: GenericPortfolioChain
21
- r"""The chain to use."""
17
+ class V1GenericPortfolioRequestTypedDict(TypedDict):
18
+ chain: V1GenericPortfolioChain
22
19
  user: NotRequired[str]
23
20
  r"""The user to get portfolio for."""
24
21
 
25
22
 
26
- class GenericPortfolioRequest(BaseModel):
23
+ class V1GenericPortfolioRequest(BaseModel):
27
24
  chain: Annotated[
28
- GenericPortfolioChain,
25
+ V1GenericPortfolioChain,
29
26
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
30
- ] = GenericPortfolioChain.ARBITRUM_MAINNET
31
- r"""The chain to use."""
27
+ ]
32
28
 
33
29
  user: Annotated[
34
30
  Optional[str],
35
31
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
36
- ] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
32
+ ] = None
37
33
  r"""The user to get portfolio for."""
@@ -0,0 +1,57 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .protocol import Protocol
5
+ from compass_api_sdk.types import (
6
+ BaseModel,
7
+ Nullable,
8
+ OptionalNullable,
9
+ UNSET,
10
+ UNSET_SENTINEL,
11
+ )
12
+ from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
13
+ from pydantic import model_serializer
14
+ from typing_extensions import Annotated, NotRequired, TypedDict
15
+
16
+
17
+ class V1GenericSupportedChainsRequestTypedDict(TypedDict):
18
+ protocol: NotRequired[Nullable[Protocol]]
19
+ r"""The protocol to get the supported chains for."""
20
+
21
+
22
+ class V1GenericSupportedChainsRequest(BaseModel):
23
+ protocol: Annotated[
24
+ OptionalNullable[Protocol],
25
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
26
+ ] = UNSET
27
+ r"""The protocol to get the supported chains for."""
28
+
29
+ @model_serializer(mode="wrap")
30
+ def serialize_model(self, handler):
31
+ optional_fields = ["protocol"]
32
+ nullable_fields = ["protocol"]
33
+ null_default_fields = []
34
+
35
+ serialized = handler(self)
36
+
37
+ m = {}
38
+
39
+ for n, f in type(self).model_fields.items():
40
+ k = f.alias or n
41
+ val = serialized.get(k)
42
+ serialized.pop(k, None)
43
+
44
+ optional_nullable = k in optional_fields and k in nullable_fields
45
+ is_set = (
46
+ self.__pydantic_fields_set__.intersection({n})
47
+ or k in null_default_fields
48
+ ) # pylint: disable=no-member
49
+
50
+ if val is not None and val != UNSET_SENTINEL:
51
+ m[k] = val
52
+ elif val != UNSET_SENTINEL and (
53
+ not k in optional_fields or (optional_nullable and is_set)
54
+ ):
55
+ m[k] = val
56
+
57
+ return m
@@ -7,31 +7,32 @@ from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
9
9
 
10
- class MorphoMarketPositionChain(str, Enum):
11
- ETHEREUM_MAINNET = "ethereum:mainnet"
12
- BASE_MAINNET = "base:mainnet"
10
+ class V1MorphoMarketPositionChain(str, Enum):
11
+ ARBITRUM = "arbitrum"
12
+ BASE = "base"
13
+ ETHEREUM = "ethereum"
13
14
 
14
15
 
15
- class MorphoMarketPositionRequestTypedDict(TypedDict):
16
- chain: MorphoMarketPositionChain
16
+ class V1MorphoMarketPositionRequestTypedDict(TypedDict):
17
+ chain: V1MorphoMarketPositionChain
17
18
  user_address: str
18
19
  r"""The user address of the desired market position."""
19
20
  unique_market_key: str
20
21
  r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
21
22
 
22
23
 
23
- class MorphoMarketPositionRequest(BaseModel):
24
+ class V1MorphoMarketPositionRequest(BaseModel):
24
25
  chain: Annotated[
25
- MorphoMarketPositionChain,
26
+ V1MorphoMarketPositionChain,
26
27
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
27
- ] = MorphoMarketPositionChain.BASE_MAINNET
28
+ ]
28
29
 
29
30
  user_address: Annotated[
30
31
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
31
- ] = "0x81d310Eb515E05EB26322e2DeDE9e75b754885A4"
32
+ ]
32
33
  r"""The user address of the desired market position."""
33
34
 
34
35
  unique_market_key: Annotated[
35
36
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
36
- ] = "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5"
37
+ ]
37
38
  r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
@@ -7,24 +7,25 @@ from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
9
9
 
10
- class MorphoMarketChain(str, Enum):
11
- ETHEREUM_MAINNET = "ethereum:mainnet"
12
- BASE_MAINNET = "base:mainnet"
10
+ class V1MorphoMarketChain(str, Enum):
11
+ ARBITRUM = "arbitrum"
12
+ BASE = "base"
13
+ ETHEREUM = "ethereum"
13
14
 
14
15
 
15
- class MorphoMarketRequestTypedDict(TypedDict):
16
- chain: MorphoMarketChain
16
+ class V1MorphoMarketRequestTypedDict(TypedDict):
17
+ chain: V1MorphoMarketChain
17
18
  unique_market_key: str
18
19
  r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
19
20
 
20
21
 
21
- class MorphoMarketRequest(BaseModel):
22
+ class V1MorphoMarketRequest(BaseModel):
22
23
  chain: Annotated[
23
- MorphoMarketChain,
24
+ V1MorphoMarketChain,
24
25
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
25
- ] = MorphoMarketChain.BASE_MAINNET
26
+ ]
26
27
 
27
28
  unique_market_key: Annotated[
28
29
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
29
- ] = "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5"
30
+ ]
30
31
  r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
@@ -14,36 +14,37 @@ from pydantic import model_serializer
14
14
  from typing_extensions import Annotated, NotRequired, TypedDict
15
15
 
16
16
 
17
- class MorphoMarketsChain(str, Enum):
18
- ETHEREUM_MAINNET = "ethereum:mainnet"
19
- BASE_MAINNET = "base:mainnet"
17
+ class V1MorphoMarketsChain(str, Enum):
18
+ ARBITRUM = "arbitrum"
19
+ BASE = "base"
20
+ ETHEREUM = "ethereum"
20
21
 
21
22
 
22
- class MorphoMarketsRequestTypedDict(TypedDict):
23
- chain: MorphoMarketsChain
23
+ class V1MorphoMarketsRequestTypedDict(TypedDict):
24
+ chain: V1MorphoMarketsChain
24
25
  collateral_token: NotRequired[Nullable[str]]
25
- r"""Collateral token to identify the market."""
26
+ r"""Symbol or address of the collateral token to filter markets by. Optional parameter."""
26
27
  loan_token: NotRequired[Nullable[str]]
27
- r"""Loan token to identify the market."""
28
+ r"""Symbol or address of the loan token to filter markets by. Optional parameter."""
28
29
 
29
30
 
30
- class MorphoMarketsRequest(BaseModel):
31
+ class V1MorphoMarketsRequest(BaseModel):
31
32
  chain: Annotated[
32
- MorphoMarketsChain,
33
+ V1MorphoMarketsChain,
33
34
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
34
- ] = MorphoMarketsChain.BASE_MAINNET
35
+ ]
35
36
 
36
37
  collateral_token: Annotated[
37
38
  OptionalNullable[str],
38
39
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
39
40
  ] = UNSET
40
- r"""Collateral token to identify the market."""
41
+ r"""Symbol or address of the collateral token to filter markets by. Optional parameter."""
41
42
 
42
43
  loan_token: Annotated[
43
44
  OptionalNullable[str],
44
45
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
45
46
  ] = UNSET
46
- r"""Loan token to identify the market."""
47
+ r"""Symbol or address of the loan token to filter markets by. Optional parameter."""
47
48
 
48
49
  @model_serializer(mode="wrap")
49
50
  def serialize_model(self, handler):
@@ -7,24 +7,25 @@ from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
9
9
 
10
- class MorphoUserPositionChain(str, Enum):
11
- ETHEREUM_MAINNET = "ethereum:mainnet"
12
- BASE_MAINNET = "base:mainnet"
10
+ class V1MorphoUserPositionChain(str, Enum):
11
+ ARBITRUM = "arbitrum"
12
+ BASE = "base"
13
+ ETHEREUM = "ethereum"
13
14
 
14
15
 
15
- class MorphoUserPositionRequestTypedDict(TypedDict):
16
- chain: MorphoUserPositionChain
16
+ class V1MorphoUserPositionRequestTypedDict(TypedDict):
17
+ chain: V1MorphoUserPositionChain
17
18
  user_address: str
18
19
  r"""The user wallet address of the desired user position."""
19
20
 
20
21
 
21
- class MorphoUserPositionRequest(BaseModel):
22
+ class V1MorphoUserPositionRequest(BaseModel):
22
23
  chain: Annotated[
23
- MorphoUserPositionChain,
24
+ V1MorphoUserPositionChain,
24
25
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
25
- ] = MorphoUserPositionChain.BASE_MAINNET
26
+ ]
26
27
 
27
28
  user_address: Annotated[
28
29
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
29
- ] = "0x81d310Eb515E05EB26322e2DeDE9e75b754885A4"
30
+ ]
30
31
  r"""The user wallet address of the desired user position."""
@@ -14,31 +14,32 @@ from pydantic import model_serializer
14
14
  from typing_extensions import Annotated, NotRequired, TypedDict
15
15
 
16
16
 
17
- class VaultsVaultChain(str, Enum):
18
- r"""The chain to use."""
17
+ class V1MorphoVaultChain(str, Enum):
18
+ ARBITRUM = "arbitrum"
19
+ BASE = "base"
20
+ ETHEREUM = "ethereum"
19
21
 
20
- BASE_MAINNET = "base:mainnet"
21
- ETHEREUM_MAINNET = "ethereum:mainnet"
22
- ARBITRUM_MAINNET = "arbitrum:mainnet"
23
22
 
24
-
25
- class VaultsVaultRequestTypedDict(TypedDict):
26
- chain: VaultsVaultChain
27
- r"""The chain to use."""
28
- block: NotRequired[Nullable[int]]
29
- r"""Optional block number (defaults to latest)."""
23
+ class V1MorphoVaultRequestTypedDict(TypedDict):
24
+ chain: V1MorphoVaultChain
30
25
  vault_address: str
31
26
  r"""The vault address of the desired vault position."""
27
+ block: NotRequired[Nullable[int]]
28
+ r"""Optional block number (defaults to latest)."""
32
29
  user_address: NotRequired[Nullable[str]]
33
30
  r"""The user address of the desired vault position. Only include if you would like the user position included in the response. Defaults to `None`."""
34
31
 
35
32
 
36
- class VaultsVaultRequest(BaseModel):
33
+ class V1MorphoVaultRequest(BaseModel):
37
34
  chain: Annotated[
38
- VaultsVaultChain,
35
+ V1MorphoVaultChain,
39
36
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
40
- ] = VaultsVaultChain.ETHEREUM_MAINNET
41
- r"""The chain to use."""
37
+ ]
38
+
39
+ vault_address: Annotated[
40
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
41
+ ]
42
+ r"""The vault address of the desired vault position."""
42
43
 
43
44
  block: Annotated[
44
45
  OptionalNullable[int],
@@ -46,11 +47,6 @@ class VaultsVaultRequest(BaseModel):
46
47
  ] = UNSET
47
48
  r"""Optional block number (defaults to latest)."""
48
49
 
49
- vault_address: Annotated[
50
- str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
51
- ] = "0x182863131F9a4630fF9E27830d945B1413e347E8"
52
- r"""The vault address of the desired vault position."""
53
-
54
50
  user_address: Annotated[
55
51
  OptionalNullable[str],
56
52
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
@@ -14,28 +14,29 @@ from pydantic import model_serializer
14
14
  from typing_extensions import Annotated, NotRequired, TypedDict
15
15
 
16
16
 
17
- class MorphoVaultsChain(str, Enum):
18
- ETHEREUM_MAINNET = "ethereum:mainnet"
19
- BASE_MAINNET = "base:mainnet"
17
+ class V1MorphoVaultsChain(str, Enum):
18
+ ARBITRUM = "arbitrum"
19
+ BASE = "base"
20
+ ETHEREUM = "ethereum"
20
21
 
21
22
 
22
- class MorphoVaultsRequestTypedDict(TypedDict):
23
- chain: MorphoVaultsChain
23
+ class V1MorphoVaultsRequestTypedDict(TypedDict):
24
+ chain: V1MorphoVaultsChain
24
25
  deposit_token: NotRequired[Nullable[str]]
25
- r"""Token address that will filter vaults by this deposit token."""
26
+ r"""Symbol or address of the deposit token to filter vaults by. Optional parameter."""
26
27
 
27
28
 
28
- class MorphoVaultsRequest(BaseModel):
29
+ class V1MorphoVaultsRequest(BaseModel):
29
30
  chain: Annotated[
30
- MorphoVaultsChain,
31
+ V1MorphoVaultsChain,
31
32
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
32
- ] = MorphoVaultsChain.BASE_MAINNET
33
+ ]
33
34
 
34
35
  deposit_token: Annotated[
35
36
  OptionalNullable[str],
36
37
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
37
38
  ] = UNSET
38
- r"""Token address that will filter vaults by this deposit token."""
39
+ r"""Symbol or address of the deposit token to filter vaults by. Optional parameter."""
39
40
 
40
41
  @model_serializer(mode="wrap")
41
42
  def serialize_model(self, handler):
@@ -14,31 +14,32 @@ from pydantic import model_serializer
14
14
  from typing_extensions import Annotated, NotRequired, TypedDict
15
15
 
16
16
 
17
- class PendlePositionChain(str, Enum):
18
- r"""The chain to use."""
17
+ class V1PendleMarketChain(str, Enum):
18
+ ARBITRUM = "arbitrum"
19
+ BASE = "base"
20
+ ETHEREUM = "ethereum"
19
21
 
20
- BASE_MAINNET = "base:mainnet"
21
- ETHEREUM_MAINNET = "ethereum:mainnet"
22
- ARBITRUM_MAINNET = "arbitrum:mainnet"
23
22
 
24
-
25
- class PendlePositionRequestTypedDict(TypedDict):
26
- chain: PendlePositionChain
27
- r"""The chain to use."""
28
- block: NotRequired[Nullable[int]]
29
- r"""Optional block number (defaults to latest)."""
30
- user_address: str
31
- r"""The user address of the desired position."""
23
+ class V1PendleMarketRequestTypedDict(TypedDict):
24
+ chain: V1PendleMarketChain
32
25
  market_address: str
33
26
  r"""The market address of the desired position."""
27
+ block: NotRequired[Nullable[int]]
28
+ r"""Optional block number (defaults to latest)."""
29
+ user_address: NotRequired[Nullable[str]]
30
+ r"""The user address of the desired market position. Only include if you would like the user position included in the response. Defaults to `None`."""
34
31
 
35
32
 
36
- class PendlePositionRequest(BaseModel):
33
+ class V1PendleMarketRequest(BaseModel):
37
34
  chain: Annotated[
38
- PendlePositionChain,
35
+ V1PendleMarketChain,
39
36
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
40
- ] = PendlePositionChain.ARBITRUM_MAINNET
41
- r"""The chain to use."""
37
+ ]
38
+
39
+ market_address: Annotated[
40
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
41
+ ]
42
+ r"""The market address of the desired position."""
42
43
 
43
44
  block: Annotated[
44
45
  OptionalNullable[int],
@@ -47,19 +48,15 @@ class PendlePositionRequest(BaseModel):
47
48
  r"""Optional block number (defaults to latest)."""
48
49
 
49
50
  user_address: Annotated[
50
- str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
51
- ] = "0xB7954A07213413b2ec6Faa1360f56a498eACe10b"
52
- r"""The user address of the desired position."""
53
-
54
- market_address: Annotated[
55
- str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
56
- ] = "0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"
57
- r"""The market address of the desired position."""
51
+ OptionalNullable[str],
52
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
53
+ ] = UNSET
54
+ r"""The user address of the desired market position. Only include if you would like the user position included in the response. Defaults to `None`."""
58
55
 
59
56
  @model_serializer(mode="wrap")
60
57
  def serialize_model(self, handler):
61
- optional_fields = ["block"]
62
- nullable_fields = ["block"]
58
+ optional_fields = ["block", "user_address"]
59
+ nullable_fields = ["block", "user_address"]
63
60
  null_default_fields = []
64
61
 
65
62
  serialized = handler(self)
@@ -0,0 +1,24 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
6
+ from enum import Enum
7
+ from typing_extensions import Annotated, TypedDict
8
+
9
+
10
+ class V1PendleMarketsChain(str, Enum):
11
+ ARBITRUM = "arbitrum"
12
+ BASE = "base"
13
+ ETHEREUM = "ethereum"
14
+
15
+
16
+ class V1PendleMarketsRequestTypedDict(TypedDict):
17
+ chain: V1PendleMarketsChain
18
+
19
+
20
+ class V1PendleMarketsRequest(BaseModel):
21
+ chain: Annotated[
22
+ V1PendleMarketsChain,
23
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
24
+ ]