dao-treasury 0.0.47__cp311-cp311-musllinux_1_2_x86_64.whl → 0.0.48__cp311-cp311-musllinux_1_2_x86_64.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.
dao_treasury/constants.py CHANGED
@@ -16,8 +16,8 @@ This is the single source of truth for system-wide constants.
16
16
 
17
17
  from typing import Final
18
18
 
19
+ import eth_portfolio._utils
19
20
  import y.constants
20
- from eth_portfolio import _utils as eth_portfolio_utils
21
21
 
22
22
 
23
23
  CHAINID: Final = y.constants.CHAINID
@@ -35,5 +35,5 @@ DISPERSE_APP: Final = (
35
35
  # TODO: all crosslink to disperse.py once ready
36
36
 
37
37
 
38
- SUPPRESS_ERROR_LOGS: Final = eth_portfolio_utils.SUPPRESS_ERROR_LOGS
38
+ SUPPRESS_ERROR_LOGS: Final = eth_portfolio._utils.SUPPRESS_ERROR_LOGS
39
39
  """Append tokens here when you don't expect them to price successfully and do not want to see the associated error logs."""
dao_treasury/db.py CHANGED
@@ -744,6 +744,14 @@ class TreasuryTx(DbEntity):
744
744
  """Decoded event logs for this transaction."""
745
745
  return self._transaction.events
746
746
 
747
+ async def events_async(self) -> EventDict:
748
+ """Asynchronously fetch decoded event logs for this transaction."""
749
+ tx = self._transaction
750
+ events = tx._events
751
+ if events is None:
752
+ events = await _EVENTS_THREADS.run(getattr, tx, "events")
753
+ return events
754
+
747
755
  @overload
748
756
  def get_events(
749
757
  self, event_name: str, sync: Literal[False]
dao_treasury/main.py CHANGED
@@ -97,6 +97,12 @@ parser.add_argument(
97
97
  help="The time interval between datapoints. default: 1d",
98
98
  default="1d",
99
99
  )
100
+ parser.add_argument(
101
+ "--concurrency",
102
+ type=int,
103
+ help="The max number of historical blocks to export concurrently. default: 50",
104
+ default=50,
105
+ )
100
106
  parser.add_argument(
101
107
  "--daemon",
102
108
  action="store_true",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dao_treasury
3
- Version: 0.0.47
3
+ Version: 0.0.48
4
4
  Summary: Produce comprehensive financial reports for your on-chain org
5
5
  Classifier: Development Status :: 3 - Alpha
6
6
  Classifier: Intended Audience :: Developers
@@ -14,7 +14,7 @@ Classifier: Operating System :: OS Independent
14
14
  Classifier: Topic :: Software Development :: Libraries
15
15
  Requires-Python: >=3.10,<3.13
16
16
  Description-Content-Type: text/markdown
17
- Requires-Dist: eth-portfolio-temp<0.3,>=0.2.1.dev0
17
+ Requires-Dist: eth-portfolio-temp<0.3,>=0.2.2.dev0
18
18
  Dynamic: classifier
19
19
  Dynamic: description
20
20
  Dynamic: description-content-type
@@ -1,4 +1,4 @@
1
- bf2b4fe1f86ad2ea158b__mypyc.cpython-311-x86_64-linux-musl.so,sha256=itLbbLXOOpmFIwH7eMoyeN0JeFizsIHI-ZReoXt2Ubw,1295520
1
+ bf2b4fe1f86ad2ea158b__mypyc.cpython-311-x86_64-linux-musl.so,sha256=3rvsyOKW0Yk-WW2Go_u7eDFQpY_1fWqzjrqzihBGSIQ,1295560
2
2
  dao_treasury/ENVIRONMENT_VARIABLES.py,sha256=LEczR1MSWTY00sLHnFs3j_Jm8WZNJCxjwEzrvjbwl2E,636
3
3
  dao_treasury/__init__.py,sha256=W4syl9-cNhHOdD25ye9U7aBJTLE_R-uP49FXC_6CUOE,1477
4
4
  dao_treasury/_docker.cpython-311-x86_64-linux-musl.so,sha256=-X8oYgxdc1UNhbmoO3TOaBxneTku1vnj_J3EuCxdrfw,17616
@@ -8,10 +8,10 @@ dao_treasury/_nicknames.py,sha256=bvz0b8C31tFQ0pGtpSJW86OwjUF_qMBal4VXVT5UyLo,10
8
8
  dao_treasury/_wallet.cpython-311-x86_64-linux-musl.so,sha256=MPkIe-TYaNPvT7YUYhkxddXFiZxKYC72YrrnvQ2BV-U,17616
9
9
  dao_treasury/_wallet.py,sha256=epV8LVuwHlOzc9UkA66js7HfEiZBOSAGJMtWbDTzmjU,10462
10
10
  dao_treasury/constants.cpython-311-x86_64-linux-musl.so,sha256=W25WCuyl-a9zcGAh5VnpV3HQabd_2a9xXgOUQBSZ9NE,17624
11
- dao_treasury/constants.py,sha256=zfskD8PPtFOHwCT38JRgEbYe15uCfgJTUGbdbgswwqo,1471
12
- dao_treasury/db.py,sha256=2P_Nz5uyQxlZu7q0Getuhw1ovXWNe2_vAArbqYDK3Eo,48522
11
+ dao_treasury/constants.py,sha256=BGWVeN4KqpxWDGLG-DjPmdXmyVEb2C9KpMig9RaGJws,1444
12
+ dao_treasury/db.py,sha256=wJi8-Zh2EO0F4A2ZabSt1ftcUTY6eCfF3FaChpjsTmg,48824
13
13
  dao_treasury/docker-compose.yaml,sha256=cAZ98xpMI46dJMaZQ0XjO5oj8Qb7t6l2MrHyn0g-BKg,1309
14
- dao_treasury/main.py,sha256=31EA10Fpaj9y-cRJPnNnvCBI38UM0848xlzn7A0BzC4,8047
14
+ dao_treasury/main.py,sha256=j1O2dUk6PTBCI3H50YBV6sQesKdhttLFi9-DzENBKkY,8205
15
15
  dao_treasury/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  dao_treasury/treasury.py,sha256=taTvwTH_Zdu2M61TrUCENcIUjxdQO3vryrZ2iVb6suM,7223
17
17
  dao_treasury/types.cpython-311-x86_64-linux-musl.so,sha256=o9cgd1TQZIVmaTTUltVMi0AxJUtGzscED1A20AVJp-c,17608
@@ -45,7 +45,7 @@ dao_treasury/streams/__init__.cpython-311-x86_64-linux-musl.so,sha256=sQvPrMg8DQ
45
45
  dao_treasury/streams/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
46
  dao_treasury/streams/llamapay.cpython-311-x86_64-linux-musl.so,sha256=Eyq73cMymjZQLDmecr9GlWYAhIRMeKCTf02RDGWEx9c,17640
47
47
  dao_treasury/streams/llamapay.py,sha256=yn37gwVfqGFF9fOhHuj9_t7KlHGyrdekF2TUmVDyg64,13147
48
- dao_treasury-0.0.47.dist-info/METADATA,sha256=HxbwiH6flKrhrdo-3eebId828pVq8KZB0qCaE5xYN_I,7029
49
- dao_treasury-0.0.47.dist-info/WHEEL,sha256=kA_iIvT-cxTFNl4I8QDfFHN1DAyqZDYakVXCaObxeLo,112
50
- dao_treasury-0.0.47.dist-info/top_level.txt,sha256=Gw-ri_26lZA_3hwhnOX48mffUbmBGr8NhtoQ0XoMeF8,41
51
- dao_treasury-0.0.47.dist-info/RECORD,,
48
+ dao_treasury-0.0.48.dist-info/METADATA,sha256=2-_M9EOlbrOVhjyGNTLZq3BnIi1aDEfMlFO5pPas7OY,7029
49
+ dao_treasury-0.0.48.dist-info/WHEEL,sha256=kA_iIvT-cxTFNl4I8QDfFHN1DAyqZDYakVXCaObxeLo,112
50
+ dao_treasury-0.0.48.dist-info/top_level.txt,sha256=Gw-ri_26lZA_3hwhnOX48mffUbmBGr8NhtoQ0XoMeF8,41
51
+ dao_treasury-0.0.48.dist-info/RECORD,,