compass_api_sdk 0.9.35__py3-none-any.whl → 2.0.21rc1__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.
- compass_api_sdk/_hooks/sdkhooks.py +4 -4
- compass_api_sdk/_hooks/types.py +1 -2
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/aave_v3.py +971 -728
- compass_api_sdk/aerodrome_slipstream.py +367 -390
- compass_api_sdk/basesdk.py +21 -5
- compass_api_sdk/bridge.py +536 -0
- compass_api_sdk/earn.py +1780 -0
- compass_api_sdk/erc_4626_vaults.py +127 -154
- compass_api_sdk/errors/__init__.py +38 -4
- compass_api_sdk/errors/apierror.py +32 -14
- compass_api_sdk/errors/compassapierror.py +30 -0
- compass_api_sdk/errors/httpvalidationerror.py +15 -8
- compass_api_sdk/errors/mintpreparenotfoundresponse_error.py +49 -0
- compass_api_sdk/errors/no_response_error.py +17 -0
- compass_api_sdk/errors/responsevalidationerror.py +27 -0
- compass_api_sdk/{token_sdk.py → ethena.py} +318 -293
- compass_api_sdk/gas_sponsorship.py +446 -0
- compass_api_sdk/httpclient.py +0 -1
- compass_api_sdk/models/__init__.py +1701 -945
- compass_api_sdk/models/aaveborrowparams.py +4 -13
- compass_api_sdk/models/aaveborrowrequest.py +19 -19
- compass_api_sdk/models/aavehistoricaltransactionsresponse.py +8 -8
- compass_api_sdk/models/aavelooprequest.py +88 -36
- compass_api_sdk/models/aaveposition.py +49 -0
- compass_api_sdk/models/aaverepayparams.py +4 -13
- compass_api_sdk/models/aaverepayrequest.py +19 -19
- compass_api_sdk/models/aavereserveoverviewresponse.py +34 -3
- compass_api_sdk/models/aavesetuseremodeparams.py +28 -0
- compass_api_sdk/models/aavesetuseremoderequest.py +48 -0
- compass_api_sdk/models/aavesupplyparams.py +4 -13
- compass_api_sdk/models/aavesupplyrequest.py +19 -19
- compass_api_sdk/models/aavesupportedtokenmetadata.py +30 -0
- compass_api_sdk/models/aavesupportedtokensresponse.py +20 -0
- compass_api_sdk/models/aavevenue.py +27 -0
- compass_api_sdk/models/aavewithdrawparams.py +4 -13
- compass_api_sdk/models/aavewithdrawrequest.py +19 -19
- compass_api_sdk/models/aerodromeenrichedposition.py +109 -0
- compass_api_sdk/models/aerodromelppositionsresponse.py +10 -7
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +21 -31
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +13 -6
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +21 -31
- compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +20 -30
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +13 -6
- compass_api_sdk/models/approvetransferrequest.py +32 -0
- compass_api_sdk/models/{curator.py → approvetransferresponse.py} +12 -13
- compass_api_sdk/models/apy.py +3 -0
- compass_api_sdk/models/batchedsafeoperationsresponse_input.py +52 -0
- compass_api_sdk/models/batchedsafeoperationsresponse_output.py +52 -0
- compass_api_sdk/models/batcheduseroperationsrequest.py +24 -9
- compass_api_sdk/models/bundlertransactionresponse.py +17 -0
- compass_api_sdk/models/chain.py +3 -3
- compass_api_sdk/models/chainmarketinfo.py +29 -0
- compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py → compass_api_backend_v1_models_generic_read_response_portfolio_tokenbalance.py} +6 -15
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_apydata.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_apydata.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_asset.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_asset.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_marketstate.py} +4 -2
- compass_api_sdk/models/compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultposition.py +30 -0
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultstate.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_apydata.py → compass_api_backend_v1_models_morpho_read_response_get_market_apydata.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vault_asset.py → compass_api_backend_v1_models_morpho_read_response_get_market_asset.py} +5 -5
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_market_marketstate.py} +4 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_asset.py → compass_api_backend_v1_models_morpho_read_response_get_markets_asset.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_markets_marketstate.py} +2 -2
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_asset.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_asset.py} +2 -2
- compass_api_sdk/models/compass_api_backend_v1_models_morpho_read_response_get_vaults_vaultstate.py +73 -0
- compass_api_sdk/models/compass_api_backend_v1_models_pendle_read_response_market_userposition.py +82 -0
- compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_tokenbalance.py → compass_api_backend_v1_models_pendle_read_response_positions_tokenbalance.py} +2 -2
- compass_api_sdk/models/compass_api_backend_v1_models_vaults_read_response_vault_userposition.py +20 -0
- compass_api_sdk/models/compass_api_backend_v1_models_wildcat_read_response_market_userposition.py +22 -0
- compass_api_sdk/models/compass_api_backend_v2_models_earn_read_response_positions_vaultposition.py +49 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain.py +36 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types.py +36 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain.py +37 -0
- compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types.py +32 -0
- compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain.py +29 -0
- compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types.py +34 -0
- compass_api_sdk/models/cooldownposition.py +35 -0
- compass_api_sdk/models/createaccountrequest.py +40 -0
- compass_api_sdk/models/createaccountresponse.py +56 -0
- compass_api_sdk/models/depositforburnrequest.py +77 -0
- compass_api_sdk/models/depositforburnresponse.py +100 -0
- compass_api_sdk/models/details.py +44 -7
- compass_api_sdk/models/earnmanageparams.py +74 -0
- compass_api_sdk/models/earnmanagerequest.py +130 -0
- compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_asset.py → earnmanageresponse.py} +13 -21
- compass_api_sdk/models/earnpositionsresponse.py +39 -0
- compass_api_sdk/models/earnswapparams.py +74 -0
- compass_api_sdk/models/earnswaprequest.py +90 -0
- compass_api_sdk/models/earnswapresponse.py +55 -0
- compass_api_sdk/models/earntransferrequest.py +104 -0
- compass_api_sdk/models/earntransferresponse.py +71 -0
- compass_api_sdk/models/eip712domainfield.py +20 -0
- compass_api_sdk/models/eip712field.py +20 -0
- compass_api_sdk/models/ethenadepositparams.py +82 -0
- compass_api_sdk/models/ethenadepositrequest.py +100 -0
- compass_api_sdk/models/ethenagetvaultresponse.py +109 -0
- compass_api_sdk/models/ethenarequesttowithdrawparams.py +28 -0
- compass_api_sdk/models/ethenarequesttowithdrawrequest.py +46 -0
- compass_api_sdk/models/ethenarequesttowithdrawtransactionresponse.py +37 -0
- compass_api_sdk/models/ethenaunstakeparams.py +65 -0
- compass_api_sdk/models/ethenaunstakerequest.py +83 -0
- compass_api_sdk/models/fee.py +42 -0
- compass_api_sdk/models/listaavemarketsresponse.py +21 -0
- compass_api_sdk/models/marketposition.py +5 -5
- compass_api_sdk/models/maxsupplyapyinfo.py +34 -0
- compass_api_sdk/models/mintpreparecompletedresponse.py +46 -0
- compass_api_sdk/models/mintpreparependingresponse.py +65 -0
- compass_api_sdk/models/mintpreparereadyresponse.py +43 -0
- compass_api_sdk/models/mintpreparerequest.py +25 -0
- compass_api_sdk/models/morphoborrowrequest.py +9 -3
- compass_api_sdk/models/morphocheckuserpositionresponse.py +9 -3
- compass_api_sdk/models/morphodepositrequest.py +9 -3
- compass_api_sdk/models/morphogetmarketresponse.py +72 -31
- compass_api_sdk/models/morphomarket.py +26 -20
- compass_api_sdk/models/morphorepayrequest.py +14 -3
- compass_api_sdk/models/morphosupplycollateralrequest.py +14 -3
- compass_api_sdk/models/morphovault.py +10 -10
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +9 -3
- compass_api_sdk/models/morphowithdrawrequest.py +9 -3
- compass_api_sdk/models/movement10percent.py +65 -10
- compass_api_sdk/models/multicallauthorizationrequest.py +9 -9
- compass_api_sdk/models/multicallexecuterequest.py +59 -11
- compass_api_sdk/models/odosswapparams.py +52 -0
- compass_api_sdk/models/odosswaprequest.py +72 -0
- compass_api_sdk/models/odostransactionresponse.py +37 -0
- compass_api_sdk/models/oneinchswapparams.py +59 -0
- compass_api_sdk/models/openposition.py +7 -7
- compass_api_sdk/models/operationtype.py +11 -0
- compass_api_sdk/models/pendlegetmarketresponse.py +52 -2
- compass_api_sdk/models/pendlemanageliquidityparams.py +68 -0
- compass_api_sdk/models/pendlemanageliquidityrequest.py +87 -0
- compass_api_sdk/models/pendleredeemyieldrequest.py +15 -6
- compass_api_sdk/models/pendletradeptparams.py +68 -0
- compass_api_sdk/models/pendletradeptrequest.py +87 -0
- compass_api_sdk/models/pendletradeytparams.py +68 -0
- compass_api_sdk/models/pendletradeytrequest.py +87 -0
- compass_api_sdk/models/pendletxresponse.py +36 -0
- compass_api_sdk/models/permit2typeddata_input.py +46 -0
- compass_api_sdk/models/permit2typeddata_output.py +46 -0
- compass_api_sdk/models/permitfield.py +20 -0
- compass_api_sdk/models/permitmessage.py +39 -0
- compass_api_sdk/models/permittransferfrommessage.py +29 -0
- compass_api_sdk/models/permittypeddataresponse_input.py +50 -0
- compass_api_sdk/models/permittypeddataresponse_output.py +50 -0
- compass_api_sdk/models/portfolio.py +5 -5
- compass_api_sdk/models/protocol.py +13 -0
- compass_api_sdk/models/reserve.py +6 -15
- compass_api_sdk/models/safetransactionparams.py +78 -0
- compass_api_sdk/models/safetransactionresponse.py +28 -0
- compass_api_sdk/models/safetxfield.py +20 -0
- compass_api_sdk/models/safetxmessage.py +66 -0
- compass_api_sdk/models/setallowanceparams.py +5 -16
- compass_api_sdk/models/setallowancerequest.py +19 -22
- compass_api_sdk/models/skybuyrequest.py +12 -9
- compass_api_sdk/models/skydepositrequest.py +13 -9
- compass_api_sdk/models/skysellrequest.py +12 -9
- compass_api_sdk/models/skywithdrawrequest.py +13 -9
- compass_api_sdk/models/sponsorgasrequest.py +71 -0
- compass_api_sdk/models/sponsorgasresponse.py +14 -0
- compass_api_sdk/models/supportedchaininfo.py +19 -0
- compass_api_sdk/models/tokenbalanceresponse.py +5 -15
- compass_api_sdk/models/tokenconfig.py +30 -0
- compass_api_sdk/models/tokenlistresponse.py +21 -0
- compass_api_sdk/models/tokenmarketdata.py +27 -0
- compass_api_sdk/models/tokenpermissions.py +20 -0
- compass_api_sdk/models/tokentransferparams.py +54 -0
- compass_api_sdk/models/tokentransferrequest.py +23 -27
- compass_api_sdk/models/transactionresponse.py +31 -0
- compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_asset.py → underlyingtoken.py} +2 -2
- compass_api_sdk/models/uniswapbuyexactlyparams.py +19 -41
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +31 -44
- compass_api_sdk/models/uniswapbuyexactlytransactionresponse.py +37 -0
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +15 -6
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +23 -31
- compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
- compass_api_sdk/models/uniswappositionssolidityresponse.py +42 -2
- compass_api_sdk/models/uniswapsellexactlyparams.py +19 -41
- compass_api_sdk/models/uniswapsellexactlyrequest.py +31 -44
- compass_api_sdk/models/uniswapsellexactlytransactionresponse.py +37 -0
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +15 -6
- compass_api_sdk/models/unsignedmulticalltransaction.py +44 -13
- compass_api_sdk/models/unsignedtransaction.py +44 -13
- compass_api_sdk/models/unwrapwethrequest.py +15 -6
- compass_api_sdk/models/useroperation.py +61 -49
- compass_api_sdk/models/useroperationresponse.py +2 -2
- compass_api_sdk/models/userstate.py +3 -3
- compass_api_sdk/models/v1_aave_aave_supported_tokensop.py +69 -0
- compass_api_sdk/models/v1_aave_avg_rateop.py +83 -0
- compass_api_sdk/models/{aave_historical_transactionsop.py → v1_aave_historical_transactionsop.py} +21 -25
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +45 -0
- compass_api_sdk/models/{pendle_marketop.py → v1_aave_rateop.py} +16 -20
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +76 -0
- compass_api_sdk/models/v1_aave_std_rateop.py +83 -0
- compass_api_sdk/models/v1_aave_token_priceop.py +76 -0
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +83 -0
- compass_api_sdk/models/{aave_user_position_summaryop.py → v1_aave_user_position_summaryop.py} +16 -20
- compass_api_sdk/models/v1_aerodrome_slipstream_liquidity_provision_positionsop.py +76 -0
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +45 -0
- compass_api_sdk/models/v1_ethena_vaultop.py +75 -0
- compass_api_sdk/models/{generic_allowanceop.py → v1_generic_allowanceop.py} +28 -41
- compass_api_sdk/models/{generic_ensop.py → v1_generic_ensop.py} +8 -14
- compass_api_sdk/models/{generic_portfolioop.py → v1_generic_portfolioop.py} +10 -14
- compass_api_sdk/models/v1_generic_supported_chainsop.py +57 -0
- compass_api_sdk/models/{morpho_market_positionop.py → v1_morpho_market_positionop.py} +11 -10
- compass_api_sdk/models/{morpho_marketop.py → v1_morpho_marketop.py} +10 -9
- compass_api_sdk/models/{morpho_marketsop.py → v1_morpho_marketsop.py} +13 -12
- compass_api_sdk/models/{morpho_user_positionop.py → v1_morpho_user_positionop.py} +10 -9
- compass_api_sdk/models/{vaults_vaultop.py → v1_morpho_vaultop.py} +16 -20
- compass_api_sdk/models/{morpho_vaultsop.py → v1_morpho_vaultsop.py} +11 -10
- compass_api_sdk/models/{pendle_positionop.py → v1_pendle_marketop.py} +24 -27
- compass_api_sdk/models/v1_pendle_marketsop.py +24 -0
- compass_api_sdk/models/{pendle_positionsop.py → v1_pendle_positionsop.py} +10 -14
- compass_api_sdk/models/v1_sky_positionop.py +29 -0
- compass_api_sdk/models/v1_token_balanceop.py +38 -0
- compass_api_sdk/models/v1_token_listop.py +24 -0
- compass_api_sdk/models/v1_token_priceop.py +76 -0
- compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +27 -0
- compass_api_sdk/models/{uniswap_liquidity_provision_in_rangeop.py → v1_uniswap_liquidity_provision_in_rangeop.py} +10 -14
- compass_api_sdk/models/{uniswap_liquidity_provision_positionsop.py → v1_uniswap_liquidity_provision_positionsop.py} +10 -14
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +58 -0
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +79 -0
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +79 -0
- compass_api_sdk/models/v1_vaults_vaultop.py +84 -0
- compass_api_sdk/models/v1_wildcat_marketop.py +82 -0
- compass_api_sdk/models/v2_cctp_mintop.py +47 -0
- compass_api_sdk/models/v2_earn_aave_marketsop.py +57 -0
- compass_api_sdk/models/v2_earn_positionsop.py +56 -0
- compass_api_sdk/models/v2_earn_vaultsop.py +105 -0
- compass_api_sdk/models/v2bundlerequest.py +33 -0
- compass_api_sdk/models/v2bundleresponse.py +67 -0
- compass_api_sdk/models/v2useroperation.py +37 -0
- compass_api_sdk/models/vault.py +14 -14
- compass_api_sdk/models/vaultdepositparams.py +85 -0
- compass_api_sdk/models/vaultdepositrequest.py +15 -6
- compass_api_sdk/models/vaultgetvaultresponse.py +21 -11
- compass_api_sdk/models/vaultinfo.py +129 -0
- compass_api_sdk/models/vaultsresponse.py +30 -0
- compass_api_sdk/models/vaultvenue.py +27 -0
- compass_api_sdk/models/vaultwithdrawparams.py +75 -0
- compass_api_sdk/models/vaultwithdrawrequest.py +15 -6
- compass_api_sdk/models/wildcatgetmarketresponse.py +151 -0
- compass_api_sdk/models/{redeemunderlying.py → withdraw.py} +2 -2
- compass_api_sdk/models/wrapethrequest.py +15 -6
- compass_api_sdk/morpho.py +481 -816
- compass_api_sdk/pendle.py +495 -1384
- compass_api_sdk/sdk.py +39 -13
- compass_api_sdk/sky.py +275 -240
- compass_api_sdk/smart_account.py +37 -50
- compass_api_sdk/swap.py +248 -0
- compass_api_sdk/token.py +1192 -0
- compass_api_sdk/transaction_bundler.py +151 -184
- compass_api_sdk/uniswap_v3.py +531 -620
- compass_api_sdk/universal.py +181 -932
- compass_api_sdk/utils/__init__.py +18 -5
- compass_api_sdk/utils/annotations.py +32 -8
- compass_api_sdk/utils/eventstreaming.py +10 -0
- compass_api_sdk/utils/forms.py +21 -10
- compass_api_sdk/utils/queryparams.py +14 -2
- compass_api_sdk/utils/retries.py +69 -5
- compass_api_sdk/utils/serializers.py +3 -2
- compass_api_sdk/utils/unmarshal_json_response.py +38 -0
- compass_api_sdk/wildcat.py +208 -0
- compass_api_sdk-2.0.21rc1.dist-info/METADATA +623 -0
- compass_api_sdk-2.0.21rc1.dist-info/RECORD +346 -0
- {compass_api_sdk-0.9.35.dist-info → compass_api_sdk-2.0.21rc1.dist-info}/WHEEL +1 -1
- compass_api_sdk/models/aave_avg_rateop.py +0 -141
- compass_api_sdk/models/aave_liquidity_changeop.py +0 -103
- compass_api_sdk/models/aave_rateop.py +0 -134
- compass_api_sdk/models/aave_reserve_overviewop.py +0 -134
- compass_api_sdk/models/aave_std_rateop.py +0 -141
- compass_api_sdk/models/aave_token_priceop.py +0 -134
- compass_api_sdk/models/aave_user_position_per_tokenop.py +0 -141
- compass_api_sdk/models/aerodrome_slipstream_liquidity_provision_positionsop.py +0 -37
- compass_api_sdk/models/aerodrome_slipstream_pool_priceop.py +0 -159
- compass_api_sdk/models/aerodromeposition.py +0 -70
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vault_vaultstate.py +0 -53
- compass_api_sdk/models/compass_api_backend_models_morpho_read_response_get_vaults_vaultstate.py +0 -32
- compass_api_sdk/models/generic_supported_tokensop.py +0 -28
- compass_api_sdk/models/generic_visualize_portfolioop.py +0 -37
- compass_api_sdk/models/image.py +0 -15
- compass_api_sdk/models/liquidity.py +0 -16
- compass_api_sdk/models/metadata.py +0 -50
- compass_api_sdk/models/morpho_vault_positionop.py +0 -37
- compass_api_sdk/models/morpho_vaultop.py +0 -30
- compass_api_sdk/models/morphocheckvaultpositionresponse.py +0 -20
- compass_api_sdk/models/morphogetvaultresponse.py +0 -86
- compass_api_sdk/models/pendle_marketsop.py +0 -28
- compass_api_sdk/models/pendleaddliquidityparams.py +0 -50
- compass_api_sdk/models/pendleaddliquidityrequest.py +0 -61
- compass_api_sdk/models/pendlebuyptparams.py +0 -48
- compass_api_sdk/models/pendlebuyptrequest.py +0 -59
- compass_api_sdk/models/pendlebuyytparams.py +0 -48
- compass_api_sdk/models/pendlebuyytrequest.py +0 -59
- compass_api_sdk/models/pendlegetuserpositionresponse.py +0 -56
- compass_api_sdk/models/pendleremoveliquidityparams.py +0 -50
- compass_api_sdk/models/pendleremoveliquidityrequest.py +0 -61
- compass_api_sdk/models/pendlesellptparams.py +0 -48
- compass_api_sdk/models/pendlesellptrequest.py +0 -61
- compass_api_sdk/models/pendlesellytparams.py +0 -48
- compass_api_sdk/models/pendlesellytrequest.py +0 -61
- compass_api_sdk/models/sky_positionop.py +0 -31
- compass_api_sdk/models/token_addressop.py +0 -89
- compass_api_sdk/models/token_balanceop.py +0 -55
- compass_api_sdk/models/token_enum.py +0 -57
- compass_api_sdk/models/token_priceop.py +0 -89
- compass_api_sdk/models/tokenaddressresponse.py +0 -15
- compass_api_sdk/models/tokeninfo.py +0 -17
- compass_api_sdk/models/tokentransfererc20params.py +0 -63
- compass_api_sdk/models/txresponse.py +0 -27
- compass_api_sdk/models/uniswap_pool_priceop.py +0 -170
- compass_api_sdk/models/uniswap_quote_buy_exactlyop.py +0 -191
- compass_api_sdk/models/uniswap_quote_sell_exactlyop.py +0 -191
- compass_api_sdk/models/userposition.py +0 -16
- compass_api_sdk/models/vaultposition.py +0 -24
- compass_api_sdk-0.9.35.dist-info/METADATA +0 -558
- compass_api_sdk-0.9.35.dist-info/RECORD +0 -260
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import (
|
|
6
5
|
BaseModel,
|
|
7
6
|
Nullable,
|
|
@@ -28,12 +27,8 @@ r"""The amount of the asset to supply"""
|
|
|
28
27
|
|
|
29
28
|
|
|
30
29
|
class AaveSupplyParamsTypedDict(TypedDict):
|
|
31
|
-
token:
|
|
32
|
-
r"""
|
|
33
|
-
|
|
34
|
-
This class is used to represent the token in the system. Notice individual
|
|
35
|
-
endpoints' documentation where per chain tokens are presented.
|
|
36
|
-
"""
|
|
30
|
+
token: str
|
|
31
|
+
r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
|
|
37
32
|
amount: AaveSupplyParamsAmountTypedDict
|
|
38
33
|
r"""The amount of the asset to supply"""
|
|
39
34
|
action_type: Literal["AAVE_SUPPLY"]
|
|
@@ -42,12 +37,8 @@ class AaveSupplyParamsTypedDict(TypedDict):
|
|
|
42
37
|
|
|
43
38
|
|
|
44
39
|
class AaveSupplyParams(BaseModel):
|
|
45
|
-
token:
|
|
46
|
-
r"""
|
|
47
|
-
|
|
48
|
-
This class is used to represent the token in the system. Notice individual
|
|
49
|
-
endpoints' documentation where per chain tokens are presented.
|
|
50
|
-
"""
|
|
40
|
+
token: str
|
|
41
|
+
r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
|
|
51
42
|
|
|
52
43
|
amount: AaveSupplyParamsAmount
|
|
53
44
|
r"""The amount of the asset to supply"""
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .chain import Chain
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
4
|
from compass_api_sdk.types import (
|
|
7
5
|
BaseModel,
|
|
8
6
|
Nullable,
|
|
@@ -11,6 +9,7 @@ from compass_api_sdk.types import (
|
|
|
11
9
|
UNSET_SENTINEL,
|
|
12
10
|
)
|
|
13
11
|
from compass_api_sdk.utils import validate_const
|
|
12
|
+
from enum import Enum
|
|
14
13
|
import pydantic
|
|
15
14
|
from pydantic import model_serializer
|
|
16
15
|
from pydantic.functional_validators import AfterValidator
|
|
@@ -28,37 +27,35 @@ AaveSupplyRequestAmount = TypeAliasType("AaveSupplyRequestAmount", Union[float,
|
|
|
28
27
|
r"""The amount of the asset to supply"""
|
|
29
28
|
|
|
30
29
|
|
|
31
|
-
class
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
class AaveSupplyRequestChain(str, Enum):
|
|
31
|
+
ARBITRUM = "arbitrum"
|
|
32
|
+
BASE = "base"
|
|
33
|
+
ETHEREUM = "ethereum"
|
|
34
|
+
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"""
|
|
36
|
+
class AaveSupplyRequestTypedDict(TypedDict):
|
|
37
|
+
token: str
|
|
38
|
+
r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
|
|
38
39
|
amount: AaveSupplyRequestAmountTypedDict
|
|
39
40
|
r"""The amount of the asset to supply"""
|
|
40
|
-
chain:
|
|
41
|
-
r"""The chain to use."""
|
|
41
|
+
chain: AaveSupplyRequestChain
|
|
42
42
|
sender: str
|
|
43
43
|
r"""The address of the transaction sender."""
|
|
44
44
|
action_type: Literal["AAVE_SUPPLY"]
|
|
45
45
|
on_behalf_of: NotRequired[Nullable[str]]
|
|
46
46
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
47
|
+
estimate_gas: NotRequired[bool]
|
|
48
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
47
49
|
|
|
48
50
|
|
|
49
51
|
class AaveSupplyRequest(BaseModel):
|
|
50
|
-
token:
|
|
51
|
-
r"""
|
|
52
|
-
|
|
53
|
-
This class is used to represent the token in the system. Notice individual
|
|
54
|
-
endpoints' documentation where per chain tokens are presented.
|
|
55
|
-
"""
|
|
52
|
+
token: str
|
|
53
|
+
r"""The symbol or address of the underlying asset to supply as collateral. You can borrow against it.."""
|
|
56
54
|
|
|
57
55
|
amount: AaveSupplyRequestAmount
|
|
58
56
|
r"""The amount of the asset to supply"""
|
|
59
57
|
|
|
60
|
-
chain:
|
|
61
|
-
r"""The chain to use."""
|
|
58
|
+
chain: AaveSupplyRequestChain
|
|
62
59
|
|
|
63
60
|
sender: str
|
|
64
61
|
r"""The address of the transaction sender."""
|
|
@@ -74,9 +71,12 @@ class AaveSupplyRequest(BaseModel):
|
|
|
74
71
|
on_behalf_of: OptionalNullable[str] = UNSET
|
|
75
72
|
r"""The address on behalf of whom the supply is made. Defaults to the transaction sender."""
|
|
76
73
|
|
|
74
|
+
estimate_gas: Optional[bool] = None
|
|
75
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
76
|
+
|
|
77
77
|
@model_serializer(mode="wrap")
|
|
78
78
|
def serialize_model(self, handler):
|
|
79
|
-
optional_fields = ["action_type", "on_behalf_of"]
|
|
79
|
+
optional_fields = ["action_type", "on_behalf_of", "estimate_gas"]
|
|
80
80
|
nullable_fields = ["on_behalf_of"]
|
|
81
81
|
null_default_fields = []
|
|
82
82
|
|
|
@@ -0,0 +1,30 @@
|
|
|
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 typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AaveSupportedTokenMetadataTypedDict(TypedDict):
|
|
9
|
+
symbol: str
|
|
10
|
+
r"""Token symbol (e.g., 'WETH', 'DAI')."""
|
|
11
|
+
address: str
|
|
12
|
+
r"""Token contract address."""
|
|
13
|
+
supplying_enabled: bool
|
|
14
|
+
r"""Whether the token can be used as collateral."""
|
|
15
|
+
borrowing_enabled: bool
|
|
16
|
+
r"""Whether the token can be borrowed."""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AaveSupportedTokenMetadata(BaseModel):
|
|
20
|
+
symbol: str
|
|
21
|
+
r"""Token symbol (e.g., 'WETH', 'DAI')."""
|
|
22
|
+
|
|
23
|
+
address: str
|
|
24
|
+
r"""Token contract address."""
|
|
25
|
+
|
|
26
|
+
supplying_enabled: bool
|
|
27
|
+
r"""Whether the token can be used as collateral."""
|
|
28
|
+
|
|
29
|
+
borrowing_enabled: bool
|
|
30
|
+
r"""Whether the token can be borrowed."""
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .aavesupportedtokenmetadata import (
|
|
5
|
+
AaveSupportedTokenMetadata,
|
|
6
|
+
AaveSupportedTokenMetadataTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from compass_api_sdk.types import BaseModel
|
|
9
|
+
from typing import List
|
|
10
|
+
from typing_extensions import TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AaveSupportedTokensResponseTypedDict(TypedDict):
|
|
14
|
+
tokens: List[AaveSupportedTokenMetadataTypedDict]
|
|
15
|
+
r"""List of supported tokens with configuration metadata for a given chain."""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class AaveSupportedTokensResponse(BaseModel):
|
|
19
|
+
tokens: List[AaveSupportedTokenMetadata]
|
|
20
|
+
r"""List of supported tokens with configuration metadata for a given chain."""
|
|
@@ -0,0 +1,27 @@
|
|
|
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 compass_api_sdk.utils import validate_const
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic.functional_validators import AfterValidator
|
|
8
|
+
from typing import Literal
|
|
9
|
+
from typing_extensions import Annotated, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AaveVenueTypedDict(TypedDict):
|
|
13
|
+
token: str
|
|
14
|
+
r"""The reserve token for the Aave pool you are interacting with."""
|
|
15
|
+
type: Literal["AAVE"]
|
|
16
|
+
r"""The venue type discriminator."""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AaveVenue(BaseModel):
|
|
20
|
+
token: str
|
|
21
|
+
r"""The reserve token for the Aave pool you are interacting with."""
|
|
22
|
+
|
|
23
|
+
TYPE: Annotated[
|
|
24
|
+
Annotated[Literal["AAVE"], AfterValidator(validate_const("AAVE"))],
|
|
25
|
+
pydantic.Field(alias="type"),
|
|
26
|
+
] = "AAVE"
|
|
27
|
+
r"""The venue type discriminator."""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
import pydantic
|
|
@@ -21,12 +20,8 @@ r"""The amount of the asset to withdraw"""
|
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
class AaveWithdrawParamsTypedDict(TypedDict):
|
|
24
|
-
token:
|
|
25
|
-
r"""
|
|
26
|
-
|
|
27
|
-
This class is used to represent the token in the system. Notice individual
|
|
28
|
-
endpoints' documentation where per chain tokens are presented.
|
|
29
|
-
"""
|
|
23
|
+
token: str
|
|
24
|
+
r"""The symbol of the underlying asset to withdraw.."""
|
|
30
25
|
amount: AaveWithdrawParamsAmountTypedDict
|
|
31
26
|
r"""The amount of the asset to withdraw"""
|
|
32
27
|
recipient: str
|
|
@@ -35,12 +30,8 @@ class AaveWithdrawParamsTypedDict(TypedDict):
|
|
|
35
30
|
|
|
36
31
|
|
|
37
32
|
class AaveWithdrawParams(BaseModel):
|
|
38
|
-
token:
|
|
39
|
-
r"""
|
|
40
|
-
|
|
41
|
-
This class is used to represent the token in the system. Notice individual
|
|
42
|
-
endpoints' documentation where per chain tokens are presented.
|
|
43
|
-
"""
|
|
33
|
+
token: str
|
|
34
|
+
r"""The symbol of the underlying asset to withdraw.."""
|
|
44
35
|
|
|
45
36
|
amount: AaveWithdrawParamsAmount
|
|
46
37
|
r"""The amount of the asset to withdraw"""
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .chain import Chain
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
4
|
from compass_api_sdk.types import BaseModel
|
|
7
5
|
from compass_api_sdk.utils import validate_const
|
|
6
|
+
from enum import Enum
|
|
8
7
|
import pydantic
|
|
9
8
|
from pydantic.functional_validators import AfterValidator
|
|
10
9
|
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
AaveWithdrawRequestAmountTypedDict = TypeAliasType(
|
|
@@ -23,31 +22,30 @@ AaveWithdrawRequestAmount = TypeAliasType(
|
|
|
23
22
|
r"""The amount of the asset to withdraw"""
|
|
24
23
|
|
|
25
24
|
|
|
26
|
-
class
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
class AaveWithdrawRequestChain(str, Enum):
|
|
26
|
+
ARBITRUM = "arbitrum"
|
|
27
|
+
BASE = "base"
|
|
28
|
+
ETHEREUM = "ethereum"
|
|
29
|
+
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"""
|
|
31
|
+
class AaveWithdrawRequestTypedDict(TypedDict):
|
|
32
|
+
token: str
|
|
33
|
+
r"""The symbol of the underlying asset to withdraw.."""
|
|
33
34
|
amount: AaveWithdrawRequestAmountTypedDict
|
|
34
35
|
r"""The amount of the asset to withdraw"""
|
|
35
36
|
recipient: str
|
|
36
37
|
r"""The address of the recipient of the withdrawn funds."""
|
|
37
|
-
chain:
|
|
38
|
-
r"""The chain to use."""
|
|
38
|
+
chain: AaveWithdrawRequestChain
|
|
39
39
|
sender: str
|
|
40
40
|
r"""The address of the transaction sender."""
|
|
41
41
|
action_type: Literal["AAVE_WITHDRAW"]
|
|
42
|
+
estimate_gas: NotRequired[bool]
|
|
43
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
class AaveWithdrawRequest(BaseModel):
|
|
45
|
-
token:
|
|
46
|
-
r"""
|
|
47
|
-
|
|
48
|
-
This class is used to represent the token in the system. Notice individual
|
|
49
|
-
endpoints' documentation where per chain tokens are presented.
|
|
50
|
-
"""
|
|
47
|
+
token: str
|
|
48
|
+
r"""The symbol of the underlying asset to withdraw.."""
|
|
51
49
|
|
|
52
50
|
amount: AaveWithdrawRequestAmount
|
|
53
51
|
r"""The amount of the asset to withdraw"""
|
|
@@ -55,8 +53,7 @@ class AaveWithdrawRequest(BaseModel):
|
|
|
55
53
|
recipient: str
|
|
56
54
|
r"""The address of the recipient of the withdrawn funds."""
|
|
57
55
|
|
|
58
|
-
chain:
|
|
59
|
-
r"""The chain to use."""
|
|
56
|
+
chain: AaveWithdrawRequestChain
|
|
60
57
|
|
|
61
58
|
sender: str
|
|
62
59
|
r"""The address of the transaction sender."""
|
|
@@ -68,3 +65,6 @@ class AaveWithdrawRequest(BaseModel):
|
|
|
68
65
|
],
|
|
69
66
|
pydantic.Field(alias="action_type"),
|
|
70
67
|
] = "AAVE_WITHDRAW"
|
|
68
|
+
|
|
69
|
+
estimate_gas: Optional[bool] = None
|
|
70
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
@@ -0,0 +1,109 @@
|
|
|
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 typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AerodromeEnrichedPositionTypedDict(TypedDict):
|
|
9
|
+
r"""Aerodrome LP position enriched with token amounts and USD values."""
|
|
10
|
+
|
|
11
|
+
nonce: int
|
|
12
|
+
r"""Position nonce"""
|
|
13
|
+
operator: str
|
|
14
|
+
r"""Operator address"""
|
|
15
|
+
token0: str
|
|
16
|
+
r"""Token0 address"""
|
|
17
|
+
token1: str
|
|
18
|
+
r"""Token1 address"""
|
|
19
|
+
tick_spacing: int
|
|
20
|
+
r"""Pool tick spacing"""
|
|
21
|
+
tick_lower: int
|
|
22
|
+
r"""Lower tick of the position"""
|
|
23
|
+
tick_upper: int
|
|
24
|
+
r"""Upper tick of the position"""
|
|
25
|
+
liquidity: int
|
|
26
|
+
r"""Position liquidity"""
|
|
27
|
+
fee_growth_inside0_last_x128: int
|
|
28
|
+
r"""Fee growth inside for token0"""
|
|
29
|
+
fee_growth_inside1_last_x128: int
|
|
30
|
+
r"""Fee growth inside for token1"""
|
|
31
|
+
tokens_owed0: int
|
|
32
|
+
r"""Uncollected fees for token0"""
|
|
33
|
+
tokens_owed1: int
|
|
34
|
+
r"""Uncollected fees for token1"""
|
|
35
|
+
token_id: int
|
|
36
|
+
r"""NFT token ID"""
|
|
37
|
+
pool_address: str
|
|
38
|
+
r"""Pool contract address"""
|
|
39
|
+
amount0: str
|
|
40
|
+
r"""Amount of token0 in the position (human readable)"""
|
|
41
|
+
amount1: str
|
|
42
|
+
r"""Amount of token1 in the position (human readable)"""
|
|
43
|
+
amount0_usd: str
|
|
44
|
+
r"""USD value of token0 in the position"""
|
|
45
|
+
amount1_usd: str
|
|
46
|
+
r"""USD value of token1 in the position"""
|
|
47
|
+
total_value_usd: str
|
|
48
|
+
r"""Total USD value of the position"""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class AerodromeEnrichedPosition(BaseModel):
|
|
52
|
+
r"""Aerodrome LP position enriched with token amounts and USD values."""
|
|
53
|
+
|
|
54
|
+
nonce: int
|
|
55
|
+
r"""Position nonce"""
|
|
56
|
+
|
|
57
|
+
operator: str
|
|
58
|
+
r"""Operator address"""
|
|
59
|
+
|
|
60
|
+
token0: str
|
|
61
|
+
r"""Token0 address"""
|
|
62
|
+
|
|
63
|
+
token1: str
|
|
64
|
+
r"""Token1 address"""
|
|
65
|
+
|
|
66
|
+
tick_spacing: int
|
|
67
|
+
r"""Pool tick spacing"""
|
|
68
|
+
|
|
69
|
+
tick_lower: int
|
|
70
|
+
r"""Lower tick of the position"""
|
|
71
|
+
|
|
72
|
+
tick_upper: int
|
|
73
|
+
r"""Upper tick of the position"""
|
|
74
|
+
|
|
75
|
+
liquidity: int
|
|
76
|
+
r"""Position liquidity"""
|
|
77
|
+
|
|
78
|
+
fee_growth_inside0_last_x128: int
|
|
79
|
+
r"""Fee growth inside for token0"""
|
|
80
|
+
|
|
81
|
+
fee_growth_inside1_last_x128: int
|
|
82
|
+
r"""Fee growth inside for token1"""
|
|
83
|
+
|
|
84
|
+
tokens_owed0: int
|
|
85
|
+
r"""Uncollected fees for token0"""
|
|
86
|
+
|
|
87
|
+
tokens_owed1: int
|
|
88
|
+
r"""Uncollected fees for token1"""
|
|
89
|
+
|
|
90
|
+
token_id: int
|
|
91
|
+
r"""NFT token ID"""
|
|
92
|
+
|
|
93
|
+
pool_address: str
|
|
94
|
+
r"""Pool contract address"""
|
|
95
|
+
|
|
96
|
+
amount0: str
|
|
97
|
+
r"""Amount of token0 in the position (human readable)"""
|
|
98
|
+
|
|
99
|
+
amount1: str
|
|
100
|
+
r"""Amount of token1 in the position (human readable)"""
|
|
101
|
+
|
|
102
|
+
amount0_usd: str
|
|
103
|
+
r"""USD value of token0 in the position"""
|
|
104
|
+
|
|
105
|
+
amount1_usd: str
|
|
106
|
+
r"""USD value of token1 in the position"""
|
|
107
|
+
|
|
108
|
+
total_value_usd: str
|
|
109
|
+
r"""Total USD value of the position"""
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .aerodromeenrichedposition import (
|
|
5
|
+
AerodromeEnrichedPosition,
|
|
6
|
+
AerodromeEnrichedPositionTypedDict,
|
|
7
|
+
)
|
|
5
8
|
from compass_api_sdk.types import BaseModel
|
|
6
9
|
from typing import Dict
|
|
7
10
|
from typing_extensions import TypedDict
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
class AerodromeLPPositionsResponseTypedDict(TypedDict):
|
|
11
|
-
positions: Dict[str,
|
|
12
|
-
r"""Liquidity provision positions belonging to a particular user
|
|
13
|
-
|
|
14
|
+
positions: Dict[str, AerodromeEnrichedPositionTypedDict]
|
|
15
|
+
r"""Liquidity provision positions belonging to a particular user, enriched with
|
|
16
|
+
token amounts and USD values. The key is the NFT token ID of the position.
|
|
14
17
|
"""
|
|
15
18
|
|
|
16
19
|
|
|
17
20
|
class AerodromeLPPositionsResponse(BaseModel):
|
|
18
|
-
positions: Dict[str,
|
|
19
|
-
r"""Liquidity provision positions belonging to a particular user
|
|
20
|
-
|
|
21
|
+
positions: Dict[str, AerodromeEnrichedPosition]
|
|
22
|
+
r"""Liquidity provision positions belonging to a particular user, enriched with
|
|
23
|
+
token amounts and USD values. The key is the NFT token ID of the position.
|
|
21
24
|
"""
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .token_enum import TokenEnum
|
|
5
4
|
from compass_api_sdk.types import BaseModel
|
|
6
5
|
from compass_api_sdk.utils import validate_const
|
|
7
6
|
import pydantic
|
|
@@ -37,18 +36,10 @@ r"""The maximum amount of the token to swap from"""
|
|
|
37
36
|
class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
|
|
38
37
|
r"""Parameters model for buying exactly an amount of tokens."""
|
|
39
38
|
|
|
40
|
-
token_in:
|
|
41
|
-
r"""
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
endpoints' documentation where per chain tokens are presented.
|
|
45
|
-
"""
|
|
46
|
-
token_out: TokenEnum
|
|
47
|
-
r"""A class representing the token.
|
|
48
|
-
|
|
49
|
-
This class is used to represent the token in the system. Notice individual
|
|
50
|
-
endpoints' documentation where per chain tokens are presented.
|
|
51
|
-
"""
|
|
39
|
+
token_in: str
|
|
40
|
+
r"""The symbol of the token to swap from."""
|
|
41
|
+
token_out: str
|
|
42
|
+
r"""The symbol of the token to swap to."""
|
|
52
43
|
tick_spacing: int
|
|
53
44
|
r"""The tick spacing of the pool"""
|
|
54
45
|
amount_out: AerodromeSlipstreamBuyExactlyParamsAmountOutTypedDict
|
|
@@ -61,19 +52,11 @@ class AerodromeSlipstreamBuyExactlyParamsTypedDict(TypedDict):
|
|
|
61
52
|
class AerodromeSlipstreamBuyExactlyParams(BaseModel):
|
|
62
53
|
r"""Parameters model for buying exactly an amount of tokens."""
|
|
63
54
|
|
|
64
|
-
token_in:
|
|
65
|
-
r"""
|
|
66
|
-
|
|
67
|
-
This class is used to represent the token in the system. Notice individual
|
|
68
|
-
endpoints' documentation where per chain tokens are presented.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
token_out: TokenEnum
|
|
72
|
-
r"""A class representing the token.
|
|
55
|
+
token_in: str
|
|
56
|
+
r"""The symbol of the token to swap from."""
|
|
73
57
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"""
|
|
58
|
+
token_out: str
|
|
59
|
+
r"""The symbol of the token to swap to."""
|
|
77
60
|
|
|
78
61
|
tick_spacing: int
|
|
79
62
|
r"""The tick spacing of the pool"""
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .chain import Chain
|
|
5
|
-
from .token_enum import TokenEnum
|
|
6
4
|
from compass_api_sdk.types import BaseModel
|
|
7
5
|
from compass_api_sdk.utils import validate_const
|
|
6
|
+
from enum import Enum
|
|
8
7
|
import pydantic
|
|
9
8
|
from pydantic.functional_validators import AfterValidator
|
|
10
9
|
from typing import Literal, Optional, Union
|
|
11
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict = TypeAliasType(
|
|
@@ -35,50 +34,39 @@ AerodromeSlipstreamBuyExactlyRequestAmountInMaximum = TypeAliasType(
|
|
|
35
34
|
r"""The maximum amount of the token to swap from"""
|
|
36
35
|
|
|
37
36
|
|
|
38
|
-
class
|
|
39
|
-
|
|
37
|
+
class AerodromeSlipstreamBuyExactlyRequestChain(str, Enum):
|
|
38
|
+
BASE = "base"
|
|
40
39
|
|
|
41
|
-
token_in: TokenEnum
|
|
42
|
-
r"""A class representing the token.
|
|
43
40
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"""
|
|
47
|
-
token_out: TokenEnum
|
|
48
|
-
r"""A class representing the token.
|
|
41
|
+
class AerodromeSlipstreamBuyExactlyRequestTypedDict(TypedDict):
|
|
42
|
+
r"""Request model for buying exactly an amount of tokens."""
|
|
49
43
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
token_in: str
|
|
45
|
+
r"""The symbol of the token to swap from."""
|
|
46
|
+
token_out: str
|
|
47
|
+
r"""The symbol of the token to swap to."""
|
|
53
48
|
tick_spacing: int
|
|
54
49
|
r"""The tick spacing of the pool"""
|
|
55
50
|
amount_out: AerodromeSlipstreamBuyExactlyRequestAmountOutTypedDict
|
|
56
51
|
r"""The amount of the token to swap to"""
|
|
57
52
|
amount_in_maximum: AerodromeSlipstreamBuyExactlyRequestAmountInMaximumTypedDict
|
|
58
53
|
r"""The maximum amount of the token to swap from"""
|
|
59
|
-
chain:
|
|
60
|
-
r"""The chain to use."""
|
|
54
|
+
chain: AerodromeSlipstreamBuyExactlyRequestChain
|
|
61
55
|
sender: str
|
|
62
56
|
r"""The address of the transaction sender."""
|
|
63
57
|
action_type: Literal["AERODROME_SLIPSTREAM_BUY_EXACTLY"]
|
|
58
|
+
estimate_gas: NotRequired[bool]
|
|
59
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
64
60
|
|
|
65
61
|
|
|
66
62
|
class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
67
63
|
r"""Request model for buying exactly an amount of tokens."""
|
|
68
64
|
|
|
69
|
-
token_in:
|
|
70
|
-
r"""
|
|
65
|
+
token_in: str
|
|
66
|
+
r"""The symbol of the token to swap from."""
|
|
71
67
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"""
|
|
75
|
-
|
|
76
|
-
token_out: TokenEnum
|
|
77
|
-
r"""A class representing the token.
|
|
78
|
-
|
|
79
|
-
This class is used to represent the token in the system. Notice individual
|
|
80
|
-
endpoints' documentation where per chain tokens are presented.
|
|
81
|
-
"""
|
|
68
|
+
token_out: str
|
|
69
|
+
r"""The symbol of the token to swap to."""
|
|
82
70
|
|
|
83
71
|
tick_spacing: int
|
|
84
72
|
r"""The tick spacing of the pool"""
|
|
@@ -89,8 +77,7 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
|
89
77
|
amount_in_maximum: AerodromeSlipstreamBuyExactlyRequestAmountInMaximum
|
|
90
78
|
r"""The maximum amount of the token to swap from"""
|
|
91
79
|
|
|
92
|
-
chain:
|
|
93
|
-
r"""The chain to use."""
|
|
80
|
+
chain: AerodromeSlipstreamBuyExactlyRequestChain
|
|
94
81
|
|
|
95
82
|
sender: str
|
|
96
83
|
r"""The address of the transaction sender."""
|
|
@@ -102,3 +89,6 @@ class AerodromeSlipstreamBuyExactlyRequest(BaseModel):
|
|
|
102
89
|
],
|
|
103
90
|
pydantic.Field(alias="action_type"),
|
|
104
91
|
] = "AERODROME_SLIPSTREAM_BUY_EXACTLY"
|
|
92
|
+
|
|
93
|
+
estimate_gas: Optional[bool] = None
|
|
94
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|