compass_api_sdk 0.0.3__py3-none-any.whl → 0.1.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.
- {compass_api_sdk-0.0.3.dist-info → compass_api_sdk-0.1.1.dist-info}/METADATA +40 -46
- compass_api_sdk-0.1.1.dist-info/RECORD +165 -0
- {compass_api_sdk → compassapisdk}/_hooks/__init__.py +0 -1
- {compass_api_sdk → compassapisdk}/_hooks/sdkhooks.py +1 -3
- {compass_api_sdk → compassapisdk}/_hooks/types.py +1 -1
- {compass_api_sdk → compassapisdk}/_version.py +3 -3
- {compass_api_sdk → compassapisdk}/aave_v3.py +9 -9
- {compass_api_sdk → compassapisdk}/aerodrome_slipstream.py +3 -3
- {compass_api_sdk → compassapisdk}/basesdk.py +3 -3
- {compass_api_sdk → compassapisdk}/errors/httpvalidationerror.py +3 -3
- {compass_api_sdk → compassapisdk}/models/__init__.py +431 -47
- {compass_api_sdk → compassapisdk}/models/aave_liquidity_changeop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/aave_token_priceop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/aave_user_position_per_tokenop.py +5 -7
- {compass_api_sdk → compassapisdk}/models/aave_user_position_summaryop.py +5 -7
- compassapisdk/models/aaveborrowparams.py +94 -0
- {compass_api_sdk → compassapisdk}/models/aaveborrowrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveliquiditychangeresponse.py +1 -1
- compassapisdk/models/aaverepayparams.py +94 -0
- {compass_api_sdk → compassapisdk}/models/aaverepayrequest.py +1 -1
- compassapisdk/models/aavesupplyparams.py +82 -0
- {compass_api_sdk → compassapisdk}/models/aavesupplyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aavetokenpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionpertokenresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aaveuserpositionsummaryresponse.py +1 -1
- compassapisdk/models/aavewithdrawparams.py +45 -0
- {compass_api_sdk → compassapisdk}/models/aavewithdrawrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_liquidity_provision_positionsop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/aerodrome_slipstream_pool_priceop.py +2 -2
- compassapisdk/models/aerodromeaddliquidityethparams.py +153 -0
- compassapisdk/models/aerodromeaddliquidityparams.py +160 -0
- {compass_api_sdk → compassapisdk}/models/aerodromelppositionsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeposition.py +1 -1
- compassapisdk/models/aerodromeremoveliquidityethrequest.py +139 -0
- compassapisdk/models/aerodromeremoveliquidityrequest.py +152 -0
- compassapisdk/models/aerodromeslipstreambuyexactlyparams.py +81 -0
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
- compassapisdk/models/aerodromeslipstreamincreaseliquidityprovisionparams.py +110 -0
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
- compassapisdk/models/aerodromeslipstreammintliquidityprovisionparams.py +175 -0
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreampoolpriceresponse.py +1 -1
- compassapisdk/models/aerodromeslipstreamsellexactlyparams.py +85 -0
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
- compassapisdk/models/aerodromeslipstreamwithdrawliquidityprovisionparams.py +51 -0
- {compass_api_sdk → compassapisdk}/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
- compassapisdk/models/aerodromeswapethfortokenparams.py +110 -0
- compassapisdk/models/aerodromeswaptokenforethparams.py +110 -0
- compassapisdk/models/aerodromeswaptokensparams.py +135 -0
- {compass_api_sdk → compassapisdk}/models/allowanceinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/chaininfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_markets_asset.py +1 -1
- {compass_api_sdk → compassapisdk}/models/compass_api_backend_models_morpho_read_response_get_vaults_asset.py +1 -1
- compassapisdk/models/contractname.py +34 -0
- {compass_api_sdk → compassapisdk}/models/ensnameinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/generic_allowanceop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/generic_ensop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/generic_portfolioop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/generic_supported_tokensop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/generic_visualize_portfolioop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/image.py +1 -1
- compassapisdk/models/increaseallowanceanyparams.py +62 -0
- compassapisdk/models/increaseallowanceparams.py +66 -0
- {compass_api_sdk → compassapisdk}/models/increaseallowancerequest.py +4 -4
- {compass_api_sdk → compassapisdk}/models/marketstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morpho_market_positionop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/morpho_marketsop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/morpho_vault_positionop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/morpho_vaultsop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/morphoborrowrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphocheckmarketpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphocheckvaultpositionresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphodepositrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphogetmarketsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphogetvaultsresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphomarket.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphorepayrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphosetvaultallowancerequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphosupplycollateralrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphovault.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawcollateralrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/morphowithdrawrequest.py +1 -1
- compassapisdk/models/multicallaction.py +170 -0
- compassapisdk/models/multicallactiontype.py +33 -0
- compassapisdk/models/multicallauthorizationrequest.py +35 -0
- compassapisdk/models/multicallauthorizationresponse.py +31 -0
- compassapisdk/models/multicallexecuterequest.py +36 -0
- {compass_api_sdk → compassapisdk}/models/portfolio.py +1 -1
- {compass_api_sdk → compassapisdk}/models/security.py +2 -2
- compassapisdk/models/signedauthorization.py +42 -0
- {compass_api_sdk → compassapisdk}/models/token_addressop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/token_balanceop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/token_priceop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/tokenaddressresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalance.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenbalanceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokeninfo.py +1 -1
- {compass_api_sdk → compassapisdk}/models/tokenpriceresponse.py +1 -1
- compass_api_sdk/models/transfererc20request.py → compassapisdk/models/tokentransfererc20params.py +11 -22
- {compass_api_sdk → compassapisdk}/models/tokentransferrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_in_rangeop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_liquidity_provision_positionsop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_pool_priceop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_buy_exactlyop.py +2 -2
- {compass_api_sdk → compassapisdk}/models/uniswap_quote_sell_exactlyop.py +2 -2
- compassapisdk/models/uniswapbuyexactlyparams.py +89 -0
- {compass_api_sdk → compassapisdk}/models/uniswapbuyexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapbuyquoteinforesponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapcheckinrangeresponse.py +1 -1
- compassapisdk/models/uniswapincreaseliquidityprovisionparams.py +84 -0
- {compass_api_sdk → compassapisdk}/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswaplppositionsinforesponse.py +1 -1
- compassapisdk/models/uniswapmintliquidityprovisionparams.py +170 -0
- {compass_api_sdk → compassapisdk}/models/uniswapmintliquidityprovisionrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappoolpriceresponse.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswappositionssolidityresponse.py +1 -1
- compassapisdk/models/uniswapsellexactlyparams.py +93 -0
- {compass_api_sdk → compassapisdk}/models/uniswapsellexactlyrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/uniswapsellquoteinforesponse.py +1 -1
- compassapisdk/models/uniswapwithdrawliquidityprovisionparams.py +50 -0
- {compass_api_sdk → compassapisdk}/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
- compassapisdk/models/unsignedmulticalltransaction.py +67 -0
- {compass_api_sdk → compassapisdk}/models/unsignedtransaction.py +1 -1
- compassapisdk/models/unwrapwethparams.py +30 -0
- {compass_api_sdk → compassapisdk}/models/unwrapwethrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/models/validationerror.py +1 -1
- {compass_api_sdk → compassapisdk}/models/vaultstate.py +1 -1
- {compass_api_sdk → compassapisdk}/models/weeklyapys.py +1 -1
- compassapisdk/models/wrapethparams.py +30 -0
- {compass_api_sdk → compassapisdk}/models/wrapethrequest.py +1 -1
- {compass_api_sdk → compassapisdk}/morpho.py +3 -3
- {compass_api_sdk → compassapisdk}/sdk.py +12 -9
- {compass_api_sdk → compassapisdk}/sdkconfiguration.py +2 -2
- {compass_api_sdk → compassapisdk}/token_sdk.py +3 -3
- compassapisdk/transaction_batching.py +473 -0
- {compass_api_sdk → compassapisdk}/uniswap_v3.py +3 -3
- {compass_api_sdk → compassapisdk}/universal.py +144 -1012
- compass_api_sdk/_hooks/registration.py +0 -13
- compass_api_sdk/models/balanceinforesponse.py +0 -43
- compass_api_sdk/models/generic_balanceop.py +0 -104
- compass_api_sdk/models/generic_price_usdop.py +0 -97
- compass_api_sdk/models/priceresponse.py +0 -15
- compass_api_sdk/models/transferethrequest.py +0 -46
- compass_api_sdk-0.0.3.dist-info/RECORD +0 -137
- {compass_api_sdk-0.0.3.dist-info → compass_api_sdk-0.1.1.dist-info}/WHEEL +0 -0
- {compass_api_sdk → compassapisdk}/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/errors/apierror.py +0 -0
- {compass_api_sdk → compassapisdk}/httpclient.py +0 -0
- {compass_api_sdk → compassapisdk}/models/chain.py +0 -0
- {compass_api_sdk → compassapisdk}/models/feeenum.py +0 -0
- {compass_api_sdk → compassapisdk}/models/interestratemode.py +0 -0
- {compass_api_sdk → compassapisdk}/models/token_enum.py +0 -0
- {compass_api_sdk → compassapisdk}/py.typed +0 -0
- {compass_api_sdk → compassapisdk}/types/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/types/basemodel.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/__init__.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/annotations.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/datetimes.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/enums.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/eventstreaming.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/forms.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/headers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/logger.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/metadata.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/queryparams.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/requestbodies.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/retries.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/security.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/serializers.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/url.py +0 -0
- {compass_api_sdk → compassapisdk}/utils/values.py +0 -0
|
@@ -0,0 +1,160 @@
|
|
|
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 compassapisdk.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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .aerodromeposition import AerodromePosition, AerodromePositionTypedDict
|
|
5
|
-
from
|
|
5
|
+
from compassapisdk.types import BaseModel
|
|
6
6
|
from typing import Dict
|
|
7
7
|
from typing_extensions import TypedDict
|
|
8
8
|
|
|
@@ -0,0 +1,139 @@
|
|
|
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 compassapisdk.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
|
|
@@ -0,0 +1,152 @@
|
|
|
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 compassapisdk.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
|
|
@@ -0,0 +1,81 @@
|
|
|
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 compassapisdk.types import BaseModel
|
|
6
|
+
from typing import Union
|
|
7
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
AerodromeSlipstreamBuyExactlyParamsAmountOutTypedDict = TypeAliasType(
|
|
11
|
+
"AerodromeSlipstreamBuyExactlyParamsAmountOutTypedDict", Union[float, str]
|
|
12
|
+
)
|
|
13
|
+
r"""The amount of the token to swap to"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
AerodromeSlipstreamBuyExactlyParamsAmountOut = TypeAliasType(
|
|
17
|
+
"AerodromeSlipstreamBuyExactlyParamsAmountOut", Union[float, str]
|
|
18
|
+
)
|
|
19
|
+
r"""The amount of the token to swap to"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
AerodromeSlipstreamBuyExactlyParamsAmountInMaximumTypedDict = TypeAliasType(
|
|
23
|
+
"AerodromeSlipstreamBuyExactlyParamsAmountInMaximumTypedDict", Union[float, str]
|
|
24
|
+
)
|
|
25
|
+
r"""The maximum amount of the token to swap from"""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
AerodromeSlipstreamBuyExactlyParamsAmountInMaximum = TypeAliasType(
|
|
29
|
+
"AerodromeSlipstreamBuyExactlyParamsAmountInMaximum", Union[float, str]
|
|
30
|
+
)
|
|
31
|
+
r"""The maximum amount of the token to swap from"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
|
|
35
|
+
r"""Parameters model for buying exactly an amount of tokens."""
|
|
36
|
+
|
|
37
|
+
token_in: 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
|
+
token_out: TokenEnum
|
|
44
|
+
r"""A class representing the token.
|
|
45
|
+
|
|
46
|
+
This class is used to represent the token in the system. Notice individual
|
|
47
|
+
endpoints' documentation where per chain tokens are presented.
|
|
48
|
+
"""
|
|
49
|
+
tick_spacing: int
|
|
50
|
+
r"""The tick spacing of the pool"""
|
|
51
|
+
amount_out: AerodromeSlipstreamBuyExactlyParamsAmountOutTypedDict
|
|
52
|
+
r"""The amount of the token to swap to"""
|
|
53
|
+
amount_in_maximum: AerodromeSlipstreamBuyExactlyParamsAmountInMaximumTypedDict
|
|
54
|
+
r"""The maximum amount of the token to swap from"""
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
58
|
+
r"""Parameters model for buying exactly an amount of tokens."""
|
|
59
|
+
|
|
60
|
+
token_in: TokenEnum
|
|
61
|
+
r"""A class representing the token.
|
|
62
|
+
|
|
63
|
+
This class is used to represent the token in the system. Notice individual
|
|
64
|
+
endpoints' documentation where per chain tokens are presented.
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
token_out: 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
|
+
tick_spacing: int
|
|
75
|
+
r"""The tick spacing of the pool"""
|
|
76
|
+
|
|
77
|
+
amount_out: AerodromeSlipstreamBuyExactlyParamsAmountOut
|
|
78
|
+
r"""The amount of the token to swap to"""
|
|
79
|
+
|
|
80
|
+
amount_in_maximum: AerodromeSlipstreamBuyExactlyParamsAmountInMaximum
|
|
81
|
+
r"""The maximum amount of the token to swap from"""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .chain import Chain
|
|
5
5
|
from .token_enum import TokenEnum
|
|
6
|
-
from
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
7
|
from typing import Union
|
|
8
8
|
from typing_extensions import TypeAliasType, TypedDict
|
|
9
9
|
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from typing import Union
|
|
6
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0DesiredTypedDict = (
|
|
10
|
+
TypeAliasType(
|
|
11
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0DesiredTypedDict",
|
|
12
|
+
Union[float, str],
|
|
13
|
+
)
|
|
14
|
+
)
|
|
15
|
+
r"""The desired amount of the first token to deposit"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0Desired = TypeAliasType(
|
|
19
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0Desired",
|
|
20
|
+
Union[float, str],
|
|
21
|
+
)
|
|
22
|
+
r"""The desired amount of the first token to deposit"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1DesiredTypedDict = (
|
|
26
|
+
TypeAliasType(
|
|
27
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1DesiredTypedDict",
|
|
28
|
+
Union[float, str],
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
r"""The desired amount of the second token to deposit"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Desired = TypeAliasType(
|
|
35
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Desired",
|
|
36
|
+
Union[float, str],
|
|
37
|
+
)
|
|
38
|
+
r"""The desired amount of the second token to deposit"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0MinTypedDict = TypeAliasType(
|
|
42
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0MinTypedDict",
|
|
43
|
+
Union[float, str],
|
|
44
|
+
)
|
|
45
|
+
r"""The minimum amount of the first token to deposit"""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0Min = TypeAliasType(
|
|
49
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0Min", Union[float, str]
|
|
50
|
+
)
|
|
51
|
+
r"""The minimum amount of the first token to deposit"""
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1MinTypedDict = TypeAliasType(
|
|
55
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1MinTypedDict",
|
|
56
|
+
Union[float, str],
|
|
57
|
+
)
|
|
58
|
+
r"""The minimum amount of the second token to deposit"""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Min = TypeAliasType(
|
|
62
|
+
"AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Min", Union[float, str]
|
|
63
|
+
)
|
|
64
|
+
r"""The minimum amount of the second token to deposit"""
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class AerodromeSlipstreamIncreaseLiquidityProvisionParamsTypedDict(TypedDict):
|
|
68
|
+
r"""Endpoint parameters for increasing liquidity provision on aerodrome slipstream.
|
|
69
|
+
|
|
70
|
+
This action is performed on the NonfungiblePosition Manager to increase the
|
|
71
|
+
liquidity of an existing position.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
token_id: int
|
|
75
|
+
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
76
|
+
amount0_desired: (
|
|
77
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0DesiredTypedDict
|
|
78
|
+
)
|
|
79
|
+
r"""The desired amount of the first token to deposit"""
|
|
80
|
+
amount1_desired: (
|
|
81
|
+
AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1DesiredTypedDict
|
|
82
|
+
)
|
|
83
|
+
r"""The desired amount of the second token to deposit"""
|
|
84
|
+
amount0_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0MinTypedDict
|
|
85
|
+
r"""The minimum amount of the first token to deposit"""
|
|
86
|
+
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1MinTypedDict
|
|
87
|
+
r"""The minimum amount of the second token to deposit"""
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class AerodromeSlipstreamIncreaseLiquidityProvisionParams(BaseModel):
|
|
91
|
+
r"""Endpoint parameters for increasing liquidity provision on aerodrome slipstream.
|
|
92
|
+
|
|
93
|
+
This action is performed on the NonfungiblePosition Manager to increase the
|
|
94
|
+
liquidity of an existing position.
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
token_id: int
|
|
98
|
+
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
99
|
+
|
|
100
|
+
amount0_desired: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0Desired
|
|
101
|
+
r"""The desired amount of the first token to deposit"""
|
|
102
|
+
|
|
103
|
+
amount1_desired: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Desired
|
|
104
|
+
r"""The desired amount of the second token to deposit"""
|
|
105
|
+
|
|
106
|
+
amount0_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount0Min
|
|
107
|
+
r"""The minimum amount of the first token to deposit"""
|
|
108
|
+
|
|
109
|
+
amount1_min: AerodromeSlipstreamIncreaseLiquidityProvisionParamsAmount1Min
|
|
110
|
+
r"""The minimum amount of the second token to deposit"""
|