mm-eth 0.7.0__py3-none-any.whl → 0.7.1__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/calcs.py CHANGED
@@ -1,11 +1,11 @@
1
- import mm_cryptocurrency
1
+ import mm_web3
2
2
 
3
3
  from mm_eth.cli.validators import SUFFIX_DECIMALS
4
4
 
5
5
 
6
6
  def calc_eth_expression(expression: str, variables: dict[str, int] | None = None) -> int:
7
- return mm_cryptocurrency.calc_expression_with_vars(expression, variables, unit_decimals=SUFFIX_DECIMALS)
7
+ return mm_web3.calc_expression_with_vars(expression, variables, unit_decimals=SUFFIX_DECIMALS)
8
8
 
9
9
 
10
10
  def calc_token_expression(expression: str, token_decimals: int, variables: dict[str, int] | None = None) -> int:
11
- return mm_cryptocurrency.calc_expression_with_vars(expression, variables, unit_decimals={"t": token_decimals})
11
+ return mm_web3.calc_expression_with_vars(expression, variables, unit_decimals={"t": token_decimals})
@@ -2,7 +2,7 @@ from dataclasses import dataclass
2
2
  from typing import Annotated
3
3
 
4
4
  import mm_print
5
- from mm_cryptocurrency import CryptocurrencyConfig
5
+ from mm_web3 import Web3CliConfig
6
6
  from pydantic import BeforeValidator
7
7
  from rich.live import Live
8
8
  from rich.table import Table
@@ -12,7 +12,7 @@ from mm_eth.cli.cli_utils import BaseConfigParams
12
12
  from mm_eth.cli.validators import Validators
13
13
 
14
14
 
15
- class Config(CryptocurrencyConfig):
15
+ class Config(Web3CliConfig):
16
16
  addresses: Annotated[list[str], BeforeValidator(Validators.eth_addresses(unique=True))]
17
17
  tokens: Annotated[list[str], BeforeValidator(Validators.eth_addresses(unique=True))]
18
18
  nodes: Annotated[list[str], BeforeValidator(Validators.nodes())]
@@ -2,14 +2,14 @@ from typing import cast
2
2
 
3
3
  import mm_print
4
4
  import tomlkit
5
- from mm_cryptocurrency import CryptocurrencyConfig
5
+ from mm_web3 import Web3CliConfig
6
6
  from pydantic import StrictStr
7
7
 
8
8
  from mm_eth import account, deploy, retry
9
9
  from mm_eth.cli.cli_utils import BaseConfigParams
10
10
 
11
11
 
12
- class Config(CryptocurrencyConfig):
12
+ class Config(Web3CliConfig):
13
13
  private_key: StrictStr
14
14
  nonce: int | None = None
15
15
  gas: int
@@ -5,9 +5,8 @@ from pathlib import Path
5
5
  from typing import Annotated, Literal, Self, cast
6
6
 
7
7
  from loguru import logger
8
- from mm_cryptocurrency import CryptocurrencyConfig, PrivateKeyMap, Transfer, calc_decimal_expression
9
- from mm_cryptocurrency.log import init_loguru
10
8
  from mm_std import utc_now
9
+ from mm_web3 import PrivateKeyMap, Transfer, Web3CliConfig, calc_decimal_expression, init_loguru
11
10
  from pydantic import AfterValidator, BeforeValidator, Field, model_validator
12
11
  from rich.console import Console
13
12
  from rich.live import Live
@@ -20,7 +19,7 @@ from mm_eth.cli.validators import Validators
20
19
  from mm_eth.converters import from_wei
21
20
 
22
21
 
23
- class Config(CryptocurrencyConfig):
22
+ class Config(Web3CliConfig):
24
23
  nodes: Annotated[list[str], BeforeValidator(Validators.nodes())]
25
24
  chain_id: int
26
25
  transfers: Annotated[list[Transfer], BeforeValidator(Validators.eth_transfers())]
mm_eth/cli/rpc_helpers.py CHANGED
@@ -1,6 +1,6 @@
1
1
  import logging
2
2
 
3
- from mm_cryptocurrency import Nodes, Proxies
3
+ from mm_web3 import Nodes, Proxies
4
4
 
5
5
  from mm_eth import retry
6
6
  from mm_eth.cli import calcs
mm_eth/cli/validators.py CHANGED
@@ -1,7 +1,7 @@
1
1
  from collections.abc import Callable
2
2
 
3
3
  import eth_utils
4
- from mm_cryptocurrency import ConfigValidators, PrivateKeyMap, Transfer
4
+ from mm_web3 import ConfigValidators, PrivateKeyMap, Transfer
5
5
 
6
6
  from mm_eth import account
7
7
 
mm_eth/retry.py CHANGED
@@ -1,8 +1,8 @@
1
1
  from typing import Any, Literal
2
2
 
3
3
  from eth_typing import BlockIdentifier
4
- from mm_cryptocurrency import Nodes, Proxies, retry_with_node_and_proxy
5
4
  from mm_result import Result
5
+ from mm_web3 import Nodes, Proxies, retry_with_node_and_proxy
6
6
  from web3.types import TxReceipt
7
7
 
8
8
  from mm_eth import rpc
@@ -1,8 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mm-eth
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Requires-Python: >=3.13
5
- Requires-Dist: mm-cryptocurrency>=0.4.7
6
- Requires-Dist: mm-std>=0.5.3
5
+ Requires-Dist: mm-web3~=0.5.1
7
6
  Requires-Dist: typer~=0.16.0
8
7
  Requires-Dist: web3~=7.12.0
@@ -6,28 +6,28 @@ mm_eth/converters.py,sha256=smL3Bsky1pYEre2kPhsb4arXoQC_u80P5ilU9NRvr44,2043
6
6
  mm_eth/deploy.py,sha256=SB3ruY808_5UnG8kHR34uVP66P3zOWZu0ImKD7UUv2s,691
