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
|
@@ -7,29 +7,25 @@ from enum import Enum
|
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
11
|
-
|
|
10
|
+
class V1PendlePositionsChain(str, Enum):
|
|
11
|
+
ARBITRUM = "arbitrum"
|
|
12
|
+
BASE = "base"
|
|
13
|
+
ETHEREUM = "ethereum"
|
|
12
14
|
|
|
13
|
-
BASE_MAINNET = "base:mainnet"
|
|
14
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
chain: PendlePositionsChain
|
|
20
|
-
r"""The chain to use."""
|
|
16
|
+
class V1PendlePositionsRequestTypedDict(TypedDict):
|
|
17
|
+
chain: V1PendlePositionsChain
|
|
21
18
|
user_address: str
|
|
22
19
|
r"""The user address of the desired position."""
|
|
23
20
|
|
|
24
21
|
|
|
25
|
-
class
|
|
22
|
+
class V1PendlePositionsRequest(BaseModel):
|
|
26
23
|
chain: Annotated[
|
|
27
|
-
|
|
24
|
+
V1PendlePositionsChain,
|
|
28
25
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
29
|
-
]
|
|
30
|
-
r"""The chain to use."""
|
|
26
|
+
]
|
|
31
27
|
|
|
32
28
|
user_address: Annotated[
|
|
33
29
|
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
34
|
-
]
|
|
30
|
+
]
|
|
35
31
|
r"""The user address of the desired position."""
|
|
@@ -0,0 +1,29 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
6
|
+
from enum import Enum
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class V1SkyPositionChain(str, Enum):
|
|
11
|
+
ETHEREUM = "ethereum"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class V1SkyPositionRequestTypedDict(TypedDict):
|
|
15
|
+
chain: V1SkyPositionChain
|
|
16
|
+
user_address: str
|
|
17
|
+
r"""The user-address of the desired position."""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class V1SkyPositionRequest(BaseModel):
|
|
21
|
+
chain: Annotated[
|
|
22
|
+
V1SkyPositionChain,
|
|
23
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
user_address: Annotated[
|
|
27
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
28
|
+
]
|
|
29
|
+
r"""The user-address of the desired position."""
|
|
@@ -0,0 +1,38 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
6
|
+
from enum import Enum
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class V1TokenBalanceChain(str, Enum):
|
|
11
|
+
ARBITRUM = "arbitrum"
|
|
12
|
+
BASE = "base"
|
|
13
|
+
ETHEREUM = "ethereum"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class V1TokenBalanceRequestTypedDict(TypedDict):
|
|
17
|
+
chain: V1TokenBalanceChain
|
|
18
|
+
user: str
|
|
19
|
+
r"""The user to get the token balance of."""
|
|
20
|
+
token: str
|
|
21
|
+
r"""The symbol or address of the token for which the balance is checked."""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class V1TokenBalanceRequest(BaseModel):
|
|
25
|
+
chain: Annotated[
|
|
26
|
+
V1TokenBalanceChain,
|
|
27
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
user: Annotated[
|
|
31
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
32
|
+
]
|
|
33
|
+
r"""The user to get the token balance of."""
|
|
34
|
+
|
|
35
|
+
token: Annotated[
|
|
36
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
37
|
+
]
|
|
38
|
+
r"""The symbol or address of the token for which the balance is checked."""
|
|
@@ -0,0 +1,24 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
6
|
+
from enum import Enum
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class V1TokenListChain(str, Enum):
|
|
11
|
+
ARBITRUM = "arbitrum"
|
|
12
|
+
BASE = "base"
|
|
13
|
+
ETHEREUM = "ethereum"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class V1TokenListRequestTypedDict(TypedDict):
|
|
17
|
+
chain: V1TokenListChain
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class V1TokenListRequest(BaseModel):
|
|
21
|
+
chain: Annotated[
|
|
22
|
+
V1TokenListChain,
|
|
23
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
24
|
+
]
|
|
@@ -0,0 +1,76 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
12
|
+
from enum import Enum
|
|
13
|
+
from pydantic import model_serializer
|
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class V1TokenPriceChain(str, Enum):
|
|
18
|
+
ARBITRUM = "arbitrum"
|
|
19
|
+
BASE = "base"
|
|
20
|
+
ETHEREUM = "ethereum"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class V1TokenPriceRequestTypedDict(TypedDict):
|
|
24
|
+
chain: V1TokenPriceChain
|
|
25
|
+
token: str
|
|
26
|
+
r"""The symbol or address of the token for which to get the price.."""
|
|
27
|
+
block: NotRequired[Nullable[int]]
|
|
28
|
+
r"""Optional block number (defaults to latest)."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class V1TokenPriceRequest(BaseModel):
|
|
32
|
+
chain: Annotated[
|
|
33
|
+
V1TokenPriceChain,
|
|
34
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
token: Annotated[
|
|
38
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
39
|
+
]
|
|
40
|
+
r"""The symbol or address of the token for which to get the price.."""
|
|
41
|
+
|
|
42
|
+
block: Annotated[
|
|
43
|
+
OptionalNullable[int],
|
|
44
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
45
|
+
] = UNSET
|
|
46
|
+
r"""Optional block number (defaults to latest)."""
|
|
47
|
+
|
|
48
|
+
@model_serializer(mode="wrap")
|
|
49
|
+
def serialize_model(self, handler):
|
|
50
|
+
optional_fields = ["block"]
|
|
51
|
+
nullable_fields = ["block"]
|
|
52
|
+
null_default_fields = []
|
|
53
|
+
|
|
54
|
+
serialized = handler(self)
|
|
55
|
+
|
|
56
|
+
m = {}
|
|
57
|
+
|
|
58
|
+
for n, f in type(self).model_fields.items():
|
|
59
|
+
k = f.alias or n
|
|
60
|
+
val = serialized.get(k)
|
|
61
|
+
serialized.pop(k, None)
|
|
62
|
+
|
|
63
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
64
|
+
is_set = (
|
|
65
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
66
|
+
or k in null_default_fields
|
|
67
|
+
) # pylint: disable=no-member
|
|
68
|
+
|
|
69
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
70
|
+
m[k] = val
|
|
71
|
+
elif val != UNSET_SENTINEL and (
|
|
72
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
73
|
+
):
|
|
74
|
+
m[k] = val
|
|
75
|
+
|
|
76
|
+
return m
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .bundlertransactionresponse import (
|
|
5
|
+
BundlerTransactionResponse,
|
|
6
|
+
BundlerTransactionResponseTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .safetransactionresponse import (
|
|
9
|
+
SafeTransactionResponse,
|
|
10
|
+
SafeTransactionResponseTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from typing import Union
|
|
13
|
+
from typing_extensions import TypeAliasType
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
ResponseV1TransactionBundlerAaveLoopTypedDict = TypeAliasType(
|
|
17
|
+
"ResponseV1TransactionBundlerAaveLoopTypedDict",
|
|
18
|
+
Union[BundlerTransactionResponseTypedDict, SafeTransactionResponseTypedDict],
|
|
19
|
+
)
|
|
20
|
+
r"""Successful Response"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
ResponseV1TransactionBundlerAaveLoop = TypeAliasType(
|
|
24
|
+
"ResponseV1TransactionBundlerAaveLoop",
|
|
25
|
+
Union[BundlerTransactionResponse, SafeTransactionResponse],
|
|
26
|
+
)
|
|
27
|
+
r"""Successful Response"""
|
|
@@ -7,29 +7,25 @@ from enum import Enum
|
|
|
7
7
|
from typing_extensions import Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
11
|
-
|
|
10
|
+
class V1UniswapLiquidityProvisionInRangeChain(str, Enum):
|
|
11
|
+
ARBITRUM = "arbitrum"
|
|
12
|
+
BASE = "base"
|
|
13
|
+
ETHEREUM = "ethereum"
|
|
12
14
|
|
|
13
|
-
BASE_MAINNET = "base:mainnet"
|
|
14
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
15
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
chain: UniswapLiquidityProvisionInRangeChain
|
|
20
|
-
r"""The chain to use."""
|
|
16
|
+
class V1UniswapLiquidityProvisionInRangeRequestTypedDict(TypedDict):
|
|
17
|
+
chain: V1UniswapLiquidityProvisionInRangeChain
|
|
21
18
|
token_id: int
|
|
22
19
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
23
20
|
|
|
24
21
|
|
|
25
|
-
class
|
|
22
|
+
class V1UniswapLiquidityProvisionInRangeRequest(BaseModel):
|
|
26
23
|
chain: Annotated[
|
|
27
|
-
|
|
24
|
+
V1UniswapLiquidityProvisionInRangeChain,
|
|
28
25
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
29
|
-
]
|
|
30
|
-
r"""The chain to use."""
|
|
26
|
+
]
|
|
31
27
|
|
|
32
28
|
token_id: Annotated[
|
|
33
29
|
int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
34
|
-
]
|
|
30
|
+
]
|
|
35
31
|
r"""Token ID of the NFT representing the liquidity provisioned position."""
|
|
@@ -8,30 +8,26 @@ from typing import Optional
|
|
|
8
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
12
|
-
|
|
11
|
+
class V1UniswapLiquidityProvisionPositionsChain(str, Enum):
|
|
12
|
+
ARBITRUM = "arbitrum"
|
|
13
|
+
BASE = "base"
|
|
14
|
+
ETHEREUM = "ethereum"
|
|
13
15
|
|
|
14
|
-
BASE_MAINNET = "base:mainnet"
|
|
15
|
-
ETHEREUM_MAINNET = "ethereum:mainnet"
|
|
16
|
-
ARBITRUM_MAINNET = "arbitrum:mainnet"
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
chain: UniswapLiquidityProvisionPositionsChain
|
|
21
|
-
r"""The chain to use."""
|
|
17
|
+
class V1UniswapLiquidityProvisionPositionsRequestTypedDict(TypedDict):
|
|
18
|
+
chain: V1UniswapLiquidityProvisionPositionsChain
|
|
22
19
|
user: NotRequired[str]
|
|
23
20
|
r"""The user to get positions for."""
|
|
24
21
|
|
|
25
22
|
|
|
26
|
-
class
|
|
23
|
+
class V1UniswapLiquidityProvisionPositionsRequest(BaseModel):
|
|
27
24
|
chain: Annotated[
|
|
28
|
-
|
|
25
|
+
V1UniswapLiquidityProvisionPositionsChain,
|
|
29
26
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
30
|
-
]
|
|
31
|
-
r"""The chain to use."""
|
|
27
|
+
]
|
|
32
28
|
|
|
33
29
|
user: Annotated[
|
|
34
30
|
Optional[str],
|
|
35
31
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
36
|
-
] =
|
|
32
|
+
] = None
|
|
37
33
|
r"""The user to get positions for."""
|
|
@@ -0,0 +1,58 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
6
|
+
from enum import Enum
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class V1UniswapPoolPriceChain(str, Enum):
|
|
11
|
+
ARBITRUM = "arbitrum"
|
|
12
|
+
BASE = "base"
|
|
13
|
+
ETHEREUM = "ethereum"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class V1UniswapPoolPriceFeeEnum(str, Enum):
|
|
17
|
+
r"""The transaction fee of a Uniswap pool in bips.
|
|
18
|
+
|
|
19
|
+
Uniswap supports 4 different fee levels.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
ZERO_DOT_01 = "0.01"
|
|
23
|
+
ZERO_DOT_05 = "0.05"
|
|
24
|
+
ZERO_DOT_3 = "0.3"
|
|
25
|
+
ONE_DOT_0 = "1.0"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class V1UniswapPoolPriceRequestTypedDict(TypedDict):
|
|
29
|
+
chain: V1UniswapPoolPriceChain
|
|
30
|
+
token_in: str
|
|
31
|
+
r"""The symbol or address of a token in the pool"""
|
|
32
|
+
token_out: str
|
|
33
|
+
r"""The symbol or address of a token in the pool"""
|
|
34
|
+
fee: V1UniswapPoolPriceFeeEnum
|
|
35
|
+
r"""The fee of the pool"""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class V1UniswapPoolPriceRequest(BaseModel):
|
|
39
|
+
chain: Annotated[
|
|
40
|
+
V1UniswapPoolPriceChain,
|
|
41
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
token_in: Annotated[
|
|
45
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
46
|
+
]
|
|
47
|
+
r"""The symbol or address of a token in the pool"""
|
|
48
|
+
|
|
49
|
+
token_out: Annotated[
|
|
50
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
51
|
+
]
|
|
52
|
+
r"""The symbol or address of a token in the pool"""
|
|
53
|
+
|
|
54
|
+
fee: Annotated[
|
|
55
|
+
V1UniswapPoolPriceFeeEnum,
|
|
56
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
57
|
+
]
|
|
58
|
+
r"""The fee of the pool"""
|
|
@@ -0,0 +1,79 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
6
|
+
from enum import Enum
|
|
7
|
+
from typing import Union
|
|
8
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class V1UniswapQuoteBuyExactlyChain(str, Enum):
|
|
12
|
+
ARBITRUM = "arbitrum"
|
|
13
|
+
BASE = "base"
|
|
14
|
+
ETHEREUM = "ethereum"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class V1UniswapQuoteBuyExactlyFeeEnum(str, Enum):
|
|
18
|
+
r"""The transaction fee of a Uniswap pool in bips.
|
|
19
|
+
|
|
20
|
+
Uniswap supports 4 different fee levels.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
ZERO_DOT_01 = "0.01"
|
|
24
|
+
ZERO_DOT_05 = "0.05"
|
|
25
|
+
ZERO_DOT_3 = "0.3"
|
|
26
|
+
ONE_DOT_0 = "1.0"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
V1UniswapQuoteBuyExactlyAmountOutTypedDict = TypeAliasType(
|
|
30
|
+
"V1UniswapQuoteBuyExactlyAmountOutTypedDict", Union[float, str]
|
|
31
|
+
)
|
|
32
|
+
r"""The amount of the token to swap to"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
V1UniswapQuoteBuyExactlyAmountOut = TypeAliasType(
|
|
36
|
+
"V1UniswapQuoteBuyExactlyAmountOut", Union[float, str]
|
|
37
|
+
)
|
|
38
|
+
r"""The amount of the token to swap to"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class V1UniswapQuoteBuyExactlyRequestTypedDict(TypedDict):
|
|
42
|
+
chain: V1UniswapQuoteBuyExactlyChain
|
|
43
|
+
token_in: str
|
|
44
|
+
r"""The symbol or address of the token to swap from."""
|
|
45
|
+
token_out: str
|
|
46
|
+
r"""The symbol or address of the token to swap to."""
|
|
47
|
+
fee: V1UniswapQuoteBuyExactlyFeeEnum
|
|
48
|
+
r"""The fee to pay for the swap"""
|
|
49
|
+
amount_out: V1UniswapQuoteBuyExactlyAmountOutTypedDict
|
|
50
|
+
r"""The amount of the token to swap to"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class V1UniswapQuoteBuyExactlyRequest(BaseModel):
|
|
54
|
+
chain: Annotated[
|
|
55
|
+
V1UniswapQuoteBuyExactlyChain,
|
|
56
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
token_in: Annotated[
|
|
60
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
61
|
+
]
|
|
62
|
+
r"""The symbol or address of the token to swap from."""
|
|
63
|
+
|
|
64
|
+
token_out: Annotated[
|
|
65
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
66
|
+
]
|
|
67
|
+
r"""The symbol or address of the token to swap to."""
|
|
68
|
+
|
|
69
|
+
fee: Annotated[
|
|
70
|
+
V1UniswapQuoteBuyExactlyFeeEnum,
|
|
71
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
72
|
+
]
|
|
73
|
+
r"""The fee to pay for the swap"""
|
|
74
|
+
|
|
75
|
+
amount_out: Annotated[
|
|
76
|
+
V1UniswapQuoteBuyExactlyAmountOut,
|
|
77
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
78
|
+
]
|
|
79
|
+
r"""The amount of the token to swap to"""
|
|
@@ -0,0 +1,79 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
6
|
+
from enum import Enum
|
|
7
|
+
from typing import Union
|
|
8
|
+
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class V1UniswapQuoteSellExactlyChain(str, Enum):
|
|
12
|
+
ARBITRUM = "arbitrum"
|
|
13
|
+
BASE = "base"
|
|
14
|
+
ETHEREUM = "ethereum"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class V1UniswapQuoteSellExactlyFeeEnum(str, Enum):
|
|
18
|
+
r"""The transaction fee of a Uniswap pool in bips.
|
|
19
|
+
|
|
20
|
+
Uniswap supports 4 different fee levels.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
ZERO_DOT_01 = "0.01"
|
|
24
|
+
ZERO_DOT_05 = "0.05"
|
|
25
|
+
ZERO_DOT_3 = "0.3"
|
|
26
|
+
ONE_DOT_0 = "1.0"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
V1UniswapQuoteSellExactlyAmountInTypedDict = TypeAliasType(
|
|
30
|
+
"V1UniswapQuoteSellExactlyAmountInTypedDict", Union[float, str]
|
|
31
|
+
)
|
|
32
|
+
r"""The amount of the token to swap from"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
V1UniswapQuoteSellExactlyAmountIn = TypeAliasType(
|
|
36
|
+
"V1UniswapQuoteSellExactlyAmountIn", Union[float, str]
|
|
37
|
+
)
|
|
38
|
+
r"""The amount of the token to swap from"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class V1UniswapQuoteSellExactlyRequestTypedDict(TypedDict):
|
|
42
|
+
chain: V1UniswapQuoteSellExactlyChain
|
|
43
|
+
token_in: str
|
|
44
|
+
r"""The symbol or address of the token to swap from."""
|
|
45
|
+
token_out: str
|
|
46
|
+
r"""The symbol or address of the token to swap to."""
|
|
47
|
+
fee: V1UniswapQuoteSellExactlyFeeEnum
|
|
48
|
+
r"""The fee to pay for the swap"""
|
|
49
|
+
amount_in: V1UniswapQuoteSellExactlyAmountInTypedDict
|
|
50
|
+
r"""The amount of the token to swap from"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class V1UniswapQuoteSellExactlyRequest(BaseModel):
|
|
54
|
+
chain: Annotated[
|
|
55
|
+
V1UniswapQuoteSellExactlyChain,
|
|
56
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
token_in: Annotated[
|
|
60
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
61
|
+
]
|
|
62
|
+
r"""The symbol or address of the token to swap from."""
|
|
63
|
+
|
|
64
|
+
token_out: Annotated[
|
|
65
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
66
|
+
]
|
|
67
|
+
r"""The symbol or address of the token to swap to."""
|
|
68
|
+
|
|
69
|
+
fee: Annotated[
|
|
70
|
+
V1UniswapQuoteSellExactlyFeeEnum,
|
|
71
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
72
|
+
]
|
|
73
|
+
r"""The fee to pay for the swap"""
|
|
74
|
+
|
|
75
|
+
amount_in: Annotated[
|
|
76
|
+
V1UniswapQuoteSellExactlyAmountIn,
|
|
77
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
78
|
+
]
|
|
79
|
+
r"""The amount of the token to swap from"""
|
|
@@ -0,0 +1,84 @@
|
|
|
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 FieldMetadata, QueryParamMetadata
|
|
12
|
+
from enum import Enum
|
|
13
|
+
from pydantic import model_serializer
|
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class V1VaultsVaultChain(str, Enum):
|
|
18
|
+
ARBITRUM = "arbitrum"
|
|
19
|
+
BASE = "base"
|
|
20
|
+
ETHEREUM = "ethereum"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class V1VaultsVaultRequestTypedDict(TypedDict):
|
|
24
|
+
chain: V1VaultsVaultChain
|
|
25
|
+
vault_address: str
|
|
26
|
+
r"""The vault address of the desired vault position."""
|
|
27
|
+
block: NotRequired[Nullable[int]]
|
|
28
|
+
r"""Optional block number (defaults to latest)."""
|
|
29
|
+
user_address: NotRequired[Nullable[str]]
|
|
30
|
+
r"""The user address of the desired vault position. Only include if you would like the user position included in the response. Defaults to `None`."""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class V1VaultsVaultRequest(BaseModel):
|
|
34
|
+
chain: Annotated[
|
|
35
|
+
V1VaultsVaultChain,
|
|
36
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
vault_address: Annotated[
|
|
40
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
41
|
+
]
|
|
42
|
+
r"""The vault address of the desired vault position."""
|
|
43
|
+
|
|
44
|
+
block: Annotated[
|
|
45
|
+
OptionalNullable[int],
|
|
46
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
47
|
+
] = UNSET
|
|
48
|
+
r"""Optional block number (defaults to latest)."""
|
|
49
|
+
|
|
50
|
+
user_address: Annotated[
|
|
51
|
+
OptionalNullable[str],
|
|
52
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
|
53
|
+
] = UNSET
|
|
54
|
+
r"""The user address of the desired vault position. Only include if you would like the user position included in the response. Defaults to `None`."""
|
|
55
|
+
|
|
56
|
+
@model_serializer(mode="wrap")
|
|
57
|
+
def serialize_model(self, handler):
|
|
58
|
+
optional_fields = ["block", "user_address"]
|
|
59
|
+
nullable_fields = ["block", "user_address"]
|
|
60
|
+
null_default_fields = []
|
|
61
|
+
|
|
62
|
+
serialized = handler(self)
|
|
63
|
+
|
|
64
|
+
m = {}
|
|
65
|
+
|
|
66
|
+
for n, f in type(self).model_fields.items():
|
|
67
|
+
k = f.alias or n
|
|
68
|
+
val = serialized.get(k)
|
|
69
|
+
serialized.pop(k, None)
|
|
70
|
+
|
|
71
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
72
|
+
is_set = (
|
|
73
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
74
|
+
or k in null_default_fields
|
|
75
|
+
) # pylint: disable=no-member
|
|
76
|
+
|
|
77
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
78
|
+
m[k] = val
|
|
79
|
+
elif val != UNSET_SENTINEL and (
|
|
80
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
81
|
+
):
|
|
82
|
+
m[k] = val
|
|
83
|
+
|
|
84
|
+
return m
|