mm-sol 0.7.2__tar.gz → 0.7.4__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.
Files changed (51) hide show
  1. mm_sol-0.7.4/PKG-INFO +10 -0
  2. {mm_sol-0.7.2 → mm_sol-0.7.4}/pyproject.toml +16 -16
  3. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cmd/balances_cmd.py +1 -1
  4. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cmd/example_cmd.py +1 -1
  5. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cmd/transfer_cmd.py +1 -1
  6. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/rpc.py +1 -1
  7. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/rpc_sync.py +1 -1
  8. mm_sol-0.7.4/uv.lock +1668 -0
  9. mm_sol-0.7.2/PKG-INFO +0 -11
  10. mm_sol-0.7.2/uv.lock +0 -1325
  11. {mm_sol-0.7.2 → mm_sol-0.7.4}/.env.example +0 -0
  12. {mm_sol-0.7.2 → mm_sol-0.7.4}/.gitignore +0 -0
  13. {mm_sol-0.7.2 → mm_sol-0.7.4}/.pre-commit-config.yaml +0 -0
  14. {mm_sol-0.7.2 → mm_sol-0.7.4}/README.md +0 -0
  15. {mm_sol-0.7.2 → mm_sol-0.7.4}/dict.dic +0 -0
  16. {mm_sol-0.7.2 → mm_sol-0.7.4}/justfile +0 -0
  17. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/__init__.py +0 -0
  18. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/account.py +0 -0
  19. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/__init__.py +0 -0
  20. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/calcs.py +0 -0
  21. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cli.py +0 -0
  22. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cli_utils.py +0 -0
  23. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cmd/__init__.py +0 -0
  24. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cmd/balance_cmd.py +0 -0
  25. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cmd/node_cmd.py +0 -0
  26. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cmd/wallet/__init__.py +0 -0
  27. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cmd/wallet/keypair_cmd.py +0 -0
  28. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/cmd/wallet/mnemonic_cmd.py +0 -0
  29. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/examples/balances.toml +0 -0
  30. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/examples/transfer.toml +0 -0
  31. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/cli/validators.py +0 -0
  32. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/constants.py +0 -0
  33. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/converters.py +0 -0
  34. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/py.typed +0 -0
  35. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/retry.py +0 -0
  36. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/spl_token.py +0 -0
  37. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/transfer.py +0 -0
  38. {mm_sol-0.7.2 → mm_sol-0.7.4}/src/mm_sol/utils.py +0 -0
  39. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/__init__.py +0 -0
  40. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/cli/__init__.py +0 -0
  41. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/cli/cmd/__init__.py +0 -0
  42. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/cli/cmd/wallet/__init__.py +0 -0
  43. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/cli/cmd/wallet/test_keypair_cmd.py +0 -0
  44. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/cli/cmd/wallet/test_mnemonic_cmd.py +0 -0
  45. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/conftest.py +0 -0
  46. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/test_account.py +0 -0
  47. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/test_client.py +0 -0
  48. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/test_converters.py +0 -0
  49. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/test_rpc.py +0 -0
  50. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/test_rpc_sync.py +0 -0
  51. {mm_sol-0.7.2 → mm_sol-0.7.4}/tests/test_spl_token.py +0 -0
mm_sol-0.7.4/PKG-INFO ADDED
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.4
2
+ Name: mm-sol
3
+ Version: 0.7.4
4
+ Requires-Python: >=3.13
5
+ Requires-Dist: base58~=2.1.1
6
+ Requires-Dist: jinja2~=3.1.6
7
+ Requires-Dist: mm-web3~=0.5.6
8
+ Requires-Dist: mnemonic==0.21
9
+ Requires-Dist: solana~=0.36.11
10
+ Requires-Dist: typer~=0.21.1
@@ -1,16 +1,16 @@
1
1
  [project]
2
2
  name = "mm-sol"
3
- version = "0.7.2"
3
+ version = "0.7.4"
4
4
  description = ""
5
5
  requires-python = ">=3.13"
6
6
  dependencies = [
7
- "mm-web3~=0.5.2",
8
- "solana~=0.36.9",
7
+ "mm-web3~=0.5.6",
8
+ "solana~=0.36.11",
9
9
  "base58~=2.1.1",
10
10
  "mnemonic==0.21",
11
- "typer>=0.16.1",
12
- "jinja2>=3.1.6",
13
- "socksio>=1.0.0",
11
+ "typer~=0.21.1",
12
+ "jinja2~=3.1.6",
13
+ # "socksio>=1.0.0",
14
14
  ]
15
15
  [project.scripts]
16
16
  mm-sol = "mm_sol.cli.cli:app"
@@ -19,17 +19,17 @@ mm-sol = "mm_sol.cli.cli:app"
19
19
  requires = ["hatchling"]
20
20
  build-backend = "hatchling.build"
21
21
 
22
- [tool.uv]
23
- dev-dependencies = [
24
- "pytest~=8.4.1",
25
- "pytest-asyncio~=1.1.0",
22
+ [dependency-groups]
23
+ dev = [
24
+ "bandit~=1.9.2",
25
+ "mypy~=1.19.1",
26
+ "pip-audit~=2.10.0",
27
+ "pre-commit~=4.5.1",
28
+ "pytest~=9.0.2",
29
+ "pytest-asyncio~=1.3.0",
26
30
  "pytest-xdist~=3.8.0",
27
- "ruff~=0.12.10",
28
- "pip-audit~=2.9.0",
29
- "bandit~=1.8.6",
30
- "mypy~=1.17.1",
31
- "pre-commit~=4.3.0",
32
- "python-dotenv~=1.1.1",
31
+ "ruff~=0.14.11",
32
+ "python-dotenv~=1.2.0",
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.fatal(f"Failed to get decimals for token {token_address}: {res.unwrap_err()}")
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)
@@ -5,4 +5,4 @@ import mm_print
5
5
 
6
6
  def run(module: str) -> None:
7
7
  example_file = Path(Path(__file__).parent.absolute(), "../examples", f"{module}.toml")
8
- mm_print.toml(toml=example_file.read_text())
8
+ mm_print.toml(example_file.read_text())
@@ -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.fatal(f"can't get decimals for token={self.token}, error={res.unwrap_err()}")
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.parse_json_body()
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.parse_json_body()
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}")