7
7
  mm_eth/erc20.py,sha256=Pxs_w95flqEUF4pJMoaHTfvud8x5Fb2UwU7iwMjdGCw,1143
8
8
  mm_eth/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- mm_eth/retry.py,sha256=_vixxRGWbqrBwrBDpenGye78DA9GWvGb1kESpyBiNtM,5133
9
+ mm_eth/retry.py,sha256=saRYV07Ca1laqT1nQP3_UmKvYXNWMURh8gyN2r1WrIs,5123
10
10
  mm_eth/rpc.py,sha256=3I6mfM_-93qFK25SLwv8zUG2vR5EaEUd_YfcBVX8YF0,9917
11
11
  mm_eth/solc.py,sha256=s_iaaslncVzzQsgUgcc04x8ZeCjCf9T9JdW1_yzUDxI,1353
12
12
  mm_eth/tx.py,sha256=MSJf6zGRYlwCbJIXXLL2NONVpvF1_clWd_5CV5j4pTE,4095
13
13
  mm_eth/utils.py,sha256=TLyapZZ1lp_kW3vdkHmgR8gUtIQ1aEy_0GScxB6v5IQ,659
14
14
  mm_eth/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- mm_eth/cli/calcs.py,sha256=Dl4nnlkqAp8gc9T4tip94DyC7Sq_NM8HeWdetD5t-xg,507
15
+ mm_eth/cli/calcs.py,sha256=FwnYwRKDnBdXTYrjdWqilPd36W969ovziO8qkQoHOsw,477
16
16
  mm_eth/cli/cli.py,sha256=aElAbK1FiABwMPTU-vysyFIyg6OkBtiir6Zj4LuNmx8,5600
17
17
  mm_eth/cli/cli_utils.py,sha256=Py04-0wI5_6Hby0zN8WxYFZf0jL13B1gxjjYTIDrqOE,1536
18
- mm_eth/cli/rpc_helpers.py,sha256=lBWfPfupkg1cy-FazPUf8VGSiZaqhJf1s1r31dDhocE,1653
19
- mm_eth/cli/validators.py,sha256=rqq7StsEAGATFFLiqlmWOhXueJi_iuGwTsx51Rj7ANo,1659
18
+ mm_eth/cli/rpc_helpers.py,sha256=nmr4CXVMGblGJxllaLd95gTV_VhauRhWUKmQZk5-Vmg,1643
19
+ mm_eth/cli/validators.py,sha256=0T5tQdqEd4fNaamVK8TifUBTCzqLkNdzTA4rZD98_H8,1649
20
20
  mm_eth/cli/cmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  mm_eth/cli/cmd/balance_cmd.py,sha256=Qtn_4h_MDYh38HizkOx6auAv0_41GyCH3bWDmLXHfjQ,1963
22
- mm_eth/cli/cmd/balances_cmd.py,sha256=9yT7Z9QhQ2uuutF-ljmplK0WLw1nedMWs7BhShK4dlE,4280
23
- mm_eth/cli/cmd/deploy_cmd.py,sha256=csjQY2QraPy-ryEbng1nuKtHT7clbLeMFVgtownTbts,1503
22
+ mm_eth/cli/cmd/balances_cmd.py,sha256=I8GgANCx5vuu8Yb5qOrlcKdUc-Yzw1eg9Ucrran5xnQ,4256
23
+ mm_eth/cli/cmd/deploy_cmd.py,sha256=ge-r_GbGc9r2osz-g7zOmqXkbMsFnjeyNPSoq72Ntpg,1479
24
24
  mm_eth/cli/cmd/node_cmd.py,sha256=-BBKj9l-ZiPr6NZ12WQvuxQcXvyDBvcbReMMevN3fME,2574
25
25
  mm_eth/cli/cmd/solc_cmd.py,sha256=Puu8mw8wvbltEug7SCMZdNT5Y9tD_-awdKGYKeYHUsw,648
26
- mm_eth/cli/cmd/transfer_cmd.py,sha256=6ytekmQ0tpb6_64H83ZBjTPhhHrt1yzD3wDXq3ij3Bc,17035
26
+ mm_eth/cli/cmd/transfer_cmd.py,sha256=6ciWTPdnu6dnv0H0c641kgar2nG4aJOxl0G0lszxD4M,16978
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=RQbNY3C4-5NvcPXorhO7YIYG8dU0u5gN5sEANmFE1iY,996
29
29
  mm_eth/cli/cmd/wallet/private_key_cmd.py,sha256=RmSrUxaGd0U7f6Xo_CZuJ8XQG9PbjI3Tc1Iu7wzkP3Q,262
30
- mm_eth-0.7.0.dist-info/METADATA,sha256=PtWBZ6qJbMS6FkGqspgEDpgulMeJvQTWqvp4_puy4w4,200
31
- mm_eth-0.7.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
- mm_eth-0.7.0.dist-info/entry_points.txt,sha256=aGhpsozl8NIrkuUcX5fSgURCcDhr3ShUdeTSIrJq4oc,46
33
- mm_eth-0.7.0.dist-info/RECORD,,
30
+ mm_eth-0.7.1.dist-info/METADATA,sha256=mqbTSkJIF14yJ9FAJokEFQMkJykqHSrqwidE8NyEppU,161
31
+ mm_eth-0.7.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
+ mm_eth-0.7.1.dist-info/entry_points.txt,sha256=aGhpsozl8NIrkuUcX5fSgURCcDhr3ShUdeTSIrJq4oc,46
33
+ mm_eth-0.7.1.dist-info/RECORD,,
File without changes