compass_api_sdk 1.2.2__py3-none-any.whl → 1.2.3rc0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of compass_api_sdk might be problematic. Click here for more details.

Files changed (100) hide show
  1. compass_api_sdk/_version.py +3 -3
  2. compass_api_sdk/aave_v3.py +60 -60
  3. compass_api_sdk/aerodrome_slipstream.py +22 -22
  4. compass_api_sdk/erc_4626_vaults.py +8 -8
  5. compass_api_sdk/errors/apierror.py +1 -1
  6. compass_api_sdk/errors/compassapierror.py +1 -1
  7. compass_api_sdk/errors/httpvalidationerror.py +1 -1
  8. compass_api_sdk/errors/no_response_error.py +1 -1
  9. compass_api_sdk/errors/responsevalidationerror.py +1 -1
  10. compass_api_sdk/ethena.py +8 -8
  11. compass_api_sdk/models/__init__.py +5 -5
  12. compass_api_sdk/models/aaveborrowrequest.py +1 -1
  13. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +3 -3
  14. compass_api_sdk/models/aavelooprequest.py +2 -2
  15. compass_api_sdk/models/aaverepayrequest.py +1 -1
  16. compass_api_sdk/models/aavesupplyrequest.py +1 -1
  17. compass_api_sdk/models/aavewithdrawrequest.py +1 -1
  18. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +1 -1
  19. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +1 -1
  20. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +1 -1
  21. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +1 -1
  22. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +1 -1
  23. compass_api_sdk/models/batcheduseroperationsrequest.py +1 -1
  24. compass_api_sdk/models/ethenadepositrequest.py +1 -1
  25. compass_api_sdk/models/ethenarequesttowithdrawrequest.py +1 -1
  26. compass_api_sdk/models/ethenaunstakerequest.py +1 -1
  27. compass_api_sdk/models/morphoborrowrequest.py +1 -1
  28. compass_api_sdk/models/morphodepositrequest.py +1 -1
  29. compass_api_sdk/models/morphorepayrequest.py +1 -1
  30. compass_api_sdk/models/morphosupplycollateralrequest.py +1 -1
  31. compass_api_sdk/models/morphowithdrawcollateralrequest.py +1 -1
  32. compass_api_sdk/models/morphowithdrawrequest.py +1 -1
  33. compass_api_sdk/models/multicallexecuterequest.py +1 -1
  34. compass_api_sdk/models/odosswaprequest.py +1 -1
  35. compass_api_sdk/models/pendlemanageliquidityrequest.py +1 -1
  36. compass_api_sdk/models/pendleredeemyieldrequest.py +1 -1
  37. compass_api_sdk/models/pendletradeptrequest.py +1 -1
  38. compass_api_sdk/models/pendletradeytrequest.py +1 -1
  39. compass_api_sdk/models/setallowancerequest.py +1 -1
  40. compass_api_sdk/models/skybuyrequest.py +1 -1
  41. compass_api_sdk/models/skydepositrequest.py +2 -2
  42. compass_api_sdk/models/skysellrequest.py +1 -1
  43. compass_api_sdk/models/skywithdrawrequest.py +2 -2
  44. compass_api_sdk/models/tokentransferrequest.py +1 -1
  45. compass_api_sdk/models/uniswapbuyexactlyrequest.py +1 -1
  46. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +1 -1
  47. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +1 -1
  48. compass_api_sdk/models/uniswapsellexactlyrequest.py +1 -1
  49. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +1 -1
  50. compass_api_sdk/models/unwrapwethrequest.py +1 -1
  51. compass_api_sdk/models/v1_aave_aave_supported_tokensop.py +1 -1
  52. compass_api_sdk/models/v1_aave_avg_rateop.py +11 -11
  53. compass_api_sdk/models/v1_aave_historical_transactionsop.py +15 -15
  54. compass_api_sdk/models/v1_aave_liquidity_changeop.py +4 -4
  55. compass_api_sdk/models/v1_aave_rateop.py +8 -8
  56. compass_api_sdk/models/v1_aave_reserve_overviewop.py +8 -8
  57. compass_api_sdk/models/v1_aave_std_rateop.py +11 -11
  58. compass_api_sdk/models/v1_aave_token_priceop.py +8 -8
  59. compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +11 -11
  60. compass_api_sdk/models/v1_aave_user_position_summaryop.py +8 -8
  61. compass_api_sdk/models/v1_aerodrome_slipstream_liquidity_provision_positionsop.py +2 -2
  62. compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +4 -4
  63. compass_api_sdk/models/v1_ethena_vaultop.py +1 -1
  64. compass_api_sdk/models/v1_generic_allowanceop.py +14 -14
  65. compass_api_sdk/models/v1_generic_ensop.py +2 -2
  66. compass_api_sdk/models/v1_generic_portfolioop.py +2 -2
  67. compass_api_sdk/models/v1_morpho_market_positionop.py +3 -3
  68. compass_api_sdk/models/v1_morpho_marketop.py +2 -2
  69. compass_api_sdk/models/v1_morpho_marketsop.py +1 -1
  70. compass_api_sdk/models/v1_morpho_user_positionop.py +2 -2
  71. compass_api_sdk/models/v1_morpho_vaultop.py +8 -8
  72. compass_api_sdk/models/v1_morpho_vaultsop.py +1 -1
  73. compass_api_sdk/models/v1_pendle_marketop.py +8 -8
  74. compass_api_sdk/models/v1_pendle_marketsop.py +1 -1
  75. compass_api_sdk/models/v1_pendle_positionsop.py +2 -2
  76. compass_api_sdk/models/v1_sky_positionop.py +2 -2
  77. compass_api_sdk/models/v1_token_balanceop.py +3 -3
  78. compass_api_sdk/models/v1_token_priceop.py +8 -8
  79. compass_api_sdk/models/v1_uniswap_liquidity_provision_in_rangeop.py +2 -2
  80. compass_api_sdk/models/v1_uniswap_liquidity_provision_positionsop.py +2 -2
  81. compass_api_sdk/models/v1_uniswap_pool_priceop.py +4 -4
  82. compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +12 -12
  83. compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +12 -12
  84. compass_api_sdk/models/v1_vaults_vaultop.py +8 -8
  85. compass_api_sdk/models/vaultdepositrequest.py +1 -1
  86. compass_api_sdk/models/vaultwithdrawrequest.py +1 -1
  87. compass_api_sdk/models/{redeemunderlying.py → withdraw.py} +2 -2
  88. compass_api_sdk/models/wrapethrequest.py +1 -1
  89. compass_api_sdk/morpho.py +34 -34
  90. compass_api_sdk/pendle.py +18 -18
  91. compass_api_sdk/sky.py +16 -24
  92. compass_api_sdk/smart_account.py +2 -2
  93. compass_api_sdk/swap.py +2 -2
  94. compass_api_sdk/token.py +12 -12
  95. compass_api_sdk/transaction_bundler.py +6 -6
  96. compass_api_sdk/uniswap_v3.py +42 -42
  97. compass_api_sdk/universal.py +20 -20
  98. {compass_api_sdk-1.2.2.dist-info → compass_api_sdk-1.2.3rc0.dist-info}/METADATA +8 -8
  99. {compass_api_sdk-1.2.2.dist-info → compass_api_sdk-1.2.3rc0.dist-info}/RECORD +100 -100
  100. {compass_api_sdk-1.2.2.dist-info → compass_api_sdk-1.2.3rc0.dist-info}/WHEEL +0 -0
