compass_api_sdk 0.0.1__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 (137) hide show
  1. compass_api_sdk/__init__.py +17 -0
  2. compass_api_sdk/_hooks/__init__.py +5 -0
  3. compass_api_sdk/_hooks/registration.py +13 -0
  4. compass_api_sdk/_hooks/sdkhooks.py +76 -0
  5. compass_api_sdk/_hooks/types.py +106 -0
  6. compass_api_sdk/_version.py +15 -0
  7. compass_api_sdk/aave_v3.py +1903 -0
  8. compass_api_sdk/aerodrome_slipstream.py +1875 -0
  9. compass_api_sdk/basesdk.py +362 -0
  10. compass_api_sdk/errors/__init__.py +7 -0
  11. compass_api_sdk/errors/apierror.py +22 -0
  12. compass_api_sdk/errors/httpvalidationerror.py +21 -0
  13. compass_api_sdk/httpclient.py +136 -0
  14. compass_api_sdk/models/__init__.py +777 -0
  15. compass_api_sdk/models/aave_liquidity_changeop.py +108 -0
  16. compass_api_sdk/models/aave_token_priceop.py +98 -0
  17. compass_api_sdk/models/aave_user_position_per_tokenop.py +104 -0
  18. compass_api_sdk/models/aave_user_position_summaryop.py +35 -0
  19. compass_api_sdk/models/aaveborrowrequest.py +105 -0
  20. compass_api_sdk/models/aaveliquiditychangeresponse.py +26 -0
  21. compass_api_sdk/models/aaverepayrequest.py +105 -0
  22. compass_api_sdk/models/aavesupplyrequest.py +93 -0
  23. compass_api_sdk/models/aavetokenpriceresponse.py +15 -0
  24. compass_api_sdk/models/aaveuserpositionpertokenresponse.py +73 -0
  25. compass_api_sdk/models/aaveuserpositionsummaryresponse.py +50 -0
  26. compass_api_sdk/models/aavewithdrawrequest.py +58 -0
  27. compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +35 -0
  28. compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +173 -0
  29. compass_api_sdk/models/aerodromelppositionsresponse.py +21 -0
  30. compass_api_sdk/models/aerodromeposition.py +70 -0
  31. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +92 -0
  32. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +109 -0
  33. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +186 -0
  34. compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +57 -0
  35. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +96 -0
  36. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +50 -0
  37. compass_api_sdk/models/allowanceinforesponse.py +48 -0
  38. compass_api_sdk/models/balanceinforesponse.py +43 -0
  39. compass_api_sdk/models/chain.py +12 -0
  40. compass_api_sdk/models/chaininfo.py +53 -0
  41. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +22 -0
  42. compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +23 -0
  43. compass_api_sdk/models/ensnameinforesponse.py +24 -0
  44. compass_api_sdk/models/feeenum.py +16 -0
  45. compass_api_sdk/models/generic_allowanceop.py +121 -0
  46. compass_api_sdk/models/generic_balanceop.py +104 -0
  47. compass_api_sdk/models/generic_ensop.py +35 -0
  48. compass_api_sdk/models/generic_portfolioop.py +35 -0
  49. compass_api_sdk/models/generic_price_usdop.py +98 -0
  50. compass_api_sdk/models/generic_supported_tokensop.py +29 -0
  51. compass_api_sdk/models/generic_visualize_portfolioop.py +35 -0
  52. compass_api_sdk/models/image.py +15 -0
  53. compass_api_sdk/models/increaseallowancerequest.py +77 -0
  54. compass_api_sdk/models/interestratemode.py +14 -0
  55. compass_api_sdk/models/marketstate.py +35 -0
  56. compass_api_sdk/models/morpho_market_positionop.py +39 -0
  57. compass_api_sdk/models/morpho_marketsop.py +78 -0
  58. compass_api_sdk/models/morpho_vault_positionop.py +39 -0
  59. compass_api_sdk/models/morpho_vaultsop.py +72 -0
  60. compass_api_sdk/models/morphoborrowrequest.py +91 -0
  61. compass_api_sdk/models/morphocheckmarketpositionresponse.py +23 -0
  62. compass_api_sdk/models/morphocheckvaultpositionresponse.py +20 -0
  63. compass_api_sdk/models/morphodepositrequest.py +86 -0
  64. compass_api_sdk/models/morphogetmarketsresponse.py +17 -0
  65. compass_api_sdk/models/morphogetvaultsresponse.py +17 -0
  66. compass_api_sdk/models/morphomarket.py +80 -0
  67. compass_api_sdk/models/morphorepayrequest.py +79 -0
  68. compass_api_sdk/models/morphosetvaultallowancerequest.py +44 -0
  69. compass_api_sdk/models/morphosupplycollateralrequest.py +91 -0
  70. compass_api_sdk/models/morphovault.py +47 -0
  71. compass_api_sdk/models/morphowithdrawcollateralrequest.py +91 -0
  72. compass_api_sdk/models/morphowithdrawrequest.py +74 -0
  73. compass_api_sdk/models/portfolio.py +22 -0
  74. compass_api_sdk/models/priceresponse.py +15 -0
  75. compass_api_sdk/models/security.py +24 -0
  76. compass_api_sdk/models/token_addressop.py +98 -0
  77. compass_api_sdk/models/token_balanceop.py +49 -0
  78. compass_api_sdk/models/token_enum.py +57 -0
  79. compass_api_sdk/models/token_priceop.py +97 -0
  80. compass_api_sdk/models/tokenaddressresponse.py +15 -0
  81. compass_api_sdk/models/tokenbalance.py +49 -0
  82. compass_api_sdk/models/tokenbalanceresponse.py +44 -0
  83. compass_api_sdk/models/tokeninfo.py +17 -0
  84. compass_api_sdk/models/tokenpriceresponse.py +15 -0
  85. compass_api_sdk/models/tokentransferrequest.py +66 -0
  86. compass_api_sdk/models/transfererc20request.py +62 -0
  87. compass_api_sdk/models/transferethrequest.py +46 -0
  88. compass_api_sdk/models/uniswap_liquidity_provision_in_rangeop.py +34 -0
  89. compass_api_sdk/models/uniswap_liquidity_provision_positionsop.py +35 -0
  90. compass_api_sdk/models/uniswap_pool_priceop.py +193 -0
  91. compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +209 -0
  92. compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +209 -0
  93. compass_api_sdk/models/uniswapbuyexactlyrequest.py +104 -0
  94. compass_api_sdk/models/uniswapbuyquoteinforesponse.py +20 -0
  95. compass_api_sdk/models/uniswapcheckinrangeresponse.py +15 -0
  96. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +99 -0
  97. compass_api_sdk/models/uniswaplppositionsinforesponse.py +24 -0
  98. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +185 -0
  99. compass_api_sdk/models/uniswappoolpriceresponse.py +47 -0
  100. compass_api_sdk/models/uniswappositionssolidityresponse.py +46 -0
  101. compass_api_sdk/models/uniswapsellexactlyrequest.py +104 -0
  102. compass_api_sdk/models/uniswapsellquoteinforesponse.py +20 -0
  103. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +51 -0
  104. compass_api_sdk/models/unsignedtransaction.py +58 -0
  105. compass_api_sdk/models/unwrapwethrequest.py +41 -0
  106. compass_api_sdk/models/validationerror.py +26 -0
  107. compass_api_sdk/models/vaultstate.py +32 -0
  108. compass_api_sdk/models/weeklyapys.py +23 -0
  109. compass_api_sdk/models/wrapethrequest.py +41 -0
  110. compass_api_sdk/morpho.py +2577 -0
  111. compass_api_sdk/py.typed +1 -0
  112. compass_api_sdk/sdk.py +155 -0
  113. compass_api_sdk/sdkconfiguration.py +56 -0
  114. compass_api_sdk/token_sdk.py +861 -0
  115. compass_api_sdk/types/__init__.py +21 -0
  116. compass_api_sdk/types/basemodel.py +39 -0
  117. compass_api_sdk/uniswap_v3.py +2551 -0
  118. compass_api_sdk/universal.py +2625 -0
  119. compass_api_sdk/utils/__init__.py +100 -0
  120. compass_api_sdk/utils/annotations.py +55 -0
  121. compass_api_sdk/utils/datetimes.py +23 -0
  122. compass_api_sdk/utils/enums.py +74 -0
  123. compass_api_sdk/utils/eventstreaming.py +238 -0
  124. compass_api_sdk/utils/forms.py +202 -0
  125. compass_api_sdk/utils/headers.py +136 -0
  126. compass_api_sdk/utils/logger.py +22 -0
  127. compass_api_sdk/utils/metadata.py +118 -0
  128. compass_api_sdk/utils/queryparams.py +205 -0
  129. compass_api_sdk/utils/requestbodies.py +66 -0
  130. compass_api_sdk/utils/retries.py +217 -0
  131. compass_api_sdk/utils/security.py +174 -0
  132. compass_api_sdk/utils/serializers.py +248 -0
  133. compass_api_sdk/utils/url.py +155 -0
  134. compass_api_sdk/utils/values.py +137 -0
  135. compass_api_sdk-0.0.1.dist-info/METADATA +534 -0
  136. compass_api_sdk-0.0.1.dist-info/RECORD +137 -0
  137. compass_api_sdk-0.0.1.dist-info/WHEEL +4 -0
