dao-treasury 0.0.58__cp311-cp311-musllinux_1_2_x86_64.whl → 0.0.60__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.

Potentially problematic release.


This version of dao-treasury might be problematic. Click here for more details.

dao_treasury/db.py CHANGED
@@ -18,6 +18,7 @@ and creating SQL views for reporting.
18
18
 
19
19
  import typing
20
20
  from asyncio import Semaphore
21
+ from collections import OrderedDict
21
22
  from decimal import Decimal, InvalidOperation
22
23
  from functools import lru_cache
23
24
  from logging import getLogger
@@ -75,6 +76,9 @@ from dao_treasury.constants import CHAINID
75
76
  from dao_treasury.types import TxGroupDbid, TxGroupName
76
77
 
77
78
 
79
+ EventItem = _EventItem[_EventItem[OrderedDict[str, Any]]]
80
+
81
+
78
82
  SQLITE_DIR = Path(path.expanduser("~")) / ".dao-treasury"
79
83
  """Path to the directory in the user's home where the DAO treasury SQLite database is stored."""
80
84
 
@@ -250,6 +254,10 @@ class Address(DbEntity):
250
254
  def contract(self) -> Contract:
251
255
  return Contract(self.address)
252
256
 
257
+ @property
258
+ def contract_coro(self) -> Coroutine[Any, Any, Contract]:
259
+ return Contract.coroutine(self.address)
260
+
253
261
  @staticmethod
254
262
  @lru_cache(maxsize=None)
255
263
  def get_dbid(address: HexAddress) -> int:
@@ -420,6 +428,10 @@ class Token(DbEntity):
420
428
  def contract(self) -> Contract:
421
429
  return Contract(self.address.address)
422
430
 
431
+ @property
432
+ def contract_coro(self) -> Coroutine[Any, Any, Contract]:
433
+ return Contract.coroutine(self.address.address)
434
+
423
435
  @property
424
436
  def scale(self) -> int:
