eth-portfolio-temp 0.0.38.dev0__cp39-cp39-musllinux_1_2_i686.whl → 0.0.39.dev0__cp39-cp39-musllinux_1_2_i686.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.

Potentially problematic release.


This version of eth-portfolio-temp might be problematic. Click here for more details.

@@ -1,15 +1,15 @@
1
1
  from abc import abstractmethod
2
2
  from asyncio import Task, create_task, sleep
3
3
  from logging import DEBUG, getLogger
4
- from typing import AsyncIterator, List
4
+ from typing import AsyncIterator, Final, List
5
5
 
6
6
  import dank_mids
7
7
  import evmspec
8
8
  import y._db.log
9
9
  from a_sync import ASyncIterable, ASyncIterator, as_yielded
10
10
  from brownie import chain
11
+ from eth_typing import BlockNumber, ChecksumAddress
11
12
  from faster_eth_utils import encode_hex
12
- from y.datatypes import Address
13
13
  from y.utils.events import ProcessedEvents
14
14
 
15
15
  from eth_portfolio._loaders import load_token_transfer
@@ -28,9 +28,9 @@ except ImportError:
28
28
 
29
29
  encode_address = lambda address: encode_hex(encode_single("address", str(address)))
30
30
 
31
- logger = getLogger(__name__)
32
- _logger_is_enabled_for = logger.isEnabledFor
33
- _logger_log = logger._log
31
+ logger: Final = getLogger(__name__)
32
+ _logger_is_enabled_for: Final = logger.isEnabledFor
33
+ _logger_log: Final = logger._log
34
34
 
35
35
 
36
36
  class _TokenTransfers(ProcessedEvents["Task[TokenTransfer]"]):
@@ -38,9 +38,14 @@ class _TokenTransfers(ProcessedEvents["Task[TokenTransfer]"]):
38
38
 
39
39
  __slots__ = "address", "_load_prices"
40
40
 
41
- def __init__(self, address: Address, from_block: int, load_prices: bool = False):
42
- self.address = address
43
- self._load_prices = load_prices
41
+ def __init__(
42
+ self,
43
+ address: ChecksumAddress,
44
+ from_block: BlockNumber,
45
+ load_prices: bool = False,
46
+ ) -> None:
47
+ self.address: Final = address
48
+ self._load_prices: Final = load_prices
44
49
  super().__init__(topics=self._topics, from_block=from_block)
45
50
 
46
51
  def __repr__(self) -> str:
@@ -119,9 +124,18 @@ class TokenTransfers(ASyncIterable[TokenTransfer]):
119
124
  NOTE: These do not come back in chronologcal order.