@@ -549,7 +549,6 @@ if TYPE_CHECKING:
549
549
  from .portfolio import Portfolio, PortfolioTypedDict
550
550
  from .position import Position, PositionTypedDict
551
551
  from .protocol import Protocol
552
- from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
553
552
  from .repay import Repay, RepayTypedDict
554
553
  from .reserve import Reserve, ReserveTypedDict
555
554
  from .security import Security, SecurityTypedDict
@@ -1037,6 +1036,7 @@ if TYPE_CHECKING:
1037
1036
  VaultWithdrawRequestTypedDict,
1038
1037
  )
1039
1038
  from .weeklyapys import WeeklyApys, WeeklyApysTypedDict
1039
+ from .withdraw import Withdraw, WithdrawTypedDict
1040
1040
  from .wrapethparams import (
1041
1041
  WrapEthParams,
1042
1042
  WrapEthParamsAmount,
@@ -1447,8 +1447,6 @@ __all__ = [
1447
1447
  "Protocol",
1448
1448
  "R",
1449
1449
  "RTypedDict",
1450
- "RedeemUnderlying",
1451
- "RedeemUnderlyingTypedDict",
1452
1450
  "Repay",
1453
1451
  "RepayTypedDict",
1454
1452
  "Reserve",
@@ -1789,6 +1787,8 @@ __all__ = [
1789
1787
  "VaultWithdrawRequestTypedDict",
1790
1788
  "WeeklyApys",
1791
1789
  "WeeklyApysTypedDict",
1790
+ "Withdraw",
1791
+ "WithdrawTypedDict",
1792
1792
  "WrapEthParams",
1793
1793
  "WrapEthParamsAmount",
1794
1794
  "WrapEthParamsAmountTypedDict",
@@ -2191,8 +2191,6 @@ _dynamic_imports: dict[str, str] = {
2191
2191
  "Position": ".position",
2192
2192
  "PositionTypedDict": ".position",
2193
2193
  "Protocol": ".protocol",
2194
- "RedeemUnderlying": ".redeemunderlying",
2195
- "RedeemUnderlyingTypedDict": ".redeemunderlying",
2196
2194
  "Repay": ".repay",
2197
2195
  "RepayTypedDict": ".repay",
2198
2196
  "Reserve": ".reserve",
@@ -2539,6 +2537,8 @@ _dynamic_imports: dict[str, str] = {
2539
2537
  "VaultWithdrawRequestTypedDict": ".vaultwithdrawrequest",
2540
2538
  "WeeklyApys": ".weeklyapys",
2541
2539
  "WeeklyApysTypedDict": ".weeklyapys",
2540
+ "Withdraw": ".withdraw",
2541
+ "WithdrawTypedDict": ".withdraw",
2542
2542
  "WrapEthParams": ".wrapethparams",
2543
2543
  "WrapEthParamsAmount": ".wrapethparams",
2544
2544
  "WrapEthParamsAmountTypedDict": ".wrapethparams",
@@ -83,7 +83,7 @@ class AaveBorrowRequest(BaseModel):
83
83
  on_behalf_of: OptionalNullable[str] = UNSET
84
84
  r"""The address on behalf of whom the supply is made"""
85
85
 
86
- estimate_gas: Optional[bool] = True
86
+ estimate_gas: Optional[bool] = None
87
87
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
88
88
 
89
89
  @model_serializer(mode="wrap")
@@ -3,11 +3,11 @@
3
3
  from __future__ import annotations
4
4
  from .borrow import Borrow, BorrowTypedDict
5
5
  from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
6
- from .redeemunderlying import RedeemUnderlying, RedeemUnderlyingTypedDict
7
6
  from .repay import Repay, RepayTypedDict
8
7
  from .supply import Supply, SupplyTypedDict
9
8
  from .swapborrowrate import SwapBorrowRate, SwapBorrowRateTypedDict
10
9
  from .usageascollateral import UsageAsCollateral, UsageAsCollateralTypedDict
10
+ from .withdraw import Withdraw, WithdrawTypedDict
11
11
  from compass_api_sdk.types import BaseModel
12
12
  from compass_api_sdk.utils import get_discriminator
13
13
  from pydantic import Discriminator, Tag
@@ -18,7 +18,7 @@ from typing_extensions import Annotated, TypeAliasType, TypedDict
18
18
  AaveHistoricalTransactionsResponseTransactionTypedDict = TypeAliasType(
19
19
  "AaveHistoricalTransactionsResponseTransactionTypedDict",
20
20
  Union[
21
- RedeemUnderlyingTypedDict,
21
+ WithdrawTypedDict,
22
22
  RepayTypedDict,
23
23
  SupplyTypedDict,
24
24
  UsageAsCollateralTypedDict,
@@ -33,7 +33,7 @@ AaveHistoricalTransactionsResponseTransaction = Annotated[
33
33
  Union[
34
34
  Annotated[Borrow, Tag("Borrow")],
35
35
  Annotated[LiquidationCall, Tag("LiquidationCall")],
36
- Annotated[RedeemUnderlying, Tag("RedeemUnderlying")],
36
+ Annotated[Withdraw, Tag("Withdraw")],
37
37
  Annotated[Repay, Tag("Repay")],
38
38
  Annotated[Supply, Tag("Supply")],
39
39
  Annotated[SwapBorrowRate, Tag("SwapBorrowRate")],
@@ -109,13 +109,13 @@ class AaveLoopRequest(BaseModel):
109
109
  loan_to_value: LoanToValue
110
110
  r"""Loan To Value percentage of the loop"""
111
111
 
112
- estimate_gas: Optional[bool] = True
112
+ estimate_gas: Optional[bool] = None
113
113
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
114
114
 
115
115
  signed_authorization: OptionalNullable[SignedAuthorization] = UNSET
116
116
  r"""EIP-7702 authorization. Required when `is_account_abstraction` is False."""
117
117
 
118
- is_account_abstraction: Optional[bool] = False
118
+ is_account_abstraction: Optional[bool] = None
119
119
  r"""Whether to use account abstraction for the transaction."""
120
120
 
121
121
  @model_serializer(mode="wrap")
@@ -83,7 +83,7 @@ class AaveRepayRequest(BaseModel):
83
83
  on_behalf_of: OptionalNullable[str] = UNSET
84
84
  r"""The address on behalf of whom the supply is made"""
85
85
 
86
- estimate_gas: Optional[bool] = True
86
+ estimate_gas: Optional[bool] = None
87
87
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
88
88
 
89
89
  @model_serializer(mode="wrap")
@@ -71,7 +71,7 @@ class AaveSupplyRequest(BaseModel):
71
71
  on_behalf_of: OptionalNullable[str] = UNSET
72
72
  r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
73
73
 
74
- estimate_gas: Optional[bool] = True
74
+ estimate_gas: Optional[bool] = None
75
75
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
76
76
 
77
77
  @model_serializer(mode="wrap")
@@ -66,5 +66,5 @@ class AaveWithdrawRequest(BaseModel):
66
66
  pydantic.Field(alias="action_type"),
67
67
  ] = "AAVE_WITHDRAW"
68
68
 
69
- estimate_gas: Optional[bool] = True
69
+ estimate_gas: Optional[bool] = None
70
70
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -90,5 +90,5 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
90
90
  pydantic.Field(alias="action_type"),
91
91
  ] = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
92
92
 
93
- estimate_gas: Optional[bool] = True
93
+ estimate_gas: Optional[bool] = None
94
94
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -126,5 +126,5 @@ class AerodromeSlipstreamIncreaseLiquidityProvisionRequest(BaseModel):
126
126
  pydantic.Field(alias="action_type"),
127
127
  ] = "AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION"
128
128
 
129
- estimate_gas: Optional[bool] = True
129
+ estimate_gas: Optional[bool] = None
130
130
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -156,7 +156,7 @@ class AerodromeSlipstreamMintLiquidityProvisionRequest(BaseModel):
156
156
  recipient: OptionalNullable[str] = UNSET
157
157
  r"""The address that will receive the LP tokens"""
158
158
 
159
- estimate_gas: Optional[bool] = True
159
+ estimate_gas: Optional[bool] = None
160
160
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
161
161
 
162
162
  @model_serializer(mode="wrap")
@@ -94,5 +94,5 @@ class AerodromeSlipstreamSellExactlyRequest(BaseModel):
94
94
  ] = None
95
95
  r"""The minimum amount of the token to swap to, defaults to 0"""
96
96
 
97
- estimate_gas: Optional[bool] = True
97
+ estimate_gas: Optional[bool] = None
98
98
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -67,5 +67,5 @@ class AerodromeSlipstreamWithdrawLiquidityProvisionRequest(BaseModel):
67
67
  pydantic.Field(alias="action_type"),
68
68
  ] = "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION"
69
69
 
70
- estimate_gas: Optional[bool] = True
70
+ estimate_gas: Optional[bool] = None
71
71
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -43,5 +43,5 @@ class BatchedUserOperationsRequest(BaseModel):
43
43
  operations: List[UserOperation]
44
44
  r"""List of possible user operations"""
45
45
 
46
- estimate_gas: Optional[bool] = True
46
+ estimate_gas: Optional[bool] = None
47
47
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -66,7 +66,7 @@ class EthenaDepositRequest(BaseModel):
66
66
  receiver: OptionalNullable[str] = UNSET
67
67
  r"""The address which will receive the shares (sUSDe) from Ethena's vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
68
68
 
69
- estimate_gas: Optional[bool] = True
69
+ estimate_gas: Optional[bool] = None
70
70
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
71
71
 
72
72
  @model_serializer(mode="wrap")
@@ -42,5 +42,5 @@ class EthenaRequestToWithdrawRequest(BaseModel):
42
42
  pydantic.Field(alias="action_type"),
43
43
  ] = "ETHENA_REQUEST_WITHDRAW"
44
44
 
45
- estimate_gas: Optional[bool] = True
45
+ estimate_gas: Optional[bool] = None
46
46
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -49,7 +49,7 @@ class EthenaUnstakeRequest(BaseModel):
49
49
  receiver: OptionalNullable[str] = UNSET
50
50
  r"""The address which will receive the unstaked USDe. Defaults to the sender."""
51
51
 
52
- estimate_gas: Optional[bool] = True
52
+ estimate_gas: Optional[bool] = None
53
53
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
54
54
 
55
55
  @model_serializer(mode="wrap")
@@ -78,7 +78,7 @@ class MorphoBorrowRequest(BaseModel):
78
78
  receiver: OptionalNullable[str] = UNSET
79
79
  r"""The address of the receiver of the tokens borrowed. Defaults to the transaction sender."""
80
80
 
81
- estimate_gas: Optional[bool] = True
81
+ estimate_gas: Optional[bool] = None
82
82
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
83
83
 
84
84
  @model_serializer(mode="wrap")
@@ -73,7 +73,7 @@ class MorphoDepositRequest(BaseModel):
73
73
  receiver: OptionalNullable[str] = UNSET
74
74
  r"""The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
75
75
 
76
- estimate_gas: Optional[bool] = True
76
+ estimate_gas: Optional[bool] = None
77
77
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
78
78
 
79
79
  @model_serializer(mode="wrap")
@@ -66,7 +66,7 @@ class MorphoRepayRequest(BaseModel):
66
66
  callback_data: OptionalNullable[bytes] = UNSET
67
67
  r"""An optional field for callback byte data that will be triggered upon successful repaying of debt."""
68
68
 
69
- estimate_gas: Optional[bool] = True
69
+ estimate_gas: Optional[bool] = None
70
70
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
71
71
 
72
72
  @model_serializer(mode="wrap")
@@ -78,7 +78,7 @@ class MorphoSupplyCollateralRequest(BaseModel):
78
78
  callback_data: OptionalNullable[bytes] = UNSET
79
79
  r"""An optional field for callback byte data that will be triggered upon successful supplying of collateral."""
80
80
 
81
- estimate_gas: Optional[bool] = True
81
+ estimate_gas: Optional[bool] = None
82
82
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
83
83
 
84
84
  @model_serializer(mode="wrap")
@@ -78,7 +78,7 @@ class MorphoWithdrawCollateralRequest(BaseModel):
78
78
  receiver: OptionalNullable[str] = UNSET
79
79
  r"""The address where the withdrawn collateral will be received. Defaults to sender."""
80
80
 
81
- estimate_gas: Optional[bool] = True
81
+ estimate_gas: Optional[bool] = None
82
82
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
83
83
 
84
84
  @model_serializer(mode="wrap")
@@ -61,7 +61,7 @@ class MorphoWithdrawRequest(BaseModel):
61
61
  receiver: OptionalNullable[str] = UNSET
62
62
  r"""The address which will receive the tokens withdrawn. Defaults to the sender."""
63
63
 
64
- estimate_gas: Optional[bool] = True
64
+ estimate_gas: Optional[bool] = None
65
65
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
66
66
 
67
67
  @model_serializer(mode="wrap")
@@ -47,7 +47,7 @@ class MulticallExecuteRequest(BaseModel):
47
47
  actions: List[UserOperation]
48
48
  r"""List of possible actions for multicall"""
49
49
 
50
- estimate_gas: Optional[bool] = True
50
+ estimate_gas: Optional[bool] = None
51
51
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
52
52
 
53
53
  signed_authorization: OptionalNullable[SignedAuthorization] = UNSET
@@ -68,5 +68,5 @@ class OdosSwapRequest(BaseModel):
68
68
  pydantic.Field(alias="action_type"),
69
69
  ] = "ODOS_SWAP"
70
70
 
71
- estimate_gas: Optional[bool] = True
71
+ estimate_gas: Optional[bool] = None
72
72
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -83,5 +83,5 @@ class PendleManageLiquidityRequest(BaseModel):
83
83
  pydantic.Field(alias="action_type"),
84
84
  ] = "PENDLE_MANAGE_LIQUIDITY"
85
85
 
86
- estimate_gas: Optional[bool] = True
86
+ estimate_gas: Optional[bool] = None
87
87
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -44,5 +44,5 @@ class PendleRedeemYieldRequest(BaseModel):
44
44
  pydantic.Field(alias="action_type"),
45
45
  ] = "PENDLE_REDEEM_YIELD"
46
46
 
47
- estimate_gas: Optional[bool] = True
47
+ estimate_gas: Optional[bool] = None
48
48
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -83,5 +83,5 @@ class PendleTradePtRequest(BaseModel):
83
83
  pydantic.Field(alias="action_type"),
84
84
  ] = "PENDLE_TRADE_PT"
