mm-eth 0.6.0__py3-none-any.whl → 0.6.1__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_eth/py.typed ADDED
File without changes
mm_eth/retry.py CHANGED
@@ -124,6 +124,16 @@ async def erc20_decimals(retries: int, nodes: Nodes, proxies: Proxies, *, token:
124
124
 
125
125
  # -- end erc20 rpc calls --
126
126
 
127
+ # -- start ens calls --
128
+
129
+
130
+ async def ens_name(retries: int, nodes: Nodes, proxies: Proxies, *, address: str, timeout: float = TIMEOUT) -> Result[str | None]:
131
+ return await retry_with_node_and_proxy(
132
+ retries, nodes, proxies, lambda node, proxy: rpc.ens_name(node, address, timeout, proxy)
133
+ )
134
+
135
+
136
+ # -- stop ens calls --
127
137
 
128
138
  # -- start other --
129
139
 
mm_eth/rpc.py CHANGED
@@ -190,6 +190,8 @@ async def erc20_decimals(node: str, token: str, timeout: float = TIMEOUT, proxy:
190
190
 
191
191
  # -- end erc20 rpc calls --
192
192
 
193
+ # -- start ens calls --
194
+
193
195
 
194
196
  async def ens_name(node: str, address: str, timeout: float = TIMEOUT, proxy: str | None = None) -> Result[str | None]:
195
197
  ens_registry_address: str = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
@@ -238,6 +240,8 @@ async def ens_name(node: str, address: str, timeout: float = TIMEOUT, proxy: str
238
240
  return Result.err(e, extra)
239
241
 
240
242
 
243
+ # -- stop ens calls --
244
+
241
245
  # -- start other --
242
246
 
243
247
 
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mm-eth
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Requires-Python: >=3.12
5
5
  Requires-Dist: aiohttp-socks~=0.10.1
6
6
  Requires-Dist: mm-crypto-utils>=0.3.5
7
- Requires-Dist: mm-std~=0.4.10
7
+ Requires-Dist: mm-std~=0.4.11
8
8
  Requires-Dist: typer>=0.15.2
9
9
  Requires-Dist: web3~=7.10.0
10
10
  Requires-Dist: websocket-client~=1.8.0
@@ -5,8 +5,9 @@ mm_eth/anvil.py,sha256=NY1TxYnamfm_47HqCbgUCRdQxPgmAcJ-9YkK3NZ0310,1631
5
5
  mm_eth/converters.py,sha256=smL3Bsky1pYEre2kPhsb4arXoQC_u80P5ilU9NRvr44,2043
6
6
  mm_eth/deploy.py,sha256=SB3ruY808_5UnG8kHR34uVP66P3zOWZu0ImKD7UUv2s,691
7
7
  mm_eth/erc20.py,sha256=Pxs_w95flqEUF4pJMoaHTfvud8x5Fb2UwU7iwMjdGCw,1143
8
- mm_eth/retry.py,sha256=93MzazJnDZraLavtkBSPoUT-ZZWsLYq4HMf42OlLlBw,4799
9
- mm_eth/rpc.py,sha256=3LE7ZwefYqwfb1RHcAhdNK99--0r1SW5Rfr9Wg9h50Q,9816
8
+ mm_eth/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ mm_eth/retry.py,sha256=tYP7B_lah8hxYahweaGAAhWCJl-pQ0pg_2Lk-432luE,5128
10
+ mm_eth/rpc.py,sha256=sFt9vK6rHktNTAIxgKx9CSCANx9Z7tTp165yK_G3uRs,9865
10
11
  mm_eth/solc.py,sha256=2FGCJpbkCwIs8hGc8APpvC62gyAXGLeyQMrn4f9Bnow,1348
11
12
  mm_eth/tx.py,sha256=zf5fieuKB-CTOiNNjz3siXU7yga7tlh0vkZTDAHvhnQ,4102
12
13
  mm_eth/utils.py,sha256=TLyapZZ1lp_kW3vdkHmgR8gUtIQ1aEy_0GScxB6v5IQ,659
@@ -26,7 +27,7 @@ mm_eth/cli/cmd/transfer_cmd.py,sha256=kKNoU_kNl2blz9ydbvhlEY1Kck0fCMv4RKwU84HyOS
26
27
  mm_eth/cli/cmd/wallet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
28
  mm_eth/cli/cmd/wallet/mnemonic_cmd.py,sha256=xE-5Ux9BdYsTZYBy0dMn9jupGhW4ced-AgYscy_wU_4,1007
28
29
  mm_eth/cli/cmd/wallet/private_key_cmd.py,sha256=wuW_LvmIZiT9T4R8ir0wH1VQ_CEPjmrLgS-vzf0yv70,272
29
- mm_eth-0.6.0.dist-info/METADATA,sha256=cLC3hqliuUgipT2KS3MSt4JYA-fEZX43oNaY-f2iRuc,275
30
- mm_eth-0.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- mm_eth-0.6.0.dist-info/entry_points.txt,sha256=aGhpsozl8NIrkuUcX5fSgURCcDhr3ShUdeTSIrJq4oc,46
32
- mm_eth-0.6.0.dist-info/RECORD,,
30
+ mm_eth-0.6.1.dist-info/METADATA,sha256=DW-6A3JnzVNyKMMEbnrBpHW5fTSdFny98EsOlZqvkIc,275
31
+ mm_eth-0.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
+ mm_eth-0.6.1.dist-info/entry_points.txt,sha256=aGhpsozl8NIrkuUcX5fSgURCcDhr3ShUdeTSIrJq4oc,46
33
+ mm_eth-0.6.1.dist-info/RECORD,,
File without changes