dao-treasury 0.0.46__cp310-cp310-musllinux_1_2_x86_64.whl → 0.0.48__cp310-cp310-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,6 +16,7 @@ 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
21
 
21
22
 
@@ -32,3 +33,7 @@ DISPERSE_APP: Final = (
32
33
  )
33
34
  """If your treasury sends funds to disperse.app, we create additional txs in the db so each individual send can be accounted for."""
34
35
  # TODO: all crosslink to disperse.py once ready
36
+
37
+
38
+ SUPPRESS_ERROR_LOGS: Final = eth_portfolio._utils.SUPPRESS_ERROR_LOGS
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.46
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.2,>=0.1.8.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-310-x86_64-linux-gnu.so,sha256=vrSGa0peCF-J5EXNZku2RwdwQt4EeElRfB7jID1vm1M,1328752
1
+ bf2b4fe1f86ad2ea158b__mypyc.cpython-310-x86_64-linux-gnu.so,sha256=JULFezjmKwfSR7ynHnPIYZUABrEm-4uK5Ui4QPtG6Vg,1329480
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-310-x86_64-linux-gnu.so,sha256=vXWeiErFyihnpzN0kgyYgQQpe5dpnQLCDiJRk2fy8gg,17624
@@ -8,10 +8,10 @@ dao_treasury/_nicknames.py,sha256=bvz0b8C31tFQ0pGtpSJW86OwjUF_qMBal4VXVT5UyLo,10
8
8
  dao_treasury/_wallet.cpython-310-x86_64-linux-gnu.so,sha256=EKy5hUQYkJTH04BVS0qdUU0-rG-_LTxItimaVjEAGqE,17624
9
9
  dao_treasury/_wallet.py,sha256=epV8LVuwHlOzc9UkA66js7HfEiZBOSAGJMtWbDTzmjU,10462
10
10
  dao_treasury/constants.cpython-310-x86_64-linux-gnu.so,sha256=yg6SWx8Btdhy4BLu0ZerCzkuHm9D7kJu9-c_ayQz3u0,17624
11
- dao_treasury/constants.py,sha256=MM4X4TK2RD1JaTNMg7zdo6QjKZTTvep6g7TgckE7M-8,1220
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-310-x86_64-linux-gnu.so,sha256=z2aIGzEhUoxeBgqdBIyGzAKasUMkgo248C52femjKhQ,17608
@@ -45,7 +45,7 @@ dao_treasury/streams/__init__.cpython-310-x86_64-linux-gnu.so,sha256=qnZsjSi3P4I
45
45
  dao_treasury/streams/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
46
  dao_treasury/streams/llamapay.cpython-310-x86_64-linux-gnu.so,sha256=WeGGm4co_Bx_g6FLkDAcqkTL4yhkn3C0DMOj6p_69DA,17640
47
47
  dao_treasury/streams/llamapay.py,sha256=yn37gwVfqGFF9fOhHuj9_t7KlHGyrdekF2TUmVDyg64,13147
48
- dao_treasury-0.0.46.dist-info/METADATA,sha256=TmB7fKR73Qc9wje7qaR5zxwcXOZzwCPSum0EWBm5Iz4,7029
49
- dao_treasury-0.0.46.dist-info/WHEEL,sha256=YJPq7zroHSsdctrb_KymZ4ss41PkmaA9SD9TZzqKSX8,112
50
- dao_treasury-0.0.46.dist-info/top_level.txt,sha256=Gw-ri_26lZA_3hwhnOX48mffUbmBGr8NhtoQ0XoMeF8,41
51
- dao_treasury-0.0.46.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=YJPq7zroHSsdctrb_KymZ4ss41PkmaA9SD9TZzqKSX8,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,,