85
85
 
86
- estimate_gas: Optional[bool] = True
86
+ estimate_gas: Optional[bool] = None
87
87
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -83,5 +83,5 @@ class PendleTradeYtRequest(BaseModel):
83
83
  pydantic.Field(alias="action_type"),
84
84
  ] = "PENDLE_TRADE_YT"
85
85
 
86
- estimate_gas: Optional[bool] = True
86
+ estimate_gas: Optional[bool] = None
87
87
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -101,5 +101,5 @@ class SetAllowanceRequest(BaseModel):
101
101
  pydantic.Field(alias="action_type"),
102
102
  ] = "SET_ALLOWANCE"
103
103
 
104
- estimate_gas: Optional[bool] = True
104
+ estimate_gas: Optional[bool] = None
105
105
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -63,5 +63,5 @@ class SkyBuyRequest(BaseModel):
63
63
  pydantic.Field(alias="action_type"),
64
64
  ] = "SKY_BUY"
65
65
 
66
- estimate_gas: Optional[bool] = True
66
+ estimate_gas: Optional[bool] = None
67
67
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -62,9 +62,9 @@ class SkyDepositRequest(BaseModel):
62
62
  receiver: OptionalNullable[str] = UNSET
63
63
  r"""The address which will receive the sUSDS. Defaults to the sender."""
