dao-treasury 0.0.35__cp311-cp311-win_amd64.whl → 0.1.1__cp311-cp311-win_amd64.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/.grafana/provisioning/dashboards/breakdowns/Expenses.json +567 -0
- dao_treasury/.grafana/provisioning/dashboards/breakdowns/Revenue.json +569 -0
- dao_treasury/.grafana/provisioning/dashboards/dashboards.yaml +7 -57
- dao_treasury/.grafana/provisioning/dashboards/streams/LlamaPay.json +15 -27
- dao_treasury/.grafana/provisioning/dashboards/summary/Monthly.json +286 -25
- dao_treasury/.grafana/provisioning/dashboards/transactions/Treasury Transactions.json +54 -71
- dao_treasury/.grafana/provisioning/dashboards/transactions/Unsorted Transactions.json +367 -0
- dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow (Including Unsorted).json +172 -209
- dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow.json +122 -142
- dao_treasury/.grafana/provisioning/dashboards/treasury/Current Treasury Assets.json +941 -0
- dao_treasury/.grafana/provisioning/dashboards/treasury/Historical Treasury Balances.json +3931 -0
- dao_treasury/.grafana/provisioning/dashboards/treasury/Operating Cashflow.json +89 -108
- dao_treasury/.grafana/provisioning/datasources/datasources.yaml +9 -4
- dao_treasury/ENVIRONMENT_VARIABLES.py +12 -0
- dao_treasury/__init__.py +14 -4
- dao_treasury/_docker.cp311-win_amd64.pyd +0 -0
- dao_treasury/_docker.py +44 -23
- dao_treasury/_nicknames.cp311-win_amd64.pyd +0 -0
- dao_treasury/_nicknames.py +18 -2
- dao_treasury/_wallet.cp311-win_amd64.pyd +0 -0
- dao_treasury/constants.cp311-win_amd64.pyd +0 -0
- dao_treasury/constants.py +24 -0
- dao_treasury/db.py +409 -119
- dao_treasury/docker-compose.yaml +19 -3
- dao_treasury/main.py +44 -3
- dao_treasury/sorting/__init__.cp311-win_amd64.pyd +0 -0
- dao_treasury/sorting/__init__.py +38 -21
- dao_treasury/sorting/_matchers.cp311-win_amd64.pyd +0 -0
- dao_treasury/sorting/_rules.cp311-win_amd64.pyd +0 -0
- dao_treasury/sorting/factory.cp311-win_amd64.pyd +0 -0
- dao_treasury/sorting/rule.cp311-win_amd64.pyd +0 -0
- dao_treasury/sorting/rule.py +8 -10
- dao_treasury/sorting/rules/__init__.cp311-win_amd64.pyd +0 -0
- dao_treasury/sorting/rules/ignore/__init__.cp311-win_amd64.pyd +0 -0
- dao_treasury/sorting/rules/ignore/llamapay.cp311-win_amd64.pyd +0 -0
- dao_treasury/streams/llamapay.py +14 -2
- dao_treasury/treasury.py +37 -16
- dao_treasury/types.cp311-win_amd64.pyd +0 -0
- {dao_treasury-0.0.35.dist-info → dao_treasury-0.1.1.dist-info}/METADATA +19 -3
- dao_treasury-0.1.1.dist-info/RECORD +53 -0
- dao_treasury-0.1.1.dist-info/top_level.txt +2 -0
- dao_treasury__mypyc.cp311-win_amd64.pyd +0 -0
- bf2b4fe1f86ad2ea158b__mypyc.cp311-win_amd64.pyd +0 -0
- dao_treasury/.grafana/provisioning/dashboards/treasury/Treasury.json +0 -2018
- dao_treasury/streams/__init__.cp311-win_amd64.pyd +0 -0
- dao_treasury/streams/llamapay.cp311-win_amd64.pyd +0 -0
- dao_treasury-0.0.35.dist-info/RECORD +0 -51
- dao_treasury-0.0.35.dist-info/top_level.txt +0 -2
- {dao_treasury-0.0.35.dist-info → dao_treasury-0.1.1.dist-info}/WHEEL +0 -0
dao_treasury/constants.py
CHANGED
|
@@ -1,11 +1,30 @@
|
|
|
1
|
+
"""Core constants for DAO Treasury.
|
|
2
|
+
|
|
3
|
+
All constants are marked with `Final`, ensuring immutability and allowing
|
|
4
|
+
mypyc to compile them as extremely fast C-level constants for maximum
|
|
5
|
+
performance. Defines chain IDs, zero address, and key contract addresses
|
|
6
|
+
(e.g., Disperse.app) used throughout the system for transaction processing,
|
|
7
|
+
nickname assignment, and analytics.
|
|
8
|
+
|
|
9
|
+
Key Responsibilities:
|
|
10
|
+
- Provide canonical addresses and chain IDs.
|
|
11
|
+
- Support nickname setup and transaction categorization.
|
|
12
|
+
- Guarantee fast, immutable constants at runtime.
|
|
13
|
+
|
|
14
|
+
This is the single source of truth for system-wide constants.
|
|
15
|
+
"""
|
|
16
|
+
|
|
1
17
|
from typing import Final
|
|
2
18
|
|
|
19
|
+
import eth_portfolio._utils
|
|
3
20
|
import y.constants
|
|
4
21
|
|
|
5
22
|
|
|
6
23
|
CHAINID: Final = y.constants.CHAINID
|
|
24
|
+
# TODO: add docstring
|
|
7
25
|
|
|
8
26
|
ZERO_ADDRESS: Final = "0x0000000000000000000000000000000000000000"
|
|
27
|
+
# TODO: add docstring
|
|
9
28
|
|
|
10
29
|
# TODO: move disperse.app stuff from yearn-treasury to dao-treasury and then write a docs file
|
|
11
30
|
DISPERSE_APP: Final = (
|
|
@@ -13,3 +32,8 @@ DISPERSE_APP: Final = (
|
|
|
13
32
|
"0xd15fE25eD0Dba12fE05e7029C88b10C25e8880E3",
|
|
14
33
|
)
|
|
15
34
|
"""If your treasury sends funds to disperse.app, we create additional txs in the db so each individual send can be accounted for."""
|
|
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."""
|