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,13 +1,13 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .chain import Chain
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
6
+ from enum import Enum
7
7
  import pydantic
8
8
  from pydantic.functional_validators import AfterValidator
9
9
  from typing import Literal, Optional, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
11
11
 
12
12
 
13
13
  AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount0DesiredTypedDict = (
@@ -68,6 +68,10 @@ AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Min = TypeAliasType(
68
68
  r"""The minimum amount of the second token to deposit"""
69
69
 
70
70
 
71
+ class AerodromeSlipstreamIncreaseLiquidityProvisionRequestChain(str, Enum):
72
+ BASE = "base"
73
+
74
+
71
75
  class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
72
76
  token_id: int
73
77
  r"""Token ID of the NFT representing the liquidity provisioned position."""
@@ -83,11 +87,12 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequestTypedDict(TypedDict):
83
87
  r"""The minimum amount of the first token to deposit"""
84
88
  amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1MinTypedDict
85
89
  r"""The minimum amount of the second token to deposit"""
86
- chain: Chain
87
- r"""The chain to use."""
90
+ chain: AerodromeSlipstreamIncreaseLiquidityProvisionRequestChain
88
91
  sender: str
89
92
  r"""The address of the transaction sender."""
90
93
  action_type: Literal["AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"]
94
+ estimate_gas: NotRequired[bool]
95
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
91
96
 
92
97
 
93
98
  class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
@@ -106,8 +111,7 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
106
111
  amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionRequestAmount1Min
107
112
  r"""The minimum amount of the second token to deposit"""
108
113
 
109
- chain: Chain
110
- r"""The chain to use."""
114
+ chain: AerodromeSlipstreamIncreaseLiquidityProvisionRequestChain
111
115
 
112
116
  sender: str
113
117
  r"""The address of the transaction sender."""
@@ -121,3 +125,6 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
121
125
  ],
122
126
  pydantic.Field(alias="action_type"),
123
127
  ] = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"