64
64
 
65
- chain: Optional[SkyDepositRequestChain] = SkyDepositRequestChain.ETHEREUM
65
+ chain: Optional[SkyDepositRequestChain] = None
66
66
 
67
- estimate_gas: Optional[bool] = True
67
+ estimate_gas: Optional[bool] = None
68
68
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
69
69
 
70
70
  @model_serializer(mode="wrap")
@@ -63,5 +63,5 @@ class SkySellRequest(BaseModel):
63
63
  pydantic.Field(alias="action_type"),
64
64
  ] = "SKY_SELL"
65
65
 
66
- estimate_gas: Optional[bool] = True
66
+ estimate_gas: Optional[bool] = None
67
67
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -52,9 +52,9 @@ class SkyWithdrawRequest(BaseModel):
52
52
  receiver: OptionalNullable[str] = UNSET
53
53
  r"""The address which will receive the withdrawn USDS. Defaults to the sender."""
54
54
 
55
- chain: Optional[SkyWithdrawRequestChain] = SkyWithdrawRequestChain.ETHEREUM
55
+ chain: Optional[SkyWithdrawRequestChain] = None
56
56
 
57
- estimate_gas: Optional[bool] = True
57
+ estimate_gas: Optional[bool] = None
58
58
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
59
59
 
60
60
  @model_serializer(mode="wrap")