425
437
  """Base for division according to `decimals`, e.g., `10**decimals`.
@@ -755,10 +767,10 @@ class TreasuryTx(DbEntity):
755
767
  @overload
756
768
  def get_events(
757
769
  self, event_name: str, sync: Literal[False]
758
- ) -> Coroutine[Any, Any, _EventItem]: ...
770
+ ) -> Coroutine[Any, Any, EventItem]: ...
759
771
  @overload
760
- def get_events(self, event_name: str, sync: bool = True) -> _EventItem: ...
761
- def get_events(self, event_name: str, sync: bool = True) -> _EventItem:
772
+ def get_events(self, event_name: str, sync: bool = True) -> EventItem: ...
773
+ def get_events(self, event_name: str, sync: bool = True) -> EventItem:
762
774
  if not sync:
763
775
  return _EVENTS_THREADS.run(self.get_events, event_name)
764
776
  try:
@@ -5,7 +5,7 @@ networks:
5
5
 
6
6
  services:
7
7
  grafana:
8
- image: grafana/grafana:12.2.0
8
+ image: grafana/grafana:12.2.1
9
9
  ports:
10
10
  - 127.0.0.1:${DAO_TREASURY_GRAFANA_PORT:-3004}:3000
11
11
  environment:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dao_treasury
3
- Version: 0.0.58
3
+ Version: 0.0.60
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,8 @@ 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.8.dev0
17
+ Requires-Dist: eth-portfolio-temp<0.3,>=0.2.11
18
+ Requires-Dist: ypricemagic>=4.10.0
18
19
  Dynamic: classifier
19
20
  Dynamic: description
20
21
  Dynamic: description-content-type
@@ -1,4 +1,4 @@
1
- dao_treasury__mypyc.cpython-311-x86_64-linux-musl.so,sha256=S_PhFUYf37-QO9TxWL7on3dl2p8f5-N2xyzISc7ly3o,1386840
1
+ dao_treasury__mypyc.cpython-311-x86_64-linux-musl.so,sha256=0D97Tp43AEz62DlQNoir-l7GaI87Y9b9MMMbGqFh-Fc,1386840
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=NppmYHPiHislarc4L8JgE5z0BSArK0P_YLQEXiszWr8,17616
@@ -9,8 +9,8 @@ dao_treasury/_wallet.cpython-311-x86_64-linux-musl.so,sha256=6xEqPL9eYhqlioRTkEc
9
9
  dao_treasury/_wallet.py,sha256=epV8LVuwHlOzc9UkA66js7HfEiZBOSAGJMtWbDTzmjU,10462
10
10
  dao_treasury/constants.cpython-311-x86_64-linux-musl.so,sha256=yG5K9twBc8cYxNz7g9iYuHXYVdgKnLz7EVVStF4GOqg,17624
11
11
  dao_treasury/constants.py,sha256=BGWVeN4KqpxWDGLG-DjPmdXmyVEb2C9KpMig9RaGJws,1444
12
- dao_treasury/db.py,sha256=wJi8-Zh2EO0F4A2ZabSt1ftcUTY6eCfF3FaChpjsTmg,48824
13
- dao_treasury/docker-compose.yaml,sha256=0epL6OjrW8cIwtqWerzB5c1Y_txLwvGMuHWUTIGtlsA,1309
12
+ dao_treasury/db.py,sha256=TsQSE5Unj5qll-gG2nXkM1tx3-TP9rEn70Tm582GCu8,49175
13
+ dao_treasury/docker-compose.yaml,sha256=SsfbKO8XiKxu0ckhFVRF8YA3dMWOnGhwvpJg_8YDXB0,1309
14
14
  dao_treasury/main.py,sha256=uMY5XP_GpxO6Qd9VA1YMLzMOd-O4VnxbGJ2Pdqh0Zo0,8205
15
15
  dao_treasury/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  dao_treasury/treasury.py,sha256=taTvwTH_Zdu2M61TrUCENcIUjxdQO3vryrZ2iVb6suM,7223
@@ -48,7 +48,7 @@ dao_treasury/streams/__init__.cpython-311-x86_64-linux-musl.so,sha256=c0M5-72p_i
48
48
  dao_treasury/streams/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  dao_treasury/streams/llamapay.cpython-311-x86_64-linux-musl.so,sha256=SZSFifK4uSx2WcLyQvCGviBGeBJ836Zk9lM0mx13XJA,17640
50
50
  dao_treasury/streams/llamapay.py,sha256=yn37gwVfqGFF9fOhHuj9_t7KlHGyrdekF2TUmVDyg64,13147
51
- dao_treasury-0.0.58.dist-info/METADATA,sha256=sYOgR_OxSxzMzFuYPIZh44qrgGM5V615pQzIxIEbdqs,7122
52
- dao_treasury-0.0.58.dist-info/WHEEL,sha256=kA_iIvT-cxTFNl4I8QDfFHN1DAyqZDYakVXCaObxeLo,112
53
- dao_treasury-0.0.58.dist-info/top_level.txt,sha256=CV8aYytuSYplDhLVY4n0GphckdysXCd1lHmbqfsPxNk,33
54
- dao_treasury-0.0.58.dist-info/RECORD,,
51
+ dao_treasury-0.0.60.dist-info/METADATA,sha256=lqjtbm7kePOD8alsaYV90yr03ro57Xc_co7w40P8q9c,7153
52
+ dao_treasury-0.0.60.dist-info/WHEEL,sha256=kA_iIvT-cxTFNl4I8QDfFHN1DAyqZDYakVXCaObxeLo,112
53
+ dao_treasury-0.0.60.dist-info/top_level.txt,sha256=CV8aYytuSYplDhLVY4n0GphckdysXCd1lHmbqfsPxNk,33
54
+ dao_treasury-0.0.60.dist-info/RECORD,,