compass_api_sdk 0.1.0__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.1.0.dist-info → compass_api_sdk-0.1.1.dist-info}/METADATA +40 -39
- compass_api_sdk-0.1.1.dist-info/RECORD +165 -0
- {compass_api_sdk → compassapisdk}/_hooks/sdkhooks.py +1 -1
- {compass_api_sdk → compassapisdk}/_hooks/types.py +1 -1
- {compass_api_sdk → compassapisdk}/_version.py +2 -2
- {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.1.0.dist-info/RECORD +0 -137
- {compass_api_sdk-0.1.0.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}/_hooks/__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,135 @@
|
|
|
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
|
+
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
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from enum import Enum
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ContractName(str, Enum):
|
|
8
|
+
r"""Select the protocol.
|
|
9
|
+
|
|
10
|
+
E.g. for increasing ERC-20 allowance.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
AAVE_V3_POOL = "AaveV3Pool"
|
|
14
|
+
AAVE_V3_ORACLE = "AaveV3Oracle"
|
|
15
|
+
AAVE_V3_PROTOCOL_DATA_PROVIDER = "AaveV3ProtocolDataProvider"
|
|
16
|
+
AERODROME_BASIC_FACTORY = "AerodromeBasicFactory"
|
|
17
|
+
AERODROME_SLIPSTREAM_FACTORY = "AerodromeSlipstreamFactory"
|
|
18
|
+
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
19
|
+
AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
|
|
20
|
+
AERODROME_BASIC_POOL = "AerodromeBasicPool"
|
|
21
|
+
AERODROME_SLIPSTREAM_POOL = "AerodromeSlipstreamPool"
|
|
22
|
+
AERODROME_SLIPSTREAM_NONFUNGIBLE_POSITION_MANAGER = (
|
|
23
|
+
"AerodromeSlipstreamNonfungiblePositionManager"
|
|
24
|
+
)
|
|
25
|
+
UNISWAP_V3_POOL = "UniswapV3Pool"
|
|
26
|
+
UNISWAP_V3_ROUTER = "UniswapV3Router"
|
|
27
|
+
UNISWAP_V3_FACTORY = "UniswapV3Factory"
|
|
28
|
+
UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
|
|
29
|
+
UNISWAP_V3_QUOTER = "UniswapV3Quoter"
|
|
30
|
+
CHAINLINK_EAC_AGGREGATOR_PROXY = "ChainlinkEACAggregatorProxy"
|
|
31
|
+
MORPHO = "Morpho"
|
|
32
|
+
MORPHO_VAULT = "MorphoVault"
|
|
33
|
+
MORPHO_ORACLE = "MorphoOracle"
|
|
34
|
+
MULTICALL = "Multicall"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .contractname import ContractName
|
|
5
|
+
from .token_enum import TokenEnum
|
|
6
|
+
from compassapisdk.types import BaseModel
|
|
7
|
+
from typing import Union
|
|
8
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
IncreaseAllowanceAnyParamsAmountTypedDict = TypeAliasType(
|
|
12
|
+
"IncreaseAllowanceAnyParamsAmountTypedDict", Union[float, str]
|
|
13
|
+
)
|
|
14
|
+
r"""The amount of tokens to increase the allowance by."""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
IncreaseAllowanceAnyParamsAmount = TypeAliasType(
|
|
18
|
+
"IncreaseAllowanceAnyParamsAmount", Union[float, str]
|
|
19
|
+
)
|
|
20
|
+
r"""The amount of tokens to increase the allowance by."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class IncreaseAllowanceAnyParamsTypedDict(TypedDict):
|
|
24
|
+
r"""Parameters model for increasing allowance for any arbitrary ERC20 token
|
|
25
|
+
address.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
token: TokenEnum
|
|
29
|
+
r"""A class representing the token.
|
|
30
|
+
|
|
31
|
+
This class is used to represent the token in the system. Notice individual
|
|
32
|
+
endpoints' documentation where per chain tokens are presented.
|
|
33
|
+
"""
|
|
34
|
+
contract_name: ContractName
|
|
35
|
+
r"""Select the protocol.
|
|
36
|
+
|
|
37
|
+
E.g. for increasing ERC-20 allowance.
|
|
38
|
+
"""
|
|
39
|
+
amount: IncreaseAllowanceAnyParamsAmountTypedDict
|
|
40
|
+
r"""The amount of tokens to increase the allowance by."""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class IncreaseAllowanceAnyParams(BaseModel):
|
|
44
|
+
r"""Parameters model for increasing allowance for any arbitrary ERC20 token
|
|
45
|
+
address.
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
token: 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
|
+
|
|
55
|
+
contract_name: ContractName
|
|
56
|
+
r"""Select the protocol.
|
|
57
|
+
|
|
58
|
+
E.g. for increasing ERC-20 allowance.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
amount: IncreaseAllowanceAnyParamsAmount
|
|
62
|
+
r"""The amount of tokens to increase the allowance by."""
|
|
@@ -0,0 +1,66 @@
|
|
|
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 enum import Enum
|
|
7
|
+
from typing import Union
|
|
8
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class IncreaseAllowanceParamsContractName(str, Enum):
|
|
12
|
+
r"""The name of the contract to increase allowance for."""
|
|
13
|
+
|
|
14
|
+
AAVE_V3_POOL = "AaveV3Pool"
|
|
15
|
+
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
16
|
+
AERODROME_SLIPSTREAM_ROUTER = "AerodromeSlipstreamRouter"
|
|
17
|
+
AERODROME_SLIPSTREAM_NONFUNGIBLE_POSITION_MANAGER = (
|
|
18
|
+
"AerodromeSlipstreamNonfungiblePositionManager"
|
|
19
|
+
)
|
|
20
|
+
UNISWAP_V3_ROUTER = "UniswapV3Router"
|
|
21
|
+
UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
|
|
22
|
+
MORPHO = "Morpho"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
IncreaseAllowanceParamsAmountTypedDict = TypeAliasType(
|
|
26
|
+
"IncreaseAllowanceParamsAmountTypedDict", Union[float, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The amount of tokens to increase the allowance by."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
IncreaseAllowanceParamsAmount = TypeAliasType(
|
|
32
|
+
"IncreaseAllowanceParamsAmount", Union[float, str]
|
|
33
|
+
)
|
|
34
|
+
r"""The amount of tokens to increase the allowance by."""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class IncreaseAllowanceParamsTypedDict(TypedDict):
|
|
38
|
+
r"""Parameters model for increasing token allowance for a contract."""
|
|
39
|
+
|
|
40
|
+
token: TokenEnum
|
|
41
|
+
r"""A class representing the token.
|
|
42
|
+
|
|
43
|
+
This class is used to represent the token in the system. Notice individual
|
|
44
|
+
endpoints' documentation where per chain tokens are presented.
|
|
45
|
+
"""
|
|
46
|
+
contract_name: IncreaseAllowanceParamsContractName
|
|
47
|
+
r"""The name of the contract to increase allowance for."""
|
|
48
|
+
amount: IncreaseAllowanceParamsAmountTypedDict
|
|
49
|
+
r"""The amount of tokens to increase the allowance by."""
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class IncreaseAllowanceParams(BaseModel):
|
|
53
|
+
r"""Parameters model for increasing token allowance for a contract."""
|
|
54
|
+
|
|
55
|
+
token: TokenEnum
|
|
56
|
+
r"""A class representing the token.
|
|
57
|
+
|
|
58
|
+
This class is used to represent the token in the system. Notice individual
|
|
59
|
+
endpoints' documentation where per chain tokens are presented.
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
contract_name: IncreaseAllowanceParamsContractName
|
|
63
|
+
r"""The name of the contract to increase allowance for."""
|
|
64
|
+
|
|
65
|
+
amount: IncreaseAllowanceParamsAmount
|
|
66
|
+
r"""The amount of tokens to increase the allowance by."""
|
|
@@ -3,13 +3,13 @@
|
|
|
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 enum import Enum
|
|
8
8
|
from typing import Union
|
|
9
9
|
from typing_extensions import TypeAliasType, TypedDict
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class IncreaseAllowanceRequestContractName(str, Enum):
|
|
13
13
|
r"""The name of the contract to increase allowance for."""
|
|
14
14
|
|
|
15
15
|
AAVE_V3_POOL = "AaveV3Pool"
|
|
@@ -44,7 +44,7 @@ class IncreaseAllowanceRequestTypedDict(TypedDict):
|
|
|
44
44
|
This class is used to represent the token in the system. Notice individual
|
|
45
45
|
endpoints' documentation where per chain tokens are presented.
|
|
46
46
|
"""
|
|
47
|
-
contract_name:
|
|
47
|
+
contract_name: IncreaseAllowanceRequestContractName
|
|
48
48
|
r"""The name of the contract to increase allowance for."""
|
|
49
49
|
amount: IncreaseAllowanceRequestAmountTypedDict
|
|
50
50
|
r"""The amount of tokens to increase the allowance by."""
|
|
@@ -64,7 +64,7 @@ class IncreaseAllowanceRequest(BaseModel):
|
|
|
64
64
|
endpoints' documentation where per chain tokens are presented.
|
|
65
65
|
"""
|
|
66
66
|
|
|
67
|
-
contract_name:
|
|
67
|
+
contract_name: IncreaseAllowanceRequestContractName
|
|
68
68
|
r"""The name of the contract to increase allowance for."""
|
|
69
69
|
|
|
70
70
|
amount: IncreaseAllowanceRequestAmount
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
5
|
import pydantic
|
|
6
6
|
from typing_extensions import Annotated, TypedDict
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from compassapisdk.types import (
|
|
5
5
|
BaseModel,
|
|
6
6
|
Nullable,
|
|
7
7
|
OptionalNullable,
|
|
8
8
|
UNSET,
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
)
|
|
11
|
-
from
|
|
11
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
12
12
|
from enum import Enum
|
|
13
13
|
from pydantic import model_serializer
|
|
14
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from compassapisdk.types import BaseModel, Nullable, UNSET_SENTINEL
|
|
5
|
+
from compassapisdk.utils import FieldMetadata, QueryParamMetadata
|
|
6
6
|
from enum import Enum
|
|
7
7
|
from pydantic import model_serializer
|
|
8
8
|
from typing_extensions import Annotated, TypedDict
|
|
@@ -7,7 +7,7 @@ from .compass_api_backend_models_morpho_read_response_get_markets_asset import (
|
|
|
7
7
|
)
|
|
8
8
|
from .marketstate import MarketState, MarketStateTypedDict
|
|
9
9
|
from .weeklyapys import WeeklyApys, WeeklyApysTypedDict
|
|
10
|
-
from
|
|
10
|
+
from compassapisdk.types import BaseModel, Nullable, UNSET_SENTINEL
|
|
11
11
|
import pydantic
|
|
12
12
|
from pydantic import model_serializer
|
|
13
13
|
from typing_extensions import Annotated, TypedDict
|
|
@@ -7,7 +7,7 @@ from .compass_api_backend_models_morpho_read_response_get_vaults_asset import (
|
|
|
7
7
|
CompassAPIBackendModelsMorphoReadResponseGetVaultsAssetTypedDict,
|
|
8
8
|
)
|
|
9
9
|
from .vaultstate import VaultState, VaultStateTypedDict
|
|
10
|
-
from
|
|
10
|
+
from compassapisdk.types import BaseModel
|
|
11
11
|
import pydantic
|
|
12
12
|
from typing_extensions import Annotated, TypedDict
|
|
13
13
|
|