mm-eth 0.6.1__py3-none-any.whl → 0.6.2__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.
mm_eth/cli/cmd/deploy_cmd.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
from typing import cast
|
|
2
|
+
|
|
3
|
+
from mm_std import BaseConfig, print_console, toml_loads
|
|
3
4
|
from pydantic import StrictStr
|
|
4
5
|
|
|
5
6
|
from mm_eth import account, deploy, retry
|
|
@@ -9,10 +10,10 @@ from mm_eth.cli.cli_utils import BaseConfigParams
|
|
|
9
10
|
class Config(BaseConfig):
|
|
10
11
|
private_key: StrictStr
|
|
11
12
|
nonce: int | None = None
|
|
12
|
-
gas:
|
|
13
|
+
gas: int
|
|
13
14
|
max_fee_per_gas: str
|
|
14
15
|
max_priority_fee_per_gas: str
|
|
15
|
-
value:
|
|
16
|
+
value: int | None = None
|
|
16
17
|
contract_bin: StrictStr
|
|
17
18
|
constructor_types: StrictStr = "[]"
|
|
18
19
|
constructor_values: StrictStr = "[]"
|
|
@@ -29,8 +30,9 @@ async def run(cli_params: DeployCmdParams) -> None:
|
|
|
29
30
|
if cli_params.print_config:
|
|
30
31
|
config.print_and_exit({"private_key"})
|
|
31
32
|
|
|
32
|
-
constructor_types =
|
|
33
|
-
|
|
33
|
+
parsed = toml_loads(f"constructor_types = {config.constructor_types}\nconstructor_values = {config.constructor_values}")
|
|
34
|
+
constructor_types = cast(list[str], parsed["constructor_types"])
|
|
35
|
+
constructor_values = cast(list[object], parsed["constructor_values"])
|
|
34
36
|
|
|
35
37
|
sender_address = account.private_to_address(config.private_key).unwrap()
|
|
36
38
|
|
|
@@ -39,4 +41,5 @@ async def run(cli_params: DeployCmdParams) -> None:
|
|
|
39
41
|
"can't get nonce"
|
|
40
42
|
)
|
|
41
43
|
|
|
42
|
-
deploy.get_deploy_contract_data(config.contract_bin, constructor_types, constructor_values)
|
|
44
|
+
res = deploy.get_deploy_contract_data(config.contract_bin, constructor_types, constructor_values)
|
|
45
|
+
print_console(res)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mm-eth
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Requires-Python: >=3.12
|
|
5
5
|
Requires-Dist: aiohttp-socks~=0.10.1
|
|
6
|
-
Requires-Dist: mm-crypto-utils>=0.3.
|
|
6
|
+
Requires-Dist: mm-crypto-utils>=0.3.6
|
|
7
7
|
Requires-Dist: mm-std~=0.4.11
|
|
8
8
|
Requires-Dist: typer>=0.15.2
|
|
9
9
|
Requires-Dist: web3~=7.10.0
|
|
@@ -20,14 +20,14 @@ mm_eth/cli/validators.py,sha256=74AxIzryQ-D3f5xJYrOnh4AMFugTpsYhUJ_pzhHd2ek,1675
|
|
|
20
20
|
mm_eth/cli/cmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
mm_eth/cli/cmd/balance_cmd.py,sha256=hujMv4Fvt4ZMZ3iPOZKdI2u2iN-ClYBmfMn_2Y4lRew,1946
|
|
22
22
|
mm_eth/cli/cmd/balances_cmd.py,sha256=VGCqcPCKPFF2O3WNlryg0nFnCkkKRAaubvpbtH0XTV0,4230
|
|
23
|
-
mm_eth/cli/cmd/deploy_cmd.py,sha256=
|
|
23
|
+
mm_eth/cli/cmd/deploy_cmd.py,sha256=T0VapUVOA6M5Hska04AObBKk5_91lClX5hARkj1Dm3k,1465
|
|
24
24
|
mm_eth/cli/cmd/node_cmd.py,sha256=JJSiKGG5OL9p7FuHhNeerjfes6Eo_StgLgpZEy3EUU0,2559
|
|
25
25
|
mm_eth/cli/cmd/solc_cmd.py,sha256=HDLThGAxk8MlJh_OBTsivoXYCKDlGnljRFp-BbYDlU0,714
|
|
26
26
|
mm_eth/cli/cmd/transfer_cmd.py,sha256=kKNoU_kNl2blz9ydbvhlEY1Kck0fCMv4RKwU84HyOSw,16933
|
|
27
27
|
mm_eth/cli/cmd/wallet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
mm_eth/cli/cmd/wallet/mnemonic_cmd.py,sha256=xE-5Ux9BdYsTZYBy0dMn9jupGhW4ced-AgYscy_wU_4,1007
|
|
29
29
|
mm_eth/cli/cmd/wallet/private_key_cmd.py,sha256=wuW_LvmIZiT9T4R8ir0wH1VQ_CEPjmrLgS-vzf0yv70,272
|
|
30
|
-
mm_eth-0.6.
|
|
31
|
-
mm_eth-0.6.
|
|
32
|
-
mm_eth-0.6.
|
|
33
|
-
mm_eth-0.6.
|
|
30
|
+
mm_eth-0.6.2.dist-info/METADATA,sha256=etjH_lZpyb7tlF0LawFlfKZ7EhCGuiE9rFj2y6QXzyE,275
|
|
31
|
+
mm_eth-0.6.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
32
|
+
mm_eth-0.6.2.dist-info/entry_points.txt,sha256=aGhpsozl8NIrkuUcX5fSgURCcDhr3ShUdeTSIrJq4oc,46
|
|
33
|
+
mm_eth-0.6.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|