mm-strk 0.3.1__py3-none-any.whl → 0.3.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_strk/balance.py +2 -2
- mm_strk/domain.py +5 -5
- {mm_strk-0.3.1.dist-info → mm_strk-0.3.2.dist-info}/METADATA +2 -2
- {mm_strk-0.3.1.dist-info → mm_strk-0.3.2.dist-info}/RECORD +6 -6
- {mm_strk-0.3.1.dist-info → mm_strk-0.3.2.dist-info}/WHEEL +0 -0
- {mm_strk-0.3.1.dist-info → mm_strk-0.3.2.dist-info}/entry_points.txt +0 -0
mm_strk/balance.py
CHANGED
|
@@ -31,6 +31,6 @@ async def get_balance(rpc_url: str, address: str, token: str, timeout: float = 5
|
|
|
31
31
|
key_pair=KeyPair(private_key=654, public_key=321),
|
|
32
32
|
)
|
|
33
33
|
balance = await account.get_balance(token_address=token)
|
|
34
|
-
return Result.
|
|
34
|
+
return Result.ok(balance)
|
|
35
35
|
except Exception as e:
|
|
36
|
-
return Result.
|
|
36
|
+
return Result.err(e)
|
mm_strk/domain.py
CHANGED
|
@@ -9,10 +9,10 @@ async def address_to_domain(address: str, timeout: float = 5.0, proxy: str | Non
|
|
|
9
9
|
and res.body is not None
|
|
10
10
|
and str_contains_any(res.body.lower(), ["no data found", "no domain found"])
|
|
11
11
|
):
|
|
12
|
-
return res.
|
|
13
|
-
if res.
|
|
14
|
-
return res.
|
|
12
|
+
return res.to_ok(None)
|
|
13
|
+
if res.is_err():
|
|
14
|
+
return res.to_err()
|
|
15
15
|
domain = res.parse_json_body("domain")
|
|
16
16
|
if domain:
|
|
17
|
-
return res.
|
|
18
|
-
return res.
|
|
17
|
+
return res.to_ok(domain)
|
|
18
|
+
return res.to_err("unknown_response")
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
mm_strk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
mm_strk/balance.py,sha256=
|
|
3
|
-
mm_strk/domain.py,sha256=
|
|
2
|
+
mm_strk/balance.py,sha256=pcZutM1ZHcLpmdYuCNfWhB7_NGjiSw3H5YG1qDCAIis,1676
|
|
3
|
+
mm_strk/domain.py,sha256=s_u3kRkZDmOEt5eX2O7v3bOw9H56Eyfj1m9tHzi4gOQ,692
|
|
4
4
|
mm_strk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
mm_strk/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
mm_strk/cli/cli.py,sha256=SvIfjDq83HcFsiK_4S7Oez3Z_7OpYDIJreKALzWVUVQ,796
|
|
7
7
|
mm_strk/cli/cli_utils.py,sha256=4_QLJ_rEotHK90PRQqsvCuFydDOXPrXrnMndBffMPIg,103
|
|
8
8
|
mm_strk/cli/cmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
mm_strk/cli/cmd/node_cmd.py,sha256=ApBpGXmkQ1cGp2NPqTdqlAYS1SGNBzy81da-quVEHNo,1282
|
|
10
|
-
mm_strk-0.3.
|
|
11
|
-
mm_strk-0.3.
|
|
12
|
-
mm_strk-0.3.
|
|
13
|
-
mm_strk-0.3.
|
|
10
|
+
mm_strk-0.3.2.dist-info/METADATA,sha256=w0OVDqOwKFgNsk-GMki5qOwsTWFD1xdia5hNL_KQOJ4,177
|
|
11
|
+
mm_strk-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
mm_strk-0.3.2.dist-info/entry_points.txt,sha256=X6zWJaYaUkTgJrY4LAVpcov8O43PmUU4cQ1ue8prYqQ,48
|
|
13
|
+
mm_strk-0.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|