@@ -70,5 +70,5 @@ class TokenTransferRequest(BaseModel):
70
70
  pydantic.Field(alias="action_type"),
71
71
  ] = "TOKEN_TRANSFER"
72
72
 
73
- estimate_gas: Optional[bool] = True
73
+ estimate_gas: Optional[bool] = None
74
74
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -87,5 +87,5 @@ class UniswapBuyExactlyRequest(BaseModel):
87
87
  pydantic.Field(alias="action_type"),
88
88
  ] = "UNISWAP_BUY_EXACTLY"
89
89
 
90
- estimate_gas: Optional[bool] = True
90
+ estimate_gas: Optional[bool] = None
91
91
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -116,5 +116,5 @@ class UniswapIncreaseLiquidityProvisionRequest(BaseModel):
116
116
  pydantic.Field(alias="action_type"),
117
117
  ] = "UNISWAP_ADD_LIQUIDITY"
118
118
 
119
- estimate_gas: Optional[bool] = True
119
+ estimate_gas: Optional[bool] = None
120
120
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -155,7 +155,7 @@ class UniswapMintLiquidityProvisionRequest(BaseModel):
155
155
  recipient: OptionalNullable[str] = UNSET
156
156
  r"""The address that will receive the LP tokens"""
157
157
 
158
- estimate_gas: Optional[bool] = True
158
+ estimate_gas: Optional[bool] = None
159
159
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
160
160
 