@@ -0,0 +1,186 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .chain import Chain
5
+ from .token_enum import TokenEnum
6
+ from compass_api_sdk.types import (
7
+ BaseModel,
8
+ Nullable,
9
+ OptionalNullable,
10
+ UNSET,
11
+ UNSET_SENTINEL,
12
+ )
13
+ from pydantic import model_serializer
14
+ from typing import Union
15
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
16
+
17
+
18
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount0DesiredTypedDict = TypeAliasType(
19
+ "AerodromeSlipstreamMintLiquidityProvisionRequestAmount0DesiredTypedDict",
20
+ Union[float, str],
21
+ )
22
+ r"""The desired amount of the first token to deposit"""
23
+
24
+
25
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount0Desired = TypeAliasType(
26
+ "AerodromeSlipstreamMintLiquidityProvisionRequestAmount0Desired", Union[float, str]
27
+ )
28
+ r"""The desired amount of the first token to deposit"""
29
+
30
+
31
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount1DesiredTypedDict = TypeAliasType(
32
+ "AerodromeSlipstreamMintLiquidityProvisionRequestAmount1DesiredTypedDict",
33
+ Union[float, str],
34
+ )
35
+ r"""The desired amount of the second token to deposit"""
36
+
37
+
38
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount1Desired = TypeAliasType(
39
+ "AerodromeSlipstreamMintLiquidityProvisionRequestAmount1Desired", Union[float, str]
40
+ )
41
+ r"""The desired amount of the second token to deposit"""
42
+
43
+
44
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount0MinTypedDict = TypeAliasType(
45
+ "AerodromeSlipstreamMintLiquidityProvisionRequestAmount0MinTypedDict",
46
+ Union[float, str],
47
+ )
48
+ r"""The minimum amount of the first token to deposit"""
49
+
50
+
51
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount0Min = TypeAliasType(
52
+ "AerodromeSlipstreamMintLiquidityProvisionRequestAmount0Min", Union[float, str]
53
+ )
54
+ r"""The minimum amount of the first token to deposit"""
55
+
56
+
57
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount1MinTypedDict = TypeAliasType(
58
+ "AerodromeSlipstreamMintLiquidityProvisionRequestAmount1MinTypedDict",
59
+ Union[float, str],
60
+ )
61
+ r"""The minimum amount of the second token to deposit"""
62
+
63
+
64
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount1Min = TypeAliasType(
65
+ "AerodromeSlipstreamMintLiquidityProvisionRequestAmount1Min", Union[float, str]
66
+ )
67
+ r"""The minimum amount of the second token to deposit"""
68
+
69
+
70
+ class AerodromeSlipstreamMintLiquidityProvisionRequestTypedDict(TypedDict):
71
+ r"""Request model for minting a new liquidity position."""
72
+
73
+ token0: TokenEnum
74
+ r"""A class representing the token.
75
+
76
+ This class is used to represent the token in the system. Notice individual
77
+ endpoints' documentation where per chain tokens are presented.
78
+ """
79
+ token1: TokenEnum
80
+ r"""A class representing the token.
81
+
82
+ This class is used to represent the token in the system. Notice individual
83
+ endpoints' documentation where per chain tokens are presented.
84
+ """
85
+ tick_spacing: int
86
+ r"""The tick spacing of the pool"""
87
+ tick_lower: int
88
+ r"""The lower tick of the range to mint the position in"""
89
+ tick_upper: int
90
+ r"""The upper tick of the range to mint the position in"""
91
+ amount0_desired: (
92
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount0DesiredTypedDict
93
+ )
94
+ r"""The desired amount of the first token to deposit"""
95
+ amount1_desired: (
96
+ AerodromeSlipstreamMintLiquidityProvisionRequestAmount1DesiredTypedDict
97
+ )
98
+ r"""The desired amount of the second token to deposit"""
99
+ amount0_min: AerodromeSlipstreamMintLiquidityProvisionRequestAmount0MinTypedDict
100
+ r"""The minimum amount of the first token to deposit"""
101
+ amount1_min: AerodromeSlipstreamMintLiquidityProvisionRequestAmount1MinTypedDict
102
+ r"""The minimum amount of the second token to deposit"""
103
+ chain: Chain
104
+ r"""The chain to use."""
105
+ sender: str
106
+ r"""The address of the transaction sender."""
107
+ recipient: NotRequired[Nullable[str]]
108
+ r"""The address that will receive the LP tokens"""
109
+
110
+
111
+ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
112
+ r"""Request model for minting a new liquidity position."""
113
+
114
+ token0: TokenEnum
115
+ r"""A class representing the token.
116
+
117
+ This class is used to represent the token in the system. Notice individual
118
+ endpoints' documentation where per chain tokens are presented.
119
+ """
120
+
121
+ token1: TokenEnum
122
+ r"""A class representing the token.
123
+
124
+ This class is used to represent the token in the system. Notice individual
125
+ endpoints' documentation where per chain tokens are presented.
126
+ """
127
+
128
+ tick_spacing: int
129
+ r"""The tick spacing of the pool"""
130
+
131
+ tick_lower: int
132
+ r"""The lower tick of the range to mint the position in"""
133
+
134
+ tick_upper: int
135
+ r"""The upper tick of the range to mint the position in"""
136
+
137
+ amount0_desired: AerodromeSlipstreamMintLiquidityProvisionRequestAmount0Desired
138
+ r"""The desired amount of the first token to deposit"""
139
+
140
+ amount1_desired: AerodromeSlipstreamMintLiquidityProvisionRequestAmount1Desired
141
+ r"""The desired amount of the second token to deposit"""
142
+
143
+ amount0_min: AerodromeSlipstreamMintLiquidityProvisionRequestAmount0Min
144
+ r"""The minimum amount of the first token to deposit"""
145
+
146
+ amount1_min: AerodromeSlipstreamMintLiquidityProvisionRequestAmount1Min
147
+ r"""The minimum amount of the second token to deposit"""
148
+
149
+ chain: Chain
150
+ r"""The chain to use."""
151
+
152
+ sender: str
153
+ r"""The address of the transaction sender."""
154
+
155
+ recipient: OptionalNullable[str] = UNSET
156
+ r"""The address that will receive the LP tokens"""
157
+
158
+ @model_serializer(mode="wrap")
159
+ def serialize_model(self, handler):
160
+ optional_fields = ["recipient"]
161
+ nullable_fields = ["recipient"]
162
+ null_default_fields = []
163
+
164
+ serialized = handler(self)
165
+
166
+ m = {}
167
+
168
+ for n, f in type(self).model_fields.items():
169
+ k = f.alias or n
170
+ val = serialized.get(k)
171
+ serialized.pop(k, None)
172
+
173
+ optional_nullable = k in optional_fields and k in nullable_fields
174
+ is_set = (
175
+ self.__pydantic_fields_set__.intersection({n})
176
+ or k in null_default_fields
177
+ ) # pylint: disable=no-member
178
+
179
+ if val is not None and val != UNSET_SENTINEL:
180
+ m[k] = val
181
+ elif val != UNSET_SENTINEL and (
182
+ not k in optional_fields or (optional_nullable and is_set)
183
+ ):
184
+ m[k] = val
185
+
186
+ return m
@@ -0,0 +1,57 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .token_enum import TokenEnum
5
+ from compass_api_sdk.types import BaseModel
6
+ from typing_extensions import TypedDict
7
+
8
+
9
+ 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
+ """
22
+ price: str
23
+ r"""The price of the pool. This is expressed as an instantaneous amount of how
24
+ many token0 you need to buy 1 token1. In any swap this will not change during the trade; use
25
+ the quote endpoint to get a better idea of how much you will pay!
26
+ """
27
+ tick: int
28
+ r"""The current tick in the pool. This is a number that represents the price of
29
+ the pool according to the aerodrome_slipstream v3 concentrated liquidity concept.
30
+ """
31
+
32
+
33
+ class AerodromeSlipstreamPoolPriceResponse(BaseModel):
34
+ token_in: TokenEnum
35
+ r"""A class representing the token.
36
+
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
+ """
47
+
48
+ price: str
49
+ r"""The price of the pool. This is expressed as an instantaneous amount of how
50
+ many token0 you need to buy 1 token1. In any swap this will not change during the trade; use
51
+ the quote endpoint to get a better idea of how much you will pay!
52
+ """
53
+
54
+ tick: int
55
+ r"""The current tick in the pool. This is a number that represents the price of
56
+ the pool according to the aerodrome_slipstream v3 concentrated liquidity concept.
57
+ """
@@ -0,0 +1,96 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .chain import Chain
5
+ from .token_enum import TokenEnum
6
+ from compass_api_sdk.types import BaseModel
7
+ from typing import Optional, Union
8
+ from typing_extensions import NotRequired, TypeAliasType, TypedDict
9
+
10
+
11
+ AerodromeSlipstreamSellExactlyRequestAmountInTypedDict = TypeAliasType(
12
+ "AerodromeSlipstreamSellExactlyRequestAmountInTypedDict", Union[float, str]
13
+ )
14
+ r"""The amount of the token to swap from"""
15
+
16
+
17
+ AerodromeSlipstreamSellExactlyRequestAmountIn = TypeAliasType(
18
+ "AerodromeSlipstreamSellExactlyRequestAmountIn", Union[float, str]
19
+ )
20
+ r"""The amount of the token to swap from"""
21
+
22
+
23
+ AerodromeSlipstreamSellExactlyRequestAmountOutMinimumTypedDict = TypeAliasType(
24
+ "AerodromeSlipstreamSellExactlyRequestAmountOutMinimumTypedDict", Union[float, str]
25
+ )
26
+ r"""The minimum amount of the token to swap to, defaults to 0"""
27
+
28
+
29
+ AerodromeSlipstreamSellExactlyRequestAmountOutMinimum = TypeAliasType(
30
+ "AerodromeSlipstreamSellExactlyRequestAmountOutMinimum", Union[float, str]
31
+ )
32
+ r"""The minimum amount of the token to swap to, defaults to 0"""
33
+
34
+
35
+ class AerodromeSlipstreamSellExactlyRequestTypedDict(TypedDict):
36
+ r"""Request model for selling exactly an amount of tokens."""
37
+
38
+ token_in: TokenEnum
39
+ r"""A class representing the token.
40
+
41
+ This class is used to represent the token in the system. Notice individual
42
+ endpoints' documentation where per chain tokens are presented.
43
+ """
44
+ token_out: TokenEnum
45
+ r"""A class representing the token.
46
+
47
+ This class is used to represent the token in the system. Notice individual
48
+ endpoints' documentation where per chain tokens are presented.
49
+ """
50
+ tick_spacing: int
51
+ r"""The tick spacing of the pool"""
52
+ amount_in: AerodromeSlipstreamSellExactlyRequestAmountInTypedDict
53
+ r"""The amount of the token to swap from"""
54
+ chain: Chain
55
+ r"""The chain to use."""
56
+ sender: str
57
+ r"""The address of the transaction sender."""
58
+ amount_out_minimum: NotRequired[
59
+ AerodromeSlipstreamSellExactlyRequestAmountOutMinimumTypedDict
60
+ ]
61
+ r"""The minimum amount of the token to swap to, defaults to 0"""
62
+
63
+
64
+ class AerodromeSlipstreamSellExactlyRequest(BaseModel):
65
+ r"""Request model for selling exactly an amount of tokens."""
66
+
67
+ token_in: TokenEnum
68
+ r"""A class representing the token.
69
+
70
+ This class is used to represent the token in the system. Notice individual
71
+ endpoints' documentation where per chain tokens are presented.
72
+ """
73
+
74
+ token_out: TokenEnum
75
+ r"""A class representing the token.
76
+
77
+ This class is used to represent the token in the system. Notice individual
78
+ endpoints' documentation where per chain tokens are presented.
79
+ """
80
+
81
+ tick_spacing: int
82
+ r"""The tick spacing of the pool"""
83
+
84
+ amount_in: AerodromeSlipstreamSellExactlyRequestAmountIn
85
+ r"""The amount of the token to swap from"""
86
+
87
+ chain: Chain
88
+ r"""The chain to use."""
89
+
90
+ sender: str
91
+ r"""The address of the transaction sender."""
92
+
93
+ amount_out_minimum: Optional[
94
+ AerodromeSlipstreamSellExactlyRequestAmountOutMinimum
95
+ ] = None
96
+ r"""The minimum amount of the token to swap to, defaults to 0"""
@@ -0,0 +1,50 @@
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 Union
7
+ from typing_extensions import TypeAliasType, TypedDict
8
+
9
+
10
+ AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict = TypeAliasType(
11
+ "AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict",
12
+ Union[float, str],
13
+ )
14
+ r"""How much liquidity to take out in percentage."""
15
+
16
+
17
+ AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal = (
18
+ TypeAliasType(
19
+ "AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal",
20
+ Union[float, str],
21
+ )
22
+ )
23
+ r"""How much liquidity to take out in percentage."""
24
+
25
+
26
+ class AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict(TypedDict):
27
+ token_id: int
28
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
29
+ percentage_for_withdrawal: AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict
30
+ r"""How much liquidity to take out in percentage."""
31
+ chain: Chain
32
+ r"""The chain to use."""
33
+ sender: str
34
+ r"""The address of the transaction sender."""
35
+
36
+
37
+ class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
38
+ token_id: int
39
+ r"""Token ID of the NFT representing the liquidity provisioned position."""
40
+
41
+ percentage_for_withdrawal: (
42
+ AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal
43
+ )
44
+ r"""How much liquidity to take out in percentage."""
45
+
46
+ chain: Chain
47
+ r"""The chain to use."""
48
+
49
+ sender: str
50
+ r"""The address of the transaction sender."""
@@ -0,0 +1,48 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .token_enum import TokenEnum
5
+ from compass_api_sdk.types import BaseModel
6
+ from typing_extensions import TypedDict
7
+
8
+
9
+ class AllowanceInfoResponseTypedDict(TypedDict):
10
+ r"""Response model for token allowance information."""
11
+
12
+ amount: str
13
+ r"""Amount of tokens allowed to be spent by spender"""
14
+ decimals: int
15
+ r"""Number of decimals of the token"""
16
+ token_symbol: 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
+ """
22
+ token_address: str
23
+ r"""Address of the token"""
24
+ contract_address: str
25
+ r"""Address of the contract"""
26
+
27
+
28
+ class AllowanceInfoResponse(BaseModel):
29
+ r"""Response model for token allowance information."""
30
+
31
+ amount: str
32
+ r"""Amount of tokens allowed to be spent by spender"""
33
+
34
+ decimals: int
35
+ r"""Number of decimals of the token"""
36
+
37
+ token_symbol: TokenEnum
38
+ r"""A class representing the token.
39
+
40
+ This class is used to represent the token in the system. Notice individual
41
+ endpoints' documentation where per chain tokens are presented.
42
+ """
43
+
44
+ token_address: str
45
+ r"""Address of the token"""
46
+
47
+ contract_address: str
48
+ r"""Address of the contract"""
@@ -0,0 +1,43 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .token_enum import TokenEnum
5
+ from compass_api_sdk.types import BaseModel
6
+ from typing_extensions import TypedDict
7
+
8
+
9
+ class BalanceInfoResponseTypedDict(TypedDict):
10
+ r"""Response model for token balance information."""
11
+
12
+ amount: str
13
+ r"""Amount of tokens a particular address holds"""
14
+ decimals: int
15
+ r"""Number of decimals of the token"""
16
+ token_symbol: 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
+ """
22
+ token_address: str
23
+ r"""Address of the token"""
24
+
25
+
26
+ class BalanceInfoResponse(BaseModel):
27
+ r"""Response model for token balance information."""
28
+
29
+ amount: str
30
+ r"""Amount of tokens a particular address holds"""
31
+
32
+ decimals: int
33
+ r"""Number of decimals of the token"""
34
+
35
+ token_symbol: TokenEnum
36
+ r"""A class representing the token.
37
+
38
+ This class is used to represent the token in the system. Notice individual
39
+ endpoints' documentation where per chain tokens are presented.
40
+ """
41
+
42
+ token_address: str
43
+ r"""Address of the token"""
@@ -0,0 +1,12 @@
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 Chain(str, Enum):
8
+ r"""The chain to use."""
9
+
10
+ BASE_MAINNET = "base:mainnet"
11
+ ETHEREUM_MAINNET = "ethereum:mainnet"
12
+ ARBITRUM_MAINNET = "arbitrum:mainnet"
@@ -0,0 +1,53 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import (
5
+ BaseModel,
6
+ Nullable,
7
+ OptionalNullable,
8
+ UNSET,
9
+ UNSET_SENTINEL,
10
+ )
11
+ from pydantic import model_serializer
12
+ from typing_extensions import NotRequired, TypedDict
13
+
14
+
15
+ class ChainInfoTypedDict(TypedDict):
16
+ id: int
17
+ network: NotRequired[Nullable[str]]
18
+
19
+
20
+ class ChainInfo(BaseModel):
21
+ id: int
22
+
23
+ network: OptionalNullable[str] = UNSET
24
+
25
+ @model_serializer(mode="wrap")
26
+ def serialize_model(self, handler):
27
+ optional_fields = ["network"]
28
+ nullable_fields = ["network"]
29
+ null_default_fields = []
30
+
31
+ serialized = handler(self)
32
+
33
+ m = {}
34
+
35
+ for n, f in type(self).model_fields.items():
36
+ k = f.alias or n
37
+ val = serialized.get(k)
38
+ serialized.pop(k, None)
39
+
40
+ optional_nullable = k in optional_fields and k in nullable_fields
41
+ is_set = (
42
+ self.__pydantic_fields_set__.intersection({n})
43
+ or k in null_default_fields
44
+ ) # pylint: disable=no-member
45
+
46
+ if val is not None and val != UNSET_SENTINEL:
47
+ m[k] = val
48
+ elif val != UNSET_SENTINEL and (
49
+ not k in optional_fields or (optional_nullable and is_set)
50
+ ):
51
+ m[k] = val
52
+
53
+ return m
@@ -0,0 +1,22 @@
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 CompassAPIBackendModelsMorphoReadResponseGetMarketsAssetTypedDict(TypedDict):
9
+ address: str
10
+ symbol: str
11
+ name: str
12
+ decimals: int
13
+
14
+
15
+ class CompassAPIBackendModelsMorphoReadResponseGetMarketsAsset(BaseModel):
16
+ address: str
17
+
18
+ symbol: str
19
+
20
+ name: str
21
+
22
+ decimals: int
@@ -0,0 +1,23 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .chaininfo import ChainInfo, ChainInfoTypedDict
5
+ from compass_api_sdk.types import BaseModel
6
+ from typing_extensions import TypedDict
7
+
8
+
9
+ class CompassAPIBackendModelsMorphoReadResponseGetVaultsAssetTypedDict(TypedDict):
10
+ symbol: str
11
+ address: str
12
+ decimals: int
13
+ chain: ChainInfoTypedDict
14
+
15
+
16
+ class CompassAPIBackendModelsMorphoReadResponseGetVaultsAsset(BaseModel):
17
+ symbol: str
18
+
19
+ address: str
20
+
21
+ decimals: int
22
+
23
+ chain: ChainInfo
@@ -0,0 +1,24 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from compass_api_sdk.types import BaseModel
5
+ from typing_extensions import TypedDict
6
+
7
+
8
+ class EnsNameInfoResponseTypedDict(TypedDict):
9
+ r"""Response model for ENS name details."""
10
+
11
+ wallet_address: str
12
+ r"""The wallet address of the user"""
13
+ registrant: str
14
+ r"""The registrant of the ENS"""
15
+
16
+
17
+ class EnsNameInfoResponse(BaseModel):
18
+ r"""Response model for ENS name details."""
19
+
20
+ wallet_address: str
21
+ r"""The wallet address of the user"""
22
+
23
+ registrant: str
24
+ r"""The registrant of the ENS"""
@@ -0,0 +1,16 @@
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 FeeEnum(str, Enum):
8
+ r"""The transaction fee of a Uniswap pool in bips.
9
+
10
+ Uniswap supports 4 different fee levels.
11
+ """
12
+
13
+ ZERO_DOT_01 = "0.01"
14
+ ZERO_DOT_05 = "0.05"
15
+ ZERO_DOT_3 = "0.3"
16
+ ONE_DOT_0 = "1.0"