mm-eth 0.1.3__py3-none-any.whl → 0.1.5__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/account.py CHANGED
@@ -3,6 +3,7 @@ from dataclasses import dataclass
3
3
  import eth_utils
4
4
  from eth_account import Account
5
5
  from eth_account.hdaccount import Mnemonic
6
+ from eth_account.types import Language
6
7
  from eth_keys import KeyAPI
7
8
  from eth_typing import ChecksumAddress
8
9
  from eth_utils import decode_hex
@@ -24,7 +25,7 @@ def to_checksum_address(address: str) -> ChecksumAddress:
24
25
 
25
26
 
26
27
  def generate_mnemonic(num_words: int = 24) -> str:
27
- mnemonic = Mnemonic("english")
28
+ mnemonic = Mnemonic(Language.ENGLISH)
28
29
  return mnemonic.generate(num_words=num_words)
29
30
 
30
31
 
mm_eth/cli/cli_utils.py CHANGED
@@ -1,7 +1,6 @@
1
1
  import sys
2
2
  import time
3
3
  from pathlib import Path
4
- from typing import TypeVar
5
4
 
6
5
  import eth_utils
7
6
  import yaml
@@ -15,6 +14,8 @@ from mm_eth import account, rpc
15
14
  from mm_eth.account import is_private_key
16
15
  from mm_eth.cli import calcs
17
16
 
17
+ # from typing import TypeVar
18
+
18
19
 
19
20
  class BaseConfig(BaseModel):
20
21
  model_config = ConfigDict(extra="forbid")
@@ -44,10 +45,7 @@ def delay(value: str | None) -> None:
44
45
  time.sleep(float(calcs.calc_decimal_value(value)))
45
46
 
46
47
 
47
- T = TypeVar("T")
48
-
49
-
50
- def read_config(config_cls: type[T], config_path: str) -> T:
48
+ def read_config[T](config_cls: type[T], config_path: str) -> T:
51
49
  try:
52
50
  with open(config_path) as f:
53
51
  config = config_cls(**yaml.full_load(f))
mm_eth/types.py CHANGED
@@ -1,5 +1,4 @@
1
1
  from collections.abc import Sequence
2
- from typing import TypeAlias
3
2
 
4
- Proxies: TypeAlias = str | Sequence[str] | None
5
- Nodes: TypeAlias = str | Sequence[str]
3
+ type Proxies = str | Sequence[str] | None
4
+ type Nodes = str | Sequence[str]
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mm-eth
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Requires-Python: >=3.12
5
5
  Requires-Dist: loguru~=0.7.2
6
- Requires-Dist: mm-std~=0.1.3
7
- Requires-Dist: typer~=0.12.5
8
- Requires-Dist: web3~=7.3.0
6
+ Requires-Dist: mm-std~=0.1.8
7
+ Requires-Dist: typer>=0.14.0
8
+ Requires-Dist: web3~=7.6.0
9
9
  Requires-Dist: websocket-client~=1.8.0
@@ -1,6 +1,6 @@
1
1
  mm_eth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  mm_eth/abi.py,sha256=_xw2c7Eht3-g-fA6yvakHMcehzsRRK_LqTO7Q8Ppkj4,4794
3
- mm_eth/account.py,sha256=McY_ceSLMs6lvB2RfDmBfH0dleuVnFh2jopszGkI4HQ,1976
3
+ mm_eth/account.py,sha256=6iiCZ70ojptiaDI1UMaUdJT-SghuOexLeH0YJhCWQ8g,2022
4
4
  mm_eth/anvil.py,sha256=9CWXWyK7tVrvs6NeOy7QnVwMTrUke-nBMFwZeJ4VULA,1582
5
5
  mm_eth/deploy.py,sha256=SB3ruY808_5UnG8kHR34uVP66P3zOWZu0ImKD7UUv2s,691
6
6
  mm_eth/ens.py,sha256=WMxqC1v3zwDDuLH_oWekm22qrNYxCNcvZumQMT7SYds,623