161
161
  @model_serializer(mode="wrap")
@@ -87,5 +87,5 @@ class UniswapSellExactlyRequest(BaseModel):
87
87
  pydantic.Field(alias="action_type"),
88
88
  ] = "UNISWAP_SELL_EXACTLY"
89
89
 
90
- estimate_gas: Optional[bool] = True
90
+ estimate_gas: Optional[bool] = None
91
91
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -68,5 +68,5 @@ class UniswapWithdrawLiquidityProvisionRequest(BaseModel):
68
68
  pydantic.Field(alias="action_type"),
69
69
  ] = "UNISWAP_WITHDRAW_LIQUIDITY_PROVISION"
70
70
 
71
- estimate_gas: Optional[bool] = True
71
+ estimate_gas: Optional[bool] = None
72
72
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -58,5 +58,5 @@ class UnwrapWethRequest(BaseModel):
58
58
  pydantic.Field(alias="action_type"),
59
59
  ] = "UNWRAP_WETH"
60
60
 
61
- estimate_gas: Optional[bool] = True
61
+ estimate_gas: Optional[bool] = None
62
62
  r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
@@ -30,7 +30,7 @@ class V1AaveAaveSupportedTokensRequest(BaseModel):
30
30
  chain: Annotated[
31
31
  V1AaveAaveSupportedTokensChain,
32
32
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
33
- ] = V1AaveAaveSupportedTokensChain.ARBITRUM
33
+ ]
34
34
 
