mm-eth 0.7.0__py3-none-any.whl → 0.7.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/calcs.py +3 -3
- mm_eth/cli/cmd/balances_cmd.py +2 -2
- mm_eth/cli/cmd/deploy_cmd.py +2 -2
- mm_eth/cli/cmd/transfer_cmd.py +2 -3
- mm_eth/cli/rpc_helpers.py +1 -1
- mm_eth/cli/validators.py +1 -1
- mm_eth/retry.py +1 -1
- mm_eth-0.7.2.dist-info/METADATA +7 -0
- {mm_eth-0.7.0.dist-info → mm_eth-0.7.2.dist-info}/RECORD +11 -11
- mm_eth-0.7.0.dist-info/METADATA +0 -8
- {mm_eth-0.7.0.dist-info → mm_eth-0.7.2.dist-info}/WHEEL +0 -0
- {mm_eth-0.7.0.dist-info → mm_eth-0.7.2.dist-info}/entry_points.txt +0 -0
mm_eth/cli/calcs.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
|
11
|
+
return mm_web3.calc_expression_with_vars(expression, variables, unit_decimals={"t": token_decimals})
|
mm_eth/cli/cmd/balances_cmd.py
CHANGED
|
@@ -2,7 +2,7 @@ from dataclasses import dataclass
|
|
|
2
2
|
from typing import Annotated
|
|
3
3
|
|
|
4
4
|
import mm_print
|
|
5
|
-
from
|
|
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(
|
|
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())]
|
mm_eth/cli/cmd/deploy_cmd.py
CHANGED
|
@@ -2,14 +2,14 @@ from typing import cast
|
|
|
2
2
|
|
|
3
3
|
import mm_print
|
|
4
4
|
import tomlkit
|
|
5
|
-
from
|
|
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(
|
|
12
|
+
class Config(Web3CliConfig):
|
|
13
13
|
private_key: StrictStr
|
|
14
14
|
nonce: int | None = None
|
|
15
15
|
gas: int
|
mm_eth/cli/cmd/transfer_cmd.py
CHANGED
|
@@ -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(
|
|
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
mm_eth/cli/validators.py
CHANGED
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
|
|
@@ -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=
|
|
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=
|
|
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=
|
|
19
|
-
mm_eth/cli/validators.py,sha256=
|
|
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=
|
|
23
|
-
mm_eth/cli/cmd/deploy_cmd.py,sha256=
|
|
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=
|
|
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.
|
|
31
|
-
mm_eth-0.7.
|
|
32
|
-
mm_eth-0.7.
|
|
33
|
-
mm_eth-0.7.
|
|
30
|
+
mm_eth-0.7.2.dist-info/METADATA,sha256=p3z08d2kQp3a2faX5QXMclcQIlYxKwK3ee8vKcPUkiY,161
|
|
31
|
+
mm_eth-0.7.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
32
|
+
mm_eth-0.7.2.dist-info/entry_points.txt,sha256=aGhpsozl8NIrkuUcX5fSgURCcDhr3ShUdeTSIrJq4oc,46
|
|
33
|
+
mm_eth-0.7.2.dist-info/RECORD,,
|
mm_eth-0.7.0.dist-info/METADATA
DELETED
|
File without changes
|
|
File without changes
|