mm-eth 0.6.0__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 +10 -7
- mm_eth/py.typed +0 -0
- mm_eth/retry.py +10 -0
- mm_eth/rpc.py +4 -0
- {mm_eth-0.6.0.dist-info → mm_eth-0.6.2.dist-info}/METADATA +3 -3
- {mm_eth-0.6.0.dist-info → mm_eth-0.6.2.dist-info}/RECORD +8 -7
- {mm_eth-0.6.0.dist-info → mm_eth-0.6.2.dist-info}/WHEEL +0 -0
- {mm_eth-0.6.0.dist-info → mm_eth-0.6.2.dist-info}/entry_points.txt +0 -0
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)
|
mm_eth/py.typed
ADDED
|
File without changes
|
mm_eth/retry.py
CHANGED
|
@@ -124,6 +124,16 @@ async def erc20_decimals(retries: int, nodes: Nodes, proxies: Proxies, *, token:
|
|
|
124
124
|
|
|
125
125
|
# -- end erc20 rpc calls --
|
|
126
126
|
|
|
127
|
+
# -- start ens calls --
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
async def ens_name(retries: int, nodes: Nodes, proxies: Proxies, *, address: str, timeout: float = TIMEOUT) -> Result[str | None]:
|
|
131
|
+
return await retry_with_node_and_proxy(
|
|
132
|
+
retries, nodes, proxies, lambda node, proxy: rpc.ens_name(node, address, timeout, proxy)
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
# -- stop ens calls --
|
|
127
137
|
|
|
128
138
|
# -- start other --
|
|
129
139
|
|
mm_eth/rpc.py
CHANGED
|
@@ -190,6 +190,8 @@ async def erc20_decimals(node: str, token: str, timeout: float = TIMEOUT, proxy:
|
|
|
190
190
|
|
|
191
191
|
# -- end erc20 rpc calls --
|
|
192
192
|
|
|
193
|
+
# -- start ens calls --
|
|
194
|
+
|
|
193
195
|
|
|
194
196
|
async def ens_name(node: str, address: str, timeout: float = TIMEOUT, proxy: str | None = None) -> Result[str | None]:
|
|
195
197
|
ens_registry_address: str = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
|
|
@@ -238,6 +240,8 @@ async def ens_name(node: str, address: str, timeout: float = TIMEOUT, proxy: str
|
|
|
238
240
|
return Result.err(e, extra)
|
|
239
241
|
|
|
240
242
|
|
|
243
|
+
# -- stop ens calls --
|
|
244
|
+
|
|
241
245
|
# -- start other --
|
|
242
246
|
|
|
243
247
|
|
|
@@ -1,10 +1,10 @@
|
|
|
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.
|
|
7
|
-
Requires-Dist: mm-std~=0.4.
|
|
6
|
+
Requires-Dist: mm-crypto-utils>=0.3.6
|
|
7
|
+
Requires-Dist: mm-std~=0.4.11
|
|
8
8
|
Requires-Dist: typer>=0.15.2
|
|
9
9
|
Requires-Dist: web3~=7.10.0
|
|
10
10
|
Requires-Dist: websocket-client~=1.8.0
|
|
@@ -5,8 +5,9 @@ mm_eth/anvil.py,sha256=NY1TxYnamfm_47HqCbgUCRdQxPgmAcJ-9YkK3NZ0310,1631
|
|
|
5
5
|
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
|
-
mm_eth/
|
|
9
|
-
mm_eth/
|
|
8
|
+
mm_eth/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
mm_eth/retry.py,sha256=tYP7B_lah8hxYahweaGAAhWCJl-pQ0pg_2Lk-432luE,5128
|
|
10
|
+
mm_eth/rpc.py,sha256=sFt9vK6rHktNTAIxgKx9CSCANx9Z7tTp165yK_G3uRs,9865
|
|
10
11
|
mm_eth/solc.py,sha256=2FGCJpbkCwIs8hGc8APpvC62gyAXGLeyQMrn4f9Bnow,1348
|
|
11
12
|
mm_eth/tx.py,sha256=zf5fieuKB-CTOiNNjz3siXU7yga7tlh0vkZTDAHvhnQ,4102
|
|
12
13
|
mm_eth/utils.py,sha256=TLyapZZ1lp_kW3vdkHmgR8gUtIQ1aEy_0GScxB6v5IQ,659
|
|
@@ -19,14 +20,14 @@ mm_eth/cli/validators.py,sha256=74AxIzryQ-D3f5xJYrOnh4AMFugTpsYhUJ_pzhHd2ek,1675
|
|
|
19
20
|
mm_eth/cli/cmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
21
|
mm_eth/cli/cmd/balance_cmd.py,sha256=hujMv4Fvt4ZMZ3iPOZKdI2u2iN-ClYBmfMn_2Y4lRew,1946
|
|
21
22
|
mm_eth/cli/cmd/balances_cmd.py,sha256=VGCqcPCKPFF2O3WNlryg0nFnCkkKRAaubvpbtH0XTV0,4230
|
|
22
|
-
mm_eth/cli/cmd/deploy_cmd.py,sha256=
|
|
23
|
+
mm_eth/cli/cmd/deploy_cmd.py,sha256=T0VapUVOA6M5Hska04AObBKk5_91lClX5hARkj1Dm3k,1465
|
|
23
24
|
mm_eth/cli/cmd/node_cmd.py,sha256=JJSiKGG5OL9p7FuHhNeerjfes6Eo_StgLgpZEy3EUU0,2559
|
|
24
25
|
mm_eth/cli/cmd/solc_cmd.py,sha256=HDLThGAxk8MlJh_OBTsivoXYCKDlGnljRFp-BbYDlU0,714
|
|
25
26
|
mm_eth/cli/cmd/transfer_cmd.py,sha256=kKNoU_kNl2blz9ydbvhlEY1Kck0fCMv4RKwU84HyOSw,16933
|
|
26
27
|
mm_eth/cli/cmd/wallet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
28
|
mm_eth/cli/cmd/wallet/mnemonic_cmd.py,sha256=xE-5Ux9BdYsTZYBy0dMn9jupGhW4ced-AgYscy_wU_4,1007
|
|
28
29
|
mm_eth/cli/cmd/wallet/private_key_cmd.py,sha256=wuW_LvmIZiT9T4R8ir0wH1VQ_CEPjmrLgS-vzf0yv70,272
|
|
29
|
-
mm_eth-0.6.
|
|
30
|
-
mm_eth-0.6.
|
|
31
|
-
mm_eth-0.6.
|
|
32
|
-
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
|