mm-sol 0.7.2__tar.gz → 0.7.3__tar.gz
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_sol-0.7.2 → mm_sol-0.7.3}/PKG-INFO +2 -2
- {mm_sol-0.7.2 → mm_sol-0.7.3}/pyproject.toml +9 -9
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cmd/balances_cmd.py +1 -1
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cmd/example_cmd.py +1 -1
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cmd/transfer_cmd.py +1 -1
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/rpc.py +1 -1
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/rpc_sync.py +1 -1
- mm_sol-0.7.3/uv.lock +1595 -0
- mm_sol-0.7.2/uv.lock +0 -1325
- {mm_sol-0.7.2 → mm_sol-0.7.3}/.env.example +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/.gitignore +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/.pre-commit-config.yaml +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/README.md +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/dict.dic +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/justfile +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/__init__.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/account.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/__init__.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/calcs.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cli.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cli_utils.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cmd/__init__.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cmd/balance_cmd.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cmd/node_cmd.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cmd/wallet/__init__.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cmd/wallet/keypair_cmd.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/cmd/wallet/mnemonic_cmd.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/examples/balances.toml +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/examples/transfer.toml +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/cli/validators.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/constants.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/converters.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/py.typed +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/retry.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/spl_token.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/transfer.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/src/mm_sol/utils.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/__init__.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/cli/__init__.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/cli/cmd/__init__.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/cli/cmd/wallet/__init__.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/cli/cmd/wallet/test_keypair_cmd.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/cli/cmd/wallet/test_mnemonic_cmd.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/conftest.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/test_account.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/test_client.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/test_converters.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/test_rpc.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/test_rpc_sync.py +0 -0
- {mm_sol-0.7.2 → mm_sol-0.7.3}/tests/test_spl_token.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mm-sol
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Requires-Python: >=3.13
|
|
5
5
|
Requires-Dist: base58~=2.1.1
|
|
6
6
|
Requires-Dist: jinja2>=3.1.6
|
|
7
|
-
Requires-Dist: mm-web3~=0.5.
|
|
7
|
+
Requires-Dist: mm-web3~=0.5.4
|
|
8
8
|
Requires-Dist: mnemonic==0.21
|
|
9
9
|
Requires-Dist: socksio>=1.0.0
|
|
10
10
|
Requires-Dist: solana~=0.36.9
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mm-sol"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.3"
|
|
4
4
|
description = ""
|
|
5
5
|
requires-python = ">=3.13"
|
|
6
6
|
dependencies = [
|
|
7
|
-
"mm-web3~=0.5.
|
|
7
|
+
"mm-web3~=0.5.4",
|
|
8
8
|
"solana~=0.36.9",
|
|
9
9
|
"base58~=2.1.1",
|
|
10
10
|
"mnemonic==0.21",
|
|
@@ -19,17 +19,17 @@ mm-sol = "mm_sol.cli.cli:app"
|
|
|
19
19
|
requires = ["hatchling"]
|
|
20
20
|
build-backend = "hatchling.build"
|
|
21
21
|
|
|
22
|
-
[
|
|
23
|
-
dev
|
|
24
|
-
"pytest~=8.4.
|
|
25
|
-
"pytest-asyncio~=1.
|
|
22
|
+
[dependency-groups]
|
|
23
|
+
dev = [
|
|
24
|
+
"pytest~=8.4.2",
|
|
25
|
+
"pytest-asyncio~=1.2.0",
|
|
26
26
|
"pytest-xdist~=3.8.0",
|
|
27
|
-
"ruff~=0.
|
|
27
|
+
"ruff~=0.14.2",
|
|
28
28
|
"pip-audit~=2.9.0",
|
|
29
29
|
"bandit~=1.8.6",
|
|
30
|
-
"mypy~=1.
|
|
30
|
+
"mypy~=1.18.2",
|
|
31
31
|
"pre-commit~=4.3.0",
|
|
32
|
-
"python-dotenv~=1.
|
|
32
|
+
"python-dotenv~=1.2.1",
|
|
33
33
|
]
|
|
34
34
|
|
|
35
35
|
[tool.mypy]
|
|
@@ -35,7 +35,7 @@ async def run(config_path: Path, print_config: bool) -> None:
|
|
|
35
35
|
for token_address in config.tokens:
|
|
36
36
|
res = await mm_sol.retry.get_token_decimals(3, config.nodes, config.proxies, token=token_address)
|
|
37
37
|
if res.is_err():
|
|
38
|
-
mm_print.
|
|
38
|
+
mm_print.exit_with_error(f"Failed to get decimals for token {token_address}: {res.unwrap_err()}")
|
|
39
39
|
|
|
40
40
|
token_decimals = res.unwrap()
|
|
41
41
|
result[token_address] = await _get_token_balances(token_address, token_decimals, config.accounts, config)
|
|
@@ -69,7 +69,7 @@ class Config(Web3CliConfig):
|
|
|
69
69
|
if self.token:
|
|
70
70
|
res = await mm_sol.retry.get_token_decimals(3, self.nodes, self.proxies, token=self.token)
|
|
71
71
|
if res.is_err():
|
|
72
|
-
mm_print.
|
|
72
|
+
mm_print.exit_with_error(f"can't get decimals for token={self.token}, error={res.unwrap_err()}")
|
|
73
73
|
self.token_decimals = res.unwrap()
|
|
74
74
|
|
|
75
75
|
return self
|
|
@@ -26,7 +26,7 @@ async def _http_call(node: str, data: dict[str, object], timeout: float, proxy:
|
|
|
26
26
|
if res.is_err():
|
|
27
27
|
return res.to_result_err()
|
|
28
28
|
try:
|
|
29
|
-
parsed_body = res.
|
|
29
|
+
parsed_body = res.parse_json()
|
|
30
30
|
err = parsed_body.get("error", {}).get("message", "")
|
|
31
31
|
if err:
|
|
32
32
|
return res.to_result_err(f"service_error: {err}")
|
|
@@ -95,7 +95,7 @@ def _http_call(node: str, data: dict[str, object], timeout: float, proxy: str |
|
|
|
95
95
|
if res.is_err():
|
|
96
96
|
return res.to_result_err()
|
|
97
97
|
|
|
98
|
-
json_body = res.
|
|
98
|
+
json_body = res.parse_json()
|
|
99
99
|
err = pydash.get(json_body, "error.message")
|
|
100
100
|
if err:
|
|
101
101
|
return res.to_result_err(f"service_error: {err}")
|