35
35
  block: Annotated[
36
36
  OptionalNullable[int],
@@ -22,36 +22,36 @@ class V1AaveAvgRateChain(str, Enum):
22
22
 
23
23
  class V1AaveAvgRateRequestTypedDict(TypedDict):
24
24
  chain: V1AaveAvgRateChain
25
- block: NotRequired[Nullable[int]]
26
- r"""Optional block number (defaults to latest)."""
27
25
  token: str
28
26
  r"""The symbol or address of the token.."""
29
27
  days: int
30
28
  r"""The number of days for which the average shall be calculated."""
29
+ block: NotRequired[Nullable[int]]
30
+ r"""Optional block number (defaults to latest)."""
31
31
 
32
32
 
33
33
  class V1AaveAvgRateRequest(BaseModel):
34
34
  chain: Annotated[
35
35
  V1AaveAvgRateChain,
36
36
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
37
- ] = V1AaveAvgRateChain.ETHEREUM
38
-
39
- block: Annotated[
40
- OptionalNullable[int],
41
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
42
- ] = UNSET
43
- r"""Optional block number (defaults to latest)."""
37
+ ]
44
38
 
45
39
  token: Annotated[
46
40
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
47
- ] = "USDC"
41
+ ]
48
42
  r"""The symbol or address of the token.."""
49
43
 
50
44
  days: Annotated[
51
45
  int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
52
- ] = 2
46
+ ]
53
47
  r"""The number of days for which the average shall be calculated."""
54
48
 
49
+ block: Annotated[
50
+ OptionalNullable[int],
51
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
52
+ ] = UNSET
53
+ r"""Optional block number (defaults to latest)."""
54
+
55
55
  @model_serializer(mode="wrap")
