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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .unsignedtransaction import UnsignedTransaction, UnsignedTransactionTypedDict
|
|
5
|
+
from .useroperationresponse import UserOperationResponse, UserOperationResponseTypedDict
|
|
6
|
+
from compass_api_sdk.types import BaseModel
|
|
7
|
+
from typing import Union
|
|
8
|
+
from typing_extensions import TypeAliasType, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
PendleTxResponseTransactionTypedDict = TypeAliasType(
|
|
12
|
+
"PendleTxResponseTransactionTypedDict",
|
|
13
|
+
Union[UserOperationResponseTypedDict, UnsignedTransactionTypedDict],
|
|
14
|
+
)
|
|
15
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
PendleTxResponseTransaction = TypeAliasType(
|
|
19
|
+
"PendleTxResponseTransaction", Union[UserOperationResponse, UnsignedTransaction]
|
|
20
|
+
)
|
|
21
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class PendleTxResponseTypedDict(TypedDict):
|
|
25
|
+
transaction: PendleTxResponseTransactionTypedDict
|
|
26
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
27
|
+
amount_out_quote: str
|
|
28
|
+
r"""The estimated amount out for the transaction. The actual output amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote."""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class PendleTxResponse(BaseModel):
|
|
32
|
+
transaction: PendleTxResponseTransaction
|
|
33
|
+
r"""The unsigned transaction data. User must sign and broadcast to network."""
|
|
34
|
+
|
|
35
|
+
amount_out_quote: str
|
|
36
|
+
r"""The estimated amount out for the transaction. The actual output amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote."""
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain import (
|
|
5
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain,
|
|
6
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types import (
|
|
9
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types,
|
|
10
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from .permittransferfrommessage import (
|
|
13
|
+
PermitTransferFromMessage,
|
|
14
|
+
PermitTransferFromMessageTypedDict,
|
|
15
|
+
)
|
|
16
|
+
from compass_api_sdk.types import BaseModel
|
|
17
|
+
from compass_api_sdk.utils import validate_const
|
|
18
|
+
import pydantic
|
|
19
|
+
from pydantic.functional_validators import AfterValidator
|
|
20
|
+
from typing import Literal, Optional
|
|
21
|
+
from typing_extensions import Annotated, TypedDict
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Permit2TypedDataInputTypedDict(TypedDict):
|
|
25
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict
|
|
26
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict
|
|
27
|
+
message: PermitTransferFromMessageTypedDict
|
|
28
|
+
primary_type: Literal["PermitTransferFrom"]
|
|
29
|
+
r"""Root type for signing"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class Permit2TypedDataInput(BaseModel):
|
|
33
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types
|
|
34
|
+
|
|
35
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain
|
|
36
|
+
|
|
37
|
+
message: PermitTransferFromMessage
|
|
38
|
+
|
|
39
|
+
PRIMARY_TYPE: Annotated[
|
|
40
|
+
Annotated[
|
|
41
|
+
Optional[Literal["PermitTransferFrom"]],
|
|
42
|
+
AfterValidator(validate_const("PermitTransferFrom")),
|
|
43
|
+
],
|
|
44
|
+
pydantic.Field(alias="primaryType"),
|
|
45
|
+
] = "PermitTransferFrom"
|
|
46
|
+
r"""Root type for signing"""
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain import (
|
|
5
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain,
|
|
6
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types import (
|
|
9
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types,
|
|
10
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from .permittransferfrommessage import (
|
|
13
|
+
PermitTransferFromMessage,
|
|
14
|
+
PermitTransferFromMessageTypedDict,
|
|
15
|
+
)
|
|
16
|
+
from compass_api_sdk.types import BaseModel
|
|
17
|
+
from compass_api_sdk.utils import validate_const
|
|
18
|
+
import pydantic
|
|
19
|
+
from pydantic.functional_validators import AfterValidator
|
|
20
|
+
from typing import Literal, Optional
|
|
21
|
+
from typing_extensions import Annotated, TypedDict
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Permit2TypedDataOutputTypedDict(TypedDict):
|
|
25
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712TypesTypedDict
|
|
26
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712DomainTypedDict
|
|
27
|
+
message: PermitTransferFromMessageTypedDict
|
|
28
|
+
primary_type: Literal["PermitTransferFrom"]
|
|
29
|
+
r"""Root type for signing"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class Permit2TypedDataOutput(BaseModel):
|
|
33
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Types
|
|
34
|
+
|
|
35
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermit2TypedDataEip712Domain
|
|
36
|
+
|
|
37
|
+
message: PermitTransferFromMessage
|
|
38
|
+
|
|
39
|
+
PRIMARY_TYPE: Annotated[
|
|
40
|
+
Annotated[
|
|
41
|
+
Optional[Literal["PermitTransferFrom"]],
|
|
42
|
+
AfterValidator(validate_const("PermitTransferFrom")),
|
|
43
|
+
],
|
|
44
|
+
pydantic.Field(alias="primaryType"),
|
|
45
|
+
] = "PermitTransferFrom"
|
|
46
|
+
r"""Root type for signing"""
|
|
@@ -0,0 +1,20 @@
|
|
|
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 PermitFieldTypedDict(TypedDict):
|
|
9
|
+
r"""A field in the Permit type definition."""
|
|
10
|
+
|
|
11
|
+
name: str
|
|
12
|
+
type: str
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class PermitField(BaseModel):
|
|
16
|
+
r"""A field in the Permit type definition."""
|
|
17
|
+
|
|
18
|
+
name: str
|
|
19
|
+
|
|
20
|
+
type: str
|
|
@@ -0,0 +1,39 @@
|
|
|
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 PermitMessageTypedDict(TypedDict):
|
|
9
|
+
r"""The message data for an ERC-20 Permit."""
|
|
10
|
+
|
|
11
|
+
owner: str
|
|
12
|
+
r"""Token owner address"""
|
|
13
|
+
spender: str
|
|
14
|
+
r"""Address authorized to spend tokens"""
|
|
15
|
+
value: str
|
|
16
|
+
r"""Amount to approve (as string)"""
|
|
17
|
+
nonce: str
|
|
18
|
+
r"""Current permit nonce for the owner"""
|
|
19
|
+
deadline: str
|
|
20
|
+
r"""Permit expiry timestamp"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class PermitMessage(BaseModel):
|
|
24
|
+
r"""The message data for an ERC-20 Permit."""
|
|
25
|
+
|
|
26
|
+
owner: str
|
|
27
|
+
r"""Token owner address"""
|
|
28
|
+
|
|
29
|
+
spender: str
|
|
30
|
+
r"""Address authorized to spend tokens"""
|
|
31
|
+
|
|
32
|
+
value: str
|
|
33
|
+
r"""Amount to approve (as string)"""
|
|
34
|
+
|
|
35
|
+
nonce: str
|
|
36
|
+
r"""Current permit nonce for the owner"""
|
|
37
|
+
|
|
38
|
+
deadline: str
|
|
39
|
+
r"""Permit expiry timestamp"""
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .tokenpermissions import TokenPermissions, TokenPermissionsTypedDict
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PermitTransferFromMessageTypedDict(TypedDict):
|
|
10
|
+
permitted: TokenPermissionsTypedDict
|
|
11
|
+
spender: str
|
|
12
|
+
r"""Address allowed to transfer (caller of permitTransferFrom)"""
|
|
13
|
+
nonce: int
|
|
14
|
+
r"""Unique nonce to prevent replay"""
|
|
15
|
+
deadline: int
|
|
16
|
+
r"""Unix timestamp after which signature expires"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class PermitTransferFromMessage(BaseModel):
|
|
20
|
+
permitted: TokenPermissions
|
|
21
|
+
|
|
22
|
+
spender: str
|
|
23
|
+
r"""Address allowed to transfer (caller of permitTransferFrom)"""
|
|
24
|
+
|
|
25
|
+
nonce: int
|
|
26
|
+
r"""Unique nonce to prevent replay"""
|
|
27
|
+
|
|
28
|
+
deadline: int
|
|
29
|
+
r"""Unix timestamp after which signature expires"""
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain import (
|
|
5
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain,
|
|
6
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712DomainTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types import (
|
|
9
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types,
|
|
10
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712TypesTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from .permitmessage import PermitMessage, PermitMessageTypedDict
|
|
13
|
+
from compass_api_sdk.types import BaseModel
|
|
14
|
+
from compass_api_sdk.utils import validate_const
|
|
15
|
+
import pydantic
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal
|
|
18
|
+
from typing_extensions import Annotated, TypedDict
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class PermitTypedDataResponseInputTypedDict(TypedDict):
|
|
22
|
+
r"""Response containing EIP-712 typed data for ERC-20 Permit signing."""
|
|
23
|
+
|
|
24
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712DomainTypedDict
|
|
25
|
+
r"""The EIP-712 domain separator for ERC-20 Permit."""
|
|
26
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712TypesTypedDict
|
|
27
|
+
r"""The type definitions for EIP-712 structured data (ERC-20 Permit)."""
|
|
28
|
+
message: PermitMessageTypedDict
|
|
29
|
+
r"""The message data for an ERC-20 Permit."""
|
|
30
|
+
primary_type: Literal["Permit"]
|
|
31
|
+
r"""Primary type for the structured data"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class PermitTypedDataResponseInput(BaseModel):
|
|
35
|
+
r"""Response containing EIP-712 typed data for ERC-20 Permit signing."""
|
|
36
|
+
|
|
37
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain
|
|
38
|
+
r"""The EIP-712 domain separator for ERC-20 Permit."""
|
|
39
|
+
|
|
40
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types
|
|
41
|
+
r"""The type definitions for EIP-712 structured data (ERC-20 Permit)."""
|
|
42
|
+
|
|
43
|
+
message: PermitMessage
|
|
44
|
+
r"""The message data for an ERC-20 Permit."""
|
|
45
|
+
|
|
46
|
+
PRIMARY_TYPE: Annotated[
|
|
47
|
+
Annotated[Literal["Permit"], AfterValidator(validate_const("Permit"))],
|
|
48
|
+
pydantic.Field(alias="primaryType"),
|
|
49
|
+
] = "Permit"
|
|
50
|
+
r"""Primary type for the structured data"""
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain import (
|
|
5
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain,
|
|
6
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712DomainTypedDict,
|
|
7
|
+
)
|
|
8
|
+
from .compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types import (
|
|
9
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types,
|
|
10
|
+
CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712TypesTypedDict,
|
|
11
|
+
)
|
|
12
|
+
from .permitmessage import PermitMessage, PermitMessageTypedDict
|
|
13
|
+
from compass_api_sdk.types import BaseModel
|
|
14
|
+
from compass_api_sdk.utils import validate_const
|
|
15
|
+
import pydantic
|
|
16
|
+
from pydantic.functional_validators import AfterValidator
|
|
17
|
+
from typing import Literal
|
|
18
|
+
from typing_extensions import Annotated, TypedDict
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class PermitTypedDataResponseOutputTypedDict(TypedDict):
|
|
22
|
+
r"""Response containing EIP-712 typed data for ERC-20 Permit signing."""
|
|
23
|
+
|
|
24
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712DomainTypedDict
|
|
25
|
+
r"""The EIP-712 domain separator for ERC-20 Permit."""
|
|
26
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712TypesTypedDict
|
|
27
|
+
r"""The type definitions for EIP-712 structured data (ERC-20 Permit)."""
|
|
28
|
+
message: PermitMessageTypedDict
|
|
29
|
+
r"""The message data for an ERC-20 Permit."""
|
|
30
|
+
primary_type: Literal["Permit"]
|
|
31
|
+
r"""Primary type for the structured data"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class PermitTypedDataResponseOutput(BaseModel):
|
|
35
|
+
r"""Response containing EIP-712 typed data for ERC-20 Permit signing."""
|
|
36
|
+
|
|
37
|
+
domain: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Domain
|
|
38
|
+
r"""The EIP-712 domain separator for ERC-20 Permit."""
|
|
39
|
+
|
|
40
|
+
types: CompassAPIBackendV2ModelsGasSponsorshipPermitTypedDataEip712Types
|
|
41
|
+
r"""The type definitions for EIP-712 structured data (ERC-20 Permit)."""
|
|
42
|
+
|
|
43
|
+
message: PermitMessage
|
|
44
|
+
r"""The message data for an ERC-20 Permit."""
|
|
45
|
+
|
|
46
|
+
PRIMARY_TYPE: Annotated[
|
|
47
|
+
Annotated[Literal["Permit"], AfterValidator(validate_const("Permit"))],
|
|
48
|
+
pydantic.Field(alias="primaryType"),
|
|
49
|
+
] = "Permit"
|
|
50
|
+
r"""Primary type for the structured data"""
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
from .compass_api_backend_v1_models_generic_read_response_portfolio_tokenbalance import (
|
|
5
|
+
CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalance,
|
|
6
|
+
CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalanceTypedDict,
|
|
7
7
|
)
|
|
8
8
|
from compass_api_sdk.types import BaseModel
|
|
9
9
|
from typing import List
|
|
@@ -14,7 +14,7 @@ class PortfolioTypedDict(TypedDict):
|
|
|
14
14
|
total_value_in_usd: str
|
|
15
15
|
r"""Total value of the portfolio in USD"""
|
|
16
16
|
token_balances: List[
|
|
17
|
-
|
|
17
|
+
CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalanceTypedDict
|
|
18
18
|
]
|
|
19
19
|
r"""List of token balances in the portfolio"""
|
|
20
20
|
|
|
@@ -24,6 +24,6 @@ class Portfolio(BaseModel):
|
|
|
24
24
|
r"""Total value of the portfolio in USD"""
|
|
25
25
|
|
|
26
26
|
token_balances: List[
|
|
27
|
-
|
|
27
|
+
CompassAPIBackendV1ModelsGenericReadResponsePortfolioTokenBalance
|
|
28
28
|
]
|
|
29
29
|
r"""List of token balances in the portfolio"""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from enum import Enum
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Protocol(str, Enum):
|
|
8
|
+
AAVE = "aave"
|
|
9
|
+
AERODROME = "aerodrome"
|
|
10
|
+
MORPHO = "morpho"
|
|
11
|
+
SKY = "sky"
|
|
12
|
+
UNISWAP = "uniswap"
|
|
13
|
+
PENDLE = "pendle"
|
|
@@ -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,
|
|
@@ -15,14 +14,10 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
class ReserveTypedDict(TypedDict):
|
|
18
|
-
symbol:
|
|
19
|
-
r"""
|
|
20
|
-
|
|
21
|
-
This class is used to represent the token in the system. Notice individual
|
|
22
|
-
endpoints' documentation where per chain tokens are presented.
|
|
23
|
-
"""
|
|
17
|
+
symbol: str
|
|
18
|
+
r"""Symbol of token."""
|
|
24
19
|
name: str
|
|
25
|
-
r"""Name of
|
|
20
|
+
r"""Name of token"""
|
|
26
21
|
underlying_asset: str
|
|
27
22
|
r"""Checksum address of Token."""
|
|
28
23
|
decimals: NotRequired[Nullable[int]]
|
|
@@ -30,15 +25,11 @@ class ReserveTypedDict(TypedDict):
|
|
|
30
25
|
|
|
31
26
|
|
|
32
27
|
class Reserve(BaseModel):
|
|
33
|
-
symbol:
|
|
34
|
-
r"""
|
|
35
|
-
|
|
36
|
-
This class is used to represent the token in the system. Notice individual
|
|
37
|
-
endpoints' documentation where per chain tokens are presented.
|
|
38
|
-
"""
|
|
28
|
+
symbol: str
|
|
29
|
+
r"""Symbol of token."""
|
|
39
30
|
|
|
40
31
|
name: str
|
|
41
|
-
r"""Name of
|
|
32
|
+
r"""Name of token"""
|
|
42
33
|
|
|
43
34
|
underlying_asset: Annotated[str, pydantic.Field(alias="underlyingAsset")]
|
|
44
35
|
r"""Checksum address of Token."""
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
import pydantic
|
|
6
|
+
from typing_extensions import Annotated, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class SafeTransactionParamsTypedDict(TypedDict):
|
|
10
|
+
r"""Parameters for proposing a transaction to a Safe multi-sig wallet.
|
|
11
|
+
|
|
12
|
+
This model is used when the Safe has threshold > 1 or when the user wants to propose
|
|
13
|
+
a transaction for other owners to sign via the Safe Transaction Service.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
to: str
|
|
17
|
+
r"""Destination address (MultiSend contract for bundled txs)"""
|
|
18
|
+
value: int
|
|
19
|
+
r"""ETH value to send"""
|
|
20
|
+
data: str
|
|
21
|
+
r"""Encoded transaction data"""
|
|
22
|
+
operation: int
|
|
23
|
+
r"""0 = Call, 1 = DelegateCall"""
|
|
24
|
+
safe_tx_gas: int
|
|
25
|
+
r"""Gas for the Safe transaction execution"""
|
|
26
|
+
base_gas: int
|
|
27
|
+
r"""Base gas for the transaction"""
|
|
28
|
+
gas_price: int
|
|
29
|
+
r"""Gas price for refund calculation"""
|
|
30
|
+
gas_token: str
|
|
31
|
+
r"""Token address for gas refund (0x0 for ETH)"""
|
|
32
|
+
refund_receiver: str
|
|
33
|
+
r"""Address to receive gas refund"""
|
|
34
|
+
nonce: int
|
|
35
|
+
r"""Safe transaction nonce"""
|
|
36
|
+
safe_tx_hash: str
|
|
37
|
+
r"""EIP-712 hash of the Safe transaction (sign this with your wallet)"""
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class SafeTransactionParams(BaseModel):
|
|
41
|
+
r"""Parameters for proposing a transaction to a Safe multi-sig wallet.
|
|
42
|
+
|
|
43
|
+
This model is used when the Safe has threshold > 1 or when the user wants to propose
|
|
44
|
+
a transaction for other owners to sign via the Safe Transaction Service.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
to: str
|
|
48
|
+
r"""Destination address (MultiSend contract for bundled txs)"""
|
|
49
|
+
|
|
50
|
+
value: int
|
|
51
|
+
r"""ETH value to send"""
|
|
52
|
+
|
|
53
|
+
data: str
|
|
54
|
+
r"""Encoded transaction data"""
|
|
55
|
+
|
|
56
|
+
operation: int
|
|
57
|
+
r"""0 = Call, 1 = DelegateCall"""
|
|
58
|
+
|
|
59
|
+
safe_tx_gas: Annotated[int, pydantic.Field(alias="safeTxGas")]
|
|
60
|
+
r"""Gas for the Safe transaction execution"""
|
|
61
|
+
|
|
62
|
+
base_gas: Annotated[int, pydantic.Field(alias="baseGas")]
|
|
63
|
+
r"""Base gas for the transaction"""
|
|
64
|
+
|
|
65
|
+
gas_price: Annotated[int, pydantic.Field(alias="gasPrice")]
|
|
66
|
+
r"""Gas price for refund calculation"""
|
|
67
|
+
|
|
68
|
+
gas_token: Annotated[str, pydantic.Field(alias="gasToken")]
|
|
69
|
+
r"""Token address for gas refund (0x0 for ETH)"""
|
|
70
|
+
|
|
71
|
+
refund_receiver: Annotated[str, pydantic.Field(alias="refundReceiver")]
|
|
72
|
+
r"""Address to receive gas refund"""
|
|
73
|
+
|
|
74
|
+
nonce: int
|
|
75
|
+
r"""Safe transaction nonce"""
|
|
76
|
+
|
|
77
|
+
safe_tx_hash: Annotated[str, pydantic.Field(alias="safeTxHash")]
|
|
78
|
+
r"""EIP-712 hash of the Safe transaction (sign this with your wallet)"""
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .safetransactionparams import SafeTransactionParams, SafeTransactionParamsTypedDict
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
from typing_extensions import TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class SafeTransactionResponseTypedDict(TypedDict):
|
|
10
|
+
r"""Response containing Safe transaction parameters for multi-sig proposal."""
|
|
11
|
+
|
|
12
|
+
transaction: SafeTransactionParamsTypedDict
|
|
13
|
+
r"""Parameters for proposing a transaction to a Safe multi-sig wallet.
|
|
14
|
+
|
|
15
|
+
This model is used when the Safe has threshold > 1 or when the user wants to propose
|
|
16
|
+
a transaction for other owners to sign via the Safe Transaction Service.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class SafeTransactionResponse(BaseModel):
|
|
21
|
+
r"""Response containing Safe transaction parameters for multi-sig proposal."""
|
|
22
|
+
|
|
23
|
+
transaction: SafeTransactionParams
|
|
24
|
+
r"""Parameters for proposing a transaction to a Safe multi-sig wallet.
|
|
25
|
+
|
|
26
|
+
This model is used when the Safe has threshold > 1 or when the user wants to propose
|
|
27
|
+
a transaction for other owners to sign via the Safe Transaction Service.
|
|
28
|
+
"""
|
|
@@ -0,0 +1,20 @@
|
|
|
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 SafeTxFieldTypedDict(TypedDict):
|
|
9
|
+
r"""A field in the SafeTx type definition."""
|
|
10
|
+
|
|
11
|
+
name: str
|
|
12
|
+
type: str
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class SafeTxField(BaseModel):
|
|
16
|
+
r"""A field in the SafeTx type definition."""
|
|
17
|
+
|
|
18
|
+
name: str
|
|
19
|
+
|
|
20
|
+
type: str
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .operationtype import OperationType
|
|
5
|
+
from compass_api_sdk.types import BaseModel
|
|
6
|
+
import pydantic
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SafeTxMessageTypedDict(TypedDict):
|
|
11
|
+
r"""The message data for a Safe transaction."""
|
|
12
|
+
|
|
13
|
+
to: str
|
|
14
|
+
r"""Destination address"""
|
|
15
|
+
value: str
|
|
16
|
+
r"""Value in wei as a string"""
|
|
17
|
+
data: str
|
|
18
|
+
r"""Transaction data as hex string"""
|
|
19
|
+
operation: OperationType
|
|
20
|
+
r"""Safe operation types."""
|
|
21
|
+
safe_tx_gas: str
|
|
22
|
+
r"""Gas for the Safe transaction"""
|
|
23
|
+
base_gas: str
|
|
24
|
+
r"""Base gas costs"""
|
|
25
|
+
gas_price: str
|
|
26
|
+
r"""Gas price"""
|
|
27
|
+
gas_token: str
|
|
28
|
+
r"""Token address for gas payment"""
|
|
29
|
+
refund_receiver: str
|
|
30
|
+
r"""Address to receive gas refund"""
|
|
31
|
+
nonce: str
|
|
32
|
+
r"""Safe transaction nonce"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class SafeTxMessage(BaseModel):
|
|
36
|
+
r"""The message data for a Safe transaction."""
|
|
37
|
+
|
|
38
|
+
to: str
|
|
39
|
+
r"""Destination address"""
|
|
40
|
+
|
|
41
|
+
value: str
|
|
42
|
+
r"""Value in wei as a string"""
|
|
43
|
+
|
|
44
|
+
data: str
|
|
45
|
+
r"""Transaction data as hex string"""
|
|
46
|
+
|
|
47
|
+
operation: OperationType
|
|
48
|
+
r"""Safe operation types."""
|
|
49
|
+
|
|
50
|
+
safe_tx_gas: Annotated[str, pydantic.Field(alias="safeTxGas")]
|
|
51
|
+
r"""Gas for the Safe transaction"""
|
|
52
|
+
|
|
53
|
+
base_gas: Annotated[str, pydantic.Field(alias="baseGas")]
|
|
54
|
+
r"""Base gas costs"""
|
|
55
|
+
|
|
56
|
+
gas_price: Annotated[str, pydantic.Field(alias="gasPrice")]
|
|
57
|
+
r"""Gas price"""
|
|
58
|
+
|
|
59
|
+
gas_token: Annotated[str, pydantic.Field(alias="gasToken")]
|
|
60
|
+
r"""Token address for gas payment"""
|
|
61
|
+
|
|
62
|
+
refund_receiver: Annotated[str, pydantic.Field(alias="refundReceiver")]
|
|
63
|
+
r"""Address to receive gas refund"""
|
|
64
|
+
|
|
65
|
+
nonce: str
|
|
66
|
+
r"""Safe transaction nonce"""
|
|
@@ -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
|
from enum import Enum
|
|
@@ -11,18 +10,6 @@ from typing import Literal, Optional, Union
|
|
|
11
10
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
SetAllowanceParamsTokenTypedDict = TypeAliasType(
|
|
15
|
-
"SetAllowanceParamsTokenTypedDict", Union[TokenEnum, str]
|
|
16
|
-
)
|
|
17
|
-
r"""The symbol or address of the token for which the allowance is set.."""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
SetAllowanceParamsToken = TypeAliasType(
|
|
21
|
-
"SetAllowanceParamsToken", Union[TokenEnum, str]
|
|
22
|
-
)
|
|
23
|
-
r"""The symbol or address of the token for which the allowance is set.."""
|
|
24
|
-
|
|
25
|
-
|
|
26
13
|
class SetAllowanceParamsContractEnum(str, Enum):
|
|
27
14
|
AAVE_V3_POOL = "AaveV3Pool"
|
|
28
15
|
AERODROME_BASIC_ROUTER = "AerodromeBasicRouter"
|
|
@@ -32,11 +19,13 @@ class SetAllowanceParamsContractEnum(str, Enum):
|
|
|
32
19
|
)
|
|
33
20
|
UNISWAP_V3_ROUTER = "UniswapV3Router"
|
|
34
21
|
UNISWAP_V3_NFT_POSITION_MANAGER = "UniswapV3NFTPositionManager"
|
|
35
|
-
|
|
22
|
+
MORPHO_MARKET = "MorphoMarket"
|
|
36
23
|
SKY_DAI_USDS_CONVERTER = "SkyDaiUsdsConverter"
|
|
37
24
|
SKY_USDC_USDS_CONVERTER = "SkyUsdcUsdsConverter"
|
|
38
25
|
SKY_USDS_VAULT = "SkyUsdsVault"
|
|
39
26
|
PENDLE_ROUTER = "PendleRouter"
|
|
27
|
+
ODOS_ROUTER = "OdosRouter"
|
|
28
|
+
ETHENA_VAULT = "EthenaVault"
|
|
40
29
|
|
|
41
30
|
|
|
42
31
|
SetAllowanceParamsContractUnionTypedDict = TypeAliasType(
|
|
@@ -65,7 +54,7 @@ r"""The amount to set the allowance to."""
|
|
|
65
54
|
class SetAllowanceParamsTypedDict(TypedDict):
|
|
66
55
|
r"""Parameters model for setting the token allowance for a given contract."""
|
|
67
56
|
|
|
68
|
-
token:
|
|
57
|
+
token: str
|
|
69
58
|
r"""The symbol or address of the token for which the allowance is set.."""
|
|
70
59
|
contract: SetAllowanceParamsContractUnionTypedDict
|
|
71
60
|
r"""The name or address of the contract to set spending allowance for."""
|
|
@@ -77,7 +66,7 @@ class SetAllowanceParamsTypedDict(TypedDict):
|
|
|
77
66
|
class SetAllowanceParams(BaseModel):
|
|
78
67
|
r"""Parameters model for setting the token allowance for a given contract."""
|
|
79
68
|
|
|
80
|
-
token:
|
|
69
|
+
token: str
|
|
81
70
|
r"""The symbol or address of the token for which the allowance is set.."""
|
|
82
71
|
|
|
83
72
|
contract: SetAllowanceParamsContractUnion
|