compass_api_sdk 1.1.2__py3-none-any.whl → 1.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of compass_api_sdk might be problematic. Click here for more details.
- compass_api_sdk/_version.py +3 -3
- compass_api_sdk/aave_v3.py +68 -44
- compass_api_sdk/aerodrome_slipstream.py +62 -32
- compass_api_sdk/erc_4626_vaults.py +12 -0
- compass_api_sdk/ethena.py +18 -0
- compass_api_sdk/models/__init__.py +0 -254
- compass_api_sdk/models/aaveborrowparams.py +4 -13
- compass_api_sdk/models/aaveborrowrequest.py +10 -14
- compass_api_sdk/models/aavelooprequest.py +18 -26
- compass_api_sdk/models/aaverepayparams.py +4 -13
- compass_api_sdk/models/aaverepayrequest.py +10 -14
- compass_api_sdk/models/aavesupplyparams.py +4 -13
- compass_api_sdk/models/aavesupplyrequest.py +10 -14
- compass_api_sdk/models/aavewithdrawparams.py +4 -13
- compass_api_sdk/models/aavewithdrawrequest.py +10 -14
- compass_api_sdk/models/aerodromeposition.py +4 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -26
- compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +14 -26
- compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
- compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -25
- compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
- compass_api_sdk/models/compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py +4 -13
- compass_api_sdk/models/ethenadepositrequest.py +6 -1
- compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
- compass_api_sdk/models/ethenaunstakerequest.py +6 -1
- compass_api_sdk/models/morphoborrowrequest.py +6 -1
- compass_api_sdk/models/morphodepositrequest.py +6 -1
- compass_api_sdk/models/morphorepayrequest.py +11 -1
- compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
- compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
- compass_api_sdk/models/morphowithdrawrequest.py +6 -1
- compass_api_sdk/models/multicallexecuterequest.py +7 -2
- compass_api_sdk/models/odosswapparams.py +4 -25
- compass_api_sdk/models/odosswaprequest.py +10 -28
- compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
- compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
- compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
- compass_api_sdk/models/pendletradeptparams.py +2 -15
- compass_api_sdk/models/pendletradeptrequest.py +8 -16
- compass_api_sdk/models/pendletradeytparams.py +2 -15
- compass_api_sdk/models/pendletradeytrequest.py +8 -16
- compass_api_sdk/models/reserve.py +6 -15
- compass_api_sdk/models/setallowanceparams.py +2 -15
- compass_api_sdk/models/setallowancerequest.py +8 -16
- compass_api_sdk/models/skybuyrequest.py +6 -1
- compass_api_sdk/models/skydepositrequest.py +6 -1
- compass_api_sdk/models/skysellrequest.py +7 -2
- compass_api_sdk/models/skywithdrawrequest.py +6 -1
- compass_api_sdk/models/tokenbalanceresponse.py +5 -15
- compass_api_sdk/models/tokentransferparams.py +2 -15
- compass_api_sdk/models/tokentransferrequest.py +8 -16
- compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
- compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
- compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
- compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
- compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
- compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
- compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
- compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
- compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
- compass_api_sdk/models/unsignedtransaction.py +34 -3
- compass_api_sdk/models/unwrapwethrequest.py +6 -1
- compass_api_sdk/models/v1_aave_avg_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_liquidity_changeop.py +5 -83
- compass_api_sdk/models/v1_aave_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_reserve_overviewop.py +5 -83
- compass_api_sdk/models/v1_aave_std_rateop.py +5 -83
- compass_api_sdk/models/v1_aave_token_priceop.py +5 -83
- compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +5 -83
- compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +10 -166
- compass_api_sdk/models/v1_generic_allowanceop.py +7 -21
- compass_api_sdk/models/v1_morpho_marketsop.py +9 -29
- compass_api_sdk/models/v1_morpho_vaultsop.py +5 -15
- compass_api_sdk/models/v1_sky_positionop.py +4 -5
- compass_api_sdk/models/v1_token_balanceop.py +10 -23
- compass_api_sdk/models/v1_token_priceop.py +7 -8
- compass_api_sdk/models/v1_uniswap_pool_priceop.py +10 -166
- compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +10 -166
- compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +10 -166
- compass_api_sdk/models/vaultdepositrequest.py +6 -1
- compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
- compass_api_sdk/models/wrapethrequest.py +6 -1
- compass_api_sdk/morpho.py +48 -24
- compass_api_sdk/pendle.py +30 -20
- compass_api_sdk/sdk.py +3 -3
- compass_api_sdk/sky.py +38 -16
- compass_api_sdk/smart_account.py +6 -0
- compass_api_sdk/swap.py +10 -12
- compass_api_sdk/{token_sdk.py → token.py} +19 -197
- compass_api_sdk/transaction_bundler.py +20 -8
- compass_api_sdk/uniswap_v3.py +74 -68
- compass_api_sdk/universal.py +24 -188
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3.dist-info}/METADATA +5 -7
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3.dist-info}/RECORD +101 -106
- compass_api_sdk/models/token_enum.py +0 -81
- compass_api_sdk/models/tokenaddressresponse.py +0 -15
- compass_api_sdk/models/tokeninfo.py +0 -17
- compass_api_sdk/models/v1_generic_supported_tokensop.py +0 -24
- compass_api_sdk/models/v1_token_addressop.py +0 -109
- {compass_api_sdk-1.1.2.dist-info → compass_api_sdk-1.1.3.dist-info}/WHEEL +0 -0
|
@@ -14,160 +14,6 @@ class V1UniswapQuoteSellExactlyChain(str, Enum):
|
|
|
14
14
|
ETHEREUM = "ethereum"
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class V1UniswapQuoteSellExactlyTokenInToken(str, Enum):
|
|
18
|
-
r"""A class representing the token.
|
|
19
|
-
|
|
20
|
-
This class is used to represent the token in the system. Notice individual
|
|
21
|
-
endpoints' documentation where per chain tokens are presented.
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
ONE_INCH = "1INCH"
|
|
25
|
-
AAVE = "AAVE"
|
|
26
|
-
AERO = "AERO"
|
|
27
|
-
ARB = "ARB"
|
|
28
|
-
BAL = "BAL"
|
|
29
|
-
BNKR = "BNKR"
|
|
30
|
-
CB_BTC = "cbBTC"
|
|
31
|
-
CB_ETH = "cbETH"
|
|
32
|
-
CLANKER = "CLANKER"
|
|
33
|
-
COPI = "COPI"
|
|
34
|
-
CRV = "CRV"
|
|
35
|
-
CRV_USD = "crvUSD"
|
|
36
|
-
CYBER = "CYBER"
|
|
37
|
-
DAI = "DAI"
|
|
38
|
-
DOGINME = "DOGINME"
|
|
39
|
-
E_BTC = "eBTC"
|
|
40
|
-
ENS = "ENS"
|
|
41
|
-
ETH = "ETH"
|
|
42
|
-
ETHFI = "ETHFI"
|
|
43
|
-
ET_HX = "ETHx"
|
|
44
|
-
EURC = "EURC"
|
|
45
|
-
EUR = "EUR"
|
|
46
|
-
EURS = "EURS"
|
|
47
|
-
E_US_DE = "eUSDe"
|
|
48
|
-
EZ_ETH = "ezETH"
|
|
49
|
-
FBTC = "FBTC"
|
|
50
|
-
FRAX = "FRAX"
|
|
51
|
-
FXS = "FXS"
|
|
52
|
-
GHO = "GHO"
|
|
53
|
-
KNC = "KNC"
|
|
54
|
-
LBTC = "LBTC"
|
|
55
|
-
LDO = "LDO"
|
|
56
|
-
LINK = "LINK"
|
|
57
|
-
LS_ETH = "LsETH"
|
|
58
|
-
LUSD = "LUSD"
|
|
59
|
-
MAI = "MAI"
|
|
60
|
-
MKR = "MKR"
|
|
61
|
-
OS_ETH = "osETH"
|
|
62
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
63
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
64
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
65
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
66
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
67
|
-
PYUSD = "PYUSD"
|
|
68
|
-
R_ETH = "rETH"
|
|
69
|
-
RLUSD = "RLUSD"
|
|
70
|
-
RPL = "RPL"
|
|
71
|
-
RS_ETH = "rsETH"
|
|
72
|
-
S_DAI = "sDAI"
|
|
73
|
-
SNX = "SNX"
|
|
74
|
-
STG = "STG"
|
|
75
|
-
S_US_DE = "sUSDe"
|
|
76
|
-
T_BTC = "tBTC"
|
|
77
|
-
UNI = "UNI"
|
|
78
|
-
US_DB_C = "USDbC"
|
|
79
|
-
USD_CE = "USDCe"
|
|
80
|
-
USDC = "USDC"
|
|
81
|
-
US_DE = "USDe"
|
|
82
|
-
USDS = "USDS"
|
|
83
|
-
US_DTB = "USDtb"
|
|
84
|
-
USDT = "USDT"
|
|
85
|
-
VIRTUAL = "VIRTUAL"
|
|
86
|
-
WBTC = "WBTC"
|
|
87
|
-
WE_ETH = "weETH"
|
|
88
|
-
WELL = "WELL"
|
|
89
|
-
WETH = "WETH"
|
|
90
|
-
WRS_ETH = "wrsETH"
|
|
91
|
-
WST_ETH = "wstETH"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
class V1UniswapQuoteSellExactlyTokenOutToken(str, Enum):
|
|
95
|
-
r"""A class representing the token.
|
|
96
|
-
|
|
97
|
-
This class is used to represent the token in the system. Notice individual
|
|
98
|
-
endpoints' documentation where per chain tokens are presented.
|
|
99
|
-
"""
|
|
100
|
-
|
|
101
|
-
ONE_INCH = "1INCH"
|
|
102
|
-
AAVE = "AAVE"
|
|
103
|
-
AERO = "AERO"
|
|
104
|
-
ARB = "ARB"
|
|
105
|
-
BAL = "BAL"
|
|
106
|
-
BNKR = "BNKR"
|
|
107
|
-
CB_BTC = "cbBTC"
|
|
108
|
-
CB_ETH = "cbETH"
|
|
109
|
-
CLANKER = "CLANKER"
|
|
110
|
-
COPI = "COPI"
|
|
111
|
-
CRV = "CRV"
|
|
112
|
-
CRV_USD = "crvUSD"
|
|
113
|
-
CYBER = "CYBER"
|
|
114
|
-
DAI = "DAI"
|
|
115
|
-
DOGINME = "DOGINME"
|
|
116
|
-
E_BTC = "eBTC"
|
|
117
|
-
ENS = "ENS"
|
|
118
|
-
ETH = "ETH"
|
|
119
|
-
ETHFI = "ETHFI"
|
|
120
|
-
ET_HX = "ETHx"
|
|
121
|
-
EURC = "EURC"
|
|
122
|
-
EUR = "EUR"
|
|
123
|
-
EURS = "EURS"
|
|
124
|
-
E_US_DE = "eUSDe"
|
|
125
|
-
EZ_ETH = "ezETH"
|
|
126
|
-
FBTC = "FBTC"
|
|
127
|
-
FRAX = "FRAX"
|
|
128
|
-
FXS = "FXS"
|
|
129
|
-
GHO = "GHO"
|
|
130
|
-
KNC = "KNC"
|
|
131
|
-
LBTC = "LBTC"
|
|
132
|
-
LDO = "LDO"
|
|
133
|
-
LINK = "LINK"
|
|
134
|
-
LS_ETH = "LsETH"
|
|
135
|
-
LUSD = "LUSD"
|
|
136
|
-
MAI = "MAI"
|
|
137
|
-
MKR = "MKR"
|
|
138
|
-
OS_ETH = "osETH"
|
|
139
|
-
PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
|
|
140
|
-
PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
|
|
141
|
-
PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
|
|
142
|
-
PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
|
|
143
|
-
PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
|
|
144
|
-
PYUSD = "PYUSD"
|
|
145
|
-
R_ETH = "rETH"
|
|
146
|
-
RLUSD = "RLUSD"
|
|
147
|
-
RPL = "RPL"
|
|
148
|
-
RS_ETH = "rsETH"
|
|
149
|
-
S_DAI = "sDAI"
|
|
150
|
-
SNX = "SNX"
|
|
151
|
-
STG = "STG"
|
|
152
|
-
S_US_DE = "sUSDe"
|
|
153
|
-
T_BTC = "tBTC"
|
|
154
|
-
UNI = "UNI"
|
|
155
|
-
US_DB_C = "USDbC"
|
|
156
|
-
USD_CE = "USDCe"
|
|
157
|
-
USDC = "USDC"
|
|
158
|
-
US_DE = "USDe"
|
|
159
|
-
USDS = "USDS"
|
|
160
|
-
US_DTB = "USDtb"
|
|
161
|
-
USDT = "USDT"
|
|
162
|
-
VIRTUAL = "VIRTUAL"
|
|
163
|
-
WBTC = "WBTC"
|
|
164
|
-
WE_ETH = "weETH"
|
|
165
|
-
WELL = "WELL"
|
|
166
|
-
WETH = "WETH"
|
|
167
|
-
WRS_ETH = "wrsETH"
|
|
168
|
-
WST_ETH = "wstETH"
|
|
169
|
-
|
|
170
|
-
|
|
171
17
|
class V1UniswapQuoteSellExactlyFeeEnum(str, Enum):
|
|
172
18
|
r"""The transaction fee of a Uniswap pool in bips.
|
|
173
19
|
|
|
@@ -196,10 +42,10 @@ class V1UniswapQuoteSellExactlyRequestTypedDict(TypedDict):
|
|
|
196
42
|
amount_in: V1UniswapQuoteSellExactlyAmountInTypedDict
|
|
197
43
|
r"""The amount of the token to swap from"""
|
|
198
44
|
chain: V1UniswapQuoteSellExactlyChain
|
|
199
|
-
token_in:
|
|
200
|
-
r"""The symbol of the token to swap from."""
|
|
201
|
-
token_out:
|
|
202
|
-
r"""The symbol of the token to swap to."""
|
|
45
|
+
token_in: str
|
|
46
|
+
r"""The symbol or address of the token to swap from."""
|
|
47
|
+
token_out: str
|
|
48
|
+
r"""The symbol or address of the token to swap to."""
|
|
203
49
|
fee: V1UniswapQuoteSellExactlyFeeEnum
|
|
204
50
|
r"""The fee to pay for the swap"""
|
|
205
51
|
|
|
@@ -217,16 +63,14 @@ class V1UniswapQuoteSellExactlyRequest(BaseModel):
|
|
|
217
63
|
] = V1UniswapQuoteSellExactlyChain.ARBITRUM
|
|
218
64
|
|
|
219
65
|
token_in: Annotated[
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
r"""The symbol of the token to swap from."""
|
|
66
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
67
|
+
] = "USDC"
|
|
68
|
+
r"""The symbol or address of the token to swap from."""
|
|
224
69
|
|
|
225
70
|
token_out: Annotated[
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
r"""The symbol of the token to swap to."""
|
|
71
|
+
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
|
72
|
+
] = "USDT"
|
|
73
|
+
r"""The symbol or address of the token to swap to."""
|
|
230
74
|
|
|
231
75
|
fee: Annotated[
|
|
232
76
|
V1UniswapQuoteSellExactlyFeeEnum,
|
|
@@ -46,6 +46,8 @@ class VaultDepositRequestTypedDict(TypedDict):
|
|
|
46
46
|
action_type: Literal["VAULT_DEPOSIT"]
|
|
47
47
|
receiver: NotRequired[Nullable[str]]
|
|
48
48
|
r"""The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
|
|
49
|
+
estimate_gas: NotRequired[bool]
|
|
50
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
49
51
|
|
|
50
52
|
|
|
51
53
|
class VaultDepositRequest(BaseModel):
|
|
@@ -71,9 +73,12 @@ class VaultDepositRequest(BaseModel):
|
|
|
71
73
|
receiver: OptionalNullable[str] = UNSET
|
|
72
74
|
r"""The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender."""
|
|
73
75
|
|
|
76
|
+
estimate_gas: Optional[bool] = True
|
|
77
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
78
|
+
|
|
74
79
|
@model_serializer(mode="wrap")
|
|
75
80
|
def serialize_model(self, handler):
|
|
76
|
-
optional_fields = ["action_type", "receiver"]
|
|
81
|
+
optional_fields = ["action_type", "receiver", "estimate_gas"]
|
|
77
82
|
nullable_fields = ["receiver"]
|
|
78
83
|
null_default_fields = []
|
|
79
84
|
|
|
@@ -34,6 +34,8 @@ class VaultWithdrawRequestTypedDict(TypedDict):
|
|
|
34
34
|
action_type: Literal["VAULT_WITHDRAW"]
|
|
35
35
|
receiver: NotRequired[Nullable[str]]
|
|
36
36
|
r"""The address which will receive the tokens withdrawn. Defaults to the sender."""
|
|
37
|
+
estimate_gas: NotRequired[bool]
|
|
38
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
class VaultWithdrawRequest(BaseModel):
|
|
@@ -59,9 +61,12 @@ class VaultWithdrawRequest(BaseModel):
|
|
|
59
61
|
receiver: OptionalNullable[str] = UNSET
|
|
60
62
|
r"""The address which will receive the tokens withdrawn. Defaults to the sender."""
|
|
61
63
|
|
|
64
|
+
estimate_gas: Optional[bool] = True
|
|
65
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
66
|
+
|
|
62
67
|
@model_serializer(mode="wrap")
|
|
63
68
|
def serialize_model(self, handler):
|
|
64
|
-
optional_fields = ["action_type", "receiver"]
|
|
69
|
+
optional_fields = ["action_type", "receiver", "estimate_gas"]
|
|
65
70
|
nullable_fields = ["receiver"]
|
|
66
71
|
null_default_fields = []
|
|
67
72
|
|
|
@@ -7,7 +7,7 @@ from enum import Enum
|
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.functional_validators import AfterValidator
|
|
9
9
|
from typing import Literal, Optional, Union
|
|
10
|
-
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
WrapEthRequestAmountTypedDict = TypeAliasType(
|
|
@@ -35,6 +35,8 @@ class WrapEthRequestTypedDict(TypedDict):
|
|
|
35
35
|
sender: str
|
|
36
36
|
r"""The address of the transaction sender."""
|
|
37
37
|
action_type: Literal["WRAP_ETH"]
|
|
38
|
+
estimate_gas: NotRequired[bool]
|
|
39
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
class WrapEthRequest(BaseModel):
|
|
@@ -54,3 +56,6 @@ class WrapEthRequest(BaseModel):
|
|
|
54
56
|
],
|
|
55
57
|
pydantic.Field(alias="action_type"),
|
|
56
58
|
] = "WRAP_ETH"
|
|
59
|
+
|
|
60
|
+
estimate_gas: Optional[bool] = True
|
|
61
|
+
r"""Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed."""
|
compass_api_sdk/morpho.py
CHANGED
|
@@ -13,9 +13,7 @@ class Morpho(BaseSDK):
|
|
|
13
13
|
self,
|
|
14
14
|
*,
|
|
15
15
|
chain: models.V1MorphoVaultsChain = models.V1MorphoVaultsChain.BASE,
|
|
16
|
-
deposit_token: OptionalNullable[
|
|
17
|
-
Union[models.DepositToken, models.DepositTokenTypedDict]
|
|
18
|
-
] = UNSET,
|
|
16
|
+
deposit_token: OptionalNullable[str] = UNSET,
|
|
19
17
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
20
18
|
server_url: Optional[str] = None,
|
|
21
19
|
timeout_ms: Optional[int] = None,
|
|
@@ -30,7 +28,7 @@ class Morpho(BaseSDK):
|
|
|
30
28
|
exchange value increasing over time.
|
|
31
29
|
|
|
32
30
|
:param chain:
|
|
33
|
-
:param deposit_token:
|
|
31
|
+
:param deposit_token: Symbol or address of the deposit token to filter vaults by. Optional parameter.
|
|
34
32
|
:param retries: Override the default retry configuration for this method
|
|
35
33
|
:param server_url: Override the default server URL for this method
|
|
36
34
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -109,9 +107,7 @@ class Morpho(BaseSDK):
|
|
|
109
107
|
self,
|
|
110
108
|
*,
|
|
111
109
|
chain: models.V1MorphoVaultsChain = models.V1MorphoVaultsChain.BASE,
|
|
112
|
-
deposit_token: OptionalNullable[
|
|
113
|
-
Union[models.DepositToken, models.DepositTokenTypedDict]
|
|
114
|
-
] = UNSET,
|
|
110
|
+
deposit_token: OptionalNullable[str] = UNSET,
|
|
115
111
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
116
112
|
server_url: Optional[str] = None,
|
|
117
113
|
timeout_ms: Optional[int] = None,
|
|
@@ -126,7 +122,7 @@ class Morpho(BaseSDK):
|
|
|
126
122
|
exchange value increasing over time.
|
|
127
123
|
|
|
128
124
|
:param chain:
|
|
129
|
-
:param deposit_token:
|
|
125
|
+
:param deposit_token: Symbol or address of the deposit token to filter vaults by. Optional parameter.
|
|
130
126
|
:param retries: Override the default retry configuration for this method
|
|
131
127
|
:param server_url: Override the default server URL for this method
|
|
132
128
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -401,12 +397,8 @@ class Morpho(BaseSDK):
|
|
|
401
397
|
self,
|
|
402
398
|
*,
|
|
403
399
|
chain: models.V1MorphoMarketsChain = models.V1MorphoMarketsChain.BASE,
|
|
404
|
-
collateral_token: OptionalNullable[
|
|
405
|
-
|
|
406
|
-
] = UNSET,
|
|
407
|
-
loan_token: OptionalNullable[
|
|
408
|
-
Union[models.LoanToken, models.LoanTokenTypedDict]
|
|
409
|
-
] = UNSET,
|
|
400
|
+
collateral_token: OptionalNullable[str] = UNSET,
|
|
401
|
+
loan_token: OptionalNullable[str] = UNSET,
|
|
410
402
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
411
403
|
server_url: Optional[str] = None,
|
|
412
404
|
timeout_ms: Optional[int] = None,
|
|
@@ -420,8 +412,8 @@ class Morpho(BaseSDK):
|
|
|
420
412
|
can be used as collateral.
|
|
421
413
|
|
|
422
414
|
:param chain:
|
|
423
|
-
:param collateral_token:
|
|
424
|
-
:param loan_token:
|
|
415
|
+
:param collateral_token: Symbol or address of the collateral token to filter markets by. Optional parameter.
|
|
416
|
+
:param loan_token: Symbol or address of the loan token to filter markets by. Optional parameter.
|
|
425
417
|
:param retries: Override the default retry configuration for this method
|
|
426
418
|
:param server_url: Override the default server URL for this method
|
|
427
419
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -501,12 +493,8 @@ class Morpho(BaseSDK):
|
|
|
501
493
|
self,
|
|
502
494
|
*,
|
|
503
495
|
chain: models.V1MorphoMarketsChain = models.V1MorphoMarketsChain.BASE,
|
|
504
|
-
collateral_token: OptionalNullable[
|
|
505
|
-
|
|
506
|
-
] = UNSET,
|
|
507
|
-
loan_token: OptionalNullable[
|
|
508
|
-
Union[models.LoanToken, models.LoanTokenTypedDict]
|
|
509
|
-
] = UNSET,
|
|
496
|
+
collateral_token: OptionalNullable[str] = UNSET,
|
|
497
|
+
loan_token: OptionalNullable[str] = UNSET,
|
|
510
498
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
511
499
|
server_url: Optional[str] = None,
|
|
512
500
|
timeout_ms: Optional[int] = None,
|
|
@@ -520,8 +508,8 @@ class Morpho(BaseSDK):
|
|
|
520
508
|
can be used as collateral.
|
|
521
509
|
|
|
522
510
|
:param chain:
|
|
523
|
-
:param collateral_token:
|
|
524
|
-
:param loan_token:
|
|
511
|
+
:param collateral_token: Symbol or address of the collateral token to filter markets by. Optional parameter.
|
|
512
|
+
:param loan_token: Symbol or address of the loan token to filter markets by. Optional parameter.
|
|
525
513
|
:param retries: Override the default retry configuration for this method
|
|
526
514
|
:param server_url: Override the default server URL for this method
|
|
527
515
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1188,6 +1176,7 @@ class Morpho(BaseSDK):
|
|
|
1188
1176
|
chain: models.MorphoDepositRequestChain,
|
|
1189
1177
|
sender: str,
|
|
1190
1178
|
receiver: OptionalNullable[str] = UNSET,
|
|
1179
|
+
estimate_gas: Optional[bool] = True,
|
|
1191
1180
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1192
1181
|
server_url: Optional[str] = None,
|
|
1193
1182
|
timeout_ms: Optional[int] = None,
|
|
@@ -1220,6 +1209,7 @@ class Morpho(BaseSDK):
|
|
|
1220
1209
|
:param chain:
|
|
1221
1210
|
:param sender: The address of the transaction sender.
|
|
1222
1211
|
:param receiver: The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
1212
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1223
1213
|
:param retries: Override the default retry configuration for this method
|
|
1224
1214
|
:param server_url: Override the default server URL for this method
|
|
1225
1215
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1241,6 +1231,7 @@ class Morpho(BaseSDK):
|
|
|
1241
1231
|
receiver=receiver,
|
|
1242
1232
|
chain=chain,
|
|
1243
1233
|
sender=sender,
|
|
1234
|
+
estimate_gas=estimate_gas,
|
|
1244
1235
|
)
|
|
1245
1236
|
|
|
1246
1237
|
req = self._build_request(
|
|
@@ -1311,6 +1302,7 @@ class Morpho(BaseSDK):
|
|
|
1311
1302
|
chain: models.MorphoDepositRequestChain,
|
|
1312
1303
|
sender: str,
|
|
1313
1304
|
receiver: OptionalNullable[str] = UNSET,
|
|
1305
|
+
estimate_gas: Optional[bool] = True,
|
|
1314
1306
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1315
1307
|
server_url: Optional[str] = None,
|
|
1316
1308
|
timeout_ms: Optional[int] = None,
|
|
@@ -1343,6 +1335,7 @@ class Morpho(BaseSDK):
|
|
|
1343
1335
|
:param chain:
|
|
1344
1336
|
:param sender: The address of the transaction sender.
|
|
1345
1337
|
:param receiver: The address which will receive the shares from the vault representing their proportional ownership of the vault's assets. Defaults to the sender.
|
|
1338
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1346
1339
|
:param retries: Override the default retry configuration for this method
|
|
1347
1340
|
:param server_url: Override the default server URL for this method
|
|
1348
1341
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1364,6 +1357,7 @@ class Morpho(BaseSDK):
|
|
|
1364
1357
|
receiver=receiver,
|
|
1365
1358
|
chain=chain,
|
|
1366
1359
|
sender=sender,
|
|
1360
|
+
estimate_gas=estimate_gas,
|
|
1367
1361
|
)
|
|
1368
1362
|
|
|
1369
1363
|
req = self._build_request_async(
|
|
@@ -1431,6 +1425,7 @@ class Morpho(BaseSDK):
|
|
|
1431
1425
|
chain: models.MorphoWithdrawRequestChain,
|
|
1432
1426
|
sender: str,
|
|
1433
1427
|
receiver: OptionalNullable[str] = UNSET,
|
|
1428
|
+
estimate_gas: Optional[bool] = True,
|
|
1434
1429
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1435
1430
|
server_url: Optional[str] = None,
|
|
1436
1431
|
timeout_ms: Optional[int] = None,
|
|
@@ -1455,6 +1450,7 @@ class Morpho(BaseSDK):
|
|
|
1455
1450
|
:param chain:
|
|
1456
1451
|
:param sender: The address of the transaction sender.
|
|
1457
1452
|
:param receiver: The address which will receive the tokens withdrawn. Defaults to the sender.
|
|
1453
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1458
1454
|
:param retries: Override the default retry configuration for this method
|
|
1459
1455
|
:param server_url: Override the default server URL for this method
|
|
1460
1456
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1476,6 +1472,7 @@ class Morpho(BaseSDK):
|
|
|
1476
1472
|
receiver=receiver,
|
|
1477
1473
|
chain=chain,
|
|
1478
1474
|
sender=sender,
|
|
1475
|
+
estimate_gas=estimate_gas,
|
|
1479
1476
|
)
|
|
1480
1477
|
|
|
1481
1478
|
req = self._build_request(
|
|
@@ -1543,6 +1540,7 @@ class Morpho(BaseSDK):
|
|
|
1543
1540
|
chain: models.MorphoWithdrawRequestChain,
|
|
1544
1541
|
sender: str,
|
|
1545
1542
|
receiver: OptionalNullable[str] = UNSET,
|
|
1543
|
+
estimate_gas: Optional[bool] = True,
|
|
1546
1544
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1547
1545
|
server_url: Optional[str] = None,
|
|
1548
1546
|
timeout_ms: Optional[int] = None,
|
|
@@ -1567,6 +1565,7 @@ class Morpho(BaseSDK):
|
|
|
1567
1565
|
:param chain:
|
|
1568
1566
|
:param sender: The address of the transaction sender.
|
|
1569
1567
|
:param receiver: The address which will receive the tokens withdrawn. Defaults to the sender.
|
|
1568
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1570
1569
|
:param retries: Override the default retry configuration for this method
|
|
1571
1570
|
:param server_url: Override the default server URL for this method
|
|
1572
1571
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1588,6 +1587,7 @@ class Morpho(BaseSDK):
|
|
|
1588
1587
|
receiver=receiver,
|
|
1589
1588
|
chain=chain,
|
|
1590
1589
|
sender=sender,
|
|
1590
|
+
estimate_gas=estimate_gas,
|
|
1591
1591
|
)
|
|
1592
1592
|
|
|
1593
1593
|
req = self._build_request_async(
|
|
@@ -1659,6 +1659,7 @@ class Morpho(BaseSDK):
|
|
|
1659
1659
|
sender: str,
|
|
1660
1660
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
1661
1661
|
callback_data: OptionalNullable[bytes] = UNSET,
|
|
1662
|
+
estimate_gas: Optional[bool] = True,
|
|
1662
1663
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1663
1664
|
server_url: Optional[str] = None,
|
|
1664
1665
|
timeout_ms: Optional[int] = None,
|
|
@@ -1687,6 +1688,7 @@ class Morpho(BaseSDK):
|
|
|
1687
1688
|
:param sender: The address of the transaction sender.
|
|
1688
1689
|
:param on_behalf_of: The address on behalf of whom the supplied collateral is made. Defaults to sender.
|
|
1689
1690
|
:param callback_data: An optional field for callback byte data that will be triggered upon successful supplying of collateral.
|
|
1691
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1690
1692
|
:param retries: Override the default retry configuration for this method
|
|
1691
1693
|
:param server_url: Override the default server URL for this method
|
|
1692
1694
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1709,6 +1711,7 @@ class Morpho(BaseSDK):
|
|
|
1709
1711
|
callback_data=callback_data,
|
|
1710
1712
|
chain=chain,
|
|
1711
1713
|
sender=sender,
|
|
1714
|
+
estimate_gas=estimate_gas,
|
|
1712
1715
|
)
|
|
1713
1716
|
|
|
1714
1717
|
req = self._build_request(
|
|
@@ -1780,6 +1783,7 @@ class Morpho(BaseSDK):
|
|
|
1780
1783
|
sender: str,
|
|
1781
1784
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
1782
1785
|
callback_data: OptionalNullable[bytes] = UNSET,
|
|
1786
|
+
estimate_gas: Optional[bool] = True,
|
|
1783
1787
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1784
1788
|
server_url: Optional[str] = None,
|
|
1785
1789
|
timeout_ms: Optional[int] = None,
|
|
@@ -1808,6 +1812,7 @@ class Morpho(BaseSDK):
|
|
|
1808
1812
|
:param sender: The address of the transaction sender.
|
|
1809
1813
|
:param on_behalf_of: The address on behalf of whom the supplied collateral is made. Defaults to sender.
|
|
1810
1814
|
:param callback_data: An optional field for callback byte data that will be triggered upon successful supplying of collateral.
|
|
1815
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1811
1816
|
:param retries: Override the default retry configuration for this method
|
|
1812
1817
|
:param server_url: Override the default server URL for this method
|
|
1813
1818
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1830,6 +1835,7 @@ class Morpho(BaseSDK):
|
|
|
1830
1835
|
callback_data=callback_data,
|
|
1831
1836
|
chain=chain,
|
|
1832
1837
|
sender=sender,
|
|
1838
|
+
estimate_gas=estimate_gas,
|
|
1833
1839
|
)
|
|
1834
1840
|
|
|
1835
1841
|
req = self._build_request_async(
|
|
@@ -1901,6 +1907,7 @@ class Morpho(BaseSDK):
|
|
|
1901
1907
|
sender: str,
|
|
1902
1908
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
1903
1909
|
receiver: OptionalNullable[str] = UNSET,
|
|
1910
|
+
estimate_gas: Optional[bool] = True,
|
|
1904
1911
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1905
1912
|
server_url: Optional[str] = None,
|
|
1906
1913
|
timeout_ms: Optional[int] = None,
|
|
@@ -1929,6 +1936,7 @@ class Morpho(BaseSDK):
|
|
|
1929
1936
|
:param sender: The address of the transaction sender.
|
|
1930
1937
|
:param on_behalf_of: The address on behalf of whom the withdraw is made. Defaults to sender.
|
|
1931
1938
|
:param receiver: The address where the withdrawn collateral will be received. Defaults to sender.
|
|
1939
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
1932
1940
|
:param retries: Override the default retry configuration for this method
|
|
1933
1941
|
:param server_url: Override the default server URL for this method
|
|
1934
1942
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1951,6 +1959,7 @@ class Morpho(BaseSDK):
|
|
|
1951
1959
|
receiver=receiver,
|
|
1952
1960
|
chain=chain,
|
|
1953
1961
|
sender=sender,
|
|
1962
|
+
estimate_gas=estimate_gas,
|
|
1954
1963
|
)
|
|
1955
1964
|
|
|
1956
1965
|
req = self._build_request(
|
|
@@ -2022,6 +2031,7 @@ class Morpho(BaseSDK):
|
|
|
2022
2031
|
sender: str,
|
|
2023
2032
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2024
2033
|
receiver: OptionalNullable[str] = UNSET,
|
|
2034
|
+
estimate_gas: Optional[bool] = True,
|
|
2025
2035
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2026
2036
|
server_url: Optional[str] = None,
|
|
2027
2037
|
timeout_ms: Optional[int] = None,
|
|
@@ -2050,6 +2060,7 @@ class Morpho(BaseSDK):
|
|
|
2050
2060
|
:param sender: The address of the transaction sender.
|
|
2051
2061
|
:param on_behalf_of: The address on behalf of whom the withdraw is made. Defaults to sender.
|
|
2052
2062
|
:param receiver: The address where the withdrawn collateral will be received. Defaults to sender.
|
|
2063
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
2053
2064
|
:param retries: Override the default retry configuration for this method
|
|
2054
2065
|
:param server_url: Override the default server URL for this method
|
|
2055
2066
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2072,6 +2083,7 @@ class Morpho(BaseSDK):
|
|
|
2072
2083
|
receiver=receiver,
|
|
2073
2084
|
chain=chain,
|
|
2074
2085
|
sender=sender,
|
|
2086
|
+
estimate_gas=estimate_gas,
|
|
2075
2087
|
)
|
|
2076
2088
|
|
|
2077
2089
|
req = self._build_request_async(
|
|
@@ -2142,6 +2154,7 @@ class Morpho(BaseSDK):
|
|
|
2142
2154
|
sender: str,
|
|
2143
2155
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2144
2156
|
receiver: OptionalNullable[str] = UNSET,
|
|
2157
|
+
estimate_gas: Optional[bool] = True,
|
|
2145
2158
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2146
2159
|
server_url: Optional[str] = None,
|
|
2147
2160
|
timeout_ms: Optional[int] = None,
|
|
@@ -2173,6 +2186,7 @@ class Morpho(BaseSDK):
|
|
|
2173
2186
|
:param sender: The address of the transaction sender.
|
|
2174
2187
|
:param on_behalf_of: The address where the collateral is borrowed against. Defaults to sender.
|
|
2175
2188
|
:param receiver: The address of the receiver of the tokens borrowed. Defaults to the transaction sender.
|
|
2189
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
2176
2190
|
:param retries: Override the default retry configuration for this method
|
|
2177
2191
|
:param server_url: Override the default server URL for this method
|
|
2178
2192
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2195,6 +2209,7 @@ class Morpho(BaseSDK):
|
|
|
2195
2209
|
receiver=receiver,
|
|
2196
2210
|
chain=chain,
|
|
2197
2211
|
sender=sender,
|
|
2212
|
+
estimate_gas=estimate_gas,
|
|
2198
2213
|
)
|
|
2199
2214
|
|
|
2200
2215
|
req = self._build_request(
|
|
@@ -2265,6 +2280,7 @@ class Morpho(BaseSDK):
|
|
|
2265
2280
|
sender: str,
|
|
2266
2281
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2267
2282
|
receiver: OptionalNullable[str] = UNSET,
|
|
2283
|
+
estimate_gas: Optional[bool] = True,
|
|
2268
2284
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2269
2285
|
server_url: Optional[str] = None,
|
|
2270
2286
|
timeout_ms: Optional[int] = None,
|
|
@@ -2296,6 +2312,7 @@ class Morpho(BaseSDK):
|
|
|
2296
2312
|
:param sender: The address of the transaction sender.
|
|
2297
2313
|
:param on_behalf_of: The address where the collateral is borrowed against. Defaults to sender.
|
|
2298
2314
|
:param receiver: The address of the receiver of the tokens borrowed. Defaults to the transaction sender.
|
|
2315
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
2299
2316
|
:param retries: Override the default retry configuration for this method
|
|
2300
2317
|
:param server_url: Override the default server URL for this method
|
|
2301
2318
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2318,6 +2335,7 @@ class Morpho(BaseSDK):
|
|
|
2318
2335
|
receiver=receiver,
|
|
2319
2336
|
chain=chain,
|
|
2320
2337
|
sender=sender,
|
|
2338
|
+
estimate_gas=estimate_gas,
|
|
2321
2339
|
)
|
|
2322
2340
|
|
|
2323
2341
|
req = self._build_request_async(
|
|
@@ -2386,6 +2404,7 @@ class Morpho(BaseSDK):
|
|
|
2386
2404
|
sender: str,
|
|
2387
2405
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2388
2406
|
callback_data: OptionalNullable[bytes] = UNSET,
|
|
2407
|
+
estimate_gas: Optional[bool] = True,
|
|
2389
2408
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2390
2409
|
server_url: Optional[str] = None,
|
|
2391
2410
|
timeout_ms: Optional[int] = None,
|
|
@@ -2414,6 +2433,7 @@ class Morpho(BaseSDK):
|
|
|
2414
2433
|
:param sender: The address of the transaction sender.
|
|
2415
2434
|
:param on_behalf_of: The address on behalf of whom the repayment is made. Defaults to sender.
|
|
2416
2435
|
:param callback_data: An optional field for callback byte data that will be triggered upon successful repaying of debt.
|
|
2436
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
2417
2437
|
:param retries: Override the default retry configuration for this method
|
|
2418
2438
|
:param server_url: Override the default server URL for this method
|
|
2419
2439
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2436,6 +2456,7 @@ class Morpho(BaseSDK):
|
|
|
2436
2456
|
callback_data=callback_data,
|
|
2437
2457
|
chain=chain,
|
|
2438
2458
|
sender=sender,
|
|
2459
|
+
estimate_gas=estimate_gas,
|
|
2439
2460
|
)
|
|
2440
2461
|
|
|
2441
2462
|
req = self._build_request(
|
|
@@ -2504,6 +2525,7 @@ class Morpho(BaseSDK):
|
|
|
2504
2525
|
sender: str,
|
|
2505
2526
|
on_behalf_of: OptionalNullable[str] = UNSET,
|
|
2506
2527
|
callback_data: OptionalNullable[bytes] = UNSET,
|
|
2528
|
+
estimate_gas: Optional[bool] = True,
|
|
2507
2529
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2508
2530
|
server_url: Optional[str] = None,
|
|
2509
2531
|
timeout_ms: Optional[int] = None,
|
|
@@ -2532,6 +2554,7 @@ class Morpho(BaseSDK):
|
|
|
2532
2554
|
:param sender: The address of the transaction sender.
|
|
2533
2555
|
:param on_behalf_of: The address on behalf of whom the repayment is made. Defaults to sender.
|
|
2534
2556
|
:param callback_data: An optional field for callback byte data that will be triggered upon successful repaying of debt.
|
|
2557
|
+
:param estimate_gas: Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
|
|
2535
2558
|
:param retries: Override the default retry configuration for this method
|
|
2536
2559
|
:param server_url: Override the default server URL for this method
|
|
2537
2560
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2554,6 +2577,7 @@ class Morpho(BaseSDK):
|
|
|
2554
2577
|
callback_data=callback_data,
|
|
2555
2578
|
chain=chain,
|
|
2556
2579
|
sender=sender,
|
|
2580
|
+
estimate_gas=estimate_gas,
|
|
2557
2581
|
)
|
|
2558
2582
|
|
|
2559
2583
|
req = self._build_request_async(
|