mm-btc 0.5.3__py3-none-any.whl → 0.5.5__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_btc/blockstream.py +3 -3
- mm_btc-0.5.5.dist-info/METADATA +10 -0
- {mm_btc-0.5.3.dist-info → mm_btc-0.5.5.dist-info}/RECORD +5 -5
- mm_btc-0.5.3.dist-info/METADATA +0 -10
- {mm_btc-0.5.3.dist-info → mm_btc-0.5.5.dist-info}/WHEEL +0 -0
- {mm_btc-0.5.3.dist-info → mm_btc-0.5.5.dist-info}/entry_points.txt +0 -0
mm_btc/blockstream.py
CHANGED
|
@@ -70,7 +70,7 @@ class BlockstreamClient:
|
|
|
70
70
|
try:
|
|
71
71
|
if res.status_code == 400:
|
|
72
72
|
return res.to_result_err("400 Bad Request")
|
|
73
|
-
return res.to_result_ok(Address(**res.
|
|
73
|
+
return res.to_result_ok(Address(**res.parse_json()))
|
|
74
74
|
except Exception as e:
|
|
75
75
|
result = res.to_result_err(e)
|
|
76
76
|
return result
|
|
@@ -85,7 +85,7 @@ class BlockstreamClient:
|
|
|
85
85
|
for _ in range(self.attempts):
|
|
86
86
|
res = await self._request(f"/address/{address}/utxo")
|
|
87
87
|
try:
|
|
88
|
-
return res.to_result_ok([Utxo(**out) for out in res.
|
|
88
|
+
return res.to_result_ok([Utxo(**out) for out in res.parse_json()])
|
|
89
89
|
except Exception as e:
|
|
90
90
|
result = res.to_result_err(e)
|
|
91
91
|
return result
|
|
@@ -95,7 +95,7 @@ class BlockstreamClient:
|
|
|
95
95
|
for _ in range(self.attempts):
|
|
96
96
|
res = await self._request("/mempool")
|
|
97
97
|
try:
|
|
98
|
-
return res.to_result_ok(Mempool(**res.
|
|
98
|
+
return res.to_result_ok(Mempool(**res.parse_json()))
|
|
99
99
|
except Exception as e:
|
|
100
100
|
result = res.to_result_err(e)
|
|
101
101
|
return result
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mm-btc
|
|
3
|
+
Version: 0.5.5
|
|
4
|
+
Requires-Python: >=3.13
|
|
5
|
+
Requires-Dist: bitcoinlib~=0.7.5
|
|
6
|
+
Requires-Dist: bit~=0.8.0
|
|
7
|
+
Requires-Dist: hdwallet~=3.6.1
|
|
8
|
+
Requires-Dist: mm-web3~=0.5.4
|
|
9
|
+
Requires-Dist: mnemonic~=0.21
|
|
10
|
+
Requires-Dist: typer~=0.20.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
mm_btc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
mm_btc/blockstream.py,sha256=
|
|
2
|
+
mm_btc/blockstream.py,sha256=i1s1kyJ_sGQ5X_jypIQcVrJuIFtS6O4NwkLoJaMSZPg,3336
|
|
3
3
|
mm_btc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
mm_btc/tx.py,sha256=7KTMNuL1n8rRj_245BV1bH9M2_PctNvlvPsLEsRTYx4,245
|
|
5
5
|
mm_btc/wallet.py,sha256=_pGTuAf6Y9KzaWTTSg_tn6WEoRsGqhxJuPof0_xyrmM,2333
|
|
@@ -11,7 +11,7 @@ mm_btc/cli/cmd/create_tx_cmd.py,sha256=VWTW7f8IRxisPWQAddw5fw9CRup2A6OWAJHKEpecL
|
|
|
11
11
|
mm_btc/cli/cmd/decode_tx_cmd.py,sha256=oNOVX1_XIBdj0rY7ZMiwdNLVBvBHdnK0niJsXSulxXo,164
|
|
12
12
|
mm_btc/cli/cmd/mnemonic_cmd.py,sha256=N3qaQfoivODj4EQIFn4fN0ULZon7rmoETqJPy3YnKbg,1248
|
|
13
13
|
mm_btc/cli/cmd/utxo_cmd.py,sha256=6xGzi6RhXXUOgvNAFNWMWmO9AIDRWOVh_0X-jaCdeM4,299
|
|
14
|
-
mm_btc-0.5.
|
|
15
|
-
mm_btc-0.5.
|
|
16
|
-
mm_btc-0.5.
|
|
17
|
-
mm_btc-0.5.
|
|
14
|
+
mm_btc-0.5.5.dist-info/METADATA,sha256=VdG3hHfAHyso9d2jUKCuaWeqZhcmgknSnA8dBCa-GA8,253
|
|
15
|
+
mm_btc-0.5.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
16
|
+
mm_btc-0.5.5.dist-info/entry_points.txt,sha256=KphzLNE9eb9H1DO-L0gvBQaQT5ImedyVCN4a6svfiRg,46
|
|
17
|
+
mm_btc-0.5.5.dist-info/RECORD,,
|
mm_btc-0.5.3.dist-info/METADATA
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: mm-btc
|
|
3
|
-
Version: 0.5.3
|
|
4
|
-
Requires-Python: >=3.13
|
|
5
|
-
Requires-Dist: bitcoinlib~=0.7.4
|
|
6
|
-
Requires-Dist: bit~=0.8.0
|
|
7
|
-
Requires-Dist: hdwallet~=3.4.0
|
|
8
|
-
Requires-Dist: mm-web3~=0.5.1
|
|
9
|
-
Requires-Dist: mnemonic~=0.21
|
|
10
|
-
Requires-Dist: typer~=0.16.0
|
|
File without changes
|
|
File without changes
|