compass_api_sdk 0.1.13__py3-none-any.whl → 0.1.14__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.
- compass_api_sdk/_version.py +2 -2
- compass_api_sdk/models/__init__.py +0 -122
- compass_api_sdk/models/multicallaction.py +14 -56
- compass_api_sdk/models/multicallactiontype.py +0 -7
- {compass_api_sdk-0.1.13.dist-info → compass_api_sdk-0.1.14.dist-info}/METADATA +1 -1
- {compass_api_sdk-0.1.13.dist-info → compass_api_sdk-0.1.14.dist-info}/RECORD +7 -14
- compass_api_sdk/models/aerodromeaddliquidityethparams.py +0 -153
- compass_api_sdk/models/aerodromeaddliquidityparams.py +0 -160
- compass_api_sdk/models/aerodromeremoveliquidityethrequest.py +0 -139
- compass_api_sdk/models/aerodromeremoveliquidityrequest.py +0 -152
- compass_api_sdk/models/aerodromeswapethfortokenparams.py +0 -110
- compass_api_sdk/models/aerodromeswaptokenforethparams.py +0 -110
- compass_api_sdk/models/aerodromeswaptokensparams.py +0 -135
- {compass_api_sdk-0.1.13.dist-info → compass_api_sdk-0.1.14.dist-info}/WHEEL +0 -0
compass_api_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "compass_api_sdk"
|
|
6
|
-
__version__: str = "0.1.
|
|
6
|
+
__version__: str = "0.1.14"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.1"
|
|
8
8
|
__gen_version__: str = "2.598.22"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.1.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.1.14 2.598.22 0.0.1 compass_api_sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -120,55 +120,11 @@ from .aerodrome_slipstream_pool_priceop import (
|
|
|
120
120
|
AerodromeSlipstreamPoolPriceTokenInToken,
|
|
121
121
|
AerodromeSlipstreamPoolPriceTokenOutToken,
|
|
122
122
|
)
|
|
123
|
-
from .aerodromeaddliquidityethparams import (
|
|
124
|
-
AerodromeAddLiquidityEthParams,
|
|
125
|
-
AerodromeAddLiquidityEthParamsAmountEthMin,
|
|
126
|
-
AerodromeAddLiquidityEthParamsAmountEthMinTypedDict,
|
|
127
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin,
|
|
128
|
-
AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict,
|
|
129
|
-
AerodromeAddLiquidityEthParamsTypedDict,
|
|
130
|
-
AmountEthDesired,
|
|
131
|
-
AmountEthDesiredTypedDict,
|
|
132
|
-
AmountTokenDesired,
|
|
133
|
-
AmountTokenDesiredTypedDict,
|
|
134
|
-
)
|
|
135
|
-
from .aerodromeaddliquidityparams import (
|
|
136
|
-
AerodromeAddLiquidityParams,
|
|
137
|
-
AerodromeAddLiquidityParamsAmountAMin,
|
|
138
|
-
AerodromeAddLiquidityParamsAmountAMinTypedDict,
|
|
139
|
-
AerodromeAddLiquidityParamsAmountBMin,
|
|
140
|
-
AerodromeAddLiquidityParamsAmountBMinTypedDict,
|
|
141
|
-
AerodromeAddLiquidityParamsTypedDict,
|
|
142
|
-
AmountADesired,
|
|
143
|
-
AmountADesiredTypedDict,
|
|
144
|
-
AmountBDesired,
|
|
145
|
-
AmountBDesiredTypedDict,
|
|
146
|
-
)
|
|
147
123
|
from .aerodromelppositionsresponse import (
|
|
148
124
|
AerodromeLPPositionsResponse,
|
|
149
125
|
AerodromeLPPositionsResponseTypedDict,
|
|
150
126
|
)
|
|
151
127
|
from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
|
|
152
|
-
from .aerodromeremoveliquidityethrequest import (
|
|
153
|
-
AerodromeRemoveLiquidityEthRequest,
|
|
154
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin,
|
|
155
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMinTypedDict,
|
|
156
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin,
|
|
157
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMinTypedDict,
|
|
158
|
-
AerodromeRemoveLiquidityEthRequestLiquidity,
|
|
159
|
-
AerodromeRemoveLiquidityEthRequestLiquidityTypedDict,
|
|
160
|
-
AerodromeRemoveLiquidityEthRequestTypedDict,
|
|
161
|
-
)
|
|
162
|
-
from .aerodromeremoveliquidityrequest import (
|
|
163
|
-
AerodromeRemoveLiquidityRequest,
|
|
164
|
-
AerodromeRemoveLiquidityRequestAmountAMin,
|
|
165
|
-
AerodromeRemoveLiquidityRequestAmountAMinTypedDict,
|
|
166
|
-
AerodromeRemoveLiquidityRequestAmountBMin,
|
|
167
|
-
AerodromeRemoveLiquidityRequestAmountBMinTypedDict,
|
|
168
|
-
AerodromeRemoveLiquidityRequestLiquidity,
|
|
169
|
-
AerodromeRemoveLiquidityRequestLiquidityTypedDict,
|
|
170
|
-
AerodromeRemoveLiquidityRequestTypedDict,
|
|
171
|
-
)
|
|
172
128
|
from .aerodromeslipstreambuyexactlyparams import (
|
|
173
129
|
AerodromeSlipstreamBuyExactlyParams,
|
|
174
130
|
AerodromeSlipstreamBuyExactlyParamsAmountInMaximum,
|
|
@@ -265,30 +221,6 @@ from .aerodromeslipstreamwithdrawliquidityprovisionrequest import (
|
|
|
265
221
|
AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict,
|
|
266
222
|
AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict,
|
|
267
223
|
)
|
|
268
|
-
from .aerodromeswapethfortokenparams import (
|
|
269
|
-
AerodromeSwapEthForTokenParams,
|
|
270
|
-
AerodromeSwapEthForTokenParamsAmountIn,
|
|
271
|
-
AerodromeSwapEthForTokenParamsAmountInTypedDict,
|
|
272
|
-
AerodromeSwapEthForTokenParamsAmountOutMin,
|
|
273
|
-
AerodromeSwapEthForTokenParamsAmountOutMinTypedDict,
|
|
274
|
-
AerodromeSwapEthForTokenParamsTypedDict,
|
|
275
|
-
)
|
|
276
|
-
from .aerodromeswaptokenforethparams import (
|
|
277
|
-
AerodromeSwapTokenForEthParams,
|
|
278
|
-
AerodromeSwapTokenForEthParamsAmountIn,
|
|
279
|
-
AerodromeSwapTokenForEthParamsAmountInTypedDict,
|
|
280
|
-
AerodromeSwapTokenForEthParamsAmountOutMin,
|
|
281
|
-
AerodromeSwapTokenForEthParamsAmountOutMinTypedDict,
|
|
282
|
-
AerodromeSwapTokenForEthParamsTypedDict,
|
|
283
|
-
)
|
|
284
|
-
from .aerodromeswaptokensparams import (
|
|
285
|
-
AerodromeSwapTokensParams,
|
|
286
|
-
AerodromeSwapTokensParamsAmountIn,
|
|
287
|
-
AerodromeSwapTokensParamsAmountInTypedDict,
|
|
288
|
-
AerodromeSwapTokensParamsAmountOutMin,
|
|
289
|
-
AerodromeSwapTokensParamsAmountOutMinTypedDict,
|
|
290
|
-
AerodromeSwapTokensParamsTypedDict,
|
|
291
|
-
)
|
|
292
224
|
from .allowanceinforesponse import AllowanceInfoResponse, AllowanceInfoResponseTypedDict
|
|
293
225
|
from .borrow import Borrow, BorrowTypedDict
|
|
294
226
|
from .chain import Chain
|
|
@@ -787,38 +719,10 @@ __all__ = [
|
|
|
787
719
|
"AaveWithdrawRequestAmountTypedDict",
|
|
788
720
|
"AaveWithdrawRequestTypedDict",
|
|
789
721
|
"Action",
|
|
790
|
-
"AerodromeAddLiquidityEthParams",
|
|
791
|
-
"AerodromeAddLiquidityEthParamsAmountEthMin",
|
|
792
|
-
"AerodromeAddLiquidityEthParamsAmountEthMinTypedDict",
|
|
793
|
-
"AerodromeAddLiquidityEthParamsAmountTokenMin",
|
|
794
|
-
"AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict",
|
|
795
|
-
"AerodromeAddLiquidityEthParamsTypedDict",
|
|
796
|
-
"AerodromeAddLiquidityParams",
|
|
797
|
-
"AerodromeAddLiquidityParamsAmountAMin",
|
|
798
|
-
"AerodromeAddLiquidityParamsAmountAMinTypedDict",
|
|
799
|
-
"AerodromeAddLiquidityParamsAmountBMin",
|
|
800
|
-
"AerodromeAddLiquidityParamsAmountBMinTypedDict",
|
|
801
|
-
"AerodromeAddLiquidityParamsTypedDict",
|
|
802
722
|
"AerodromeLPPositionsResponse",
|
|
803
723
|
"AerodromeLPPositionsResponseTypedDict",
|
|
804
724
|
"AerodromePosition",
|
|
805
725
|
"AerodromePositionTypedDict",
|
|
806
|
-
"AerodromeRemoveLiquidityEthRequest",
|
|
807
|
-
"AerodromeRemoveLiquidityEthRequestAmountEthMin",
|
|
808
|
-
"AerodromeRemoveLiquidityEthRequestAmountEthMinTypedDict",
|
|
809
|
-
"AerodromeRemoveLiquidityEthRequestAmountTokenMin",
|
|
810
|
-
"AerodromeRemoveLiquidityEthRequestAmountTokenMinTypedDict",
|
|
811
|
-
"AerodromeRemoveLiquidityEthRequestLiquidity",
|
|
812
|
-
"AerodromeRemoveLiquidityEthRequestLiquidityTypedDict",
|
|
813
|
-
"AerodromeRemoveLiquidityEthRequestTypedDict",
|
|
814
|
-
"AerodromeRemoveLiquidityRequest",
|
|
815
|
-
"AerodromeRemoveLiquidityRequestAmountAMin",
|
|
816
|
-
"AerodromeRemoveLiquidityRequestAmountAMinTypedDict",
|
|
817
|
-
"AerodromeRemoveLiquidityRequestAmountBMin",
|
|
818
|
-
"AerodromeRemoveLiquidityRequestAmountBMinTypedDict",
|
|
819
|
-
"AerodromeRemoveLiquidityRequestLiquidity",
|
|
820
|
-
"AerodromeRemoveLiquidityRequestLiquidityTypedDict",
|
|
821
|
-
"AerodromeRemoveLiquidityRequestTypedDict",
|
|
822
726
|
"AerodromeSlipstreamBuyExactlyParams",
|
|
823
727
|
"AerodromeSlipstreamBuyExactlyParamsAmountInMaximum",
|
|
824
728
|
"AerodromeSlipstreamBuyExactlyParamsAmountInMaximumTypedDict",
|
|
@@ -901,34 +805,8 @@ __all__ = [
|
|
|
901
805
|
"AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawal",
|
|
902
806
|
"AerodromeSlipstreamWithdrawLiquidityProvisionRequestPercentageForWithdrawalTypedDict",
|
|
903
807
|
"AerodromeSlipstreamWithdrawLiquidityProvisionRequestTypedDict",
|
|
904
|
-
"AerodromeSwapEthForTokenParams",
|
|
905
|
-
"AerodromeSwapEthForTokenParamsAmountIn",
|
|
906
|
-
"AerodromeSwapEthForTokenParamsAmountInTypedDict",
|
|
907
|
-
"AerodromeSwapEthForTokenParamsAmountOutMin",
|
|
908
|
-
"AerodromeSwapEthForTokenParamsAmountOutMinTypedDict",
|
|
909
|
-
"AerodromeSwapEthForTokenParamsTypedDict",
|
|
910
|
-
"AerodromeSwapTokenForEthParams",
|
|
911
|
-
"AerodromeSwapTokenForEthParamsAmountIn",
|
|
912
|
-
"AerodromeSwapTokenForEthParamsAmountInTypedDict",
|
|
913
|
-
"AerodromeSwapTokenForEthParamsAmountOutMin",
|
|
914
|
-
"AerodromeSwapTokenForEthParamsAmountOutMinTypedDict",
|
|
915
|
-
"AerodromeSwapTokenForEthParamsTypedDict",
|
|
916
|
-
"AerodromeSwapTokensParams",
|
|
917
|
-
"AerodromeSwapTokensParamsAmountIn",
|
|
918
|
-
"AerodromeSwapTokensParamsAmountInTypedDict",
|
|
919
|
-
"AerodromeSwapTokensParamsAmountOutMin",
|
|
920
|
-
"AerodromeSwapTokensParamsAmountOutMinTypedDict",
|
|
921
|
-
"AerodromeSwapTokensParamsTypedDict",
|
|
922
808
|
"AllowanceInfoResponse",
|
|
923
809
|
"AllowanceInfoResponseTypedDict",
|
|
924
|
-
"AmountADesired",
|
|
925
|
-
"AmountADesiredTypedDict",
|
|
926
|
-
"AmountBDesired",
|
|
927
|
-
"AmountBDesiredTypedDict",
|
|
928
|
-
"AmountEthDesired",
|
|
929
|
-
"AmountEthDesiredTypedDict",
|
|
930
|
-
"AmountTokenDesired",
|
|
931
|
-
"AmountTokenDesiredTypedDict",
|
|
932
810
|
"Body",
|
|
933
811
|
"BodyTypedDict",
|
|
934
812
|
"Borrow",
|
|
@@ -5,22 +5,6 @@ from .aaveborrowparams import AaveBorrowParams, AaveBorrowParamsTypedDict
|
|
|
5
5
|
from .aaverepayparams import AaveRepayParams, AaveRepayParamsTypedDict
|
|
6
6
|
from .aavesupplyparams import AaveSupplyParams, AaveSupplyParamsTypedDict
|
|
7
7
|
from .aavewithdrawparams import AaveWithdrawParams, AaveWithdrawParamsTypedDict
|
|
8
|
-
from .aerodromeaddliquidityethparams import (
|
|
9
|
-
AerodromeAddLiquidityEthParams,
|
|
10
|
-
AerodromeAddLiquidityEthParamsTypedDict,
|
|
11
|
-
)
|
|
12
|
-
from .aerodromeaddliquidityparams import (
|
|
13
|
-
AerodromeAddLiquidityParams,
|
|
14
|
-
AerodromeAddLiquidityParamsTypedDict,
|
|
15
|
-
)
|
|
16
|
-
from .aerodromeremoveliquidityethrequest import (
|
|
17
|
-
AerodromeRemoveLiquidityEthRequest,
|
|
18
|
-
AerodromeRemoveLiquidityEthRequestTypedDict,
|
|
19
|
-
)
|
|
20
|
-
from .aerodromeremoveliquidityrequest import (
|
|
21
|
-
AerodromeRemoveLiquidityRequest,
|
|
22
|
-
AerodromeRemoveLiquidityRequestTypedDict,
|
|
23
|
-
)
|
|
24
8
|
from .aerodromeslipstreambuyexactlyparams import (
|
|
25
9
|
AerodromeSlipstreamBuyExactlyParams,
|
|
26
10
|
AerodromeSlipstreamBuyExactlyParamsTypedDict,
|
|
@@ -41,18 +25,6 @@ from .aerodromeslipstreamwithdrawliquidityprovisionparams import (
|
|
|
41
25
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams,
|
|
42
26
|
AerodromeSlipstreamWithdrawLiquidityProvisionParamsTypedDict,
|
|
43
27
|
)
|
|
44
|
-
from .aerodromeswapethfortokenparams import (
|
|
45
|
-
AerodromeSwapEthForTokenParams,
|
|
46
|
-
AerodromeSwapEthForTokenParamsTypedDict,
|
|
47
|
-
)
|
|
48
|
-
from .aerodromeswaptokenforethparams import (
|
|
49
|
-
AerodromeSwapTokenForEthParams,
|
|
50
|
-
AerodromeSwapTokenForEthParamsTypedDict,
|
|
51
|
-
)
|
|
52
|
-
from .aerodromeswaptokensparams import (
|
|
53
|
-
AerodromeSwapTokensParams,
|
|
54
|
-
AerodromeSwapTokensParamsTypedDict,
|
|
55
|
-
)
|
|
56
28
|
from .increaseallowanceanyparams import (
|
|
57
29
|
IncreaseAllowanceAnyParams,
|
|
58
30
|
IncreaseAllowanceAnyParamsTypedDict,
|
|
@@ -98,30 +70,23 @@ BodyTypedDict = TypeAliasType(
|
|
|
98
70
|
Union[
|
|
99
71
|
WrapEthParamsTypedDict,
|
|
100
72
|
UnwrapWethParamsTypedDict,
|
|
101
|
-
UniswapWithdrawLiquidityProvisionParamsTypedDict,
|
|
102
73
|
AerodromeSlipstreamWithdrawLiquidityProvisionParamsTypedDict,
|
|
103
|
-
|
|
104
|
-
AaveWithdrawParamsTypedDict,
|
|
74
|
+
UniswapWithdrawLiquidityProvisionParamsTypedDict,
|
|
105
75
|
TokenTransferErc20ParamsTypedDict,
|
|
106
76
|
IncreaseAllowanceAnyParamsTypedDict,
|
|
77
|
+
AaveSupplyParamsTypedDict,
|
|
78
|
+
AaveWithdrawParamsTypedDict,
|
|
107
79
|
IncreaseAllowanceParamsTypedDict,
|
|
108
|
-
AaveBorrowParamsTypedDict,
|
|
109
80
|
AaveRepayParamsTypedDict,
|
|
110
|
-
|
|
111
|
-
UniswapIncreaseLiquidityProvisionParamsTypedDict,
|
|
112
|
-
AerodromeSwapTokenForEthParamsTypedDict,
|
|
113
|
-
AerodromeSwapEthForTokenParamsTypedDict,
|
|
81
|
+
AaveBorrowParamsTypedDict,
|
|
114
82
|
AerodromeSlipstreamBuyExactlyParamsTypedDict,
|
|
115
83
|
AerodromeSlipstreamSellExactlyParamsTypedDict,
|
|
116
|
-
|
|
84
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict,
|
|
85
|
+
UniswapIncreaseLiquidityProvisionParamsTypedDict,
|
|
117
86
|
UniswapBuyExactlyParamsTypedDict,
|
|
118
87
|
UniswapSellExactlyParamsTypedDict,
|
|
119
|
-
AerodromeAddLiquidityEthParamsTypedDict,
|
|
120
|
-
AerodromeRemoveLiquidityEthRequestTypedDict,
|
|
121
|
-
AerodromeAddLiquidityParamsTypedDict,
|
|
122
|
-
AerodromeRemoveLiquidityRequestTypedDict,
|
|
123
|
-
AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict,
|
|
124
88
|
UniswapMintLiquidityProvisionParamsTypedDict,
|
|
89
|
+
AerodromeSlipstreamMintLiquidityProvisionParamsTypedDict,
|
|
125
90
|
],
|
|
126
91
|
)
|
|
127
92
|
|
|
@@ -131,30 +96,23 @@ Body = TypeAliasType(
|
|
|
131
96
|
Union[
|
|
132
97
|
WrapEthParams,
|
|
133
98
|
UnwrapWethParams,
|
|
134
|
-
UniswapWithdrawLiquidityProvisionParams,
|
|
135
99
|
AerodromeSlipstreamWithdrawLiquidityProvisionParams,
|
|
136
|
-
|
|
137
|
-
AaveWithdrawParams,
|
|
100
|
+
UniswapWithdrawLiquidityProvisionParams,
|
|
138
101
|
TokenTransferErc20Params,
|
|
139
102
|
IncreaseAllowanceAnyParams,
|
|
103
|
+
AaveSupplyParams,
|
|
104
|
+
AaveWithdrawParams,
|
|
140
105
|
IncreaseAllowanceParams,
|
|
141
|
-
AaveBorrowParams,
|
|
142
106
|
AaveRepayParams,
|
|
143
|
-
|
|
144
|
-
UniswapIncreaseLiquidityProvisionParams,
|
|
145
|
-
AerodromeSwapTokenForEthParams,
|
|
146
|
-
AerodromeSwapEthForTokenParams,
|
|
107
|
+
AaveBorrowParams,
|
|
147
108
|
AerodromeSlipstreamBuyExactlyParams,
|
|
148
109
|
AerodromeSlipstreamSellExactlyParams,
|
|
149
|
-
|
|
110
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParams,
|
|
111
|
+
UniswapIncreaseLiquidityProvisionParams,
|
|
150
112
|
UniswapBuyExactlyParams,
|
|
151
113
|
UniswapSellExactlyParams,
|
|
152
|
-
AerodromeAddLiquidityEthParams,
|
|
153
|
-
AerodromeRemoveLiquidityEthRequest,
|
|
154
|
-
AerodromeAddLiquidityParams,
|
|
155
|
-
AerodromeRemoveLiquidityRequest,
|
|
156
|
-
AerodromeSlipstreamMintLiquidityProvisionParams,
|
|
157
114
|
UniswapMintLiquidityProvisionParams,
|
|
115
|
+
AerodromeSlipstreamMintLiquidityProvisionParams,
|
|
158
116
|
],
|
|
159
117
|
)
|
|
160
118
|
|
|
@@ -9,13 +9,6 @@ class MulticallActionType(str, Enum):
|
|
|
9
9
|
AAVE_REPAY = "AAVE_REPAY"
|
|
10
10
|
AAVE_SUPPLY = "AAVE_SUPPLY"
|
|
11
11
|
AAVE_WITHDRAW = "AAVE_WITHDRAW"
|
|
12
|
-
AERODROME_BASIC_ADD_LIQUIDITY = "AERODROME_BASIC_ADD_LIQUIDITY"
|
|
13
|
-
AERODROME_BASIC_ADD_LIQUIDITY_ETH = "AERODROME_BASIC_ADD_LIQUIDITY_ETH"
|
|
14
|
-
AERODROME_BASIC_REMOVE_LIQUIDITY = "AERODROME_BASIC_REMOVE_LIQUIDITY"
|
|
15
|
-
AERODROME_BASIC_REMOVE_LIQUIDITY_ETH = "AERODROME_BASIC_REMOVE_LIQUIDITY_ETH"
|
|
16
|
-
AERODROME_BASIC_SWAP_ETH_FOR_TOKEN = "AERODROME_BASIC_SWAP_ETH_FOR_TOKEN"
|
|
17
|
-
AERODROME_BASIC_SWAP_TOKEN = "AERODROME_BASIC_SWAP_TOKEN"
|
|
18
|
-
AERODROME_BASIC_SWAP_TOKEN_FOR_ETH = "AERODROME_BASIC_SWAP_TOKEN_FOR_ETH"
|
|
19
12
|
AERODROME_SLIPSTREAM_BUY_EXACTLY = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
|
|
20
13
|
AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY"
|
|
21
14
|
AERODROME_SLIPSTREAM_MINT_LIQUIDITY = "AERODROME_SLIPSTREAM_MINT_LIQUIDITY"
|
|
@@ -3,7 +3,7 @@ compass_api_sdk/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpv
|
|
|
3
3
|
compass_api_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
4
4
|
compass_api_sdk/_hooks/sdkhooks.py,sha256=eVxHB2Q_JG6zZx5xn74i208ij-fpTHqq2jod6fbghRQ,2503
|
|
5
5
|
compass_api_sdk/_hooks/types.py,sha256=VC7TZz0BiM721MghXneEovG3UkaktRkt1OhMY3iLmZM,2818
|
|
6
|
-
compass_api_sdk/_version.py,sha256=
|
|
6
|
+
compass_api_sdk/_version.py,sha256=4Y0qqGB6e8m9lT082f2B2TuYVFZ_gDLPlfX7oRpYPVE,476
|
|
7
7
|
compass_api_sdk/aave_v3.py,sha256=NvBRCg7v6ldYV5MAB3k541Bikh3xESC5-eVU8HJXZEE,98662
|
|
8
8
|
compass_api_sdk/aerodrome_slipstream.py,sha256=iZLOFguQiZD8eMNIxV_4h8JSr9P-V4gISxNCXisVYN8,83389
|
|
9
9
|
compass_api_sdk/basesdk.py,sha256=29RfgnfgQq_cRx8OHdQEdJuJ2DrgRZlzGIPC-_6-2bM,12136
|
|
@@ -11,7 +11,7 @@ compass_api_sdk/errors/__init__.py,sha256=f8nyj2IhW5h_xtEeg6cfKgByLkqowLv0Fxm0hU
|
|
|
11
11
|
compass_api_sdk/errors/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
|
12
12
|
compass_api_sdk/errors/httpvalidationerror.py,sha256=KBdpK3fYQoeMB-3m9dLKiMYimFN7B9VLma6YqMKX5k0,671
|
|
13
13
|
compass_api_sdk/httpclient.py,sha256=xAUX3nxG-fwYAE9lfv9uaspYKMFRJf5NM79mV2HKb1I,5486
|
|
14
|
-
compass_api_sdk/models/__init__.py,sha256=
|
|
14
|
+
compass_api_sdk/models/__init__.py,sha256=hHG2wEN2flnCUQgMYy_UPvSiNtC-4BOm-8KiVA0Ui-w,44546
|
|
15
15
|
compass_api_sdk/models/aave_historical_transactionsop.py,sha256=ruwlHogJUn6HGWtoRNwEmoA6kXdu8rbDrxzJo-e9UmA,1461
|
|
16
16
|
compass_api_sdk/models/aave_liquidity_changeop.py,sha256=tR_nsySpTiXHxIreoDJ-Bk07wZgTLGLM05oWxsfpbrM,2801
|
|
17
17
|
compass_api_sdk/models/aave_rateop.py,sha256=kJgtnlxry6YRxLZvCNV4kKhHOT2Y5duKt-ADyh2NrNg,2405
|
|
@@ -36,12 +36,8 @@ compass_api_sdk/models/aavewithdrawrequest.py,sha256=gl9qAknwFkrHB6HwecaZrjV4z92
|
|
|
36
36
|
compass_api_sdk/models/action.py,sha256=LxhxMxM1if4CGM_GJF-mGYwBnQOlkCaczSuGCp3oGTs,391
|
|
37
37
|
compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py,sha256=4at6KH--Cw5G6QasipHEuBBbNdPSaO4PCaVS22Krujw,1267
|
|
38
38
|
compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py,sha256=6n7rv1pcMve_3chQvgLT1vBKeimp-XPNK7-mCfv9Dwc,4578
|
|
39
|
-
compass_api_sdk/models/aerodromeaddliquidityethparams.py,sha256=1taXq92sPvxjDNRKQFXiFrrYcg7CKUnTH4s4nJc5Z04,5366
|
|
40
|
-
compass_api_sdk/models/aerodromeaddliquidityparams.py,sha256=XkLS-48fubuAl8-uWl1IyUlSeciMX1iw9qZ9Z8Q9Ccs,5621
|
|
41
39
|
compass_api_sdk/models/aerodromelppositionsresponse.py,sha256=FpFiz78711CsO1r3lLo-YaPldHL6UTVruNxhWlXkhOY,861
|
|
42
40
|
compass_api_sdk/models/aerodromeposition.py,sha256=I-SHEmis8d5lGu37mauJPomjQKJs4_lvgtCYER5Fn3o,1695
|
|
43
|
-
compass_api_sdk/models/aerodromeremoveliquidityethrequest.py,sha256=aMREQj87xMsZ7bF-bg9ifJS1AtQ8iiL4l6Jaw8jK9Ck,4977
|
|
44
|
-
compass_api_sdk/models/aerodromeremoveliquidityrequest.py,sha256=s8FfX_bhf3wYgr1xn891YPQZS4QwCh3i3OpKDrZs3W0,5330
|
|
45
41
|
compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py,sha256=ylpVCckGjwfTHQFG5msi6avuYcYN6XePLAQLLpoSZ3I,2815
|
|
46
42
|
compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py,sha256=fjIMtPl1bJ_RwzjkYoosKPvP_TtiCXrnfTG1DSi71Lo,3074
|
|
47
43
|
compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionparams.py,sha256=qOJLwV1Y270Lm9F0cwdD3_5QeTdiBBi6QyQ8y1_kV1Y,4221
|
|
@@ -53,9 +49,6 @@ compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py,sha256=_SXemwKeWh
|
|
|
53
49
|
compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py,sha256=PO94biGABjm6lkTQQk-Kx436fi89-zOncK7ekoanB2U,3231
|
|
54
50
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py,sha256=DQKPJCyd66mFq6irFqMh7wvAQyF_HniRxoASPmmsvcQ,2265
|
|
55
51
|
compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py,sha256=DXbQqFH6qRyrnqQ61y8O7regkqgu_kqY0yY1AamZXTs,1738
|
|
56
|
-
compass_api_sdk/models/aerodromeswapethfortokenparams.py,sha256=9Bm5QT080bk92ubF6FQ52TeNuL6U4kgl0ZVl26tH5OE,4051
|
|
57
|
-
compass_api_sdk/models/aerodromeswaptokenforethparams.py,sha256=1VJmGnBNwiFf0Sf8HwIG-E9fOYj9HZualuzROrdeIlI,4053
|
|
58
|
-
compass_api_sdk/models/aerodromeswaptokensparams.py,sha256=6ZWbvh3DZ7L76nLR85KKXXjiGyETI6WOm3kGwxLXoMY,4454
|
|
59
52
|
compass_api_sdk/models/allowanceinforesponse.py,sha256=OIvJVxMrRNBay8DIeqlwGBFQ1fbaGVWlaGsOZpo40fY,1393
|
|
60
53
|
compass_api_sdk/models/borrow.py,sha256=Yq3HrMPlvcqKN41vdrJpDuW6AeZ9vkVfvLKbmvWM4NE,928
|
|
61
54
|
compass_api_sdk/models/chain.py,sha256=TzxP0Ujy0L-o3__gggsKeJIWMaflQTNnNSEaXBnSlGU,304
|
|
@@ -95,8 +88,8 @@ compass_api_sdk/models/morphosupplycollateralrequest.py,sha256=gfP9uKLTNquyWvPcK
|
|
|
95
88
|
compass_api_sdk/models/morphovault.py,sha256=hlBsWy_9G7dtwBooeSEVhz-OVTjyzl1SSqarqRq1ph8,1337
|
|
96
89
|
compass_api_sdk/models/morphowithdrawcollateralrequest.py,sha256=TVfxhB8eSgu8xeO3eL7XAiCB54gopvpZpb3dgNfVNXs,3111
|
|
97
90
|
compass_api_sdk/models/morphowithdrawrequest.py,sha256=PCrsA5Tg8zI8LiraHqniLvj6mhbvMZUCn6gKmUvj-pM,2309
|
|
98
|
-
compass_api_sdk/models/multicallaction.py,sha256=
|
|
99
|
-
compass_api_sdk/models/multicallactiontype.py,sha256=
|
|
91
|
+
compass_api_sdk/models/multicallaction.py,sha256=l3HyRN2OIiBWGSVexXZCdce8IOvdbwisUwydvoP3UeM,4559
|
|
92
|
+
compass_api_sdk/models/multicallactiontype.py,sha256=8vkak6f6uslIgD8DG8UnynCI9GhU69sIxk6Fm9pLT-4,1168
|
|
100
93
|
compass_api_sdk/models/multicallauthorizationrequest.py,sha256=h5-2acLlhV9assgIIHyVIgTak1IJathqa-viS-PkvMA,1155
|
|
101
94
|
compass_api_sdk/models/multicallauthorizationresponse.py,sha256=3jjdz9Mz-tKjhBzZbVaJW51no58HSqcxfHJwuZsgnhg,914
|
|
102
95
|
compass_api_sdk/models/multicallexecuterequest.py,sha256=ST9BeTeptLKi6UO7lWH4-mYiYuG7t5scF1CLnb4Sbd0,1105
|
|
@@ -184,6 +177,6 @@ compass_api_sdk/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFId
|
|
|
184
177
|
compass_api_sdk/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
|
185
178
|
compass_api_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
186
179
|
compass_api_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
187
|
-
compass_api_sdk-0.1.
|
|
188
|
-
compass_api_sdk-0.1.
|
|
189
|
-
compass_api_sdk-0.1.
|
|
180
|
+
compass_api_sdk-0.1.14.dist-info/METADATA,sha256=fUe0-TO6qrDe4C4QNCAj_2-jpwq45U4f3G_eEBxnHD0,24302
|
|
181
|
+
compass_api_sdk-0.1.14.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
182
|
+
compass_api_sdk-0.1.14.dist-info/RECORD,,
|
|
@@ -1,153 +0,0 @@
|
|
|
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 (
|
|
6
|
-
BaseModel,
|
|
7
|
-
Nullable,
|
|
8
|
-
OptionalNullable,
|
|
9
|
-
UNSET,
|
|
10
|
-
UNSET_SENTINEL,
|
|
11
|
-
)
|
|
12
|
-
from pydantic import model_serializer
|
|
13
|
-
from typing import Union
|
|
14
|
-
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
AmountTokenDesiredTypedDict = TypeAliasType(
|
|
18
|
-
"AmountTokenDesiredTypedDict", Union[float, str]
|
|
19
|
-
)
|
|
20
|
-
r"""The amount of token you want to provide"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
AmountTokenDesired = TypeAliasType("AmountTokenDesired", Union[float, str])
|
|
24
|
-
r"""The amount of token you want to provide"""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
AmountEthDesiredTypedDict = TypeAliasType(
|
|
28
|
-
"AmountEthDesiredTypedDict", Union[float, str]
|
|
29
|
-
)
|
|
30
|
-
r"""The amount of WETH you want to provide"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
AmountEthDesired = TypeAliasType("AmountEthDesired", Union[float, str])
|
|
34
|
-
r"""The amount of WETH you want to provide"""
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict = TypeAliasType(
|
|
38
|
-
"AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict", Union[float, str]
|
|
39
|
-
)
|
|
40
|
-
r"""The minimal amount of token you are willing to provide"""
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
AerodromeAddLiquidityEthParamsAmountTokenMin = TypeAliasType(
|
|
44
|
-
"AerodromeAddLiquidityEthParamsAmountTokenMin", Union[float, str]
|
|
45
|
-
)
|
|
46
|
-
r"""The minimal amount of token you are willing to provide"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
AerodromeAddLiquidityEthParamsAmountEthMinTypedDict = TypeAliasType(
|
|
50
|
-
"AerodromeAddLiquidityEthParamsAmountEthMinTypedDict", Union[float, str]
|
|
51
|
-
)
|
|
52
|
-
r"""The minimal amount of WETH you are willing to provide"""
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
AerodromeAddLiquidityEthParamsAmountEthMin = TypeAliasType(
|
|
56
|
-
"AerodromeAddLiquidityEthParamsAmountEthMin", Union[float, str]
|
|
57
|
-
)
|
|
58
|
-
r"""The minimal amount of WETH you are willing to provide"""
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
class AerodromeAddLiquidityEthParamsTypedDict(TypedDict):
|
|
62
|
-
r"""Endpoint parameters for adding ETH liquidity on Aerodrome Basic.
|
|
63
|
-
|
|
64
|
-
This action is performed on the Aerodrome Basic Router to add liquidity to a pool
|
|
65
|
-
with ETH as one of the tokens.
|
|
66
|
-
"""
|
|
67
|
-
|
|
68
|
-
token: TokenEnum
|
|
69
|
-
r"""A class representing the token.
|
|
70
|
-
|
|
71
|
-
This class is used to represent the token in the system. Notice individual
|
|
72
|
-
endpoints' documentation where per chain tokens are presented.
|
|
73
|
-
"""
|
|
74
|
-
stable: bool
|
|
75
|
-
r"""If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy"""
|
|
76
|
-
amount_token_desired: AmountTokenDesiredTypedDict
|
|
77
|
-
r"""The amount of token you want to provide"""
|
|
78
|
-
amount_eth_desired: AmountEthDesiredTypedDict
|
|
79
|
-
r"""The amount of WETH you want to provide"""
|
|
80
|
-
amount_token_min: AerodromeAddLiquidityEthParamsAmountTokenMinTypedDict
|
|
81
|
-
r"""The minimal amount of token you are willing to provide"""
|
|
82
|
-
amount_eth_min: AerodromeAddLiquidityEthParamsAmountEthMinTypedDict
|
|
83
|
-
r"""The minimal amount of WETH you are willing to provide"""
|
|
84
|
-
deadline: Nullable[int]
|
|
85
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
86
|
-
to: NotRequired[Nullable[str]]
|
|
87
|
-
r"""The receiver of the LP tokens from this trade, default to sender"""
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
class AerodromeAddLiquidityEthParams(BaseModel):
|
|
91
|
-
r"""Endpoint parameters for adding ETH liquidity on Aerodrome Basic.
|
|
92
|
-
|
|
93
|
-
This action is performed on the Aerodrome Basic Router to add liquidity to a pool
|
|
94
|
-
with ETH as one of the tokens.
|
|
95
|
-
"""
|
|
96
|
-
|
|
97
|
-
token: TokenEnum
|
|
98
|
-
r"""A class representing the token.
|
|
99
|
-
|
|
100
|
-
This class is used to represent the token in the system. Notice individual
|
|
101
|
-
endpoints' documentation where per chain tokens are presented.
|
|
102
|
-
"""
|
|
103
|
-
|
|
104
|
-
stable: bool
|
|
105
|
-
r"""If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy"""
|
|
106
|
-
|
|
107
|
-
amount_token_desired: AmountTokenDesired
|
|
108
|
-
r"""The amount of token you want to provide"""
|
|
109
|
-
|
|
110
|
-
amount_eth_desired: AmountEthDesired
|
|
111
|
-
r"""The amount of WETH you want to provide"""
|
|
112
|
-
|
|
113
|
-
amount_token_min: AerodromeAddLiquidityEthParamsAmountTokenMin
|
|
114
|
-
r"""The minimal amount of token you are willing to provide"""
|
|
115
|
-
|
|
116
|
-
amount_eth_min: AerodromeAddLiquidityEthParamsAmountEthMin
|
|
117
|
-
r"""The minimal amount of WETH you are willing to provide"""
|
|
118
|
-
|
|
119
|
-
deadline: Nullable[int]
|
|
120
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
121
|
-
|
|
122
|
-
to: OptionalNullable[str] = UNSET
|
|
123
|
-
r"""The receiver of the LP tokens from this trade, default to sender"""
|
|
124
|
-
|
|
125
|
-
@model_serializer(mode="wrap")
|
|
126
|
-
def serialize_model(self, handler):
|
|
127
|
-
optional_fields = ["to"]
|
|
128
|
-
nullable_fields = ["to", "deadline"]
|
|
129
|
-
null_default_fields = []
|
|
130
|
-
|
|
131
|
-
serialized = handler(self)
|
|
132
|
-
|
|
133
|
-
m = {}
|
|
134
|
-
|
|
135
|
-
for n, f in type(self).model_fields.items():
|
|
136
|
-
k = f.alias or n
|
|
137
|
-
val = serialized.get(k)
|
|
138
|
-
serialized.pop(k, None)
|
|
139
|
-
|
|
140
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
141
|
-
is_set = (
|
|
142
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
143
|
-
or k in null_default_fields
|
|
144
|
-
) # pylint: disable=no-member
|
|
145
|
-
|
|
146
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
147
|
-
m[k] = val
|
|
148
|
-
elif val != UNSET_SENTINEL and (
|
|
149
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
150
|
-
):
|
|
151
|
-
m[k] = val
|
|
152
|
-
|
|
153
|
-
return m
|
|
@@ -1,160 +0,0 @@
|
|
|
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 (
|
|
6
|
-
BaseModel,
|
|
7
|
-
Nullable,
|
|
8
|
-
OptionalNullable,
|
|
9
|
-
UNSET,
|
|
10
|
-
UNSET_SENTINEL,
|
|
11
|
-
)
|
|
12
|
-
from pydantic import model_serializer
|
|
13
|
-
from typing import Union
|
|
14
|
-
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
AmountADesiredTypedDict = TypeAliasType("AmountADesiredTypedDict", Union[float, str])
|
|
18
|
-
r"""The amount of token A you want to provide"""
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
AmountADesired = TypeAliasType("AmountADesired", Union[float, str])
|
|
22
|
-
r"""The amount of token A you want to provide"""
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
AmountBDesiredTypedDict = TypeAliasType("AmountBDesiredTypedDict", Union[float, str])
|
|
26
|
-
r"""The amount of token B you want to provide"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
AmountBDesired = TypeAliasType("AmountBDesired", Union[float, str])
|
|
30
|
-
r"""The amount of token B you want to provide"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
AerodromeAddLiquidityParamsAmountAMinTypedDict = TypeAliasType(
|
|
34
|
-
"AerodromeAddLiquidityParamsAmountAMinTypedDict", Union[float, str]
|
|
35
|
-
)
|
|
36
|
-
r"""The minimal amount of token A you are willing to provide"""
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
AerodromeAddLiquidityParamsAmountAMin = TypeAliasType(
|
|
40
|
-
"AerodromeAddLiquidityParamsAmountAMin", Union[float, str]
|
|
41
|
-
)
|
|
42
|
-
r"""The minimal amount of token A you are willing to provide"""
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
AerodromeAddLiquidityParamsAmountBMinTypedDict = TypeAliasType(
|
|
46
|
-
"AerodromeAddLiquidityParamsAmountBMinTypedDict", Union[float, str]
|
|
47
|
-
)
|
|
48
|
-
r"""The minimal amount of token B you are willing to provide"""
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
AerodromeAddLiquidityParamsAmountBMin = TypeAliasType(
|
|
52
|
-
"AerodromeAddLiquidityParamsAmountBMin", Union[float, str]
|
|
53
|
-
)
|
|
54
|
-
r"""The minimal amount of token B you are willing to provide"""
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
class AerodromeAddLiquidityParamsTypedDict(TypedDict):
|
|
58
|
-
r"""Endpoint parameters for adding liquidity on Aerodrome Basic.
|
|
59
|
-
|
|
60
|
-
This action is performed on the Aerodrome Basic Router to add liquidity to a pool.
|
|
61
|
-
"""
|
|
62
|
-
|
|
63
|
-
token_a: TokenEnum
|
|
64
|
-
r"""A class representing the token.
|
|
65
|
-
|
|
66
|
-
This class is used to represent the token in the system. Notice individual
|
|
67
|
-
endpoints' documentation where per chain tokens are presented.
|
|
68
|
-
"""
|
|
69
|
-
token_b: TokenEnum
|
|
70
|
-
r"""A class representing the token.
|
|
71
|
-
|
|
72
|
-
This class is used to represent the token in the system. Notice individual
|
|
73
|
-
endpoints' documentation where per chain tokens are presented.
|
|
74
|
-
"""
|
|
75
|
-
stable: bool
|
|
76
|
-
r"""If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy"""
|
|
77
|
-
amount_a_desired: AmountADesiredTypedDict
|
|
78
|
-
r"""The amount of token A you want to provide"""
|
|
79
|
-
amount_b_desired: AmountBDesiredTypedDict
|
|
80
|
-
r"""The amount of token B you want to provide"""
|
|
81
|
-
amount_a_min: AerodromeAddLiquidityParamsAmountAMinTypedDict
|
|
82
|
-
r"""The minimal amount of token A you are willing to provide"""
|
|
83
|
-
amount_b_min: AerodromeAddLiquidityParamsAmountBMinTypedDict
|
|
84
|
-
r"""The minimal amount of token B you are willing to provide"""
|
|
85
|
-
deadline: Nullable[int]
|
|
86
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
87
|
-
to: NotRequired[Nullable[str]]
|
|
88
|
-
r"""The receiver of the LP tokens from this trade, default to sender"""
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
class AerodromeAddLiquidityParams(BaseModel):
|
|
92
|
-
r"""Endpoint parameters for adding liquidity on Aerodrome Basic.
|
|
93
|
-
|
|
94
|
-
This action is performed on the Aerodrome Basic Router to add liquidity to a pool.
|
|
95
|
-
"""
|
|
96
|
-
|
|
97
|
-
token_a: TokenEnum
|
|
98
|
-
r"""A class representing the token.
|
|
99
|
-
|
|
100
|
-
This class is used to represent the token in the system. Notice individual
|
|
101
|
-
endpoints' documentation where per chain tokens are presented.
|
|
102
|
-
"""
|
|
103
|
-
|
|
104
|
-
token_b: TokenEnum
|
|
105
|
-
r"""A class representing the token.
|
|
106
|
-
|
|
107
|
-
This class is used to represent the token in the system. Notice individual
|
|
108
|
-
endpoints' documentation where per chain tokens are presented.
|
|
109
|
-
"""
|
|
110
|
-
|
|
111
|
-
stable: bool
|
|
112
|
-
r"""If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy"""
|
|
113
|
-
|
|
114
|
-
amount_a_desired: AmountADesired
|
|
115
|
-
r"""The amount of token A you want to provide"""
|
|
116
|
-
|
|
117
|
-
amount_b_desired: AmountBDesired
|
|
118
|
-
r"""The amount of token B you want to provide"""
|
|
119
|
-
|
|
120
|
-
amount_a_min: AerodromeAddLiquidityParamsAmountAMin
|
|
121
|
-
r"""The minimal amount of token A you are willing to provide"""
|
|
122
|
-
|
|
123
|
-
amount_b_min: AerodromeAddLiquidityParamsAmountBMin
|
|
124
|
-
r"""The minimal amount of token B you are willing to provide"""
|
|
125
|
-
|
|
126
|
-
deadline: Nullable[int]
|
|
127
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
128
|
-
|
|
129
|
-
to: OptionalNullable[str] = UNSET
|
|
130
|
-
r"""The receiver of the LP tokens from this trade, default to sender"""
|
|
131
|
-
|
|
132
|
-
@model_serializer(mode="wrap")
|
|
133
|
-
def serialize_model(self, handler):
|
|
134
|
-
optional_fields = ["to"]
|
|
135
|
-
nullable_fields = ["to", "deadline"]
|
|
136
|
-
null_default_fields = []
|
|
137
|
-
|
|
138
|
-
serialized = handler(self)
|
|
139
|
-
|
|
140
|
-
m = {}
|
|
141
|
-
|
|
142
|
-
for n, f in type(self).model_fields.items():
|
|
143
|
-
k = f.alias or n
|
|
144
|
-
val = serialized.get(k)
|
|
145
|
-
serialized.pop(k, None)
|
|
146
|
-
|
|
147
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
148
|
-
is_set = (
|
|
149
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
150
|
-
or k in null_default_fields
|
|
151
|
-
) # pylint: disable=no-member
|
|
152
|
-
|
|
153
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
154
|
-
m[k] = val
|
|
155
|
-
elif val != UNSET_SENTINEL and (
|
|
156
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
157
|
-
):
|
|
158
|
-
m[k] = val
|
|
159
|
-
|
|
160
|
-
return m
|
|
@@ -1,139 +0,0 @@
|
|
|
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
|
-
AerodromeRemoveLiquidityEthRequestLiquidityTypedDict = TypeAliasType(
|
|
19
|
-
"AerodromeRemoveLiquidityEthRequestLiquidityTypedDict", Union[float, str]
|
|
20
|
-
)
|
|
21
|
-
r"""The amount of liquidity you want to remove"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
AerodromeRemoveLiquidityEthRequestLiquidity = TypeAliasType(
|
|
25
|
-
"AerodromeRemoveLiquidityEthRequestLiquidity", Union[float, str]
|
|
26
|
-
)
|
|
27
|
-
r"""The amount of liquidity you want to remove"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMinTypedDict = TypeAliasType(
|
|
31
|
-
"AerodromeRemoveLiquidityEthRequestAmountTokenMinTypedDict", Union[float, str]
|
|
32
|
-
)
|
|
33
|
-
r"""The minimal amount of token you are willing to receive"""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
AerodromeRemoveLiquidityEthRequestAmountTokenMin = TypeAliasType(
|
|
37
|
-
"AerodromeRemoveLiquidityEthRequestAmountTokenMin", Union[float, str]
|
|
38
|
-
)
|
|
39
|
-
r"""The minimal amount of token you are willing to receive"""
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMinTypedDict = TypeAliasType(
|
|
43
|
-
"AerodromeRemoveLiquidityEthRequestAmountEthMinTypedDict", Union[float, str]
|
|
44
|
-
)
|
|
45
|
-
r"""The minimal amount of WETH you are willing to receive"""
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
AerodromeRemoveLiquidityEthRequestAmountEthMin = TypeAliasType(
|
|
49
|
-
"AerodromeRemoveLiquidityEthRequestAmountEthMin", Union[float, str]
|
|
50
|
-
)
|
|
51
|
-
r"""The minimal amount of WETH you are willing to receive"""
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class AerodromeRemoveLiquidityEthRequestTypedDict(TypedDict):
|
|
55
|
-
chain: Chain
|
|
56
|
-
r"""The chain to use."""
|
|
57
|
-
sender: str
|
|
58
|
-
r"""The address of the transaction sender."""
|
|
59
|
-
token: TokenEnum
|
|
60
|
-
r"""A class representing the token.
|
|
61
|
-
|
|
62
|
-
This class is used to represent the token in the system. Notice individual
|
|
63
|
-
endpoints' documentation where per chain tokens are presented.
|
|
64
|
-
"""
|
|
65
|
-
stable: bool
|
|
66
|
-
r"""If true, try to remove liquidity from a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to remove liquidity from a volatile pool with a bonding curve of K=xy"""
|
|
67
|
-
liquidity: AerodromeRemoveLiquidityEthRequestLiquidityTypedDict
|
|
68
|
-
r"""The amount of liquidity you want to remove"""
|
|
69
|
-
amount_token_min: AerodromeRemoveLiquidityEthRequestAmountTokenMinTypedDict
|
|
70
|
-
r"""The minimal amount of token you are willing to receive"""
|
|
71
|
-
amount_eth_min: AerodromeRemoveLiquidityEthRequestAmountEthMinTypedDict
|
|
72
|
-
r"""The minimal amount of WETH you are willing to receive"""
|
|
73
|
-
deadline: Nullable[int]
|
|
74
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
75
|
-
to: NotRequired[Nullable[str]]
|
|
76
|
-
r"""The receiver of the tokens from this liquidity removal, default to sender"""
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
class AerodromeRemoveLiquidityEthRequest(BaseModel):
|
|
80
|
-
chain: Chain
|
|
81
|
-
r"""The chain to use."""
|
|
82
|
-
|
|
83
|
-
sender: str
|
|
84
|
-
r"""The address of the transaction sender."""
|
|
85
|
-
|
|
86
|
-
token: TokenEnum
|
|
87
|
-
r"""A class representing the token.
|
|
88
|
-
|
|
89
|
-
This class is used to represent the token in the system. Notice individual
|
|
90
|
-
endpoints' documentation where per chain tokens are presented.
|
|
91
|
-
"""
|
|
92
|
-
|
|
93
|
-
stable: bool
|
|
94
|
-
r"""If true, try to remove liquidity from a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to remove liquidity from a volatile pool with a bonding curve of K=xy"""
|
|
95
|
-
|
|
96
|
-
liquidity: AerodromeRemoveLiquidityEthRequestLiquidity
|
|
97
|
-
r"""The amount of liquidity you want to remove"""
|
|
98
|
-
|
|
99
|
-
amount_token_min: AerodromeRemoveLiquidityEthRequestAmountTokenMin
|
|
100
|
-
r"""The minimal amount of token you are willing to receive"""
|
|
101
|
-
|
|
102
|
-
amount_eth_min: AerodromeRemoveLiquidityEthRequestAmountEthMin
|
|
103
|
-
r"""The minimal amount of WETH you are willing to receive"""
|
|
104
|
-
|
|
105
|
-
deadline: Nullable[int]
|
|
106
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
107
|
-
|
|
108
|
-
to: OptionalNullable[str] = UNSET
|
|
109
|
-
r"""The receiver of the tokens from this liquidity removal, default to sender"""
|
|
110
|
-
|
|
111
|
-
@model_serializer(mode="wrap")
|
|
112
|
-
def serialize_model(self, handler):
|
|
113
|
-
optional_fields = ["to"]
|
|
114
|
-
nullable_fields = ["to", "deadline"]
|
|
115
|
-
null_default_fields = []
|
|
116
|
-
|
|
117
|
-
serialized = handler(self)
|
|
118
|
-
|
|
119
|
-
m = {}
|
|
120
|
-
|
|
121
|
-
for n, f in type(self).model_fields.items():
|
|
122
|
-
k = f.alias or n
|
|
123
|
-
val = serialized.get(k)
|
|
124
|
-
serialized.pop(k, None)
|
|
125
|
-
|
|
126
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
127
|
-
is_set = (
|
|
128
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
129
|
-
or k in null_default_fields
|
|
130
|
-
) # pylint: disable=no-member
|
|
131
|
-
|
|
132
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
133
|
-
m[k] = val
|
|
134
|
-
elif val != UNSET_SENTINEL and (
|
|
135
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
136
|
-
):
|
|
137
|
-
m[k] = val
|
|
138
|
-
|
|
139
|
-
return m
|
|
@@ -1,152 +0,0 @@
|
|
|
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
|
-
AerodromeRemoveLiquidityRequestLiquidityTypedDict = TypeAliasType(
|
|
19
|
-
"AerodromeRemoveLiquidityRequestLiquidityTypedDict", Union[float, str]
|
|
20
|
-
)
|
|
21
|
-
r"""The amount of liquidity you want to remove"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
AerodromeRemoveLiquidityRequestLiquidity = TypeAliasType(
|
|
25
|
-
"AerodromeRemoveLiquidityRequestLiquidity", Union[float, str]
|
|
26
|
-
)
|
|
27
|
-
r"""The amount of liquidity you want to remove"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
AerodromeRemoveLiquidityRequestAmountAMinTypedDict = TypeAliasType(
|
|
31
|
-
"AerodromeRemoveLiquidityRequestAmountAMinTypedDict", Union[float, str]
|
|
32
|
-
)
|
|
33
|
-
r"""The minimal amount of token A you are willing to receive"""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
AerodromeRemoveLiquidityRequestAmountAMin = TypeAliasType(
|
|
37
|
-
"AerodromeRemoveLiquidityRequestAmountAMin", Union[float, str]
|
|
38
|
-
)
|
|
39
|
-
r"""The minimal amount of token A you are willing to receive"""
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
AerodromeRemoveLiquidityRequestAmountBMinTypedDict = TypeAliasType(
|
|
43
|
-
"AerodromeRemoveLiquidityRequestAmountBMinTypedDict", Union[float, str]
|
|
44
|
-
)
|
|
45
|
-
r"""The minimal amount of token B you are willing to receive"""
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
AerodromeRemoveLiquidityRequestAmountBMin = TypeAliasType(
|
|
49
|
-
"AerodromeRemoveLiquidityRequestAmountBMin", Union[float, str]
|
|
50
|
-
)
|
|
51
|
-
r"""The minimal amount of token B you are willing to receive"""
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class AerodromeRemoveLiquidityRequestTypedDict(TypedDict):
|
|
55
|
-
chain: Chain
|
|
56
|
-
r"""The chain to use."""
|
|
57
|
-
sender: str
|
|
58
|
-
r"""The address of the transaction sender."""
|
|
59
|
-
token_a: TokenEnum
|
|
60
|
-
r"""A class representing the token.
|
|
61
|
-
|
|
62
|
-
This class is used to represent the token in the system. Notice individual
|
|
63
|
-
endpoints' documentation where per chain tokens are presented.
|
|
64
|
-
"""
|
|
65
|
-
token_b: TokenEnum
|
|
66
|
-
r"""A class representing the token.
|
|
67
|
-
|
|
68
|
-
This class is used to represent the token in the system. Notice individual
|
|
69
|
-
endpoints' documentation where per chain tokens are presented.
|
|
70
|
-
"""
|
|
71
|
-
stable: bool
|
|
72
|
-
r"""If true, try to remove liquidity from a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to remove liquidity from a volatile pool with a bonding curve of K=xy"""
|
|
73
|
-
liquidity: AerodromeRemoveLiquidityRequestLiquidityTypedDict
|
|
74
|
-
r"""The amount of liquidity you want to remove"""
|
|
75
|
-
amount_a_min: AerodromeRemoveLiquidityRequestAmountAMinTypedDict
|
|
76
|
-
r"""The minimal amount of token A you are willing to receive"""
|
|
77
|
-
amount_b_min: AerodromeRemoveLiquidityRequestAmountBMinTypedDict
|
|
78
|
-
r"""The minimal amount of token B you are willing to receive"""
|
|
79
|
-
deadline: Nullable[int]
|
|
80
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
81
|
-
to: NotRequired[Nullable[str]]
|
|
82
|
-
r"""The receiver of the tokens from this liquidity removal, default to sender"""
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
class AerodromeRemoveLiquidityRequest(BaseModel):
|
|
86
|
-
chain: Chain
|
|
87
|
-
r"""The chain to use."""
|
|
88
|
-
|
|
89
|
-
sender: str
|
|
90
|
-
r"""The address of the transaction sender."""
|
|
91
|
-
|
|
92
|
-
token_a: TokenEnum
|
|
93
|
-
r"""A class representing the token.
|
|
94
|
-
|
|
95
|
-
This class is used to represent the token in the system. Notice individual
|
|
96
|
-
endpoints' documentation where per chain tokens are presented.
|
|
97
|
-
"""
|
|
98
|
-
|
|
99
|
-
token_b: TokenEnum
|
|
100
|
-
r"""A class representing the token.
|
|
101
|
-
|
|
102
|
-
This class is used to represent the token in the system. Notice individual
|
|
103
|
-
endpoints' documentation where per chain tokens are presented.
|
|
104
|
-
"""
|
|
105
|
-
|
|
106
|
-
stable: bool
|
|
107
|
-
r"""If true, try to remove liquidity from a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to remove liquidity from a volatile pool with a bonding curve of K=xy"""
|
|
108
|
-
|
|
109
|
-
liquidity: AerodromeRemoveLiquidityRequestLiquidity
|
|
110
|
-
r"""The amount of liquidity you want to remove"""
|
|
111
|
-
|
|
112
|
-
amount_a_min: AerodromeRemoveLiquidityRequestAmountAMin
|
|
113
|
-
r"""The minimal amount of token A you are willing to receive"""
|
|
114
|
-
|
|
115
|
-
amount_b_min: AerodromeRemoveLiquidityRequestAmountBMin
|
|
116
|
-
r"""The minimal amount of token B you are willing to receive"""
|
|
117
|
-
|
|
118
|
-
deadline: Nullable[int]
|
|
119
|
-
r"""The deadline for this transaction in seconds since epoch"""
|
|
120
|
-
|
|
121
|
-
to: OptionalNullable[str] = UNSET
|
|
122
|
-
r"""The receiver of the tokens from this liquidity removal, default to sender"""
|
|
123
|
-
|
|
124
|
-
@model_serializer(mode="wrap")
|
|
125
|
-
def serialize_model(self, handler):
|
|
126
|
-
optional_fields = ["to"]
|
|
127
|
-
nullable_fields = ["to", "deadline"]
|
|
128
|
-
null_default_fields = []
|
|
129
|
-
|
|
130
|
-
serialized = handler(self)
|
|
131
|
-
|
|
132
|
-
m = {}
|
|
133
|
-
|
|
134
|
-
for n, f in type(self).model_fields.items():
|
|
135
|
-
k = f.alias or n
|
|
136
|
-
val = serialized.get(k)
|
|
137
|
-
serialized.pop(k, None)
|
|
138
|
-
|
|
139
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
140
|
-
is_set = (
|
|
141
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
142
|
-
or k in null_default_fields
|
|
143
|
-
) # pylint: disable=no-member
|
|
144
|
-
|
|
145
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
146
|
-
m[k] = val
|
|
147
|
-
elif val != UNSET_SENTINEL and (
|
|
148
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
149
|
-
):
|
|
150
|
-
m[k] = val
|
|
151
|
-
|
|
152
|
-
return m
|
|
@@ -1,110 +0,0 @@
|
|
|
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 (
|
|
6
|
-
BaseModel,
|
|
7
|
-
Nullable,
|
|
8
|
-
OptionalNullable,
|
|
9
|
-
UNSET,
|
|
10
|
-
UNSET_SENTINEL,
|
|
11
|
-
)
|
|
12
|
-
from pydantic import model_serializer
|
|
13
|
-
from typing import Union
|
|
14
|
-
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
AerodromeSwapEthForTokenParamsAmountInTypedDict = TypeAliasType(
|
|
18
|
-
"AerodromeSwapEthForTokenParamsAmountInTypedDict", Union[float, str]
|
|
19
|
-
)
|
|
20
|
-
r"""The amount of ETH you will give to aerodrome_basic for this trade"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
AerodromeSwapEthForTokenParamsAmountIn = TypeAliasType(
|
|
24
|
-
"AerodromeSwapEthForTokenParamsAmountIn", Union[float, str]
|
|
25
|
-
)
|
|
26
|
-
r"""The amount of ETH you will give to aerodrome_basic for this trade"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
AerodromeSwapEthForTokenParamsAmountOutMinTypedDict = TypeAliasType(
|
|
30
|
-
"AerodromeSwapEthForTokenParamsAmountOutMinTypedDict", Union[float, str]
|
|
31
|
-
)
|
|
32
|
-
r"""The minimal amount of token you are willing to receive (will revert if the swap gives you less)"""
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
AerodromeSwapEthForTokenParamsAmountOutMin = TypeAliasType(
|
|
36
|
-
"AerodromeSwapEthForTokenParamsAmountOutMin", Union[float, str]
|
|
37
|
-
)
|
|
38
|
-
r"""The minimal amount of token you are willing to receive (will revert if the swap gives you less)"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class AerodromeSwapEthForTokenParamsTypedDict(TypedDict):
|
|
42
|
-
r"""Parameters model for swapping ETH for tokens."""
|
|
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
|
-
amount_in: AerodromeSwapEthForTokenParamsAmountInTypedDict
|
|
51
|
-
r"""The amount of ETH you will give to aerodrome_basic for this trade"""
|
|
52
|
-
amount_out_min: AerodromeSwapEthForTokenParamsAmountOutMinTypedDict
|
|
53
|
-
r"""The minimal amount of token you are willing to receive (will revert if the swap gives you less)"""
|
|
54
|
-
stable: bool
|
|
55
|
-
r"""If true, try to trade on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to trade on a volatile pool with a bonding curve of K=xy"""
|
|
56
|
-
to: NotRequired[Nullable[str]]
|
|
57
|
-
r"""The receiver of the funds from this trade, default to sender"""
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
class AerodromeSwapEthForTokenParams(BaseModel):
|
|
61
|
-
r"""Parameters model for swapping ETH for tokens."""
|
|
62
|
-
|
|
63
|
-
token_out: TokenEnum
|
|
64
|
-
r"""A class representing the token.
|
|
65
|
-
|
|
66
|
-
This class is used to represent the token in the system. Notice individual
|
|
67
|
-
endpoints' documentation where per chain tokens are presented.
|
|
68
|
-
"""
|
|
69
|
-
|
|
70
|
-
amount_in: AerodromeSwapEthForTokenParamsAmountIn
|
|
71
|
-
r"""The amount of ETH you will give to aerodrome_basic for this trade"""
|
|
72
|
-
|
|
73
|
-
amount_out_min: AerodromeSwapEthForTokenParamsAmountOutMin
|
|
74
|
-
r"""The minimal amount of token you are willing to receive (will revert if the swap gives you less)"""
|
|
75
|
-
|
|
76
|
-
stable: bool
|
|
77
|
-
r"""If true, try to trade on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to trade on a volatile pool with a bonding curve of K=xy"""
|
|
78
|
-
|
|
79
|
-
to: OptionalNullable[str] = UNSET
|
|
80
|
-
r"""The receiver of the funds from this trade, default to sender"""
|
|
81
|
-
|
|
82
|
-
@model_serializer(mode="wrap")
|
|
83
|
-
def serialize_model(self, handler):
|
|
84
|
-
optional_fields = ["to"]
|
|
85
|
-
nullable_fields = ["to"]
|
|
86
|
-
null_default_fields = []
|
|
87
|
-
|
|
88
|
-
serialized = handler(self)
|
|
89
|
-
|
|
90
|
-
m = {}
|
|
91
|
-
|
|
92
|
-
for n, f in type(self).model_fields.items():
|
|
93
|
-
k = f.alias or n
|
|
94
|
-
val = serialized.get(k)
|
|
95
|
-
serialized.pop(k, None)
|
|
96
|
-
|
|
97
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
98
|
-
is_set = (
|
|
99
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
100
|
-
or k in null_default_fields
|
|
101
|
-
) # pylint: disable=no-member
|
|
102
|
-
|
|
103
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
104
|
-
m[k] = val
|
|
105
|
-
elif val != UNSET_SENTINEL and (
|
|
106
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
107
|
-
):
|
|
108
|
-
m[k] = val
|
|
109
|
-
|
|
110
|
-
return m
|
|
@@ -1,110 +0,0 @@
|
|
|
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 (
|
|
6
|
-
BaseModel,
|
|
7
|
-
Nullable,
|
|
8
|
-
OptionalNullable,
|
|
9
|
-
UNSET,
|
|
10
|
-
UNSET_SENTINEL,
|
|
11
|
-
)
|
|
12
|
-
from pydantic import model_serializer
|
|
13
|
-
from typing import Union
|
|
14
|
-
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
AerodromeSwapTokenForEthParamsAmountInTypedDict = TypeAliasType(
|
|
18
|
-
"AerodromeSwapTokenForEthParamsAmountInTypedDict", Union[float, str]
|
|
19
|
-
)
|
|
20
|
-
r"""The amount of tokens you will give to aerodrome_basic for this trade"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
AerodromeSwapTokenForEthParamsAmountIn = TypeAliasType(
|
|
24
|
-
"AerodromeSwapTokenForEthParamsAmountIn", Union[float, str]
|
|
25
|
-
)
|
|
26
|
-
r"""The amount of tokens you will give to aerodrome_basic for this trade"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
AerodromeSwapTokenForEthParamsAmountOutMinTypedDict = TypeAliasType(
|
|
30
|
-
"AerodromeSwapTokenForEthParamsAmountOutMinTypedDict", Union[float, str]
|
|
31
|
-
)
|
|
32
|
-
r"""The minimal amount of ETH you are willing to receive (will revert if the swap gives you less)"""
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
AerodromeSwapTokenForEthParamsAmountOutMin = TypeAliasType(
|
|
36
|
-
"AerodromeSwapTokenForEthParamsAmountOutMin", Union[float, str]
|
|
37
|
-
)
|
|
38
|
-
r"""The minimal amount of ETH you are willing to receive (will revert if the swap gives you less)"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class AerodromeSwapTokenForEthParamsTypedDict(TypedDict):
|
|
42
|
-
r"""Parameters model for swapping tokens for ETH."""
|
|
43
|
-
|
|
44
|
-
token_in: 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
|
-
amount_in: AerodromeSwapTokenForEthParamsAmountInTypedDict
|
|
51
|
-
r"""The amount of tokens you will give to aerodrome_basic for this trade"""
|
|
52
|
-
amount_out_min: AerodromeSwapTokenForEthParamsAmountOutMinTypedDict
|
|
53
|
-
r"""The minimal amount of ETH you are willing to receive (will revert if the swap gives you less)"""
|
|
54
|
-
stable: bool
|
|
55
|
-
r"""If true, try to trade on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to trade on a volatile pool with a bonding curve of K=xy"""
|
|
56
|
-
to: NotRequired[Nullable[str]]
|
|
57
|
-
r"""The receiver of the funds from this trade, default to sender"""
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
class AerodromeSwapTokenForEthParams(BaseModel):
|
|
61
|
-
r"""Parameters model for swapping tokens for ETH."""
|
|
62
|
-
|
|
63
|
-
token_in: TokenEnum
|
|
64
|
-
r"""A class representing the token.
|
|
65
|
-
|
|
66
|
-
This class is used to represent the token in the system. Notice individual
|
|
67
|
-
endpoints' documentation where per chain tokens are presented.
|
|
68
|
-
"""
|
|
69
|
-
|
|
70
|
-
amount_in: AerodromeSwapTokenForEthParamsAmountIn
|
|
71
|
-
r"""The amount of tokens you will give to aerodrome_basic for this trade"""
|
|
72
|
-
|
|
73
|
-
amount_out_min: AerodromeSwapTokenForEthParamsAmountOutMin
|
|
74
|
-
r"""The minimal amount of ETH you are willing to receive (will revert if the swap gives you less)"""
|
|
75
|
-
|
|
76
|
-
stable: bool
|
|
77
|
-
r"""If true, try to trade on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to trade on a volatile pool with a bonding curve of K=xy"""
|
|
78
|
-
|
|
79
|
-
to: OptionalNullable[str] = UNSET
|
|
80
|
-
r"""The receiver of the funds from this trade, default to sender"""
|
|
81
|
-
|
|
82
|
-
@model_serializer(mode="wrap")
|
|
83
|
-
def serialize_model(self, handler):
|
|
84
|
-
optional_fields = ["to"]
|
|
85
|
-
nullable_fields = ["to"]
|
|
86
|
-
null_default_fields = []
|
|
87
|
-
|
|
88
|
-
serialized = handler(self)
|
|
89
|
-
|
|
90
|
-
m = {}
|
|
91
|
-
|
|
92
|
-
for n, f in type(self).model_fields.items():
|
|
93
|
-
k = f.alias or n
|
|
94
|
-
val = serialized.get(k)
|
|
95
|
-
serialized.pop(k, None)
|
|
96
|
-
|
|
97
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
98
|
-
is_set = (
|
|
99
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
100
|
-
or k in null_default_fields
|
|
101
|
-
) # pylint: disable=no-member
|
|
102
|
-
|
|
103
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
104
|
-
m[k] = val
|
|
105
|
-
elif val != UNSET_SENTINEL and (
|
|
106
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
107
|
-
):
|
|
108
|
-
m[k] = val
|
|
109
|
-
|
|
110
|
-
return m
|
|
@@ -1,135 +0,0 @@
|
|
|
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 (
|
|
6
|
-
BaseModel,
|
|
7
|
-
Nullable,
|
|
8
|
-
OptionalNullable,
|
|
9
|
-
UNSET,
|
|
10
|
-
UNSET_SENTINEL,
|
|
11
|
-
)
|
|
12
|
-
from pydantic import model_serializer
|
|
13
|
-
from typing import Union
|
|
14
|
-
from typing_extensions import NotRequired, TypeAliasType, TypedDict
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
AerodromeSwapTokensParamsAmountInTypedDict = TypeAliasType(
|
|
18
|
-
"AerodromeSwapTokensParamsAmountInTypedDict", Union[float, str]
|
|
19
|
-
)
|
|
20
|
-
r"""The amount of tokens you will give to aerodrome_basic for this trade"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
AerodromeSwapTokensParamsAmountIn = TypeAliasType(
|
|
24
|
-
"AerodromeSwapTokensParamsAmountIn", Union[float, str]
|
|
25
|
-
)
|
|
26
|
-
r"""The amount of tokens you will give to aerodrome_basic for this trade"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
AerodromeSwapTokensParamsAmountOutMinTypedDict = TypeAliasType(
|
|
30
|
-
"AerodromeSwapTokensParamsAmountOutMinTypedDict", Union[float, str]
|
|
31
|
-
)
|
|
32
|
-
r"""The minimal amount of token you are willing to receive (will revert if the
|
|
33
|
-
swap gives you less)
|
|
34
|
-
"""
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
AerodromeSwapTokensParamsAmountOutMin = TypeAliasType(
|
|
38
|
-
"AerodromeSwapTokensParamsAmountOutMin", Union[float, str]
|
|
39
|
-
)
|
|
40
|
-
r"""The minimal amount of token you are willing to receive (will revert if the
|
|
41
|
-
swap gives you less)
|
|
42
|
-
"""
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class AerodromeSwapTokensParamsTypedDict(TypedDict):
|
|
46
|
-
r"""Parameters model for swapping tokens."""
|
|
47
|
-
|
|
48
|
-
token_in: TokenEnum
|
|
49
|
-
r"""A class representing the token.
|
|
50
|
-
|
|
51
|
-
This class is used to represent the token in the system. Notice individual
|
|
52
|
-
endpoints' documentation where per chain tokens are presented.
|
|
53
|
-
"""
|
|
54
|
-
token_out: TokenEnum
|
|
55
|
-
r"""A class representing the token.
|
|
56
|
-
|
|
57
|
-
This class is used to represent the token in the system. Notice individual
|
|
58
|
-
endpoints' documentation where per chain tokens are presented.
|
|
59
|
-
"""
|
|
60
|
-
amount_in: AerodromeSwapTokensParamsAmountInTypedDict
|
|
61
|
-
r"""The amount of tokens you will give to aerodrome_basic for this trade"""
|
|
62
|
-
amount_out_min: AerodromeSwapTokensParamsAmountOutMinTypedDict
|
|
63
|
-
r"""The minimal amount of token you are willing to receive (will revert if the
|
|
64
|
-
swap gives you less)
|
|
65
|
-
"""
|
|
66
|
-
stable: bool
|
|
67
|
-
r"""If true, try to trade on a stable pool with a bonding curve of K=x^3y+y^3x.
|
|
68
|
-
If false, try to trade on a volatile pool with a bonding curve of K=xy
|
|
69
|
-
"""
|
|
70
|
-
to: NotRequired[Nullable[str]]
|
|
71
|
-
r"""The receiver of the funds from this trade, default to sender"""
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
class AerodromeSwapTokensParams(BaseModel):
|
|
75
|
-
r"""Parameters model for swapping tokens."""
|
|
76
|
-
|
|
77
|
-
token_in: TokenEnum
|
|
78
|
-
r"""A class representing the token.
|
|
79
|
-
|
|
80
|
-
This class is used to represent the token in the system. Notice individual
|
|
81
|
-
endpoints' documentation where per chain tokens are presented.
|
|
82
|
-
"""
|
|
83
|
-
|
|
84
|
-
token_out: TokenEnum
|
|
85
|
-
r"""A class representing the token.
|
|
86
|
-
|
|
87
|
-
This class is used to represent the token in the system. Notice individual
|
|
88
|
-
endpoints' documentation where per chain tokens are presented.
|
|
89
|
-
"""
|
|
90
|
-
|
|
91
|
-
amount_in: AerodromeSwapTokensParamsAmountIn
|
|
92
|
-
r"""The amount of tokens you will give to aerodrome_basic for this trade"""
|
|
93
|
-
|
|
94
|
-
amount_out_min: AerodromeSwapTokensParamsAmountOutMin
|
|
95
|
-
r"""The minimal amount of token you are willing to receive (will revert if the
|
|
96
|
-
swap gives you less)
|
|
97
|
-
"""
|
|
98
|
-
|
|
99
|
-
stable: bool
|
|
100
|
-
r"""If true, try to trade on a stable pool with a bonding curve of K=x^3y+y^3x.
|
|
101
|
-
If false, try to trade on a volatile pool with a bonding curve of K=xy
|
|
102
|
-
"""
|
|
103
|
-
|
|
104
|
-
to: OptionalNullable[str] = UNSET
|
|
105
|
-
r"""The receiver of the funds from this trade, default to sender"""
|
|
106
|
-
|
|
107
|
-
@model_serializer(mode="wrap")
|
|
108
|
-
def serialize_model(self, handler):
|
|
109
|
-
optional_fields = ["to"]
|
|
110
|
-
nullable_fields = ["to"]
|
|
111
|
-
null_default_fields = []
|
|
112
|
-
|
|
113
|
-
serialized = handler(self)
|
|
114
|
-
|
|
115
|
-
m = {}
|
|
116
|
-
|
|
117
|
-
for n, f in type(self).model_fields.items():
|
|
118
|
-
k = f.alias or n
|
|
119
|
-
val = serialized.get(k)
|
|
120
|
-
serialized.pop(k, None)
|
|
121
|
-
|
|
122
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
|
123
|
-
is_set = (
|
|
124
|
-
self.__pydantic_fields_set__.intersection({n})
|
|
125
|
-
or k in null_default_fields
|
|
126
|
-
) # pylint: disable=no-member
|
|
127
|
-
|
|
128
|
-
if val is not None and val != UNSET_SENTINEL:
|
|
129
|
-
m[k] = val
|
|
130
|
-
elif val != UNSET_SENTINEL and (
|
|
131
|
-
not k in optional_fields or (optional_nullable and is_set)
|
|
132
|
-
):
|
|
133
|
-
m[k] = val
|
|
134
|
-
|
|
135
|
-
return m
|
|
File without changes
|