compass_api_sdk 0.2.0__py3-none-any.whl → 0.3.0__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.

Potentially problematic release.


This version of compass_api_sdk might be problematic. Click here for more details.

Files changed (195) hide show
  1. {compass_api_sdk-0.2.0.dist-info → compass_api_sdk-0.3.0.dist-info}/METADATA +34 -33
  2. compass_api_sdk-0.3.0.dist-info/RECORD +180 -0
  3. {compass_api_sdk → compassapisdk}/_hooks/sdkhooks.py +1 -1
  4. {compass_api_sdk → compassapisdk}/_hooks/types.py +1 -1
  5. {compass_api_sdk → compassapisdk}/_version.py +3 -3
  6. {compass_api_sdk → compassapisdk}/aave_v3.py +27 -27
  7. {compass_api_sdk → compassapisdk}/aerodrome_slipstream.py +11 -11
  8. {compass_api_sdk → compassapisdk}/basesdk.py +3 -3
  9. {compass_api_sdk → compassapisdk}/errors/httpvalidationerror.py +3 -3
  10. {compass_api_sdk → compassapisdk}/httpclient.py +7 -37
  11. {compass_api_sdk → compassapisdk}/models/__init__.py +46 -25
  12. {compass_api_sdk → compassapisdk}/models/aave_historical_transactionsop.py +8 -2
  13. {compass_api_sdk → compassapisdk}/models/aave_liquidity_changeop.py +8 -12
  14. {compass_api_sdk → compassapisdk}/models/aave_rateop.py +4 -12
  15. {compass_api_sdk → compassapisdk}/models/aave_reserve_overviewop.py +4 -12
  16. {compass_api_sdk → compassapisdk}/models/aave_token_priceop.py +4 -12
  17. {compass_api_sdk → compassapisdk}/models/aave_user_position_per_tokenop.py +6 -12
  18. {compass_api_sdk → compassapisdk}/models/aave_user_position_summaryop.py +4 -2
  19. {compass_api_sdk → compassapisdk}/models/aaveborrowparams.py +1 -1
  20. {compass_api_sdk → compassapisdk}/models/aaveborrowrequest.py +1 -1
  21. compassapisdk/models/aavehistoricaltransactionsresponse.py +65 -0
  22. {compass_api_sdk → compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
  23. compassapisdk/models/aavelooprequest.py +87 -0
  24. {compass_api_sdk → compassapisdk}/models/aaverateresponse.py +1 -1
  25. {compass_api_sdk → compassapisdk}/models/aaverepayparams.py +1 -1
  26. {compass_api_sdk → compassapisdk}/models/aaverepayrequest.py +1 -1
  27. {compass_api_sdk → compassapisdk}/models/aavereserveoverviewresponse.py +1 -1
  28. {compass_api_sdk → compassapisdk}/models/aavesupplyparams.py +1 -1
  29. {compass_api_sdk → compassapisdk}/models/aavesupplyrequest.py +1 -1
  30. {compass_api_sdk → compassapisdk}/models/aavetokenpriceresponse.py +1 -1
  31. {compass_api_sdk → compassapisdk}/models/aaveuserpositionpertokenresponse.py +1 -1
  32. {compass_api_sdk → compassapisdk}/models/aaveuserpositionsummaryresponse.py +1 -1
  33. {compass_api_sdk → compassapisdk}/models/aavewithdrawparams.py +1 -1
  34. {compass_api_sdk → compassapisdk}/models/aavewithdrawrequest.py +1 -1
  35. {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +4 -2
  36. {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_pool_priceop.py +8 -22
  37. {compass_api_sdk → compassapisdk}/models/aerodromelppositionsresponse.py +1 -1
  38. {compass_api_sdk → compassapisdk}/models/aerodromeposition.py +1 -1
  39. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
  40. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
  41. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
  42. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
  43. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
  44. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
  45. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
  46. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
  47. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
  48. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
  49. {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
  50. {compass_api_sdk → compassapisdk}/models/allowanceinforesponse.py +1 -1
  51. compassapisdk/models/borrow.py +67 -0
  52. {compass_api_sdk → compassapisdk}/models/chaininfo.py +1 -1
  53. {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
  54. {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
  55. {compass_api_sdk → compassapisdk}/models/ensnameinforesponse.py +1 -1
  56. {compass_api_sdk → compassapisdk}/models/generic_allowanceop.py +10 -12
  57. {compass_api_sdk → compassapisdk}/models/generic_ensop.py +4 -2
  58. {compass_api_sdk → compassapisdk}/models/generic_portfolioop.py +4 -2
  59. {compass_api_sdk → compassapisdk}/models/generic_supported_tokensop.py +2 -2
  60. {compass_api_sdk → compassapisdk}/models/generic_visualize_portfolioop.py +4 -2
  61. {compass_api_sdk → compassapisdk}/models/image.py +1 -1
  62. {compass_api_sdk → compassapisdk}/models/increaseallowanceanyparams.py +1 -1
  63. {compass_api_sdk → compassapisdk}/models/increaseallowanceparams.py +1 -1
  64. {compass_api_sdk → compassapisdk}/models/increaseallowancerequest.py +1 -1
  65. compassapisdk/models/liquidationcall.py +64 -0
  66. {compass_api_sdk → compassapisdk}/models/marketstate.py +1 -1
  67. {compass_api_sdk → compassapisdk}/models/morpho_market_positionop.py +11 -11
  68. {compass_api_sdk → compassapisdk}/models/morpho_marketsop.py +11 -11
  69. {compass_api_sdk → compassapisdk}/models/morpho_vault_positionop.py +11 -11
  70. {compass_api_sdk → compassapisdk}/models/morpho_vaultsop.py +22 -18
  71. {compass_api_sdk → compassapisdk}/models/morphoborrowrequest.py +9 -6
  72. {compass_api_sdk → compassapisdk}/models/morphocheckmarketpositionresponse.py +1 -1
  73. {compass_api_sdk → compassapisdk}/models/morphocheckvaultpositionresponse.py +1 -1
  74. {compass_api_sdk → compassapisdk}/models/morphodepositrequest.py +9 -6
  75. {compass_api_sdk → compassapisdk}/models/morphogetmarketsresponse.py +1 -1
  76. {compass_api_sdk → compassapisdk}/models/morphogetvaultsresponse.py +1 -1
  77. {compass_api_sdk → compassapisdk}/models/morphomarket.py +1 -1
  78. {compass_api_sdk → compassapisdk}/models/morphorepayrequest.py +9 -6
  79. {compass_api_sdk → compassapisdk}/models/morphosetvaultallowancerequest.py +9 -6
  80. {compass_api_sdk → compassapisdk}/models/morphosupplycollateralrequest.py +9 -6
  81. {compass_api_sdk → compassapisdk}/models/morphovault.py +1 -1
  82. {compass_api_sdk → compassapisdk}/models/morphowithdrawcollateralrequest.py +9 -6
  83. {compass_api_sdk → compassapisdk}/models/morphowithdrawrequest.py +9 -6
  84. {compass_api_sdk → compassapisdk}/models/multicallaction.py +1 -1
  85. {compass_api_sdk → compassapisdk}/models/multicallauthorizationrequest.py +1 -1
  86. {compass_api_sdk → compassapisdk}/models/multicallauthorizationresponse.py +1 -1
  87. {compass_api_sdk → compassapisdk}/models/multicallexecuterequest.py +1 -1
  88. {compass_api_sdk → compassapisdk}/models/portfolio.py +1 -1
  89. compassapisdk/models/redeemunderlying.py +48 -0
  90. compassapisdk/models/repay.py +52 -0
  91. compassapisdk/models/reserve.py +77 -0
  92. {compass_api_sdk → compassapisdk}/models/security.py +2 -2
  93. {compass_api_sdk → compassapisdk}/models/signedauthorization.py +1 -1
  94. {compass_api_sdk → compassapisdk}/models/sky_positionop.py +4 -2
  95. {compass_api_sdk → compassapisdk}/models/skybuyrequest.py +2 -2
  96. {compass_api_sdk → compassapisdk}/models/skycheckpositionresponse.py +1 -1
  97. {compass_api_sdk → compassapisdk}/models/skydepositrequest.py +2 -2
  98. {compass_api_sdk → compassapisdk}/models/skysellrequest.py +2 -2
  99. {compass_api_sdk → compassapisdk}/models/skywithdrawrequest.py +2 -2
  100. compassapisdk/models/supply.py +54 -0
  101. compassapisdk/models/swapborrowrate.py +56 -0
  102. {compass_api_sdk → compassapisdk}/models/token_addressop.py +4 -12
  103. {compass_api_sdk → compassapisdk}/models/token_balanceop.py +8 -2
  104. {compass_api_sdk → compassapisdk}/models/token_priceop.py +4 -12
  105. {compass_api_sdk → compassapisdk}/models/tokenaddressresponse.py +1 -1
  106. {compass_api_sdk → compassapisdk}/models/tokenbalance.py +1 -1
  107. {compass_api_sdk → compassapisdk}/models/tokenbalanceresponse.py +1 -1
  108. {compass_api_sdk → compassapisdk}/models/tokeninfo.py +1 -1
  109. {compass_api_sdk → compassapisdk}/models/tokenpriceresponse.py +1 -1
  110. {compass_api_sdk → compassapisdk}/models/tokentransfererc20params.py +1 -1
  111. {compass_api_sdk → compassapisdk}/models/tokentransferrequest.py +1 -1
  112. {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_in_rangeop.py +4 -2
  113. {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_positionsop.py +4 -2
  114. {compass_api_sdk → compassapisdk}/models/uniswap_pool_priceop.py +8 -30
  115. {compass_api_sdk → compassapisdk}/models/uniswap_quote_buy_exactlyop.py +12 -30
  116. {compass_api_sdk → compassapisdk}/models/uniswap_quote_sell_exactlyop.py +12 -30
  117. {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyparams.py +7 -7
  118. {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyrequest.py +7 -7
  119. {compass_api_sdk → compassapisdk}/models/uniswapbuyquoteinforesponse.py +1 -1
  120. {compass_api_sdk → compassapisdk}/models/uniswapcheckinrangeresponse.py +1 -1
  121. {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
  122. {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
  123. {compass_api_sdk → compassapisdk}/models/uniswaplppositionsinforesponse.py +1 -1
  124. {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
  125. {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
  126. {compass_api_sdk → compassapisdk}/models/uniswappoolpriceresponse.py +1 -1
  127. {compass_api_sdk → compassapisdk}/models/uniswappositionssolidityresponse.py +1 -1
  128. {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyparams.py +1 -1
  129. {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyrequest.py +1 -1
  130. {compass_api_sdk → compassapisdk}/models/uniswapsellquoteinforesponse.py +1 -1
  131. {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
  132. {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
  133. {compass_api_sdk → compassapisdk}/models/unsignedmulticalltransaction.py +1 -1
  134. {compass_api_sdk → compassapisdk}/models/unsignedtransaction.py +1 -1
  135. {compass_api_sdk → compassapisdk}/models/unwrapwethparams.py +1 -1
  136. {compass_api_sdk → compassapisdk}/models/unwrapwethrequest.py +1 -1
  137. compassapisdk/models/usageascollateral.py +53 -0
  138. {compass_api_sdk → compassapisdk}/models/validationerror.py +1 -1
  139. {compass_api_sdk → compassapisdk}/models/vaultstate.py +1 -1
  140. {compass_api_sdk → compassapisdk}/models/weeklyapys.py +1 -1
  141. {compass_api_sdk → compassapisdk}/models/wrapethparams.py +1 -1
  142. {compass_api_sdk → compassapisdk}/models/wrapethrequest.py +1 -1
  143. {compass_api_sdk → compassapisdk}/morpho.py +79 -63
  144. {compass_api_sdk → compassapisdk}/sdk.py +11 -11
  145. {compass_api_sdk → compassapisdk}/sdkconfiguration.py +2 -2
  146. {compass_api_sdk → compassapisdk}/sky.py +5 -5
  147. {compass_api_sdk → compassapisdk}/token_sdk.py +11 -11
  148. {compass_api_sdk → compassapisdk}/transaction_batching.py +287 -3
  149. {compass_api_sdk → compassapisdk}/uniswap_v3.py +39 -39
  150. {compass_api_sdk → compassapisdk}/universal.py +15 -15
  151. compass_api_sdk/_hooks/registration.py +0 -13
  152. compass_api_sdk/models/aavehistoricaltransactionbase.py +0 -113
  153. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +0 -31
  154. compass_api_sdk/models/action.py +0 -14
  155. compass_api_sdk/models/borrow.py +0 -33
  156. compass_api_sdk/models/collateralreserve.py +0 -16
  157. compass_api_sdk/models/liquidationcall.py +0 -37
  158. compass_api_sdk/models/principalreserve.py +0 -16
  159. compass_api_sdk/models/redeemunderlying.py +0 -21
  160. compass_api_sdk/models/repay.py +0 -21
  161. compass_api_sdk/models/reserve.py +0 -16
  162. compass_api_sdk/models/supply.py +0 -21
  163. compass_api_sdk/models/swapborrowrate.py +0 -27
  164. compass_api_sdk/models/usageascollateral.py +0 -21
  165. compass_api_sdk-0.2.0.dist-info/RECORD +0 -184
  166. {compass_api_sdk-0.2.0.dist-info → compass_api_sdk-0.3.0.dist-info}/WHEEL +0 -0
  167. {compass_api_sdk → compassapisdk}/__init__.py +0 -0
  168. {compass_api_sdk → compassapisdk}/_hooks/__init__.py +0 -0
  169. {compass_api_sdk → compassapisdk}/errors/__init__.py +0 -0
  170. {compass_api_sdk → compassapisdk}/errors/apierror.py +0 -0
  171. {compass_api_sdk → compassapisdk}/models/chain.py +0 -0
  172. {compass_api_sdk → compassapisdk}/models/contractname.py +0 -0
  173. {compass_api_sdk → compassapisdk}/models/feeenum.py +0 -0
  174. {compass_api_sdk → compassapisdk}/models/interestratemode.py +0 -0
  175. {compass_api_sdk → compassapisdk}/models/multicallactiontype.py +0 -0
  176. {compass_api_sdk → compassapisdk}/models/token_enum.py +0 -0
  177. {compass_api_sdk → compassapisdk}/py.typed +0 -0
  178. {compass_api_sdk → compassapisdk}/types/__init__.py +0 -0
  179. {compass_api_sdk → compassapisdk}/types/basemodel.py +0 -0
  180. {compass_api_sdk → compassapisdk}/utils/__init__.py +0 -0
  181. {compass_api_sdk → compassapisdk}/utils/annotations.py +0 -0
  182. {compass_api_sdk → compassapisdk}/utils/datetimes.py +0 -0
  183. {compass_api_sdk → compassapisdk}/utils/enums.py +0 -0
  184. {compass_api_sdk → compassapisdk}/utils/eventstreaming.py +0 -0
  185. {compass_api_sdk → compassapisdk}/utils/forms.py +0 -0
  186. {compass_api_sdk → compassapisdk}/utils/headers.py +0 -0
  187. {compass_api_sdk → compassapisdk}/utils/logger.py +0 -0
  188. {compass_api_sdk → compassapisdk}/utils/metadata.py +0 -0
  189. {compass_api_sdk → compassapisdk}/utils/queryparams.py +0 -0
  190. {compass_api_sdk → compassapisdk}/utils/requestbodies.py +0 -0
  191. {compass_api_sdk → compassapisdk}/utils/retries.py +0 -0
  192. {compass_api_sdk → compassapisdk}/utils/security.py +0 -0
  193. {compass_api_sdk → compassapisdk}/utils/serializers.py +0 -0
  194. {compass_api_sdk → compassapisdk}/utils/url.py +0 -0
  195. {compass_api_sdk → compassapisdk}/utils/values.py +0 -0
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -70,6 +70,8 @@ class GenericAllowanceToken(str, Enum):
70
70
 
71
71
 
72
72
  class GenericAllowanceContractName(str, Enum):
73
+ r"""The name of the contract to check allowance for."""
74
+
73
75
  AAVE_V3_POOL = "AaveV3Pool"
74
76
  AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
75
77
  AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
@@ -88,13 +90,11 @@ class GenericAllowanceRequestTypedDict(TypedDict):
88
90
  chain: GenericAllowanceChain
89
91
  r"""The chain to use."""
90
92
  user: NotRequired[str]
93
+ r"""The user to get the ERC20 allowance of."""
91
94
  token: GenericAllowanceToken
92
- r"""A class representing the token.
93
-
94
- This class is used to represent the token in the system. Notice individual
95
- endpoints' documentation where per chain tokens are presented.
96
- """
95
+ r"""The symbol of the token for which the allowance is checked.."""
97
96
  contract_name: GenericAllowanceContractName
97
+ r"""The name of the contract to check allowance for."""
98
98
 
99
99
 
100
100
  class GenericAllowanceRequest(BaseModel):
@@ -108,18 +108,16 @@ class GenericAllowanceRequest(BaseModel):
108
108
  Optional[str],
109
109
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
110
110
  ] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
111
+ r"""The user to get the ERC20 allowance of."""
111
112
 
112
113
  token: Annotated[
113
114
  GenericAllowanceToken,
114
115
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
115
116
  ] = GenericAllowanceToken.USDC
116
- r"""A class representing the token.
117
-
118
- This class is used to represent the token in the system. Notice individual
119
- endpoints' documentation where per chain tokens are presented.
120
- """
117
+ r"""The symbol of the token for which the allowance is checked.."""
121
118
 
122
119
  contract_name: Annotated[
123
120
  GenericAllowanceContractName,
124
121
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
125
122
  ] = GenericAllowanceContractName.AAVE_V3_POOL
123
+ r"""The name of the contract to check allowance for."""
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -20,6 +20,7 @@ class GenericEnsRequestTypedDict(TypedDict):
20
20
  chain: GenericEnsChain
21
21
  r"""The chain to use."""
22
22
  ens_name: NotRequired[str]
23
+ r"""The ENS name to resolve."""
23
24
 
24
25
 
25
26
  class GenericEnsRequest(BaseModel):
@@ -33,3 +34,4 @@ class GenericEnsRequest(BaseModel):
33
34
  Optional[str],
34
35
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
35
36
  ] = "vitalik.eth"
37
+ r"""The ENS name to resolve."""
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -20,6 +20,7 @@ class GenericPortfolioRequestTypedDict(TypedDict):
20
20
  chain: GenericPortfolioChain
21
21
  r"""The chain to use."""
22
22
  user: NotRequired[str]
23
+ r"""The user to get portfolio for."""
23
24
 
24
25
 
25
26
  class GenericPortfolioRequest(BaseModel):
@@ -33,3 +34,4 @@ class GenericPortfolioRequest(BaseModel):
33
34
  Optional[str],
34
35
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
35
36
  ] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
37
+ r"""The user to get portfolio for."""
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
@@ -1,8 +1,8 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing import Optional
8
8
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -20,6 +20,7 @@ class GenericVisualizePortfolioRequestTypedDict(TypedDict):
20
20
  chain: GenericVisualizePortfolioChain
21
21
  r"""The chain to use."""
22
22
  user: NotRequired[str]
23
+ r"""The user to get portfolio for."""
23
24
 
24
25
 
25
26
  class GenericVisualizePortfolioRequest(BaseModel):
@@ -33,3 +34,4 @@ class GenericVisualizePortfolioRequest(BaseModel):
33
34
  Optional[str],
34
35
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
35
36
  ] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
37
+ r"""The user to get portfolio for."""
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
  from .contractname import ContractName
5
5
  from .token_enum import TokenEnum
6
- from compass_api_sdk.types import BaseModel
6
+ from compassapisdk.types import BaseModel
7
7
  from typing import Union
8
8
  from typing_extensions import TypeAliasType, TypedDict
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from enum import Enum
7
7
  from typing import Union
8
8
  from typing_extensions import TypeAliasType, TypedDict
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
  from .chain import Chain
5
5
  from .token_enum import TokenEnum
6
- from compass_api_sdk.types import BaseModel
6
+ from compassapisdk.types import BaseModel
7
7
  from enum import Enum
8
8
  from typing import Union
9
9
  from typing_extensions import TypeAliasType, TypedDict
@@ -0,0 +1,64 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .reserve import Reserve, ReserveTypedDict
5
+ from compassapisdk.types import BaseModel
6
+ from compassapisdk.utils import validate_const
7
+ import pydantic
8
+ from pydantic.functional_validators import AfterValidator
9
+ from typing import Literal
10
+ from typing_extensions import Annotated, TypedDict
11
+
12
+
13
+ class LiquidationCallTypedDict(TypedDict):
14
+ id: str
15
+ r"""The id of a historical transaction on aave"""
16
+ timestamp: int
17
+ r"""Timestamp in unix time"""
18
+ tx_hash: str
19
+ r"""Transaction hash. You can paste these into the search bar on etherscan"""
20
+ collateral_amount: float
21
+ collateral_reserve: ReserveTypedDict
22
+ principal_amount: float
23
+ principal_reserve: ReserveTypedDict
24
+ collateral_asset_price_usd: float
25
+ borrow_asset_price_usd: float
26
+ block: int
27
+ action: Literal["LiquidationCall"]
28
+
29
+
30
+ class LiquidationCall(BaseModel):
31
+ id: str
32
+ r"""The id of a historical transaction on aave"""
33
+
34
+ timestamp: int
35
+ r"""Timestamp in unix time"""
36
+
37
+ tx_hash: Annotated[str, pydantic.Field(alias="txHash")]
38
+ r"""Transaction hash. You can paste these into the search bar on etherscan"""
39
+
40
+ collateral_amount: Annotated[float, pydantic.Field(alias="collateralAmount")]
41
+
42
+ collateral_reserve: Annotated[Reserve, pydantic.Field(alias="collateralReserve")]
43
+
44
+ principal_amount: Annotated[float, pydantic.Field(alias="principalAmount")]
45
+
46
+ principal_reserve: Annotated[Reserve, pydantic.Field(alias="principalReserve")]
47
+
48
+ collateral_asset_price_usd: Annotated[
49
+ float, pydantic.Field(alias="collateralAssetPriceUSD")
50
+ ]
51
+
52
+ borrow_asset_price_usd: Annotated[
53
+ float, pydantic.Field(alias="borrowAssetPriceUSD")
54
+ ]
55
+
56
+ block: int
57
+
58
+ ACTION: Annotated[
59
+ Annotated[
60
+ Literal["LiquidationCall"],
61
+ AfterValidator(validate_const("LiquidationCall")),
62
+ ],
63
+ pydantic.Field(alias="action"),
64
+ ] = "LiquidationCall"
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  import pydantic
6
6
  from typing_extensions import Annotated, TypedDict
7
7
 
@@ -1,38 +1,38 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
- from typing_extensions import Annotated, TypedDict
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
8
9
 
9
10
 
10
11
  class MorphoMarketPositionChain(str, Enum):
11
- r"""The chain to use."""
12
-
13
- BASE_MAINNET = "base:mainnet"
14
12
  ETHEREUM_MAINNET = "ethereum:mainnet"
15
- ARBITRUM_MAINNET = "arbitrum:mainnet"
13
+ BASE_MAINNET = "base:mainnet"
16
14
 
17
15
 
18
16
  class MorphoMarketPositionRequestTypedDict(TypedDict):
19
- chain: MorphoMarketPositionChain
20
- r"""The chain to use."""
17
+ chain: NotRequired[MorphoMarketPositionChain]
21
18
  user_address: str
19
+ r"""The user address of the desired market position."""
22
20
  unique_market_key: str
21
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
23
22
 
24
23
 
25
24
  class MorphoMarketPositionRequest(BaseModel):
26
25
  chain: Annotated[
27
- MorphoMarketPositionChain,
26
+ Optional[MorphoMarketPositionChain],
28
27
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
29
28
  ] = MorphoMarketPositionChain.ETHEREUM_MAINNET
30
- r"""The chain to use."""
31
29
 
32
30
  user_address: Annotated[
33
31
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
34
32
  ] = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B"
33
+ r"""The user address of the desired market position."""
35
34
 
36
35
  unique_market_key: Annotated[
37
36
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
38
37
  ] = "0xe7399fdebc318d76dfec7356caafcf8cd4b91287e139a3ec423f09aeeb656fc4"
38
+ r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
@@ -1,54 +1,54 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import (
4
+ from compassapisdk.types import (
5
5
  BaseModel,
6
6
  Nullable,
7
7
  OptionalNullable,
8
8
  UNSET,
9
9
  UNSET_SENTINEL,
10
10
  )
11
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
11
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
12
12
  from enum import Enum
13
13
  from pydantic import model_serializer
14
+ from typing import Optional
14
15
  from typing_extensions import Annotated, NotRequired, TypedDict
15
16
 
16
17
 
17
18
  class MorphoMarketsChain(str, Enum):
18
- r"""The chain to use."""
19
-
20
- BASE_MAINNET = "base:mainnet"
21
19
  ETHEREUM_MAINNET = "ethereum:mainnet"
22
- ARBITRUM_MAINNET = "arbitrum:mainnet"
20
+ BASE_MAINNET = "base:mainnet"
23
21
 
24
22
 
25
23
  class MorphoMarketsRequestTypedDict(TypedDict):
26
- chain: MorphoMarketsChain
27
- r"""The chain to use."""
24
+ chain: NotRequired[MorphoMarketsChain]
28
25
  collateral_token: NotRequired[Nullable[str]]
26
+ r"""Collateral token to identify the market."""
29
27
  loan_token: NotRequired[Nullable[str]]
28
+ r"""Loan token to identify the market."""
30
29
 
31
30
 
32
31
  class MorphoMarketsRequest(BaseModel):
33
32
  chain: Annotated[
34
- MorphoMarketsChain,
33
+ Optional[MorphoMarketsChain],
35
34
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
36
35
  ] = MorphoMarketsChain.ETHEREUM_MAINNET
37
- r"""The chain to use."""
38
36
 
39
37
  collateral_token: Annotated[
40
38
  OptionalNullable[str],
41
39
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
42
40
  ] = UNSET
41
+ r"""Collateral token to identify the market."""
43
42
 
44
43
  loan_token: Annotated[
45
44
  OptionalNullable[str],
46
45
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
47
46
  ] = UNSET
47
+ r"""Loan token to identify the market."""
48
48
 
49
49
  @model_serializer(mode="wrap")
50
50
  def serialize_model(self, handler):
51
- optional_fields = ["collateral_token", "loan_token"]
51
+ optional_fields = ["chain", "collateral_token", "loan_token"]
52
52
  nullable_fields = ["collateral_token", "loan_token"]
53
53
  null_default_fields = []
54
54
 
@@ -1,38 +1,38 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import BaseModel
5
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
- from typing_extensions import Annotated, TypedDict
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
8
9
 
9
10
 
10
11
  class MorphoVaultPositionChain(str, Enum):
11
- r"""The chain to use."""
12
-
13
- BASE_MAINNET = "base:mainnet"
14
12
  ETHEREUM_MAINNET = "ethereum:mainnet"
15
- ARBITRUM_MAINNET = "arbitrum:mainnet"
13
+ BASE_MAINNET = "base:mainnet"
16
14
 
17
15
 
18
16
  class MorphoVaultPositionRequestTypedDict(TypedDict):
19
- chain: MorphoVaultPositionChain
20
- r"""The chain to use."""
17
+ chain: NotRequired[MorphoVaultPositionChain]
21
18
  user_address: str
19
+ r"""The user address of the desired vault position."""
22
20
  vault_address: str
21
+ r"""The vault address of the desired vault position."""
23
22
 
24
23
 
25
24
  class MorphoVaultPositionRequest(BaseModel):
26
25
  chain: Annotated[
27
- MorphoVaultPositionChain,
26
+ Optional[MorphoVaultPositionChain],
28
27
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
29
28
  ] = MorphoVaultPositionChain.ETHEREUM_MAINNET
30
- r"""The chain to use."""
31
29
 
32
30
  user_address: Annotated[
33
31
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
34
32
  ] = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B"
33
+ r"""The user address of the desired vault position."""
35
34
 
36
35
  vault_address: Annotated[
37
36
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
38
37
  ] = "0xbEef047a543E45807105E51A8BBEFCc5950fcfBa"
38
+ r"""The vault address of the desired vault position."""
@@ -1,42 +1,46 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel, Nullable, UNSET_SENTINEL
5
- from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compassapisdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from compassapisdk.utils import FieldMetadata, QueryParamMetadata
6
12
  from enum import Enum
7
13
  from pydantic import model_serializer
8
- from typing_extensions import Annotated, TypedDict
14
+ from typing import Optional
15
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
16
 
10
17
 
11
18
  class MorphoVaultsChain(str, Enum):
12
- r"""The chain to use."""
13
-
14
- BASE_MAINNET = "base:mainnet"
15
19
  ETHEREUM_MAINNET = "ethereum:mainnet"
16
- ARBITRUM_MAINNET = "arbitrum:mainnet"
20
+ BASE_MAINNET = "base:mainnet"
17
21
 
18
22
 
19
23
  class MorphoVaultsRequestTypedDict(TypedDict):
20
- deposit_token: Nullable[str]
21
- chain: MorphoVaultsChain
22
- r"""The chain to use."""
24
+ chain: NotRequired[MorphoVaultsChain]
25
+ deposit_token: NotRequired[Nullable[str]]
26
+ r"""Token address that will filter vaults by this deposit token."""
23
27
 
24
28
 
25
29
  class MorphoVaultsRequest(BaseModel):
26
- deposit_token: Annotated[
27
- Nullable[str],
28
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
29
- ]
30
-
31
30
  chain: Annotated[
32
- MorphoVaultsChain,
31
+ Optional[MorphoVaultsChain],
33
32
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
34
33
  ] = MorphoVaultsChain.ETHEREUM_MAINNET
35
- r"""The chain to use."""
34
+
35
+ deposit_token: Annotated[
36
+ OptionalNullable[str],
37
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
38
+ ] = UNSET
39
+ r"""Token address that will filter vaults by this deposit token."""
36
40
 
37
41
  @model_serializer(mode="wrap")
38
42
  def serialize_model(self, handler):
39
- optional_fields = []
43
+ optional_fields = ["chain", "deposit_token"]
40
44
  nullable_fields = ["deposit_token"]
41
45
  null_default_fields = []
42
46
 
@@ -1,14 +1,14 @@
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 compass_api_sdk.types import (
4
+ from compassapisdk.types import (
6
5
  BaseModel,
7
6
  Nullable,
8
7
  OptionalNullable,
9
8
  UNSET,
10
9
  UNSET_SENTINEL,
11
10
  )
11
+ from enum import Enum
12
12
  from pydantic import model_serializer
13
13
  from typing import Union
14
14
  from typing_extensions import NotRequired, TypeAliasType, TypedDict
@@ -26,13 +26,17 @@ MorphoBorrowRequestAmount = TypeAliasType(
26
26
  r"""Amount of the token to borrow from the market."""
27
27
 
28
28
 
29
+ class MorphoBorrowRequestChain(str, Enum):
30
+ ETHEREUM_MAINNET = "ethereum:mainnet"
31
+ BASE_MAINNET = "base:mainnet"
32
+
33
+
29
34
  class MorphoBorrowRequestTypedDict(TypedDict):
30
35
  amount: MorphoBorrowRequestAmountTypedDict
31
36
  r"""Amount of the token to borrow from the market."""
32
37
  unique_market_key: str
33
38
  r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
34
- chain: Chain
35
- r"""The chain to use."""
39
+ chain: MorphoBorrowRequestChain
36
40
  sender: str
37
41
  r"""The address of the transaction sender."""
38
42
  on_behalf_of: NotRequired[Nullable[str]]
@@ -48,8 +52,7 @@ class MorphoBorrowRequest(BaseModel):
48
52
  unique_market_key: str
49
53
  r"""The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint."""
50
54
 
51
- chain: Chain
52
- r"""The chain to use."""
55
+ chain: MorphoBorrowRequestChain
53
56
 
54
57
  sender: str
55
58
  r"""The address of the transaction sender."""
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from compass_api_sdk.types import BaseModel
4
+ from compassapisdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -1,14 +1,14 @@
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 compass_api_sdk.types import (
4
+ from compassapisdk.types import (
6
5
  BaseModel,
7
6
  Nullable,
8
7
  OptionalNullable,
9
8
  UNSET,
10
9
  UNSET_SENTINEL,
11
10
  )
11
+ from enum import Enum
12
12
  from pydantic import model_serializer
13
13
  from typing import Union
14
14
  from typing_extensions import NotRequired, TypeAliasType, TypedDict
@@ -26,13 +26,17 @@ MorphoDepositRequestAmount = TypeAliasType(
26
26
  r"""The amount of tokens to deposit into the vault."""
27
27
 
28
28
 
29
+ class MorphoDepositRequestChain(str, Enum):
30
+ ETHEREUM_MAINNET = "ethereum:mainnet"
31
+ BASE_MAINNET = "base:mainnet"
32
+
33
+
29
34
  class MorphoDepositRequestTypedDict(TypedDict):
30
35
  vault_address: str
31
36
  r"""The vault address you are depositing to."""
32
37
  amount: MorphoDepositRequestAmountTypedDict
33
38
  r"""The amount of tokens to deposit into the vault."""
34
- chain: Chain
35
- r"""The chain to use."""
39
+ chain: MorphoDepositRequestChain
36
40
  sender: str
37
41
  r"""The address of the transaction sender."""
38
42
  receiver: NotRequired[Nullable[str]]
@@ -46,8 +50,7 @@ class MorphoDepositRequest(BaseModel):
46
50
  amount: MorphoDepositRequestAmount
47
51
  r"""The amount of tokens to deposit into the vault."""
48
52
 
49
- chain: Chain
50
- r"""The chain to use."""
53
+ chain: MorphoDepositRequestChain
51
54
 
52
55
  sender: str
53
56
  r"""The address of the transaction sender."""
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .morphomarket import MorphoMarket, MorphoMarketTypedDict
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing import List
7
7
  from typing_extensions import TypedDict
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .morphovault import MorphoVault, MorphoVaultTypedDict
5
- from compass_api_sdk.types import BaseModel
5
+ from compassapisdk.types import BaseModel
6
6
  from typing import List
7
7
  from typing_extensions import TypedDict
8
8
 
@@ -7,7 +7,7 @@ from .compass_api_backend_models_morpho_read_response_get_markets_asset import (
7
7
  )
8
8
  from .marketstate import MarketState, MarketStateTypedDict
9
9
  from .weeklyapys import WeeklyApys, WeeklyApysTypedDict
10
- from compass_api_sdk.types import BaseModel, Nullable, UNSET_SENTINEL
10
+ from compassapisdk.types import BaseModel, Nullable, UNSET_SENTINEL
11
11
  import pydantic
12
12
  from pydantic import model_serializer
13
13
  from typing_extensions import Annotated, TypedDict