@@ -10,7 +10,7 @@ mm_eth/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  mm_eth/rpc.py,sha256=kQnYllp5ZHGuIUUX2Vw-ejLwL3zXQgka3ukwDndv4AM,13881
11
11
  mm_eth/solc.py,sha256=JcBCel-LO-lBvz3_1f7s3pVhECsUittavBvXqxYIP2c,1066
12
12
  mm_eth/tx.py,sha256=qSkaPgow3QEZR0vbnQouw8X4G-Hw9RedPrDB10aZhU0,4046
13
- mm_eth/types.py,sha256=w_B1o_XggFz2cHXa36tI-wjfE4r-BFhvKIF9nb2YI5g,154
13
+ mm_eth/types.py,sha256=vXXP5Dc72BpHv5tsyws0KDZebG1W1-5HH0UjL7N2Mgc,113
14
14
  mm_eth/utils.py,sha256=kjCIsXtRTG0dL6A1bCCuWctqd0Qh8K8N-ZocQRppYj0,7861
15
15
  mm_eth/vault.py,sha256=1ahABcgyYAMUlE4ELMGdlG_uV4irmwzrfzUZTpo3rdY,1500
16
16
  mm_eth/zksync.py,sha256=u9vnB85LXcZmtsgqsGd7NIDTwZf_U39LQfvVdC4C5I0,5997
@@ -19,7 +19,7 @@ mm_eth/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  mm_eth/cli/calcs.py,sha256=nHfn_Q9T_E8_hP7ExMyWlUGvAMzxQs6KgzdNg1CUnvU,3651
20
20
  mm_eth/cli/cli.py,sha256=lXLf_-oHT0JykSU_CHjVuq0f1EXPCfCq-OK_S6dgtiM,8992
21
21
  mm_eth/cli/cli_helpers.py,sha256=0NapwmrRVQ1PWDP6iqwaX1fnzrIdD_TwvcZXIcq5QzM,6572
22
- mm_eth/cli/cli_utils.py,sha256=4I12cJV0deKfarRpd2wNhW42L_jQab4oxa9DX-WxicM,5041
22
+ mm_eth/cli/cli_utils.py,sha256=XkumbSpjSXPJ5tI4OUaMJzwDg_rGVtenAZKokVLx30c,5028
23
23
  mm_eth/cli/validators.py,sha256=bE4G-OL6W6S30P4FK5pVn_LiY2G2w8aeA3R1kQaX0gY,2379
24
24
  mm_eth/cli/cmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  mm_eth/cli/cmd/balance_cmd.py,sha256=kDV_KAPrUY_fsGiVLcGGHspuU2zqpqsVnTe2btjtCxs,2254
@@ -43,7 +43,7 @@ mm_eth/cli/config_examples/call_contract.yml,sha256=E0XuWuBnbhyTYfxNqaoxH6Cy7UCY
43
43
  mm_eth/cli/config_examples/transfer_erc20.yml,sha256=mCUpUfqzZjTvst8kqd3EGzJY0S7cr48ySqS6yZhzLdI,1324
44
44
  mm_eth/cli/config_examples/transfer_eth.yml,sha256=i4hh3-LTcpl7JsrSuuM6gDi23B5ZnCeEnaYazQO3bzQ,1181
45
45
  mm_eth/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
- mm_eth-0.1.3.dist-info/METADATA,sha256=8RNO36nSl-kmghoYRLQqSRBGVIPBABxccC9vl_Mkueo,227
47
- mm_eth-0.1.3.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
48
- mm_eth-0.1.3.dist-info/entry_points.txt,sha256=aGhpsozl8NIrkuUcX5fSgURCcDhr3ShUdeTSIrJq4oc,46
49
- mm_eth-0.1.3.dist-info/RECORD,,
46
+ mm_eth-0.1.5.dist-info/METADATA,sha256=ateqX6m6v3snHN5L8v5mEeN0PgQmws07domULkDV5sw,227
47
+ mm_eth-0.1.5.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
48
+ mm_eth-0.1.5.dist-info/entry_points.txt,sha256=aGhpsozl8NIrkuUcX5fSgURCcDhr3ShUdeTSIrJq4oc,46
49
+ mm_eth-0.1.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.25.0
2
+ Generator: hatchling 1.26.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any