56
56
  def serialize_model(self, handler):
57
57
  optional_fields = ["block"]
@@ -15,34 +15,34 @@ class V1AaveHistoricalTransactionsChain(str, Enum):
15
15
 
16
16
 
17
17
  class V1AaveHistoricalTransactionsRequestTypedDict(TypedDict):
18
+ chain: V1AaveHistoricalTransactionsChain
19
+ user_address: str
20
+ r"""The address of the user to get historical transactions for."""
18
21
  offset: NotRequired[int]
19
22
  r"""The offset of the first item to return."""
20
23
  limit: NotRequired[int]
21
24
  r"""The number of items to return."""
22
- chain: V1AaveHistoricalTransactionsChain
23
- user_address: str
24
- r"""The address of the user to get historical transactions for."""
25
25
 
26
26
 
27
27
  class V1AaveHistoricalTransactionsRequest(BaseModel):
28
+ chain: Annotated[
29
+ V1AaveHistoricalTransactionsChain,
30
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
31
+ ]
32
+
33
+ user_address: Annotated[
34
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
35
+ ]
36
+ r"""The address of the user to get historical transactions for."""
37
+
28
38
  offset: Annotated[
29
39
  Optional[int],
30
40
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
31
- ] = 0
41
+ ] = None
32
42
  r"""The offset of the first item to return."""
33
43
 
34
44
  limit: Annotated[
35
45
  Optional[int],
36
46
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
37
- ] = 100
47
+ ] = None
38
48
  r"""The number of items to return."""
39
-
40
- chain: Annotated[
41
- V1AaveHistoricalTransactionsChain,
42
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
43
- ] = V1AaveHistoricalTransactionsChain.BASE
44
-
45
- user_address: Annotated[
46
- str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
47
- ] = "0x3254f3b1918637ba924e3F18968Cb74219974b63"
48
- r"""The address of the user to get historical transactions for."""
@@ -27,19 +27,19 @@ class V1AaveLiquidityChangeRequest(BaseModel):
27
27
  chain: Annotated[
28
28
  V1AaveLiquidityChangeChain,
29
29
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
30
- ] = V1AaveLiquidityChangeChain.ARBITRUM
30
+ ]
31
31
 
32
32
  token: Annotated[
33
33
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
34
- ] = "USDC"
34
+ ]
35
35
  r"""The symbol or address of the asset to get liquidity change for.."""
36
36
 
37
37
  start_block: Annotated[
38
38
  int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
39
- ] = 0
39
+ ]
40
40
  r"""The start block to calculate liquidity change from."""
41
41
 
42
42
  end_block: Annotated[
43
43
  int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
44
- ] = 319407231
44
+ ]
45
45
  r"""The end block to calculate liquidity change to."""
@@ -22,17 +22,22 @@ class V1AaveRateChain(str, Enum):
22
22
 
23
23
  class V1AaveRateRequestTypedDict(TypedDict):
24
24
  chain: V1AaveRateChain
25
- block: NotRequired[Nullable[int]]
26
- r"""Optional block number (defaults to latest)."""
27
25
  token: str
28
26
  r"""The symbol or address of the token to fetch the user's position on.."""
27
+ block: NotRequired[Nullable[int]]
28
+ r"""Optional block number (defaults to latest)."""
29
29
 
30
30
 
31
31
  class V1AaveRateRequest(BaseModel):
32
32
  chain: Annotated[
33
33
  V1AaveRateChain,
34
34
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
35
- ] = V1AaveRateChain.ARBITRUM
35
+ ]
36
+
37
+ token: Annotated[
38
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
39
+ ]
40
+ r"""The symbol or address of the token to fetch the user's position on.."""
36
41
 
37
42
  block: Annotated[
38
43
  OptionalNullable[int],
@@ -40,11 +45,6 @@ class V1AaveRateRequest(BaseModel):
40
45
  ] = UNSET
41
46
  r"""Optional block number (defaults to latest)."""
42
47
 
43
- token: Annotated[
44
- str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
45
- ] = "USDC"
46
- r"""The symbol or address of the token to fetch the user's position on.."""
47
-
48
48
  @model_serializer(mode="wrap")
49
49
  def serialize_model(self, handler):
50
50
  optional_fields = ["block"]