mm-balance 0.1.15__tar.gz → 0.1.16__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_balance-0.1.15 → mm_balance-0.1.16}/PKG-INFO +1 -1
- {mm_balance-0.1.15 → mm_balance-0.1.16}/pyproject.toml +2 -2
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/cli.py +1 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/config/example.yml +2 -2
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/config.py +4 -1
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/output/formats/json_format.py +1 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/output/formats/table_format.py +4 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/uv.lock +25 -25
- {mm_balance-0.1.15 → mm_balance-0.1.16}/.gitignore +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/README.md +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/justfile +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/__init__.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/constants.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/output/__init__.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/output/utils.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/price.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/result.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/rpc/__init__.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/rpc/aptos.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/rpc/btc.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/rpc/evm.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/rpc/solana.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/token_decimals.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/utils.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/src/mm_balance/workers.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/tests/__init__.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/tests/conftest.py +0 -0
- {mm_balance-0.1.15 → mm_balance-0.1.16}/tests/test_dummy.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mm-balance"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.16"
|
|
4
4
|
description = ""
|
|
5
5
|
requires-python = ">=3.12"
|
|
6
6
|
dependencies = [
|
|
@@ -23,7 +23,7 @@ dev-dependencies = [
|
|
|
23
23
|
"pytest-xdist~=3.6.1",
|
|
24
24
|
"pytest-httpserver~=1.1.0",
|
|
25
25
|
"coverage~=7.6.4",
|
|
26
|
-
"ruff~=0.7.
|
|
26
|
+
"ruff~=0.7.3",
|
|
27
27
|
"pip-audit~=2.7.0",
|
|
28
28
|
"bandit~=1.7.10",
|
|
29
29
|
"mypy~=1.13.0",
|
|
@@ -59,6 +59,7 @@ def cli(
|
|
|
59
59
|
|
|
60
60
|
if config.print_debug and config.print_format is PrintFormat.TABLE:
|
|
61
61
|
table_format.print_nodes(config)
|
|
62
|
+
table_format.print_proxy_count(config)
|
|
62
63
|
|
|
63
64
|
token_decimals = get_token_decimals(config)
|
|
64
65
|
if config.print_debug and config.print_format is PrintFormat.TABLE:
|
|
@@ -39,11 +39,11 @@ coins:
|
|
|
39
39
|
addresses: binance_eth
|
|
40
40
|
|
|
41
41
|
- ticker: USDC
|
|
42
|
-
comment:
|
|
42
|
+
comment: swap.thala.apt
|
|
43
43
|
network: aptos
|
|
44
44
|
token_address: 0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC
|
|
45
45
|
token_decimals: 6
|
|
46
|
-
addresses: "
|
|
46
|
+
addresses: "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af" # for a single line it's necessary to use quotes
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
addresses:
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
import os
|
|
3
4
|
from decimal import Decimal
|
|
4
5
|
from pathlib import Path
|
|
5
|
-
from typing import Self
|
|
6
|
+
from typing import Self, cast
|
|
6
7
|
|
|
7
8
|
import pydash
|
|
8
9
|
from mm_std import BaseConfig, PrintFormat, fatal, hr
|
|
@@ -97,6 +98,8 @@ class Config(BaseConfig):
|
|
|
97
98
|
# load from proxies_url
|
|
98
99
|
if self.proxies_url is not None:
|
|
99
100
|
self.proxies = get_proxies(self.proxies_url)
|
|
101
|
+
elif os.getenv("MM_BALANCE_PROXIES_URL"):
|
|
102
|
+
self.proxies = get_proxies(cast(str, os.getenv("MM_BALANCE_PROXIES_URL")))
|
|
100
103
|
|
|
101
104
|
# load addresses from address_group
|
|
102
105
|
for group in self.groups:
|
|
@@ -12,6 +12,7 @@ def print_result(config: Config, token_decimals: TokenDecimals, prices: Prices,
|
|
|
12
12
|
if config.print_debug:
|
|
13
13
|
data["nodes"] = config.nodes
|
|
14
14
|
data["token_decimals"] = token_decimals
|
|
15
|
+
data["proxies"] = len(config.proxies)
|
|
15
16
|
if config.price:
|
|
16
17
|
data["prices"] = prices
|
|
17
18
|
|
|
@@ -17,6 +17,10 @@ def print_nodes(config: Config) -> None:
|
|
|
17
17
|
print_table("Nodes", ["network", "nodes"], rows)
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
def print_proxy_count(config: Config) -> None:
|
|
21
|
+
print_table("Proxies", ["count"], [[len(config.proxies)]])
|
|
22
|
+
|
|
23
|
+
|
|
20
24
|
def print_token_decimals(token_decimals: TokenDecimals) -> None:
|
|
21
25
|
rows = []
|
|
22
26
|
for network, decimals in token_decimals.items():
|
|
@@ -937,7 +937,7 @@ wheels = [
|
|
|
937
937
|
|
|
938
938
|
[[package]]
|
|
939
939
|
name = "mm-balance"
|
|
940
|
-
version = "0.1.
|
|
940
|
+
version = "0.1.16"
|
|
941
941
|
source = { editable = "." }
|
|
942
942
|
dependencies = [
|
|
943
943
|
{ name = "mm-aptos" },
|
|
@@ -947,7 +947,7 @@ dependencies = [
|
|
|
947
947
|
{ name = "typer" },
|
|
948
948
|
]
|
|
949
949
|
|
|
950
|
-
[package.
|
|
950
|
+
[package.dev-dependencies]
|
|
951
951
|
dev = [
|
|
952
952
|
{ name = "bandit" },
|
|
953
953
|
{ name = "coverage" },
|
|
@@ -970,7 +970,7 @@ requires-dist = [
|
|
|
970
970
|
{ name = "typer", specifier = ">=0.12.5" },
|
|
971
971
|
]
|
|
972
972
|
|
|
973
|
-
[package.metadata.
|
|
973
|
+
[package.metadata.requires-dev]
|
|
974
974
|
dev = [
|
|
975
975
|
{ name = "bandit", specifier = "~=1.7.10" },
|
|
976
976
|
{ name = "coverage", specifier = "~=7.6.4" },
|
|
@@ -979,7 +979,7 @@ dev = [
|
|
|
979
979
|
{ name = "pytest", specifier = "~=8.3.3" },
|
|
980
980
|
{ name = "pytest-httpserver", specifier = "~=1.1.0" },
|
|
981
981
|
{ name = "pytest-xdist", specifier = "~=3.6.1" },
|
|
982
|
-
{ name = "ruff", specifier = "~=0.7.
|
|
982
|
+
{ name = "ruff", specifier = "~=0.7.3" },
|
|
983
983
|
{ name = "types-python-dateutil", specifier = "~=2.9.0.20241003" },
|
|
984
984
|
{ name = "types-pyyaml", specifier = "~=6.0.12.20240917" },
|
|
985
985
|
]
|
|
@@ -1612,27 +1612,27 @@ wheels = [
|
|
|
1612
1612
|
|
|
1613
1613
|
[[package]]
|
|
1614
1614
|
name = "ruff"
|
|
1615
|
-
version = "0.7.
|
|
1616
|
-
source = { registry = "https://pypi.org/simple" }
|
|
1617
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
1618
|
-
wheels = [
|
|
1619
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1620
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1621
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1622
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1623
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1624
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1625
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1626
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1627
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1628
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1629
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1630
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1631
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1632
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1633
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1634
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1635
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
1615
|
+
version = "0.7.3"
|
|
1616
|
+
source = { registry = "https://pypi.org/simple" }
|
|
1617
|
+
sdist = { url = "https://files.pythonhosted.org/packages/4b/06/09d1276df977eece383d0ed66052fc24ec4550a61f8fbc0a11200e690496/ruff-0.7.3.tar.gz", hash = "sha256:e1d1ba2e40b6e71a61b063354d04be669ab0d39c352461f3d789cac68b54a313", size = 3243664 }
|
|
1618
|
+
wheels = [
|
|
1619
|
+
{ url = "https://files.pythonhosted.org/packages/c0/56/933d433c2489e4642487b835f53dd9ff015fb3d8fa459b09bb2ce42d7c4b/ruff-0.7.3-py3-none-linux_armv6l.whl", hash = "sha256:34f2339dc22687ec7e7002792d1f50712bf84a13d5152e75712ac08be565d344", size = 10372090 },
|
|
1620
|
+
{ url = "https://files.pythonhosted.org/packages/20/ea/1f0a22a6bcdd3fc26c73f63a025d05bd565901b729d56bcb093c722a6c4c/ruff-0.7.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:fb397332a1879b9764a3455a0bb1087bda876c2db8aca3a3cbb67b3dbce8cda0", size = 10190037 },
|
|
1621
|
+
{ url = "https://files.pythonhosted.org/packages/16/74/aca75666e0d481fe394e76a8647c44ea919087748024924baa1a17371e3e/ruff-0.7.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:37d0b619546103274e7f62643d14e1adcbccb242efda4e4bdb9544d7764782e9", size = 9811998 },
|
|
1622
|
+
{ url = "https://files.pythonhosted.org/packages/20/a1/cf446a0d7f78ea1f0bd2b9171c11dfe746585c0c4a734b25966121eb4f5d/ruff-0.7.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d59f0c3ee4d1a6787614e7135b72e21024875266101142a09a61439cb6e38a5", size = 10620626 },
|
|
1623
|
+
{ url = "https://files.pythonhosted.org/packages/cd/c1/82b27d09286ae855f5d03b1ad37cf243f21eb0081732d4d7b0d658d439cb/ruff-0.7.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:44eb93c2499a169d49fafd07bc62ac89b1bc800b197e50ff4633aed212569299", size = 10177598 },
|
|
1624
|
+
{ url = "https://files.pythonhosted.org/packages/b9/42/c0acac22753bf74013d035a5ef6c5c4c40ad4d6686bfb3fda7c6f37d9b37/ruff-0.7.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6d0242ce53f3a576c35ee32d907475a8d569944c0407f91d207c8af5be5dae4e", size = 11171963 },
|
|
1625
|
+
{ url = "https://files.pythonhosted.org/packages/43/18/bb0befb7fb9121dd9009e6a72eb98e24f1bacb07c6f3ecb55f032ba98aed/ruff-0.7.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:6b6224af8b5e09772c2ecb8dc9f3f344c1aa48201c7f07e7315367f6dd90ac29", size = 11856157 },
|
|
1626
|
+
{ url = "https://files.pythonhosted.org/packages/5e/91/04e98d7d6e32eca9d1372be595f9abc7b7f048795e32eb2edbd8794d50bd/ruff-0.7.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c50f95a82b94421c964fae4c27c0242890a20fe67d203d127e84fbb8013855f5", size = 11440331 },
|
|
1627
|
+
{ url = "https://files.pythonhosted.org/packages/f5/dc/3fe99f2ce10b76d389041a1b9f99e7066332e479435d4bebcceea16caff5/ruff-0.7.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7f3eff9961b5d2644bcf1616c606e93baa2d6b349e8aa8b035f654df252c8c67", size = 12725354 },
|
|
1628
|
+
{ url = "https://files.pythonhosted.org/packages/43/7b/1daa712de1c5bc6cbbf9fa60e9c41cc48cda962dc6d2c4f2a224d2c3007e/ruff-0.7.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8963cab06d130c4df2fd52c84e9f10d297826d2e8169ae0c798b6221be1d1d2", size = 11010091 },
|
|
1629
|
+
{ url = "https://files.pythonhosted.org/packages/b6/db/1227a903587432eb569e57a95b15a4f191a71fe315cde4c0312df7bc85da/ruff-0.7.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:61b46049d6edc0e4317fb14b33bd693245281a3007288b68a3f5b74a22a0746d", size = 10610687 },
|
|
1630
|
+
{ url = "https://files.pythonhosted.org/packages/db/e2/dc41ee90c3085aadad4da614d310d834f641aaafddf3dfbba08210c616ce/ruff-0.7.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:10ebce7696afe4644e8c1a23b3cf8c0f2193a310c18387c06e583ae9ef284de2", size = 10254843 },
|
|
1631
|
+
{ url = "https://files.pythonhosted.org/packages/6f/09/5f6cac1c91542bc5bd33d40b4c13b637bf64d7bb29e091dadb01b62527fe/ruff-0.7.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:3f36d56326b3aef8eeee150b700e519880d1aab92f471eefdef656fd57492aa2", size = 10730962 },
|
|
1632
|
+
{ url = "https://files.pythonhosted.org/packages/d3/42/89a4b9a24ef7d00269e24086c417a006f9a3ffeac2c80f2629eb5ce140ee/ruff-0.7.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:5d024301109a0007b78d57ab0ba190087b43dce852e552734ebf0b0b85e4fb16", size = 11101907 },
|
|
1633
|
+
{ url = "https://files.pythonhosted.org/packages/b0/5c/efdb4777686683a8edce94ffd812783bddcd3d2454d38c5ac193fef7c500/ruff-0.7.3-py3-none-win32.whl", hash = "sha256:4ba81a5f0c5478aa61674c5a2194de8b02652f17addf8dfc40c8937e6e7d79fc", size = 8611095 },
|
|
1634
|
+
{ url = "https://files.pythonhosted.org/packages/bb/b8/28fbc6a4efa50178f973972d1c84b2d0a33cdc731588522ab751ac3da2f5/ruff-0.7.3-py3-none-win_amd64.whl", hash = "sha256:588a9ff2fecf01025ed065fe28809cd5a53b43505f48b69a1ac7707b1b7e4088", size = 9418283 },
|
|
1635
|
+
{ url = "https://files.pythonhosted.org/packages/3f/77/b587cba6febd5e2003374f37eb89633f79f161e71084f94057c8653b7fb3/ruff-0.7.3-py3-none-win_arm64.whl", hash = "sha256:1713e2c5545863cdbfe2cbce21f69ffaf37b813bfd1fb3b90dc9a6f1963f5a8c", size = 8725228 },
|
|
1636
1636
|
]
|
|
1637
1637
|
|
|
1638
1638
|
[[package]]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|