128
+
129
+ estimate_gas: Optional[bool] = None
130
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -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 (
6
5
  BaseModel,
7
6
  Nullable,
@@ -72,18 +71,10 @@ r"""The minimum amount of the second token to deposit"""
72
71
  class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
73
72
  r"""Parameters model for minting a new liquidity position."""
74
73
 
75
- token0: TokenEnum
76
- r"""A class representing the token.
77
-
78
- This class is used to represent the token in the system. Notice individual
79
- endpoints' documentation where per chain tokens are presented.
80
- """
81
- token1: TokenEnum
82
- r"""A class representing the token.
83
-
84
- This class is used to represent the token in the system. Notice individual
85
- endpoints' documentation where per chain tokens are presented.
86
- """
74
+ token0: str
75
+ r"""The symbol or address of the first token in the pair."""
76
+ token1: str
77
+ r"""The symbol or address of the second token in the pair."""
87
78
  tick_spacing: int
88
79
  r"""The tick spacing of the pool"""
89
80
  tick_lower: int
@@ -110,19 +101,11 @@ class AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict(TypedDict):
110
101
  class AerodromeSlipstreamMintLiquidityProvisionParams(BaseModel):
111
102
  r"""Parameters model for minting a new liquidity position."""
112
103
 
113
- token0: TokenEnum
114
- r"""A class representing the token.
115
-
116
- This class is used to represent the token in the system. Notice individual
117
- endpoints' documentation where per chain tokens are presented.
118
- """
119
-
120
- token1: TokenEnum
121
- r"""A class representing the token.
104
+ token0: str
105
+ r"""The symbol or address of the first token in the pair."""
122
106
 
123
- This class is used to represent the token in the system. Notice individual
124
- endpoints' documentation where per chain tokens are presented.
125
- """
107
+ token1: str
108
+ r"""The symbol or address of the second token in the pair."""
126
109
 
127
110
  tick_spacing: int
128
111
  r"""The tick spacing of the pool"""
@@ -1,8 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .chain import Chain
5
- from .token_enum import TokenEnum
6
4
  from compass_api_sdk.types import (
7
5
  BaseModel,
8
6
  Nullable,
@@ -11,6 +9,7 @@ from compass_api_sdk.types import (
11
9
  UNSET_SENTINEL,
12
10
  )
13
11
  from compass_api_sdk.utils import validate_const
12
+ from enum import Enum
14
13
  import pydantic
15
14
  from pydantic import model_serializer
16
15
  from pydantic.functional_validators import AfterValidator
@@ -70,21 +69,17 @@ AerodromeSlipstreamMintLiquidityProvisionRequestAmount1Min = TypeAliasType(
70
69
  r"""The minimum amount of the second token to deposit"""
71
70
 
72
71
 
73
- class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
74
- r"""Request model for minting a new liquidity position."""
72
+ class AerodromeSlipstreamMintLiquidityProvisionRequestChain(str, Enum):
73
+ BASE = "base"
75
74
 
76
- token0: TokenEnum
77
- r"""A class representing the token.
78
75
 
79
- This class is used to represent the token in the system. Notice individual
80
- endpoints' documentation where per chain tokens are presented.
81
- """
82
- token1: TokenEnum
83
- r"""A class representing the token.
76
+ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
77
+ r"""Request model for minting a new liquidity position."""
84
78
 
85
- This class is used to represent the token in the system. Notice individual
86
- endpoints' documentation where per chain tokens are presented.
87
- """
79
+ token0: str
80
+ r"""The symbol or address of the first token in the pair."""
81
+ token1: str
82
+ r"""The symbol or address of the second token in the pair."""
88
83
  tick_spacing: int
89
84
  r"""The tick spacing of the pool"""
90
85
  tick_lower: int
@@ -103,31 +98,24 @@ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
103
98
  r"""The minimum amount of the first token to deposit"""
104
99
  amount1_min: AerodromeSlipstreamMintLiquidityProvisionRequestAmount1MinTypedDict
105
100
  r"""The minimum amount of the second token to deposit"""
106
- chain: Chain
107
- r"""The chain to use."""
101
+ chain: AerodromeSlipstreamMintLiquidityProvisionRequestChain
108
102
  sender: str
109
103
  r"""The address of the transaction sender."""
110
104
  action_type: Literal["AERODROME_SLIPSTREAM_MINT_LIQUIDITY_PROVISION"]
111
105
  recipient: NotRequired[Nullable[str]]
112
106
  r"""The address that will receive the LP tokens"""
107
+ estimate_gas: NotRequired[bool]
108
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
113
109
 
114
110
 
115
111
  class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
116
112
  r"""Request model for minting a new liquidity position."""
117
113
 
118
- token0: TokenEnum
119
- r"""A class representing the token.
114
+ token0: str
115
+ r"""The symbol or address of the first token in the pair."""
120
116
 
121
- This class is used to represent the token in the system. Notice individual
122
- endpoints' documentation where per chain tokens are presented.
123
- """
124
-
125
- token1: TokenEnum
126
- r"""A class representing the token.
127
-
128
- This class is used to represent the token in the system. Notice individual
129
- endpoints' documentation where per chain tokens are presented.
130
- """
117
+ token1: str
118
+ r"""The symbol or address of the second token in the pair."""
131
119
 
132
120
  tick_spacing: int
133
121
  r"""The tick spacing of the pool"""
@@ -150,8 +138,7 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
150
138
  amount1_min: AerodromeSlipstreamMintLiquidityProvisionRequestAmount1Min
151
139
  r"""The minimum amount of the second token to deposit"""
152
140
 
153
- chain: Chain
154
- r"""The chain to use."""
141
+ chain: AerodromeSlipstreamMintLiquidityProvisionRequestChain
155
142
 
156
143
  sender: str
157
144
  r"""The address of the transaction sender."""
@@ -169,9 +156,12 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
169
156
  recipient: OptionalNullable[str] = UNSET
170
157
  r"""The address that will receive the LP tokens"""
171
158
 
159
+ estimate_gas: Optional[bool] = None
160
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
161
+
172
162
  @model_serializer(mode="wrap")
173
163
  def serialize_model(self, handler):
174
- optional_fields = ["action_type", "recipient"]
164
+ optional_fields = ["action_type", "recipient", "estimate_gas"]
175
165
  nullable_fields = ["recipient"]
176
166
  null_default_fields = []
177
167
 
@@ -1,24 +1,15 @@
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 typing_extensions import TypedDict
7
6
 
8
7
 
9
8
  class AerodromeSlipstreamPoolPriceResponseTypedDict(TypedDict):
10
- token_in: TokenEnum
11
- r"""A class representing the token.
12
-
13
- This class is used to represent the token in the system. Notice individual
14
- endpoints' documentation where per chain tokens are presented.
15
- """
16
- token_out: TokenEnum
17
- r"""A class representing the token.
18
-
19
- This class is used to represent the token in the system. Notice individual
20
- endpoints' documentation where per chain tokens are presented.
21
- """
9
+ token_in: str
10
+ r"""The first token in the pool."""
11
+ token_out: str
12
+ r"""The second token in the pool."""
22
13
  price: str
23
14
  r"""The price of the pool. This is expressed as an instantaneous amount of how
24
15
  many token0 you need to buy 1 token1. In any swap this will not change during the trade; use
@@ -31,19 +22,11 @@ class AerodromeSlipstreamPoolPriceResponseTypedDict(TypedDict):
31
22
 
32
23
 
33
24
  class AerodromeSlipstreamPoolPriceResponse(BaseModel):
34
- token_in: TokenEnum
35
- r"""A class representing the token.
25
+ token_in: str
26
+ r"""The first token in the pool."""
36
27
 
37
- This class is used to represent the token in the system. Notice individual
38
- endpoints' documentation where per chain tokens are presented.
39
- """
40
-
41
- token_out: TokenEnum
42
- r"""A class representing the token.
43
-
44
- This class is used to represent the token in the system. Notice individual
45
- endpoints' documentation where per chain tokens are presented.
46
- """
28
+ token_out: str
29
+ r"""The second token in the pool."""
47
30
 
48
31
  price: str
49
32
  r"""The price of the pool. This is expressed as an instantaneous amount of how
@@ -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 validate_const
7
6
  import pydantic
@@ -37,18 +36,10 @@ r"""The minimum amount of the token to swap to, defaults to 0"""
37
36
  class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
38
37
  r"""Parameters model for selling exactly an amount of tokens."""
39
38
 
40
- token_in: TokenEnum
41
- r"""A class representing the token.
42
-
43
- This class is used to represent the token in the system. Notice individual
44
- endpoints' documentation where per chain tokens are presented.
45
- """
46
- token_out: TokenEnum
47
- r"""A class representing the token.
48
-
49
- This class is used to represent the token in the system. Notice individual
50
- endpoints' documentation where per chain tokens are presented.
51
- """
39
+ token_in: str
40
+ r"""The symbol or address of the token to swap from."""
41
+ token_out: str
42
+ r"""The symbol or address of the token to swap to."""
52
43
  tick_spacing: int
53
44
  r"""The tick spacing of the pool"""
54
45
  amount_in: AerodromeSlipstreamSellExactlyParamsAmountInTypedDict
@@ -63,19 +54,11 @@ class AerodromeSlipstreamSellExactlyParamsTypedDict(TypedDict):
63
54
  class AerodromeSlipstreamSellExactlyParams(BaseModel):
64
55
  r"""Parameters model for selling exactly an amount of tokens."""
65
56
 
66
- token_in: TokenEnum
67
- r"""A class representing the token.
68
-
69
- This class is used to represent the token in the system. Notice individual
70
- endpoints' documentation where per chain tokens are presented.
71
- """
72
-
73
- token_out: TokenEnum
74
- r"""A class representing the token.
57
+ token_in: str
58
+ r"""The symbol or address of the token to swap from."""
75
59
 
76
- This class is used to represent the token in the system. Notice individual
77
- endpoints' documentation where per chain tokens are presented.
78
- """
60
+ token_out: str
61
+ r"""The symbol or address of the token to swap to."""
79
62
 
80
63
  tick_spacing: int
81
64
  r"""The tick spacing of the pool"""
@@ -1,10 +1,9 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .chain import Chain
5
- from .token_enum import TokenEnum
6
4
  from compass_api_sdk.types import BaseModel
7
5
  from compass_api_sdk.utils import validate_const
6
+ from enum import Enum
8
7
  import pydantic
9
8
  from pydantic.functional_validators import AfterValidator
10
9
  from typing import Literal, Optional, Union
@@ -35,27 +34,22 @@ AerodromeSlipstreamSellExactlyRequestAmountOutMinimum = TypeAliasType(
35
34
  r"""The minimum amount of the token to swap to, defaults to 0"""
36
35
 
37
36
 
38
- class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
39
- r"""Request model for selling exactly an amount of tokens."""
37
+ class AerodromeSlipstreamSellExactlyRequestChain(str, Enum):
38
+ BASE = "base"
40
39
 
41
- token_in: TokenEnum
42
- r"""A class representing the token.
43
40
 
44
- This class is used to represent the token in the system. Notice individual
45
- endpoints' documentation where per chain tokens are presented.
46
- """
47
- token_out: TokenEnum
48
- r"""A class representing the token.
41
+ class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
42
+ r"""Request model for selling exactly an amount of tokens."""
49
43
 
50
- This class is used to represent the token in the system. Notice individual
51
- endpoints' documentation where per chain tokens are presented.
52
- """
44
+ token_in: str
45
+ r"""The symbol or address of the token to swap from."""
46
+ token_out: str
47
+ r"""The symbol or address of the token to swap to."""
53
48
  tick_spacing: int
54
49
  r"""The tick spacing of the pool"""
55
50
  amount_in: AerodromeSlipstreamSellExactlyRequestAmountInTypedDict
56
51
  r"""The amount of the token to swap from"""
57
- chain: Chain
58
- r"""The chain to use."""
52
+ chain: AerodromeSlipstreamSellExactlyRequestChain
59
53
  sender: str
60
54
  r"""The address of the transaction sender."""
61
55
  action_type: Literal["AERODROME_SLIPSTREAM_SELL_EXACTLY"]
@@ -63,24 +57,18 @@ class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
63
57
  AerodromeSlipstreamSellExactlyRequestAmountOutMinimumTypedDict
64
58
  ]
65
59
  r"""The minimum amount of the token to swap to, defaults to 0"""
60
+ estimate_gas: NotRequired[bool]
61
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
66
62
 
67
63
 
68
64
  class AerodromeSlipstreamSellExactlyRequest(BaseModel):
69
65
  r"""Request model for selling exactly an amount of tokens."""
70
66
 
71
- token_in: TokenEnum
72
- r"""A class representing the token.
67
+ token_in: str
68
+ r"""The symbol or address of the token to swap from."""
73
69
 
74
- This class is used to represent the token in the system. Notice individual
75
- endpoints' documentation where per chain tokens are presented.
76
- """
77
-
78
- token_out: TokenEnum
79
- r"""A class representing the token.
80
-
81
- This class is used to represent the token in the system. Notice individual
82
- endpoints' documentation where per chain tokens are presented.
83
- """
70
+ token_out: str
71
+ r"""The symbol or address of the token to swap to."""
84
72
 
85
73
  tick_spacing: int
86
74
  r"""The tick spacing of the pool"""
@@ -88,8 +76,7 @@ class AerodromeSlipstreamSellExactlyRequest(BaseModel):
88
76
  amount_in: AerodromeSlipstreamSellExactlyRequestAmountIn
89
77
  r"""The amount of the token to swap from"""
90
78
 
91
- chain: Chain
92
- r"""The chain to use."""
79
+ chain: AerodromeSlipstreamSellExactlyRequestChain
93
80
 
94
81
  sender: str
95
82
  r"""The address of the transaction sender."""
@@ -106,3 +93,6 @@ class AerodromeSlipstreamSellExactlyRequest(BaseModel):
106
93
  AerodromeSlipstreamSellExactlyRequestAmountOutMinimum
107
94
  ] = None
108
95
  r"""The minimum amount of the token to swap to, defaults to 0"""
96
+
97
+ estimate_gas: Optional[bool] = None
98
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -1,13 +1,13 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .chain import Chain
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import validate_const
6
+ from enum import Enum
7
7
  import pydantic
8
8
  from pydantic.functional_validators import AfterValidator
9
9
  from typing import Literal, Optional, Union
10
- from typing_extensions import Annotated, TypeAliasType, TypedDict
10
+ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
11
11
 
12
12
 
13
13
  AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict = TypeAliasType(
@@ -26,16 +26,21 @@ AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal = (
26
26
  r"""How much liquidity to take out in percentage."""
27
27
 
28
28
 
29
+ class AerodromeSlipstreamWithdrawLiquidityProvisionRequestChain(str, Enum):
30
+ BASE = "base"
31
+
32
+
29
33
  class AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict(TypedDict):
30
34
  token_id: int
31
35
  r"""Token ID of the NFT representing the liquidity provisioned position."""
32
36
  percentage_for_withdrawal: AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict
33
37
  r"""How much liquidity to take out in percentage."""
34
- chain: Chain
35
- r"""The chain to use."""
38
+ chain: AerodromeSlipstreamWithdrawLiquidityProvisionRequestChain
36
39
  sender: str
37
40
  r"""The address of the transaction sender."""
38
41
  action_type: Literal["AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION"]
42
+ estimate_gas: NotRequired[bool]
43
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
39
44
 
40
45
 
41
46
  class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
@@ -47,8 +52,7 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
47
52
  )
48
53
  r"""How much liquidity to take out in percentage."""
49
54
 
50
- chain: Chain
51
- r"""The chain to use."""
55
+ chain: AerodromeSlipstreamWithdrawLiquidityProvisionRequestChain
52
56
 
53
57
  sender: str
54
58
  r"""The address of the transaction sender."""
@@ -62,3 +66,6 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
62
66
  ],
63
67
  pydantic.Field(alias="action_type"),
64
68
  ] = "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION"
69
+
70
+ estimate_gas: Optional[bool] = None
71
+ r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -0,0 +1,32 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .chain import Chain
5
+ from compass_api_sdk.types import BaseModel
6
+ from typing import Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class ApproveTransferRequestTypedDict(TypedDict):
11
+ owner: str
12
+ r"""The owner of the smart account's address."""
13
+ chain: Chain
14
+ r"""The chain to use."""
15
+ token: str
16
+ r"""The token you would like to transfer with gas sponsorship."""
17
+ gas_sponsorship: NotRequired[bool]
18
+ r"""Optionally request gas sponsorship. If set to `true`, EIP-712 signature data will be returned that must be signed by the `owner` and submitted to the `/gas_sponsorship/prepare` endpoint."""
19
+
20
+
21
+ class ApproveTransferRequest(BaseModel):
22
+ owner: str
23
+ r"""The owner of the smart account's address."""
24
+
25
+ chain: Chain
26
+ r"""The chain to use."""
27
+
28
+ token: str
29
+ r"""The token you would like to transfer with gas sponsorship."""
30
+
31
+ gas_sponsorship: Optional[bool] = None
32
+ r"""Optionally request gas sponsorship. If set to `true`, EIP-712 signature data will be returned that must be signed by the `owner` and submitted to the `/gas_sponsorship/prepare` endpoint."""
@@ -1,31 +1,30 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .permittypeddataresponse_output import (
5
+ PermitTypedDataResponseOutput,
6
+ PermitTypedDataResponseOutputTypedDict,
7
+ )
8
+ from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
4
9
  from compass_api_sdk.types import BaseModel, Nullable, UNSET_SENTINEL
5
10
  from pydantic import model_serializer
6
11
  from typing_extensions import TypedDict
7
12
 
8
13
 
9
- class CuratorTypedDict(TypedDict):
10
- name: str
11
- verified: bool
12
- url: Nullable[str]
13
- image: Nullable[str]
14
+ class ApproveTransferResponseTypedDict(TypedDict):
15
+ transaction: Nullable[UnsignedTransactionTypedDict]
16
+ eip_712: Nullable[PermitTypedDataResponseOutputTypedDict]
14
17
 
15
18
 
16
- class Curator(BaseModel):
17
- name: str
19
+ class ApproveTransferResponse(BaseModel):
20
+ transaction: Nullable[UnsignedTransaction]
18
21
 
19
- verified: bool
20
-
21
- url: Nullable[str]
22
-
23
- image: Nullable[str]
22
+ eip_712: Nullable[PermitTypedDataResponseOutput]
24
23
 
25
24
  @model_serializer(mode="wrap")
26
25
  def serialize_model(self, handler):
27
26
  optional_fields = []
28
- nullable_fields = ["url", "image"]
27
+ nullable_fields = ["transaction", "eip_712"]
29
28
  null_default_fields = []
30
29
 
31
30
  serialized = handler(self)
@@ -6,12 +6,15 @@ from typing_extensions import TypedDict
6
6
 
7
7
 
8
8
  class ApyTypedDict(TypedDict):
9
+ current: str
9
10
  apy_1_day: str
10
11
  apy_7_day: str
11
12
  apy_30_day: str
12
13
 
13
14
 
14
15
  class Apy(BaseModel):
16
+ current: str
17
+
15
18
  apy_1_day: str
16
19
 
17
20
  apy_7_day: str
@@ -0,0 +1,52 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain import (
5
+ CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Domain,
6
+ CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712DomainTypedDict,
7
+ )
8
+ from .compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types import (
9
+ CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Types,
10
+ CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712TypesTypedDict,
11
+ )
12
+ from .safetxmessage import SafeTxMessage, SafeTxMessageTypedDict
13
+ from compass_api_sdk.types import BaseModel
14
+ from compass_api_sdk.utils import validate_const
15
+ import pydantic
16
+ from pydantic.functional_validators import AfterValidator
17
+ from typing import Literal
18
+ from typing_extensions import Annotated, TypedDict
19
+
20
+
21
+ class BatchedSafeOperationsResponseInputTypedDict(TypedDict):
22
+ r"""Response containing EIP-712 typed data for Safe transaction signing."""
23
+
24
+ domain: CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712DomainTypedDict
25
+ r"""The EIP-712 domain separator for Safe transactions."""
26
+ types: CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712TypesTypedDict
27
+ r"""The type definitions for EIP-712 structured data."""
28
+ message: SafeTxMessageTypedDict
29
+ r"""The message data for a Safe transaction."""
30
+ primary_type: Literal["SafeTx"]
31
+ r"""Primary type for the structured data"""
32
+
33
+
34
+ class BatchedSafeOperationsResponseInput(BaseModel):
35
+ r"""Response containing EIP-712 typed data for Safe transaction signing."""
36
+
37
+ domain: (
38
+ CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Domain
39
+ )
40
+ r"""The EIP-712 domain separator for Safe transactions."""
41
+
42
+ types: CompassAPIBackendV2ModelsSafeTransactResponseBatchedSafeOperationsEip712Types
43
+ r"""The type definitions for EIP-712 structured data."""
44
+
45
+ message: SafeTxMessage
46
+ r"""The message data for a Safe transaction."""
47
+
48
+ PRIMARY_TYPE: Annotated[
49
+ Annotated[Literal["SafeTx"], AfterValidator(validate_const("SafeTx"))],
50
+ pydantic.Field(alias="primaryType"),
51
+ ] = "SafeTx"
52
+ r"""Primary type for the structured data"""