compass_api_sdk 0.1.6__py3-none-any.whl → 0.1.8__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 (188) hide show
  1. compass_api_sdk/_hooks/registration.py +13 -0
  2. {compassapisdk → compass_api_sdk}/_hooks/sdkhooks.py +1 -1
  3. {compassapisdk → compass_api_sdk}/_hooks/types.py +1 -1
  4. {compassapisdk → compass_api_sdk}/_version.py +3 -3
  5. {compassapisdk → compass_api_sdk}/aave_v3.py +229 -3
  6. {compassapisdk → compass_api_sdk}/aerodrome_slipstream.py +3 -3
  7. {compassapisdk → compass_api_sdk}/basesdk.py +3 -3
  8. {compassapisdk → compass_api_sdk}/errors/httpvalidationerror.py +3 -3
  9. {compassapisdk → compass_api_sdk}/models/__init__.py +60 -24
  10. compass_api_sdk/models/aave_historical_transactionsop.py +49 -0
  11. {compassapisdk → compass_api_sdk}/models/aave_liquidity_changeop.py +5 -2
  12. {compassapisdk → compass_api_sdk}/models/aave_token_priceop.py +5 -2
  13. {compassapisdk → compass_api_sdk}/models/aave_user_position_per_tokenop.py +5 -2
  14. {compassapisdk → compass_api_sdk}/models/aave_user_position_summaryop.py +5 -2
  15. {compassapisdk → compass_api_sdk}/models/aaveborrowparams.py +1 -1
  16. {compassapisdk → compass_api_sdk}/models/aaveborrowrequest.py +1 -1
  17. compass_api_sdk/models/aavehistoricaltransactionbase.py +113 -0
  18. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +31 -0
  19. {compassapisdk → compass_api_sdk}/models/aaveliquiditychangeresponse.py +1 -1
  20. {compassapisdk → compass_api_sdk}/models/aaverepayparams.py +1 -1
  21. {compassapisdk → compass_api_sdk}/models/aaverepayrequest.py +1 -1
  22. {compassapisdk → compass_api_sdk}/models/aavesupplyparams.py +1 -1
  23. {compassapisdk → compass_api_sdk}/models/aavesupplyrequest.py +1 -1
  24. {compassapisdk → compass_api_sdk}/models/aavetokenpriceresponse.py +1 -1
  25. {compassapisdk → compass_api_sdk}/models/aaveuserpositionpertokenresponse.py +1 -1
  26. {compassapisdk → compass_api_sdk}/models/aaveuserpositionsummaryresponse.py +1 -1
  27. {compassapisdk → compass_api_sdk}/models/aavewithdrawparams.py +1 -1
  28. {compassapisdk → compass_api_sdk}/models/aavewithdrawrequest.py +1 -1
  29. compass_api_sdk/models/action.py +14 -0
  30. {compassapisdk → compass_api_sdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +5 -2
  31. {compassapisdk → compass_api_sdk}/models/aerodrome_slipstream_pool_priceop.py +5 -2
  32. {compassapisdk → compass_api_sdk}/models/aerodromeaddliquidityethparams.py +1 -1
  33. {compassapisdk → compass_api_sdk}/models/aerodromeaddliquidityparams.py +1 -1
  34. {compassapisdk → compass_api_sdk}/models/aerodromelppositionsresponse.py +1 -1
  35. {compassapisdk → compass_api_sdk}/models/aerodromeposition.py +1 -1
  36. {compassapisdk → compass_api_sdk}/models/aerodromeremoveliquidityethrequest.py +1 -1
  37. {compassapisdk → compass_api_sdk}/models/aerodromeremoveliquidityrequest.py +1 -1
  38. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreambuyexactlyparams.py +1 -1
  39. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
  40. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +1 -1
  41. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
  42. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreammintliquidityprovisionparams.py +1 -1
  43. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
  44. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
  45. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamsellexactlyparams.py +1 -1
  46. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
  47. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +1 -1
  48. {compassapisdk → compass_api_sdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
  49. {compassapisdk → compass_api_sdk}/models/aerodromeswapethfortokenparams.py +1 -1
  50. {compassapisdk → compass_api_sdk}/models/aerodromeswaptokenforethparams.py +1 -1
  51. {compassapisdk → compass_api_sdk}/models/aerodromeswaptokensparams.py +1 -1
  52. {compassapisdk → compass_api_sdk}/models/allowanceinforesponse.py +1 -1
  53. compass_api_sdk/models/borrow.py +33 -0
  54. {compassapisdk → compass_api_sdk}/models/chain.py +3 -0
  55. {compassapisdk → compass_api_sdk}/models/chaininfo.py +1 -1
  56. compass_api_sdk/models/collateralreserve.py +16 -0
  57. {compassapisdk → compass_api_sdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
  58. {compassapisdk → compass_api_sdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
  59. {compassapisdk → compass_api_sdk}/models/ensnameinforesponse.py +1 -1
  60. {compassapisdk → compass_api_sdk}/models/generic_allowanceop.py +5 -2
  61. {compassapisdk → compass_api_sdk}/models/generic_ensop.py +5 -2
  62. {compassapisdk → compass_api_sdk}/models/generic_portfolioop.py +5 -2
  63. {compassapisdk → compass_api_sdk}/models/generic_supported_tokensop.py +5 -2
  64. {compassapisdk → compass_api_sdk}/models/generic_visualize_portfolioop.py +5 -2
  65. {compassapisdk → compass_api_sdk}/models/image.py +1 -1
  66. {compassapisdk → compass_api_sdk}/models/increaseallowanceanyparams.py +1 -1
  67. {compassapisdk → compass_api_sdk}/models/increaseallowanceparams.py +1 -1
  68. {compassapisdk → compass_api_sdk}/models/increaseallowancerequest.py +1 -1
  69. compass_api_sdk/models/liquidationcall.py +37 -0
  70. {compassapisdk → compass_api_sdk}/models/marketstate.py +1 -1
  71. {compassapisdk → compass_api_sdk}/models/morpho_market_positionop.py +5 -2
  72. {compassapisdk → compass_api_sdk}/models/morpho_marketsop.py +5 -2
  73. {compassapisdk → compass_api_sdk}/models/morpho_vault_positionop.py +5 -2
  74. {compassapisdk → compass_api_sdk}/models/morpho_vaultsop.py +5 -2
  75. {compassapisdk → compass_api_sdk}/models/morphoborrowrequest.py +1 -1
  76. {compassapisdk → compass_api_sdk}/models/morphocheckmarketpositionresponse.py +1 -1
  77. {compassapisdk → compass_api_sdk}/models/morphocheckvaultpositionresponse.py +1 -1
  78. {compassapisdk → compass_api_sdk}/models/morphodepositrequest.py +1 -1
  79. {compassapisdk → compass_api_sdk}/models/morphogetmarketsresponse.py +1 -1
  80. {compassapisdk → compass_api_sdk}/models/morphogetvaultsresponse.py +1 -1
  81. {compassapisdk → compass_api_sdk}/models/morphomarket.py +1 -1
  82. {compassapisdk → compass_api_sdk}/models/morphorepayrequest.py +1 -1
  83. {compassapisdk → compass_api_sdk}/models/morphosetvaultallowancerequest.py +1 -1
  84. {compassapisdk → compass_api_sdk}/models/morphosupplycollateralrequest.py +1 -1
  85. {compassapisdk → compass_api_sdk}/models/morphovault.py +1 -1
  86. {compassapisdk → compass_api_sdk}/models/morphowithdrawcollateralrequest.py +1 -1
  87. {compassapisdk → compass_api_sdk}/models/morphowithdrawrequest.py +1 -1
  88. {compassapisdk → compass_api_sdk}/models/multicallaction.py +1 -1
  89. {compassapisdk → compass_api_sdk}/models/multicallauthorizationrequest.py +1 -1
  90. {compassapisdk → compass_api_sdk}/models/multicallauthorizationresponse.py +1 -1
  91. {compassapisdk → compass_api_sdk}/models/multicallexecuterequest.py +1 -1
  92. {compassapisdk → compass_api_sdk}/models/portfolio.py +1 -1
  93. compass_api_sdk/models/principalreserve.py +16 -0
  94. compass_api_sdk/models/redeemunderlying.py +21 -0
  95. compass_api_sdk/models/repay.py +21 -0
  96. compass_api_sdk/models/reserve.py +16 -0
  97. {compassapisdk → compass_api_sdk}/models/security.py +2 -2
  98. {compassapisdk → compass_api_sdk}/models/signedauthorization.py +1 -1
  99. {compassapisdk → compass_api_sdk}/models/sky_positionop.py +2 -2
  100. {compassapisdk → compass_api_sdk}/models/skybuyrequest.py +2 -2
  101. {compassapisdk → compass_api_sdk}/models/skycheckpositionresponse.py +1 -1
  102. {compassapisdk → compass_api_sdk}/models/skydepositrequest.py +2 -2
  103. {compassapisdk → compass_api_sdk}/models/skysellrequest.py +2 -2
  104. {compassapisdk → compass_api_sdk}/models/skywithdrawrequest.py +2 -2
  105. compass_api_sdk/models/supply.py +21 -0
  106. compass_api_sdk/models/swapborrowrate.py +27 -0
  107. {compassapisdk → compass_api_sdk}/models/token_addressop.py +5 -2
  108. {compassapisdk → compass_api_sdk}/models/token_balanceop.py +5 -2
  109. {compassapisdk → compass_api_sdk}/models/token_priceop.py +5 -2
  110. {compassapisdk → compass_api_sdk}/models/tokenaddressresponse.py +1 -1
  111. {compassapisdk → compass_api_sdk}/models/tokenbalance.py +1 -1
  112. {compassapisdk → compass_api_sdk}/models/tokenbalanceresponse.py +1 -1
  113. {compassapisdk → compass_api_sdk}/models/tokeninfo.py +1 -1
  114. {compassapisdk → compass_api_sdk}/models/tokenpriceresponse.py +1 -1
  115. {compassapisdk → compass_api_sdk}/models/tokentransfererc20params.py +1 -1
  116. {compassapisdk → compass_api_sdk}/models/tokentransferrequest.py +1 -1
  117. {compassapisdk → compass_api_sdk}/models/uniswap_liquidity_provision_in_rangeop.py +5 -2
  118. {compassapisdk → compass_api_sdk}/models/uniswap_liquidity_provision_positionsop.py +5 -2
  119. {compassapisdk → compass_api_sdk}/models/uniswap_pool_priceop.py +5 -2
  120. {compassapisdk → compass_api_sdk}/models/uniswap_quote_buy_exactlyop.py +5 -2
  121. {compassapisdk → compass_api_sdk}/models/uniswap_quote_sell_exactlyop.py +5 -2
  122. {compassapisdk → compass_api_sdk}/models/uniswapbuyexactlyparams.py +5 -17
  123. {compassapisdk → compass_api_sdk}/models/uniswapbuyexactlyrequest.py +5 -17
  124. {compassapisdk → compass_api_sdk}/models/uniswapbuyquoteinforesponse.py +1 -1
  125. {compassapisdk → compass_api_sdk}/models/uniswapcheckinrangeresponse.py +1 -1
  126. {compassapisdk → compass_api_sdk}/models/uniswapincreaseliquidityprovisionparams.py +1 -1
  127. {compassapisdk → compass_api_sdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
  128. {compassapisdk → compass_api_sdk}/models/uniswaplppositionsinforesponse.py +1 -1
  129. {compassapisdk → compass_api_sdk}/models/uniswapmintliquidityprovisionparams.py +1 -1
  130. {compassapisdk → compass_api_sdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
  131. {compassapisdk → compass_api_sdk}/models/uniswappoolpriceresponse.py +1 -1
  132. {compassapisdk → compass_api_sdk}/models/uniswappositionssolidityresponse.py +1 -1
  133. {compassapisdk → compass_api_sdk}/models/uniswapsellexactlyparams.py +11 -23
  134. {compassapisdk → compass_api_sdk}/models/uniswapsellexactlyrequest.py +12 -24
  135. {compassapisdk → compass_api_sdk}/models/uniswapsellquoteinforesponse.py +1 -1
  136. {compassapisdk → compass_api_sdk}/models/uniswapwithdrawliquidityprovisionparams.py +1 -1
  137. {compassapisdk → compass_api_sdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
  138. {compassapisdk → compass_api_sdk}/models/unsignedmulticalltransaction.py +1 -1
  139. {compassapisdk → compass_api_sdk}/models/unsignedtransaction.py +1 -1
  140. {compassapisdk → compass_api_sdk}/models/unwrapwethparams.py +1 -1
  141. {compassapisdk → compass_api_sdk}/models/unwrapwethrequest.py +1 -1
  142. compass_api_sdk/models/usageascollateral.py +21 -0
  143. {compassapisdk → compass_api_sdk}/models/validationerror.py +1 -1
  144. {compassapisdk → compass_api_sdk}/models/vaultstate.py +1 -1
  145. {compassapisdk → compass_api_sdk}/models/weeklyapys.py +1 -1
  146. {compassapisdk → compass_api_sdk}/models/wrapethparams.py +1 -1
  147. {compassapisdk → compass_api_sdk}/models/wrapethrequest.py +1 -1
  148. {compassapisdk → compass_api_sdk}/morpho.py +3 -3
  149. {compassapisdk → compass_api_sdk}/sdk.py +11 -11
  150. {compassapisdk → compass_api_sdk}/sdkconfiguration.py +4 -4
  151. {compassapisdk → compass_api_sdk}/sky.py +3 -3
  152. {compassapisdk → compass_api_sdk}/token_sdk.py +3 -3
  153. {compassapisdk → compass_api_sdk}/transaction_batching.py +3 -3
  154. {compassapisdk → compass_api_sdk}/uniswap_v3.py +25 -41
  155. {compassapisdk → compass_api_sdk}/universal.py +3 -3
  156. {compass_api_sdk-0.1.6.dist-info → compass_api_sdk-0.1.8.dist-info}/METADATA +35 -34
  157. compass_api_sdk-0.1.8.dist-info/RECORD +187 -0
  158. {compass_api_sdk-0.1.6.dist-info → compass_api_sdk-0.1.8.dist-info}/WHEEL +1 -1
  159. compass_api_sdk-0.1.6.dist-info/RECORD +0 -172
  160. {compassapisdk → compass_api_sdk}/__init__.py +0 -0
  161. {compassapisdk → compass_api_sdk}/_hooks/__init__.py +0 -0
  162. {compassapisdk → compass_api_sdk}/errors/__init__.py +0 -0
  163. {compassapisdk → compass_api_sdk}/errors/apierror.py +0 -0
  164. {compassapisdk → compass_api_sdk}/httpclient.py +0 -0
  165. {compassapisdk → compass_api_sdk}/models/contractname.py +0 -0
  166. {compassapisdk → compass_api_sdk}/models/feeenum.py +0 -0
  167. {compassapisdk → compass_api_sdk}/models/interestratemode.py +0 -0
  168. {compassapisdk → compass_api_sdk}/models/multicallactiontype.py +19 -19
  169. {compassapisdk → compass_api_sdk}/models/token_enum.py +0 -0
  170. {compassapisdk → compass_api_sdk}/py.typed +0 -0
  171. {compassapisdk → compass_api_sdk}/types/__init__.py +0 -0
  172. {compassapisdk → compass_api_sdk}/types/basemodel.py +0 -0
  173. {compassapisdk → compass_api_sdk}/utils/__init__.py +0 -0
  174. {compassapisdk → compass_api_sdk}/utils/annotations.py +0 -0
  175. {compassapisdk → compass_api_sdk}/utils/datetimes.py +0 -0
  176. {compassapisdk → compass_api_sdk}/utils/enums.py +0 -0
  177. {compassapisdk → compass_api_sdk}/utils/eventstreaming.py +0 -0
  178. {compassapisdk → compass_api_sdk}/utils/forms.py +0 -0
  179. {compassapisdk → compass_api_sdk}/utils/headers.py +0 -0
  180. {compassapisdk → compass_api_sdk}/utils/logger.py +0 -0
  181. {compassapisdk → compass_api_sdk}/utils/metadata.py +0 -0
  182. {compassapisdk → compass_api_sdk}/utils/queryparams.py +0 -0
  183. {compassapisdk → compass_api_sdk}/utils/requestbodies.py +0 -0
  184. {compassapisdk → compass_api_sdk}/utils/retries.py +0 -0
  185. {compassapisdk → compass_api_sdk}/utils/security.py +0 -0
  186. {compassapisdk → compass_api_sdk}/utils/serializers.py +0 -0
  187. {compassapisdk → compass_api_sdk}/utils/url.py +0 -0
  188. {compassapisdk → compass_api_sdk}/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 compassapisdk.types import BaseModel
5
- from compassapisdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compass_api_sdk.types import BaseModel
5
+ from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
@@ -13,6 +13,9 @@ class AaveUserPositionPerTokenChain(str, Enum):
13
13
  BASE_MAINNET = "base:mainnet"
14
14
  ETHEREUM_MAINNET = "ethereum:mainnet"
15
15
  ARBITRUM_MAINNET = "arbitrum:mainnet"
16
+ ETHEREUM_LOCAL = "ethereum:local"
17
+ ARBITRUM_LOCAL = "arbitrum:local"
18
+ BASE_LOCAL = "base:local"
16
19
 
17
20
 
18
21
  class AaveUserPositionPerTokenToken(str, Enum):
@@ -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 compassapisdk.types import BaseModel
5
- from compassapisdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compass_api_sdk.types import BaseModel
5
+ from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
@@ -13,6 +13,9 @@ class AaveUserPositionSummaryChain(str, Enum):
13
13
  BASE_MAINNET = "base:mainnet"
14
14
  ETHEREUM_MAINNET = "ethereum:mainnet"
15
15
  ARBITRUM_MAINNET = "arbitrum:mainnet"
16
+ ETHEREUM_LOCAL = "ethereum:local"
17
+ ARBITRUM_LOCAL = "arbitrum:local"
18
+ BASE_LOCAL = "base:local"
16
19
 
17
20
 
18
21
  class AaveUserPositionSummaryRequestTypedDict(TypedDict):
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
  from .interestratemode import InterestRateMode
5
5
  from .token_enum import TokenEnum
6
- from compassapisdk.types import (
6
+ from compass_api_sdk.types import (
7
7
  BaseModel,
8
8
  Nullable,
9
9
  OptionalNullable,
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
  from .chain import Chain
5
5
  from .interestratemode import InterestRateMode
6
6
  from .token_enum import TokenEnum
7
- from compassapisdk.types import (
7
+ from compass_api_sdk.types import (
8
8
  BaseModel,
9
9
  Nullable,
10
10
  OptionalNullable,
@@ -0,0 +1,113 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .action import Action
5
+ from .borrow import Borrow, BorrowTypedDict
6
+ from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
7
+ from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
8
+ from .repay import Repay, RepayTypedDict
9
+ from .supply import Supply, SupplyTypedDict
10
+ from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
11
+ from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
12
+ from compass_api_sdk.types import (
13
+ BaseModel,
14
+ Nullable,
15
+ OptionalNullable,
16
+ UNSET,
17
+ UNSET_SENTINEL,
18
+ )
19
+ import pydantic
20
+ from pydantic import model_serializer
21
+ from typing_extensions import Annotated, NotRequired, TypedDict
22
+
23
+
24
+ class AaveHistoricalTransactionBaseTypedDict(TypedDict):
25
+ id: str
26
+ timestamp: int
27
+ tx_hash: str
28
+ action: Action
29
+ supply: NotRequired[Nullable[SupplyTypedDict]]
30
+ redeem_underlying: NotRequired[Nullable[RedeemUnderlyingTypedDict]]
31
+ borrow: NotRequired[Nullable[BorrowTypedDict]]
32
+ usage_as_collateral: NotRequired[Nullable[UsageAsCollateralTypedDict]]
33
+ repay: NotRequired[Nullable[RepayTypedDict]]
34
+ swap_borrow_rate: NotRequired[Nullable[SwapBorrowRateTypedDict]]
35
+ liquidation_call: NotRequired[Nullable[LiquidationCallTypedDict]]
36
+
37
+
38
+ class AaveHistoricalTransactionBase(BaseModel):
39
+ id: str
40
+
41
+ timestamp: int
42
+
43
+ tx_hash: Annotated[str, pydantic.Field(alias="txHash")]
44
+
45
+ action: Action
46
+
47
+ supply: OptionalNullable[Supply] = UNSET
48
+
49
+ redeem_underlying: Annotated[
50
+ OptionalNullable[RedeemUnderlying], pydantic.Field(alias="redeemUnderlying")
51
+ ] = UNSET
52
+
53
+ borrow: OptionalNullable[Borrow] = UNSET
54
+
55
+ usage_as_collateral: Annotated[
56
+ OptionalNullable[UsageAsCollateral], pydantic.Field(alias="usageAsCollateral")
57
+ ] = UNSET
58
+
59
+ repay: OptionalNullable[Repay] = UNSET
60
+
61
+ swap_borrow_rate: Annotated[
62
+ OptionalNullable[SwapBorrowRate], pydantic.Field(alias="swapBorrowRate")
63
+ ] = UNSET
64
+
65
+ liquidation_call: Annotated[
66
+ OptionalNullable[LiquidationCall], pydantic.Field(alias="liquidationCall")
67
+ ] = UNSET
68
+
69
+ @model_serializer(mode="wrap")
70
+ def serialize_model(self, handler):
71
+ optional_fields = [
72
+ "supply",
73
+ "redeemUnderlying",
74
+ "borrow",
75
+ "usageAsCollateral",
76
+ "repay",
77
+ "swapBorrowRate",
78
+ "liquidationCall",
79
+ ]
80
+ nullable_fields = [
81
+ "supply",
82
+ "redeemUnderlying",
83
+ "borrow",
84
+ "usageAsCollateral",
85
+ "repay",
86
+ "swapBorrowRate",
87
+ "liquidationCall",
88
+ ]
89
+ null_default_fields = []
90
+
91
+ serialized = handler(self)
92
+
93
+ m = {}
94
+
95
+ for n, f in type(self).model_fields.items():
96
+ k = f.alias or n
97
+ val = serialized.get(k)
98
+ serialized.pop(k, None)
99
+
100
+ optional_nullable = k in optional_fields and k in nullable_fields
101
+ is_set = (
102
+ self.__pydantic_fields_set__.intersection({n})
103
+ or k in null_default_fields
104
+ ) # pylint: disable=no-member
105
+
106
+ if val is not None and val != UNSET_SENTINEL:
107
+ m[k] = val
108
+ elif val != UNSET_SENTINEL and (
109
+ not k in optional_fields or (optional_nullable and is_set)
110
+ ):
111
+ m[k] = val
112
+
113
+ return m
@@ -0,0 +1,31 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .aavehistoricaltransactionbase import (
5
+ AaveHistoricalTransactionBase,
6
+ AaveHistoricalTransactionBaseTypedDict,
7
+ )
8
+ from compass_api_sdk.types import BaseModel
9
+ from typing import List
10
+ from typing_extensions import TypedDict
11
+
12
+
13
+ class AaveHistoricalTransactionsResponseTypedDict(TypedDict):
14
+ r"""Response model for getting Aave historical transactions."""
15
+
16
+ total: int
17
+ offset: int
18
+ limit: int
19
+ transactions: List[AaveHistoricalTransactionBaseTypedDict]
20
+
21
+
22
+ class AaveHistoricalTransactionsResponse(BaseModel):
23
+ r"""Response model for getting Aave historical transactions."""
24
+
25
+ total: int
26
+
27
+ offset: int
28
+
29
+ limit: int
30
+
31
+ transactions: List[AaveHistoricalTransactionBase]
@@ -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 compassapisdk.types import BaseModel
4
+ from compass_api_sdk.types import BaseModel
5
5
  from datetime import datetime
6
6
  from typing_extensions import TypedDict
7
7
 
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
  from .interestratemode import InterestRateMode
5
5
  from .token_enum import TokenEnum
6
- from compassapisdk.types import (
6
+ from compass_api_sdk.types import (
7
7
  BaseModel,
8
8
  Nullable,
9
9
  OptionalNullable,
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
  from .chain import Chain
5
5
  from .interestratemode import InterestRateMode
6
6
  from .token_enum import TokenEnum
7
- from compassapisdk.types import (
7
+ from compass_api_sdk.types import (
8
8
  BaseModel,
9
9
  Nullable,
10
10
  OptionalNullable,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import (
5
+ from compass_api_sdk.types import (
6
6
  BaseModel,
7
7
  Nullable,
8
8
  OptionalNullable,
@@ -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 compassapisdk.types import (
6
+ from compass_api_sdk.types import (
7
7
  BaseModel,
8
8
  Nullable,
9
9
  OptionalNullable,
@@ -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 compassapisdk.types import BaseModel
4
+ from compass_api_sdk.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 compassapisdk.types import BaseModel
4
+ from compass_api_sdk.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 compassapisdk.types import BaseModel
4
+ from compass_api_sdk.types import BaseModel
5
5
  from typing_extensions import TypedDict
6
6
 
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import BaseModel
5
+ from compass_api_sdk.types import BaseModel
6
6
  from typing import Union
7
7
  from typing_extensions import TypeAliasType, TypedDict
8
8
 
@@ -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 compassapisdk.types import BaseModel
6
+ from compass_api_sdk.types import BaseModel
7
7
  from typing import Union
8
8
  from typing_extensions import TypeAliasType, TypedDict
9
9
 
@@ -0,0 +1,14 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+
6
+
7
+ class Action(str, Enum):
8
+ SUPPLY = "supply"
9
+ REDEEM_UNDERLYING = "redeemUnderlying"
10
+ BORROW = "borrow"
11
+ USAGE_AS_COLLATERAL = "usageAsCollateral"
12
+ REPAY = "repay"
13
+ SWAP_BORROW_RATE = "swapBorrowRate"
14
+ LIQUIDATION_CALL = "liquidationCall"
@@ -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 compassapisdk.types import BaseModel
5
- from compassapisdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compass_api_sdk.types import BaseModel
5
+ from compass_api_sdk.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
@@ -14,6 +14,9 @@ class AerodromeSlipstreamLiquidityProvisionPositionsChain(str, Enum):
14
14
  BASE_MAINNET = "base:mainnet"
15
15
  ETHEREUM_MAINNET = "ethereum:mainnet"
16
16
  ARBITRUM_MAINNET = "arbitrum:mainnet"
17
+ ETHEREUM_LOCAL = "ethereum:local"
18
+ ARBITRUM_LOCAL = "arbitrum:local"
19
+ BASE_LOCAL = "base:local"
17
20
 
18
21
 
19
22
  class AerodromeSlipstreamLiquidityProvisionPositionsRequestTypedDict(TypedDict):
@@ -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 compassapisdk.types import BaseModel
5
- from compassapisdk.utils import FieldMetadata, QueryParamMetadata
4
+ from compass_api_sdk.types import BaseModel
5
+ from compass_api_sdk.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
@@ -14,6 +14,9 @@ class AerodromeSlipstreamPoolPriceChain(str, Enum):
14
14
  BASE_MAINNET = "base:mainnet"
15
15
  ETHEREUM_MAINNET = "ethereum:mainnet"
16
16
  ARBITRUM_MAINNET = "arbitrum:mainnet"
17
+ ETHEREUM_LOCAL = "ethereum:local"
18
+ ARBITRUM_LOCAL = "arbitrum:local"
19
+ BASE_LOCAL = "base:local"
17
20
 
18
21
 
19
22
  class AerodromeSlipstreamPoolPriceTokenInToken(str, Enum):
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import (
5
+ from compass_api_sdk.types import (
6
6
  BaseModel,
7
7
  Nullable,
8
8
  OptionalNullable,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import (
5
+ from compass_api_sdk.types import (
6
6
  BaseModel,
7
7
  Nullable,
8
8
  OptionalNullable,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
5
- from compassapisdk.types import BaseModel
5
+ from compass_api_sdk.types import BaseModel
6
6
  from typing import Dict
7
7
  from typing_extensions import TypedDict
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import BaseModel
5
+ from compass_api_sdk.types import BaseModel
6
6
  from typing_extensions import TypedDict
7
7
 
8
8
 
@@ -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 compassapisdk.types import (
6
+ from compass_api_sdk.types import (
7
7
  BaseModel,
8
8
  Nullable,
9
9
  OptionalNullable,
@@ -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 compassapisdk.types import (
6
+ from compass_api_sdk.types import (
7
7
  BaseModel,
8
8
  Nullable,
9
9
  OptionalNullable,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import BaseModel
5
+ from compass_api_sdk.types import BaseModel
6
6
  from typing import Union
7
7
  from typing_extensions import TypeAliasType, TypedDict
8
8
 
@@ -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 compassapisdk.types import BaseModel
6
+ from compass_api_sdk.types import BaseModel
7
7
  from typing import Union
8
8
  from typing_extensions import TypeAliasType, TypedDict
9
9
 
@@ -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 compassapisdk.types import BaseModel
4
+ from compass_api_sdk.types import BaseModel
5
5
  from typing import Union
6
6
  from typing_extensions import TypeAliasType, TypedDict
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .chain import Chain
5
- from compassapisdk.types import BaseModel
5
+ from compass_api_sdk.types import BaseModel
6
6
  from typing import Union
7
7
  from typing_extensions import TypeAliasType, TypedDict
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import (
5
+ from compass_api_sdk.types import (
6
6
  BaseModel,
7
7
  Nullable,
8
8
  OptionalNullable,
@@ -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 compassapisdk.types import (
6
+ from compass_api_sdk.types import (
7
7
  BaseModel,
8
8
  Nullable,
9
9
  OptionalNullable,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import BaseModel
5
+ from compass_api_sdk.types import BaseModel
6
6
  from typing_extensions import TypedDict
7
7
 
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import BaseModel
5
+ from compass_api_sdk.types import BaseModel
6
6
  from typing import Optional, Union
7
7
  from typing_extensions import NotRequired, TypeAliasType, TypedDict
8
8
 
@@ -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 compassapisdk.types import BaseModel
6
+ from compass_api_sdk.types import BaseModel
7
7
  from typing import Optional, Union
8
8
  from typing_extensions import NotRequired, TypeAliasType, TypedDict
9
9
 
@@ -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 compassapisdk.types import BaseModel
4
+ from compass_api_sdk.types import BaseModel
5
5
  from typing import Union
6
6
  from typing_extensions import TypeAliasType, TypedDict
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .chain import Chain
5
- from compassapisdk.types import BaseModel
5
+ from compass_api_sdk.types import BaseModel
6
6
  from typing import Union
7
7
  from typing_extensions import TypeAliasType, TypedDict
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import (
5
+ from compass_api_sdk.types import (
6
6
  BaseModel,
7
7
  Nullable,
8
8
  OptionalNullable,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import (
5
+ from compass_api_sdk.types import (
6
6
  BaseModel,
7
7
  Nullable,
8
8
  OptionalNullable,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import (
5
+ from compass_api_sdk.types import (
6
6
  BaseModel,
7
7
  Nullable,
8
8
  OptionalNullable,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .token_enum import TokenEnum
5
- from compassapisdk.types import BaseModel
5
+ from compass_api_sdk.types import BaseModel
6
6
  from typing_extensions import TypedDict
7
7
 
8
8
 
@@ -0,0 +1,33 @@
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 compass_api_sdk.types import BaseModel
6
+ import pydantic
7
+ from typing_extensions import Annotated, TypedDict
8
+
9
+
10
+ class BorrowTypedDict(TypedDict):
11
+ amount: str
12
+ borrow_rate_mode: str
13
+ borrow_rate: str
14
+ stable_token_debt: str
15
+ variable_token_debt: str
16
+ reserve: ReserveTypedDict
17
+ asset_price_usd: str
18
+
19
+
20
+ class Borrow(BaseModel):
21
+ amount: str
22
+
23
+ borrow_rate_mode: Annotated[str, pydantic.Field(alias="borrowRateMode")]
24
+
25
+ borrow_rate: Annotated[str, pydantic.Field(alias="borrowRate")]
26
+
27
+ stable_token_debt: Annotated[str, pydantic.Field(alias="stableTokenDebt")]
28
+
29
+ variable_token_debt: Annotated[str, pydantic.Field(alias="variableTokenDebt")]
30
+
31
+ reserve: Reserve
32
+
33
+ asset_price_usd: Annotated[str, pydantic.Field(alias="assetPriceUSD")]
@@ -10,3 +10,6 @@ class Chain(str, Enum):
10
10
  BASE_MAINNET = "base:mainnet"
11
11
  ETHEREUM_MAINNET = "ethereum:mainnet"
12
12
  ARBITRUM_MAINNET = "arbitrum:mainnet"
13
+ ETHEREUM_LOCAL = "ethereum:local"
14
+ ARBITRUM_LOCAL = "arbitrum:local"
15
+ BASE_LOCAL = "base:local"
@@ -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 compassapisdk.types import (
4
+ from compass_api_sdk.types import (
5
5
  BaseModel,
6
6
  Nullable,
7
7
  OptionalNullable,
@@ -0,0 +1,16 @@
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 typing_extensions import TypedDict
6
+
7
+
8
+ class CollateralReserveTypedDict(TypedDict):
9
+ symbol: str
10
+ decimals: int
11
+
12
+
13
+ class CollateralReserve(BaseModel):
14
+ symbol: str
15
+
16
+ decimals: int