compass_api_sdk 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of compass_api_sdk might be problematic. Click here for more details.
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/aave_v3.py +8 -0
- compass_api_sdk/ethena.py +880 -0
- compass_api_sdk/models/__init__.py +143 -28
- compass_api_sdk/models/bundlertransactionresponse.py +17 -0
- compass_api_sdk/models/compass_api_backend_models_vaults_read_response_vault_userposition.py +8 -4
- compass_api_sdk/models/cooldownposition.py +35 -0
- compass_api_sdk/models/ethenadepositparams.py +82 -0
- compass_api_sdk/models/ethenadepositrequest.py +95 -0
- compass_api_sdk/models/ethenagetvaultresponse.py +109 -0
- compass_api_sdk/models/ethenarequesttowithdrawparams.py +28 -0
- compass_api_sdk/models/ethenarequesttowithdrawrequest.py +41 -0
- compass_api_sdk/models/ethenarequesttowithdrawtransactionresponse.py +37 -0
- compass_api_sdk/models/ethenawithdrawparams.py +70 -0
- compass_api_sdk/models/ethenawithdrawrequest.py +83 -0
- compass_api_sdk/models/odostransactionresponse.py +37 -0
- compass_api_sdk/models/pendletxresponse.py +2 -11
- compass_api_sdk/models/setallowanceparams.py +1 -0
- compass_api_sdk/models/setallowancerequest.py +1 -0
- compass_api_sdk/models/token_enum.py +31 -25
- compass_api_sdk/models/tokentransferparams.py +21 -21
- compass_api_sdk/models/tokentransferrequest.py +21 -21
- compass_api_sdk/models/transactionresponse.py +2 -11
- compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_asset.py → underlyingtoken.py} +2 -2
- compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +2 -10
- compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +2 -10
- compass_api_sdk/models/useroperation.py +25 -19
- compass_api_sdk/models/v1_aave_avg_rateop.py +31 -25
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +31 -25
- compass_api_sdk/models/v1_aave_rateop.py +31 -25
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +31 -25
- compass_api_sdk/models/v1_aave_std_rateop.py +31 -25
- compass_api_sdk/models/v1_aave_token_priceop.py +31 -25
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +31 -25
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +62 -50
- compass_api_sdk/models/v1_ethena_vaultop.py +75 -0
- compass_api_sdk/models/v1_generic_allowanceop.py +1 -0
- compass_api_sdk/models/v1_token_addressop.py +31 -25
- compass_api_sdk/models/v1_token_priceop.py +4 -16
- compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +6 -3
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +62 -50
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +62 -50
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +62 -50
- compass_api_sdk/models/vaultgetvaultresponse.py +3 -6
- compass_api_sdk/sdk.py +3 -0
- compass_api_sdk/swap.py +4 -4
- compass_api_sdk/token_sdk.py +20 -20
- compass_api_sdk/transaction_bundler.py +4 -4
- {compass_api_sdk-1.0.0.dist-info → compass_api_sdk-1.0.1.dist-info}/METADATA +150 -135
- {compass_api_sdk-1.0.0.dist-info → compass_api_sdk-1.0.1.dist-info}/RECORD +51 -39
- compass_api_sdk/models/tokentransfererc20params.py +0 -63
- {compass_api_sdk-1.0.0.dist-info → compass_api_sdk-1.0.1.dist-info}/WHEEL +0 -0
|
@@ -228,6 +228,10 @@ if TYPE_CHECKING:
|
|
|
228
228
|
BatchedUserOperationsResponseTypedDict,
|
|
229
229
|
)
|
|
230
230
|
from .borrow import Borrow, BorrowTypedDict, Borrowratemode
|
|
231
|
+
from .bundlertransactionresponse import (
|
|
232
|
+
BundlerTransactionResponse,
|
|
233
|
+
BundlerTransactionResponseTypedDict,
|
|
234
|
+
)
|
|
231
235
|
from .chain import Chain
|
|
232
236
|
from .chaininfo import ChainInfo, ChainInfoTypedDict
|
|
233
237
|
from .compass_api_backend_models_generic_read_response_portfolio_tokenbalance import (
|
|
@@ -286,17 +290,60 @@ if TYPE_CHECKING:
|
|
|
286
290
|
CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance,
|
|
287
291
|
CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict,
|
|
288
292
|
)
|
|
289
|
-
from .compass_api_backend_models_vaults_read_response_vault_asset import (
|
|
290
|
-
CompassAPIBackendModelsVaultsReadResponseVaultAsset,
|
|
291
|
-
CompassAPIBackendModelsVaultsReadResponseVaultAssetTypedDict,
|
|
292
|
-
)
|
|
293
293
|
from .compass_api_backend_models_vaults_read_response_vault_userposition import (
|
|
294
294
|
CompassAPIBackendModelsVaultsReadResponseVaultUserPosition,
|
|
295
295
|
CompassAPIBackendModelsVaultsReadResponseVaultUserPositionTypedDict,
|
|
296
296
|
)
|
|
297
|
+
from .cooldownposition import (
|
|
298
|
+
CooldownEnd,
|
|
299
|
+
CooldownEndTypedDict,
|
|
300
|
+
CooldownPosition,
|
|
301
|
+
CooldownPositionTypedDict,
|
|
302
|
+
)
|
|
297
303
|
from .details import Details, DetailsTypedDict
|
|
298
304
|
from .ensnameinforesponse import EnsNameInfoResponse, EnsNameInfoResponseTypedDict
|
|
299
305
|
from .erc20data import Erc20Data, Erc20DataTypedDict
|
|
306
|
+
from .ethenadepositparams import (
|
|
307
|
+
EthenaDepositParams,
|
|
308
|
+
EthenaDepositParamsAmount,
|
|
309
|
+
EthenaDepositParamsAmountTypedDict,
|
|
310
|
+
EthenaDepositParamsTypedDict,
|
|
311
|
+
)
|
|
312
|
+
from .ethenadepositrequest import (
|
|
313
|
+
EthenaDepositRequest,
|
|
314
|
+
EthenaDepositRequestAmount,
|
|
315
|
+
EthenaDepositRequestAmountTypedDict,
|
|
316
|
+
EthenaDepositRequestChain,
|
|
317
|
+
EthenaDepositRequestTypedDict,
|
|
318
|
+
)
|
|
319
|
+
from .ethenagetvaultresponse import (
|
|
320
|
+
EthenaGetVaultResponse,
|
|
321
|
+
EthenaGetVaultResponseTypedDict,
|
|
322
|
+
)
|
|
323
|
+
from .ethenarequesttowithdrawparams import (
|
|
324
|
+
EthenaRequestToWithdrawParams,
|
|
325
|
+
EthenaRequestToWithdrawParamsTypedDict,
|
|
326
|
+
)
|
|
327
|
+
from .ethenarequesttowithdrawrequest import (
|
|
328
|
+
EthenaRequestToWithdrawRequest,
|
|
329
|
+
EthenaRequestToWithdrawRequestChain,
|
|
330
|
+
EthenaRequestToWithdrawRequestTypedDict,
|
|
331
|
+
)
|
|
332
|
+
from .ethenarequesttowithdrawtransactionresponse import (
|
|
333
|
+
EthenaRequestToWithdrawTransactionResponse,
|
|
334
|
+
EthenaRequestToWithdrawTransactionResponseTransaction,
|
|
335
|
+
EthenaRequestToWithdrawTransactionResponseTransactionTypedDict,
|
|
336
|
+
EthenaRequestToWithdrawTransactionResponseTypedDict,
|
|
337
|
+
)
|
|
338
|
+
from .ethenawithdrawparams import (
|
|
339
|
+
EthenaWithdrawParams,
|
|
340
|
+
EthenaWithdrawParamsTypedDict,
|
|
341
|
+
)
|
|
342
|
+
from .ethenawithdrawrequest import (
|
|
343
|
+
EthenaWithdrawRequest,
|
|
344
|
+
EthenaWithdrawRequestChain,
|
|
345
|
+
EthenaWithdrawRequestTypedDict,
|
|
346
|
+
)
|
|
300
347
|
from .feeenum import FeeEnum
|
|
301
348
|
from .interestratemode import InterestRateMode
|
|
302
349
|
from .liquidationcall import LiquidationCall, LiquidationCallTypedDict
|
|
@@ -429,6 +476,12 @@ if TYPE_CHECKING:
|
|
|
429
476
|
OdosSwapRequestTokenOutTypedDict,
|
|
430
477
|
OdosSwapRequestTypedDict,
|
|
431
478
|
)
|
|
479
|
+
from .odostransactionresponse import (
|
|
480
|
+
OdosTransactionResponse,
|
|
481
|
+
OdosTransactionResponseTransaction,
|
|
482
|
+
OdosTransactionResponseTransactionTypedDict,
|
|
483
|
+
OdosTransactionResponseTypedDict,
|
|
484
|
+
)
|
|
432
485
|
from .openposition import OpenPosition, OpenPositionTypedDict
|
|
433
486
|
from .pendlegetmarketresponse import (
|
|
434
487
|
PendleGetMarketResponse,
|
|
@@ -623,12 +676,6 @@ if TYPE_CHECKING:
|
|
|
623
676
|
)
|
|
624
677
|
from .tokeninfo import TokenInfo, TokenInfoTypedDict
|
|
625
678
|
from .tokenpriceresponse import TokenPriceResponse, TokenPriceResponseTypedDict
|
|
626
|
-
from .tokentransfererc20params import (
|
|
627
|
-
TokenTransferErc20Params,
|
|
628
|
-
TokenTransferErc20ParamsAmount,
|
|
629
|
-
TokenTransferErc20ParamsAmountTypedDict,
|
|
630
|
-
TokenTransferErc20ParamsTypedDict,
|
|
631
|
-
)
|
|
632
679
|
from .tokentransferparams import (
|
|
633
680
|
TokenTransferParams,
|
|
634
681
|
TokenTransferParamsAmount,
|
|
@@ -652,6 +699,7 @@ if TYPE_CHECKING:
|
|
|
652
699
|
TransactionResponseTransactionTypedDict,
|
|
653
700
|
TransactionResponseTypedDict,
|
|
654
701
|
)
|
|
702
|
+
from .underlyingtoken import UnderlyingToken, UnderlyingTokenTypedDict
|
|
655
703
|
from .uniswapbuyexactlyparams import (
|
|
656
704
|
UniswapBuyExactlyParams,
|
|
657
705
|
UniswapBuyExactlyParamsAmountOut,
|
|
@@ -892,6 +940,11 @@ if TYPE_CHECKING:
|
|
|
892
940
|
V1AerodromeSlipstreamPoolPriceTokenInToken,
|
|
893
941
|
V1AerodromeSlipstreamPoolPriceTokenOutToken,
|
|
894
942
|
)
|
|
943
|
+
from .v1_ethena_vaultop import (
|
|
944
|
+
V1EthenaVaultChain,
|
|
945
|
+
V1EthenaVaultRequest,
|
|
946
|
+
V1EthenaVaultRequestTypedDict,
|
|
947
|
+
)
|
|
895
948
|
from .v1_generic_allowanceop import (
|
|
896
949
|
V1GenericAllowanceChain,
|
|
897
950
|
V1GenericAllowanceContractEnum,
|
|
@@ -994,8 +1047,6 @@ if TYPE_CHECKING:
|
|
|
994
1047
|
V1TokenPriceChain,
|
|
995
1048
|
V1TokenPriceRequest,
|
|
996
1049
|
V1TokenPriceRequestTypedDict,
|
|
997
|
-
V1TokenPriceToken,
|
|
998
|
-
V1TokenPriceTokenTypedDict,
|
|
999
1050
|
)
|
|
1000
1051
|
from .v1_transaction_bundler_aave_loopop import (
|
|
1001
1052
|
ResponseV1TransactionBundlerAaveLoop,
|
|
@@ -1252,6 +1303,8 @@ __all__ = [
|
|
|
1252
1303
|
"Borrow",
|
|
1253
1304
|
"BorrowTypedDict",
|
|
1254
1305
|
"Borrowratemode",
|
|
1306
|
+
"BundlerTransactionResponse",
|
|
1307
|
+
"BundlerTransactionResponseTypedDict",
|
|
1255
1308
|
"Chain",
|
|
1256
1309
|
"ChainInfo",
|
|
1257
1310
|
"ChainInfoTypedDict",
|
|
@@ -1285,10 +1338,12 @@ __all__ = [
|
|
|
1285
1338
|
"CompassAPIBackendModelsPendleReadResponseMarketUserPositionTypedDict",
|
|
1286
1339
|
"CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance",
|
|
1287
1340
|
"CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict",
|
|
1288
|
-
"CompassAPIBackendModelsVaultsReadResponseVaultAsset",
|
|
1289
|
-
"CompassAPIBackendModelsVaultsReadResponseVaultAssetTypedDict",
|
|
1290
1341
|
"CompassAPIBackendModelsVaultsReadResponseVaultUserPosition",
|
|
1291
1342
|
"CompassAPIBackendModelsVaultsReadResponseVaultUserPositionTypedDict",
|
|
1343
|
+
"CooldownEnd",
|
|
1344
|
+
"CooldownEndTypedDict",
|
|
1345
|
+
"CooldownPosition",
|
|
1346
|
+
"CooldownPositionTypedDict",
|
|
1292
1347
|
"DepositToken",
|
|
1293
1348
|
"DepositTokenTypedDict",
|
|
1294
1349
|
"Details",
|
|
@@ -1297,6 +1352,31 @@ __all__ = [
|
|
|
1297
1352
|
"EnsNameInfoResponseTypedDict",
|
|
1298
1353
|
"Erc20Data",
|
|
1299
1354
|
"Erc20DataTypedDict",
|
|
1355
|
+
"EthenaDepositParams",
|
|
1356
|
+
"EthenaDepositParamsAmount",
|
|
1357
|
+
"EthenaDepositParamsAmountTypedDict",
|
|
1358
|
+
"EthenaDepositParamsTypedDict",
|
|
1359
|
+
"EthenaDepositRequest",
|
|
1360
|
+
"EthenaDepositRequestAmount",
|
|
1361
|
+
"EthenaDepositRequestAmountTypedDict",
|
|
1362
|
+
"EthenaDepositRequestChain",
|
|
1363
|
+
"EthenaDepositRequestTypedDict",
|
|
1364
|
+
"EthenaGetVaultResponse",
|
|
1365
|
+
"EthenaGetVaultResponseTypedDict",
|
|
1366
|
+
"EthenaRequestToWithdrawParams",
|
|
1367
|
+
"EthenaRequestToWithdrawParamsTypedDict",
|
|
1368
|
+
"EthenaRequestToWithdrawRequest",
|
|
1369
|
+
"EthenaRequestToWithdrawRequestChain",
|
|
1370
|
+
"EthenaRequestToWithdrawRequestTypedDict",
|
|
1371
|
+
"EthenaRequestToWithdrawTransactionResponse",
|
|
1372
|
+
"EthenaRequestToWithdrawTransactionResponseTransaction",
|
|
1373
|
+
"EthenaRequestToWithdrawTransactionResponseTransactionTypedDict",
|
|
1374
|
+
"EthenaRequestToWithdrawTransactionResponseTypedDict",
|
|
1375
|
+
"EthenaWithdrawParams",
|
|
1376
|
+
"EthenaWithdrawParamsTypedDict",
|
|
1377
|
+
"EthenaWithdrawRequest",
|
|
1378
|
+
"EthenaWithdrawRequestChain",
|
|
1379
|
+
"EthenaWithdrawRequestTypedDict",
|
|
1300
1380
|
"FeeEnum",
|
|
1301
1381
|
"InitialCollateralAmount",
|
|
1302
1382
|
"InitialCollateralAmountTypedDict",
|
|
@@ -1408,6 +1488,10 @@ __all__ = [
|
|
|
1408
1488
|
"OdosSwapRequestTokenOut",
|
|
1409
1489
|
"OdosSwapRequestTokenOutTypedDict",
|
|
1410
1490
|
"OdosSwapRequestTypedDict",
|
|
1491
|
+
"OdosTransactionResponse",
|
|
1492
|
+
"OdosTransactionResponseTransaction",
|
|
1493
|
+
"OdosTransactionResponseTransactionTypedDict",
|
|
1494
|
+
"OdosTransactionResponseTypedDict",
|
|
1411
1495
|
"OpenPosition",
|
|
1412
1496
|
"OpenPositionTypedDict",
|
|
1413
1497
|
"PendleGetMarketResponse",
|
|
@@ -1569,10 +1653,6 @@ __all__ = [
|
|
|
1569
1653
|
"TokenPriceResponseTypedDict",
|
|
1570
1654
|
"TokenSymbol",
|
|
1571
1655
|
"TokenSymbolTypedDict",
|
|
1572
|
-
"TokenTransferErc20Params",
|
|
1573
|
-
"TokenTransferErc20ParamsAmount",
|
|
1574
|
-
"TokenTransferErc20ParamsAmountTypedDict",
|
|
1575
|
-
"TokenTransferErc20ParamsTypedDict",
|
|
1576
1656
|
"TokenTransferParams",
|
|
1577
1657
|
"TokenTransferParamsAmount",
|
|
1578
1658
|
"TokenTransferParamsAmountTypedDict",
|
|
@@ -1590,6 +1670,8 @@ __all__ = [
|
|
|
1590
1670
|
"TransactionResponseTransaction",
|
|
1591
1671
|
"TransactionResponseTransactionTypedDict",
|
|
1592
1672
|
"TransactionResponseTypedDict",
|
|
1673
|
+
"UnderlyingToken",
|
|
1674
|
+
"UnderlyingTokenTypedDict",
|
|
1593
1675
|
"UniswapBuyExactlyParams",
|
|
1594
1676
|
"UniswapBuyExactlyParamsAmountOut",
|
|
1595
1677
|
"UniswapBuyExactlyParamsAmountOutTypedDict",
|
|
@@ -1761,6 +1843,9 @@ __all__ = [
|
|
|
1761
1843
|
"V1AerodromeSlipstreamPoolPriceRequestTypedDict",
|
|
1762
1844
|
"V1AerodromeSlipstreamPoolPriceTokenInToken",
|
|
1763
1845
|
"V1AerodromeSlipstreamPoolPriceTokenOutToken",
|
|
1846
|
+
"V1EthenaVaultChain",
|
|
1847
|
+
"V1EthenaVaultRequest",
|
|
1848
|
+
"V1EthenaVaultRequestTypedDict",
|
|
1764
1849
|
"V1GenericAllowanceChain",
|
|
1765
1850
|
"V1GenericAllowanceContractEnum",
|
|
1766
1851
|
"V1GenericAllowanceContractUnion",
|
|
@@ -1822,8 +1907,6 @@ __all__ = [
|
|
|
1822
1907
|
"V1TokenPriceChain",
|
|
1823
1908
|
"V1TokenPriceRequest",
|
|
1824
1909
|
"V1TokenPriceRequestTypedDict",
|
|
1825
|
-
"V1TokenPriceToken",
|
|
1826
|
-
"V1TokenPriceTokenTypedDict",
|
|
1827
1910
|
"V1UniswapLiquidityProvisionInRangeChain",
|
|
1828
1911
|
"V1UniswapLiquidityProvisionInRangeRequest",
|
|
1829
1912
|
"V1UniswapLiquidityProvisionInRangeRequestTypedDict",
|
|
@@ -2059,6 +2142,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2059
2142
|
"Borrow": ".borrow",
|
|
2060
2143
|
"BorrowTypedDict": ".borrow",
|
|
2061
2144
|
"Borrowratemode": ".borrow",
|
|
2145
|
+
"BundlerTransactionResponse": ".bundlertransactionresponse",
|
|
2146
|
+
"BundlerTransactionResponseTypedDict": ".bundlertransactionresponse",
|
|
2062
2147
|
"Chain": ".chain",
|
|
2063
2148
|
"ChainInfo": ".chaininfo",
|
|
2064
2149
|
"ChainInfoTypedDict": ".chaininfo",
|
|
@@ -2090,16 +2175,43 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2090
2175
|
"CompassAPIBackendModelsPendleReadResponseMarketUserPositionTypedDict": ".compass_api_backend_models_pendle_read_response_market_userposition",
|
|
2091
2176
|
"CompassAPIBackendModelsPendleReadResponsePositionsTokenBalance": ".compass_api_backend_models_pendle_read_response_positions_tokenbalance",
|
|
2092
2177
|
"CompassAPIBackendModelsPendleReadResponsePositionsTokenBalanceTypedDict": ".compass_api_backend_models_pendle_read_response_positions_tokenbalance",
|
|
2093
|
-
"CompassAPIBackendModelsVaultsReadResponseVaultAsset": ".compass_api_backend_models_vaults_read_response_vault_asset",
|
|
2094
|
-
"CompassAPIBackendModelsVaultsReadResponseVaultAssetTypedDict": ".compass_api_backend_models_vaults_read_response_vault_asset",
|
|
2095
2178
|
"CompassAPIBackendModelsVaultsReadResponseVaultUserPosition": ".compass_api_backend_models_vaults_read_response_vault_userposition",
|
|
2096
2179
|
"CompassAPIBackendModelsVaultsReadResponseVaultUserPositionTypedDict": ".compass_api_backend_models_vaults_read_response_vault_userposition",
|
|
2180
|
+
"CooldownEnd": ".cooldownposition",
|
|
2181
|
+
"CooldownEndTypedDict": ".cooldownposition",
|
|
2182
|
+
"CooldownPosition": ".cooldownposition",
|
|
2183
|
+
"CooldownPositionTypedDict": ".cooldownposition",
|
|
2097
2184
|
"Details": ".details",
|
|
2098
2185
|
"DetailsTypedDict": ".details",
|
|
2099
2186
|
"EnsNameInfoResponse": ".ensnameinforesponse",
|
|
2100
2187
|
"EnsNameInfoResponseTypedDict": ".ensnameinforesponse",
|
|
2101
2188
|
"Erc20Data": ".erc20data",
|
|
2102
2189
|
"Erc20DataTypedDict": ".erc20data",
|
|
2190
|
+
"EthenaDepositParams": ".ethenadepositparams",
|
|
2191
|
+
"EthenaDepositParamsAmount": ".ethenadepositparams",
|
|
2192
|
+
"EthenaDepositParamsAmountTypedDict": ".ethenadepositparams",
|
|
2193
|
+
"EthenaDepositParamsTypedDict": ".ethenadepositparams",
|
|
2194
|
+
"EthenaDepositRequest": ".ethenadepositrequest",
|
|
2195
|
+
"EthenaDepositRequestAmount": ".ethenadepositrequest",
|
|
2196
|
+
"EthenaDepositRequestAmountTypedDict": ".ethenadepositrequest",
|
|
2197
|
+
"EthenaDepositRequestChain": ".ethenadepositrequest",
|
|
2198
|
+
"EthenaDepositRequestTypedDict": ".ethenadepositrequest",
|
|
2199
|
+
"EthenaGetVaultResponse": ".ethenagetvaultresponse",
|
|
2200
|
+
"EthenaGetVaultResponseTypedDict": ".ethenagetvaultresponse",
|
|
2201
|
+
"EthenaRequestToWithdrawParams": ".ethenarequesttowithdrawparams",
|
|
2202
|
+
"EthenaRequestToWithdrawParamsTypedDict": ".ethenarequesttowithdrawparams",
|
|
2203
|
+
"EthenaRequestToWithdrawRequest": ".ethenarequesttowithdrawrequest",
|
|
2204
|
+
"EthenaRequestToWithdrawRequestChain": ".ethenarequesttowithdrawrequest",
|
|
2205
|
+
"EthenaRequestToWithdrawRequestTypedDict": ".ethenarequesttowithdrawrequest",
|
|
2206
|
+
"EthenaRequestToWithdrawTransactionResponse": ".ethenarequesttowithdrawtransactionresponse",
|
|
2207
|
+
"EthenaRequestToWithdrawTransactionResponseTransaction": ".ethenarequesttowithdrawtransactionresponse",
|
|
2208
|
+
"EthenaRequestToWithdrawTransactionResponseTransactionTypedDict": ".ethenarequesttowithdrawtransactionresponse",
|
|
2209
|
+
"EthenaRequestToWithdrawTransactionResponseTypedDict": ".ethenarequesttowithdrawtransactionresponse",
|
|
2210
|
+
"EthenaWithdrawParams": ".ethenawithdrawparams",
|
|
2211
|
+
"EthenaWithdrawParamsTypedDict": ".ethenawithdrawparams",
|
|
2212
|
+
"EthenaWithdrawRequest": ".ethenawithdrawrequest",
|
|
2213
|
+
"EthenaWithdrawRequestChain": ".ethenawithdrawrequest",
|
|
2214
|
+
"EthenaWithdrawRequestTypedDict": ".ethenawithdrawrequest",
|
|
2103
2215
|
"FeeEnum": ".feeenum",
|
|
2104
2216
|
"InterestRateMode": ".interestratemode",
|
|
2105
2217
|
"LiquidationCall": ".liquidationcall",
|
|
@@ -2199,6 +2311,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2199
2311
|
"OdosSwapRequestTokenOut": ".odosswaprequest",
|
|
2200
2312
|
"OdosSwapRequestTokenOutTypedDict": ".odosswaprequest",
|
|
2201
2313
|
"OdosSwapRequestTypedDict": ".odosswaprequest",
|
|
2314
|
+
"OdosTransactionResponse": ".odostransactionresponse",
|
|
2315
|
+
"OdosTransactionResponseTransaction": ".odostransactionresponse",
|
|
2316
|
+
"OdosTransactionResponseTransactionTypedDict": ".odostransactionresponse",
|
|
2317
|
+
"OdosTransactionResponseTypedDict": ".odostransactionresponse",
|
|
2202
2318
|
"OpenPosition": ".openposition",
|
|
2203
2319
|
"OpenPositionTypedDict": ".openposition",
|
|
2204
2320
|
"PendleGetMarketResponse": ".pendlegetmarketresponse",
|
|
@@ -2358,10 +2474,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2358
2474
|
"TokenInfoTypedDict": ".tokeninfo",
|
|
2359
2475
|
"TokenPriceResponse": ".tokenpriceresponse",
|
|
2360
2476
|
"TokenPriceResponseTypedDict": ".tokenpriceresponse",
|
|
2361
|
-
"TokenTransferErc20Params": ".tokentransfererc20params",
|
|
2362
|
-
"TokenTransferErc20ParamsAmount": ".tokentransfererc20params",
|
|
2363
|
-
"TokenTransferErc20ParamsAmountTypedDict": ".tokentransfererc20params",
|
|
2364
|
-
"TokenTransferErc20ParamsTypedDict": ".tokentransfererc20params",
|
|
2365
2477
|
"TokenTransferParams": ".tokentransferparams",
|
|
2366
2478
|
"TokenTransferParamsAmount": ".tokentransferparams",
|
|
2367
2479
|
"TokenTransferParamsAmountTypedDict": ".tokentransferparams",
|
|
@@ -2379,6 +2491,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2379
2491
|
"TransactionResponseTransaction": ".transactionresponse",
|
|
2380
2492
|
"TransactionResponseTransactionTypedDict": ".transactionresponse",
|
|
2381
2493
|
"TransactionResponseTypedDict": ".transactionresponse",
|
|
2494
|
+
"UnderlyingToken": ".underlyingtoken",
|
|
2495
|
+
"UnderlyingTokenTypedDict": ".underlyingtoken",
|
|
2382
2496
|
"UniswapBuyExactlyParams": ".uniswapbuyexactlyparams",
|
|
2383
2497
|
"UniswapBuyExactlyParamsAmountOut": ".uniswapbuyexactlyparams",
|
|
2384
2498
|
"UniswapBuyExactlyParamsAmountOutTypedDict": ".uniswapbuyexactlyparams",
|
|
@@ -2552,6 +2666,9 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2552
2666
|
"V1AerodromeSlipstreamPoolPriceRequestTypedDict": ".v1_aerodrome_slipstream_pool_priceop",
|
|
2553
2667
|
"V1AerodromeSlipstreamPoolPriceTokenInToken": ".v1_aerodrome_slipstream_pool_priceop",
|
|
2554
2668
|
"V1AerodromeSlipstreamPoolPriceTokenOutToken": ".v1_aerodrome_slipstream_pool_priceop",
|
|
2669
|
+
"V1EthenaVaultChain": ".v1_ethena_vaultop",
|
|
2670
|
+
"V1EthenaVaultRequest": ".v1_ethena_vaultop",
|
|
2671
|
+
"V1EthenaVaultRequestTypedDict": ".v1_ethena_vaultop",
|
|
2555
2672
|
"V1GenericAllowanceChain": ".v1_generic_allowanceop",
|
|
2556
2673
|
"V1GenericAllowanceContractEnum": ".v1_generic_allowanceop",
|
|
2557
2674
|
"V1GenericAllowanceContractUnion": ".v1_generic_allowanceop",
|
|
@@ -2619,8 +2736,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2619
2736
|
"V1TokenPriceChain": ".v1_token_priceop",
|
|
2620
2737
|
"V1TokenPriceRequest": ".v1_token_priceop",
|
|
2621
2738
|
"V1TokenPriceRequestTypedDict": ".v1_token_priceop",
|
|
2622
|
-
"V1TokenPriceToken": ".v1_token_priceop",
|
|
2623
|
-
"V1TokenPriceTokenTypedDict": ".v1_token_priceop",
|
|
2624
2739
|
"ResponseV1TransactionBundlerAaveLoop": ".v1_transaction_bundler_aave_loopop",
|
|
2625
2740
|
"ResponseV1TransactionBundlerAaveLoopTypedDict": ".v1_transaction_bundler_aave_loopop",
|
|
2626
2741
|
"V1UniswapLiquidityProvisionInRangeChain": ".v1_uniswap_liquidity_provision_in_rangeop",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .unsignedmulticalltransaction import (
|
|
5
|
+
UnsignedMulticallTransaction,
|
|
6
|
+
UnsignedMulticallTransactionTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from compass_api_sdk.types import BaseModel
|
|
9
|
+
from typing_extensions import TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class BundlerTransactionResponseTypedDict(TypedDict):
|
|
13
|
+
transaction: UnsignedMulticallTransactionTypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class BundlerTransactionResponse(BaseModel):
|
|
17
|
+
transaction: UnsignedMulticallTransaction
|
compass_api_sdk/models/compass_api_backend_models_vaults_read_response_vault_userposition.py
CHANGED
|
@@ -6,11 +6,15 @@ from typing_extensions import TypedDict
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class CompassAPIBackendModelsVaultsReadResponseVaultUserPositionTypedDict(TypedDict):
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
amount_of_shares: str
|
|
10
|
+
r"""The number of vault share tokens representing the user’s proportional ownership of the assets in the vault."""
|
|
11
|
+
amount_in_underlying_token: str
|
|
12
|
+
r"""The equivalent value of the user’s vault shares, denominated in the vault’s underlying asset (deposit token)."""
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
class CompassAPIBackendModelsVaultsReadResponseVaultUserPosition(BaseModel):
|
|
14
|
-
|
|
16
|
+
amount_of_shares: str
|
|
17
|
+
r"""The number of vault share tokens representing the user’s proportional ownership of the assets in the vault."""
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
amount_in_underlying_token: str
|
|
20
|
+
r"""The equivalent value of the user’s vault shares, denominated in the vault’s underlying asset (deposit token)."""
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import BaseModel
|
|
5
|
+
from datetime import datetime
|
|
6
|
+
from typing import Union
|
|
7
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
CooldownEndTypedDict = TypeAliasType("CooldownEndTypedDict", Union[datetime, bool])
|
|
11
|
+
r"""When the cooldown period ends. ISO 8601 format. UTC timezone."""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
CooldownEnd = TypeAliasType("CooldownEnd", Union[datetime, bool])
|
|
15
|
+
r"""When the cooldown period ends. ISO 8601 format. UTC timezone."""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CooldownPositionTypedDict(TypedDict):
|
|
19
|
+
amount_in_underlying_asset: str
|
|
20
|
+
r"""The amount of USDe currently in a cooldown period."""
|
|
21
|
+
cooldown_end: CooldownEndTypedDict
|
|
22
|
+
r"""When the cooldown period ends. ISO 8601 format. UTC timezone."""
|
|
23
|
+
can_be_withdrawn: bool
|
|
24
|
+
r"""Whether the USDe in cooldown can be withdrawn at this moment."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class CooldownPosition(BaseModel):
|
|
28
|
+
amount_in_underlying_asset: str
|
|
29
|
+
r"""The amount of USDe currently in a cooldown period."""
|
|
30
|
+
|
|
31
|
+
cooldown_end: CooldownEnd
|
|
32
|
+
r"""When the cooldown period ends. ISO 8601 format. UTC timezone."""
|
|
33
|
+
|
|
34
|
+
can_be_withdrawn: bool
|
|
35
|
+
r"""Whether the USDe in cooldown can be withdrawn at this moment."""
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import (
|
|
5
|
+
BaseModel,
|
|
6
|
+
Nullable,
|
|
7
|
+
OptionalNullable,
|
|
8
|
+
UNSET,
|
|
9
|
+
UNSET_SENTINEL,
|
|
10
|
+
)
|
|
11
|
+
from compass_api_sdk.utils import validate_const
|
|
12
|
+
import pydantic
|
|
13
|
+
from pydantic import model_serializer
|
|
14
|
+
from pydantic.functional_validators import AfterValidator
|
|
15
|
+
from typing import Literal, Optional, Union
|
|
16
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
EthenaDepositParamsAmountTypedDict = TypeAliasType(
|
|
20
|
+
"EthenaDepositParamsAmountTypedDict", Union[float, str]
|
|
21
|
+
)
|
|
22
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
EthenaDepositParamsAmount = TypeAliasType(
|
|
26
|
+
"EthenaDepositParamsAmount", Union[float, str]
|
|
27
|
+
)
|
|
28
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class EthenaDepositParamsTypedDict(TypedDict):
|
|
32
|
+
amount: EthenaDepositParamsAmountTypedDict
|
|
33
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
34
|
+
action_type: Literal["ETHENA_DEPOSIT"]
|
|
35
|
+
receiver: NotRequired[Nullable[str]]
|
|
36
|
+
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."""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class EthenaDepositParams(BaseModel):
|
|
40
|
+
amount: EthenaDepositParamsAmount
|
|
41
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
42
|
+
|
|
43
|
+
ACTION_TYPE: Annotated[
|
|
44
|
+
Annotated[
|
|
45
|
+
Optional[Literal["ETHENA_DEPOSIT"]],
|
|
46
|
+
AfterValidator(validate_const("ETHENA_DEPOSIT")),
|
|
47
|
+
],
|
|
48
|
+
pydantic.Field(alias="action_type"),
|
|
49
|
+
] = "ETHENA_DEPOSIT"
|
|
50
|
+
|
|
51
|
+
receiver: OptionalNullable[str] = UNSET
|
|
52
|
+
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."""
|
|
53
|
+
|
|
54
|
+
@model_serializer(mode="wrap")
|
|
55
|
+
def serialize_model(self, handler):
|
|
56
|
+
optional_fields = ["action_type", "receiver"]
|
|
57
|
+
nullable_fields = ["receiver"]
|
|
58
|
+
null_default_fields = []
|
|
59
|
+
|
|
60
|
+
serialized = handler(self)
|
|
61
|
+
|
|
62
|
+
m = {}
|
|
63
|
+
|
|
64
|
+
for n, f in type(self).model_fields.items():
|
|
65
|
+
k = f.alias or n
|
|
66
|
+
val = serialized.get(k)
|
|
67
|
+
serialized.pop(k, None)
|
|
68
|
+
|
|
69
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
70
|
+
is_set = (
|
|
71
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
72
|
+
or k in null_default_fields
|
|
73
|
+
) # pylint: disable=no-member
|
|
74
|
+
|
|
75
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
76
|
+
m[k] = val
|
|
77
|
+
elif val != UNSET_SENTINEL and (
|
|
78
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
79
|
+
):
|
|
80
|
+
m[k] = val
|
|
81
|
+
|
|
82
|
+
return m
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from compass_api_sdk.types import (
|
|
5
|
+
BaseModel,
|
|
6
|
+
Nullable,
|
|
7
|
+
OptionalNullable,
|
|
8
|
+
UNSET,
|
|
9
|
+
UNSET_SENTINEL,
|
|
10
|
+
)
|
|
11
|
+
from compass_api_sdk.utils import validate_const
|
|
12
|
+
from enum import Enum
|
|
13
|
+
import pydantic
|
|
14
|
+
from pydantic import model_serializer
|
|
15
|
+
from pydantic.functional_validators import AfterValidator
|
|
16
|
+
from typing import Literal, Optional, Union
|
|
17
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
EthenaDepositRequestAmountTypedDict = TypeAliasType(
|
|
21
|
+
"EthenaDepositRequestAmountTypedDict", Union[float, str]
|
|
22
|
+
)
|
|
23
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
EthenaDepositRequestAmount = TypeAliasType(
|
|
27
|
+
"EthenaDepositRequestAmount", Union[float, str]
|
|
28
|
+
)
|
|
29
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class EthenaDepositRequestChain(str, Enum):
|
|
33
|
+
ETHEREUM = "ethereum"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class EthenaDepositRequestTypedDict(TypedDict):
|
|
37
|
+
amount: EthenaDepositRequestAmountTypedDict
|
|
38
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
39
|
+
chain: EthenaDepositRequestChain
|
|
40
|
+
sender: str
|
|
41
|
+
r"""The address of the transaction sender."""
|
|
42
|
+
action_type: Literal["ETHENA_DEPOSIT"]
|
|
43
|
+
receiver: NotRequired[Nullable[str]]
|
|
44
|
+
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."""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class EthenaDepositRequest(BaseModel):
|
|
48
|
+
amount: EthenaDepositRequestAmount
|
|
49
|
+
r"""The amount of USDe to deposit into Ethena's vault."""
|
|
50
|
+
|
|
51
|
+
chain: EthenaDepositRequestChain
|
|
52
|
+
|
|
53
|
+
sender: str
|
|
54
|
+
r"""The address of the transaction sender."""
|
|
55
|
+
|
|
56
|
+
ACTION_TYPE: Annotated[
|
|
57
|
+
Annotated[
|
|
58
|
+
Optional[Literal["ETHENA_DEPOSIT"]],
|
|
59
|
+
AfterValidator(validate_const("ETHENA_DEPOSIT")),
|
|
60
|
+
],
|
|
61
|
+
pydantic.Field(alias="action_type"),
|
|
62
|
+
] = "ETHENA_DEPOSIT"
|
|
63
|
+
|
|
64
|
+
receiver: OptionalNullable[str] = UNSET
|
|
65
|
+
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."""
|
|
66
|
+
|
|
67
|
+
@model_serializer(mode="wrap")
|
|
68
|
+
def serialize_model(self, handler):
|
|
69
|
+
optional_fields = ["action_type", "receiver"]
|
|
70
|
+
nullable_fields = ["receiver"]
|
|
71
|
+
null_default_fields = []
|
|
72
|
+
|
|
73
|
+
serialized = handler(self)
|
|
74
|
+
|
|
75
|
+
m = {}
|
|
76
|
+
|
|
77
|
+
for n, f in type(self).model_fields.items():
|
|
78
|
+
k = f.alias or n
|
|
79
|
+
val = serialized.get(k)
|
|
80
|
+
serialized.pop(k, None)
|
|
81
|
+
|
|
82
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
83
|
+
is_set = (
|
|
84
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
85
|
+
or k in null_default_fields
|
|
86
|
+
) # pylint: disable=no-member
|
|
87
|
+
|
|
88
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
89
|
+
m[k] = val
|
|
90
|
+
elif val != UNSET_SENTINEL and (
|
|
91
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
92
|
+
):
|
|
93
|
+
m[k] = val
|
|
94
|
+
|
|
95
|
+
return m
|