120
125
  """
121
126
 
122
- def __init__(self, address: Address, from_block: int, load_prices: bool = False):
123
- self.transfers_in = InboundTokenTransfers(address, from_block, load_prices=load_prices)
124
- self.transfers_out = OutboundTokenTransfers(address, from_block, load_prices=load_prices)
127
+ def __init__(
128
+ self,
129
+ address: ChecksumAddress,
130
+ from_block: BlockNumber,
131
+ load_prices: bool = False,
132
+ ) -> None:
133
+ self.transfers_in: Final = InboundTokenTransfers(
134
+ address, from_block, load_prices=load_prices
135
+ )
136
+ self.transfers_out: Final = OutboundTokenTransfers(
137
+ address, from_block, load_prices=load_prices
138
+ )
125
139
 
126
140
  async def __aiter__(self):
127
141
  async for transfer in self.__yield_thru_block(await dank_mids.eth.block_number):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eth_portfolio_temp
3
- Version: 0.0.38.dev0
3
+ Version: 0.0.39.dev0
4
4
  Summary: eth-portfolio makes it easy to analyze your portfolio.
5
5
  Home-page: https://github.com/BobTheBuidler/eth-portfolio
6
6
  Author: BobTheBuidler
@@ -16,7 +16,7 @@ Requires-Dist: faster-eth-utils
16
16
  Requires-Dist: numpy<2
17
17
  Requires-Dist: pandas<1.6,>=1.4.3
18
18
  Requires-Dist: typed-envs>=0.0.9
19
- Requires-Dist: ypricemagic<5,>=4.6.17.dev0
19
+ Requires-Dist: ypricemagic<5,>=4.6.21.dev0
20
20
  Dynamic: author
21
21
  Dynamic: author-email
22
22
  Dynamic: home-page
@@ -1,4 +1,4 @@
1
- 295eace8438df6ec133b__mypyc.cpython-39-i386-linux-gnu.so,sha256=8sYuiR7arvpQ6xAux7MKq3xAV6PztyxWI3rwKjJlUAk,762248
1
+ 295eace8438df6ec133b__mypyc.cpython-39-i386-linux-gnu.so,sha256=JzBpneBZBcb5SuAJ6tKB_4nBOo1WXA57uXQHh-CbWaI,762256
2
2
  eth_portfolio/__init__.py,sha256=0sO4cSJaLYwJfnfVOJRFw7p5_Lzhsr95YuJ1aNQM83A,500
3
3
  eth_portfolio/_argspec.cpython-39-i386-linux-gnu.so,sha256=4uYKg3A31vada3zah-n9CW639JJEZX82OZUEHjhgxVU,16572
4
4
  eth_portfolio/_argspec.py,sha256=VzUZkbDkmOSgNUZBGbGblqtxBfDcmBAB89dY2OX0j-U,1595
@@ -37,7 +37,7 @@ eth_portfolio/_loaders/transaction.py,sha256=FEYdoNDCgD6-mqZT9MuyYIEkdhG3iUwyNeM
37
37
  eth_portfolio/_loaders/utils.cpython-39-i386-linux-gnu.so,sha256=Tyx49fPc2-pGt_h4PwrpnwNQnRkD0F9l_u9qCdU8fv4,16580
38
38
  eth_portfolio/_loaders/utils.py,sha256=my3Wg2Ip5gSWuzAWcoLQQEmVmAPhIHbBzQQc0iP1iCA,2258
39
39
  eth_portfolio/_ydb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
- eth_portfolio/_ydb/token_transfers.py,sha256=_6WChlA6dGcc4c3aJy8hJf8BVmKWwTL_YCUe8O7p4PY,5003
40
+ eth_portfolio/_ydb/token_transfers.py,sha256=ypbSJMREdeh8lpTF5reuGG0f-Zb4SXjRrh3CWml9SO8,5249
41
41
  eth_portfolio/protocols/__init__.py,sha256=2qpUnGdTbC4tLUbylFvy1AE32XbsCFuFNbvqz91s0W8,2556
42
42
  eth_portfolio/protocols/_base.py,sha256=XS4wJZur6Fwl_8E_vFMXx7JSaCQmPn7QbN863TYFSZE,3685
43
43
  eth_portfolio/protocols/convex.py,sha256=uNbXxEmhcpXulNkbxoqWl9eAJTZjPJlzXFtrBGvRXLo,518
@@ -76,8 +76,8 @@ eth_portfolio_scripts/docker/.grafana/dashboards/Portfolio/Balances.json,sha256=
76
76
  eth_portfolio_scripts/docker/.grafana/datasources/datasources.yml,sha256=pBE_0Nh_J7d9Fiy3Xu6vuac_HWCBcFsJJSV-ryjQR1Y,188
77
77
  eth_portfolio_scripts/victoria/__init__.py,sha256=IUBwX_CRYWFchMf_S-IaLOKP2Vh6sxNIIhhy7YEOmeA,1922
78
78
  eth_portfolio_scripts/victoria/types.py,sha256=FJossvAvwNGkufmEk3JD_I10EEaCsOb-m6aeX_vGsUg,707
79
- eth_portfolio_temp-0.0.38.dev0.dist-info/METADATA,sha256=x_O2OmnU86heahiFnqroaB1RG91oOGlmY-Bg0ErE_eY,780
80
- eth_portfolio_temp-0.0.38.dev0.dist-info/WHEEL,sha256=6ZxVm38Ue7sbjv6r5hodKXk_rM6NU79rgzT63FMisdY,108
81
- eth_portfolio_temp-0.0.38.dev0.dist-info/entry_points.txt,sha256=yqoC6X3LU1NA_-oJ6mloEYEPNmS-0hPS9OtEwgIeDGU,66
82
- eth_portfolio_temp-0.0.38.dev0.dist-info/top_level.txt,sha256=CmTLi8Lvs3RulV5ZNdziaDVvF_WRsgRpM17GSMECxrg,64
83
- eth_portfolio_temp-0.0.38.dev0.dist-info/RECORD,,
79
+ eth_portfolio_temp-0.0.39.dev0.dist-info/METADATA,sha256=A-APBTI8JYiJnkG_oqFODR-Nd178jkf0OagI74_kVjk,780
80
+ eth_portfolio_temp-0.0.39.dev0.dist-info/WHEEL,sha256=6ZxVm38Ue7sbjv6r5hodKXk_rM6NU79rgzT63FMisdY,108
81
+ eth_portfolio_temp-0.0.39.dev0.dist-info/entry_points.txt,sha256=yqoC6X3LU1NA_-oJ6mloEYEPNmS-0hPS9OtEwgIeDGU,66
82
+ eth_portfolio_temp-0.0.39.dev0.dist-info/top_level.txt,sha256=CmTLi8Lvs3RulV5ZNdziaDVvF_WRsgRpM17GSMECxrg,64
83
+ eth_portfolio_temp-0.0.39.dev0.dist-info/RECORD,,