dao-treasury 0.0.22__cp310-cp310-macosx_11_0_arm64.whl → 0.0.69__cp310-cp310-macosx_11_0_arm64.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/.grafana/provisioning/dashboards/breakdowns/Expenses.json +551 -0
- dao_treasury/.grafana/provisioning/dashboards/breakdowns/Revenue.json +551 -0
- dao_treasury/.grafana/provisioning/dashboards/dashboards.yaml +7 -7
- dao_treasury/.grafana/provisioning/dashboards/streams/LlamaPay.json +220 -0
- dao_treasury/.grafana/provisioning/dashboards/summary/Monthly.json +18 -23
- dao_treasury/.grafana/provisioning/dashboards/transactions/Treasury Transactions.json +181 -29
- dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow (Including Unsorted).json +808 -0
- dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow.json +602 -0
- dao_treasury/.grafana/provisioning/dashboards/treasury/Current Treasury Assets.json +1009 -0
- dao_treasury/.grafana/provisioning/dashboards/treasury/Historical Treasury Balances.json +2989 -0
- dao_treasury/.grafana/provisioning/dashboards/treasury/Operating Cashflow.json +478 -0
- dao_treasury/.grafana/provisioning/datasources/datasources.yaml +17 -0
- dao_treasury/ENVIRONMENT_VARIABLES.py +20 -0
- dao_treasury/__init__.py +20 -0
- dao_treasury/_docker.cpython-310-darwin.so +0 -0
- dao_treasury/_docker.py +67 -38
- dao_treasury/_nicknames.cpython-310-darwin.so +0 -0
- dao_treasury/_nicknames.py +24 -2
- dao_treasury/_wallet.cpython-310-darwin.so +0 -0
- dao_treasury/_wallet.py +157 -16
- dao_treasury/constants.cpython-310-darwin.so +0 -0
- dao_treasury/constants.py +39 -0
- dao_treasury/db.py +384 -45
- dao_treasury/docker-compose.yaml +6 -5
- dao_treasury/main.py +86 -17
- dao_treasury/sorting/__init__.cpython-310-darwin.so +0 -0
- dao_treasury/sorting/__init__.py +171 -42
- dao_treasury/sorting/_matchers.cpython-310-darwin.so +0 -0
- dao_treasury/sorting/_rules.cpython-310-darwin.so +0 -0
- dao_treasury/sorting/_rules.py +1 -3
- dao_treasury/sorting/factory.cpython-310-darwin.so +0 -0
- dao_treasury/sorting/factory.py +2 -6
- dao_treasury/sorting/rule.cpython-310-darwin.so +0 -0
- dao_treasury/sorting/rule.py +13 -10
- dao_treasury/sorting/rules/__init__.cpython-310-darwin.so +0 -0
- dao_treasury/sorting/rules/__init__.py +1 -0
- dao_treasury/sorting/rules/ignore/__init__.cpython-310-darwin.so +0 -0
- dao_treasury/sorting/rules/ignore/__init__.py +1 -0
- dao_treasury/sorting/rules/ignore/llamapay.cpython-310-darwin.so +0 -0
- dao_treasury/sorting/rules/ignore/llamapay.py +20 -0
- dao_treasury/streams/__init__.cpython-310-darwin.so +0 -0
- dao_treasury/streams/__init__.py +0 -0
- dao_treasury/streams/llamapay.cpython-310-darwin.so +0 -0
- dao_treasury/streams/llamapay.py +388 -0
- dao_treasury/treasury.py +75 -28
- dao_treasury/types.cpython-310-darwin.so +0 -0
- dao_treasury-0.0.69.dist-info/METADATA +120 -0
- dao_treasury-0.0.69.dist-info/RECORD +54 -0
- dao_treasury-0.0.69.dist-info/top_level.txt +2 -0
- dao_treasury__mypyc.cpython-310-darwin.so +0 -0
- 52b51d40e96d4333695d__mypyc.cpython-310-darwin.so +0 -0
- dao_treasury/.grafana/provisioning/datasources/sqlite.yaml +0 -10
- dao_treasury-0.0.22.dist-info/METADATA +0 -63
- dao_treasury-0.0.22.dist-info/RECORD +0 -31
- dao_treasury-0.0.22.dist-info/top_level.txt +0 -2
- {dao_treasury-0.0.22.dist-info → dao_treasury-0.0.69.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
{
|
|
2
|
+
"annotations": {
|
|
3
|
+
"list": [
|
|
4
|
+
{
|
|
5
|
+
"builtIn": 1,
|
|
6
|
+
"datasource": {
|
|
7
|
+
"type": "grafana",
|
|
8
|
+
"uid": "-- Grafana --"
|
|
9
|
+
},
|
|
10
|
+
"enable": true,
|
|
11
|
+
"hide": true,
|
|
12
|
+
"iconColor": "rgba(0, 211, 255, 1)",
|
|
13
|
+
"name": "Annotations & Alerts",
|
|
14
|
+
"type": "dashboard"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"editable": true,
|
|
19
|
+
"fiscalYearStartMonth": 0,
|
|
20
|
+
"graphTooltip": 0,
|
|
21
|
+
"id": 11,
|
|
22
|
+
"links": [],
|
|
23
|
+
"panels": [
|
|
24
|
+
{
|
|
25
|
+
"datasource": {
|
|
26
|
+
"type": "frser-sqlite-datasource",
|
|
27
|
+
"uid": "P2D2EEF3E092AF52B"
|
|
28
|
+
},
|
|
29
|
+
"description": "Displays all LlamaPay payment streams managed by the DAO, including stream ID, factory, start/end block, token, sender, recipient, reason, budget request, amount per second, status, and transaction group.\n\nData Links: Click on addresses or blocks to view them on Etherscan. Click on a budget request to view the related Github issue.",
|
|
30
|
+
"fieldConfig": {
|
|
31
|
+
"defaults": {
|
|
32
|
+
"color": {
|
|
33
|
+
"mode": "thresholds"
|
|
34
|
+
},
|
|
35
|
+
"custom": {
|
|
36
|
+
"align": "auto",
|
|
37
|
+
"cellOptions": {
|
|
38
|
+
"type": "auto"
|
|
39
|
+
},
|
|
40
|
+
"inspect": false
|
|
41
|
+
},
|
|
42
|
+
"mappings": [],
|
|
43
|
+
"thresholds": {
|
|
44
|
+
"mode": "absolute",
|
|
45
|
+
"steps": [
|
|
46
|
+
{
|
|
47
|
+
"color": "green",
|
|
48
|
+
"value": 0
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"color": "red",
|
|
52
|
+
"value": 80
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"overrides": [
|
|
58
|
+
{
|
|
59
|
+
"matcher": {
|
|
60
|
+
"id": "byName",
|
|
61
|
+
"options": "Factory"
|
|
62
|
+
},
|
|
63
|
+
"properties": [
|
|
64
|
+
{
|
|
65
|
+
"id": "links",
|
|
66
|
+
"value": [
|
|
67
|
+
{
|
|
68
|
+
"targetBlank": true,
|
|
69
|
+
"title": "View on Etherscan",
|
|
70
|
+
"url": "https://etherscan.io/address/${__value.raw}"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"matcher": {
|
|
78
|
+
"id": "byName",
|
|
79
|
+
"options": "From"
|
|
80
|
+
},
|
|
81
|
+
"properties": [
|
|
82
|
+
{
|
|
83
|
+
"id": "links",
|
|
84
|
+
"value": [
|
|
85
|
+
{
|
|
86
|
+
"targetBlank": true,
|
|
87
|
+
"title": "View on Etherscan",
|
|
88
|
+
"url": "https://etherscan.io/address/${__value.raw}"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"matcher": {
|
|
96
|
+
"id": "byName",
|
|
97
|
+
"options": "To"
|
|
98
|
+
},
|
|
99
|
+
"properties": [
|
|
100
|
+
{
|
|
101
|
+
"id": "links",
|
|
102
|
+
"value": [
|
|
103
|
+
{
|
|
104
|
+
"targetBlank": true,
|
|
105
|
+
"title": "View on Etherscan",
|
|
106
|
+
"url": "https://etherscan.io/address/${__value.raw}"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"matcher": {
|
|
114
|
+
"id": "byName",
|
|
115
|
+
"options": "Start Block"
|
|
116
|
+
},
|
|
117
|
+
"properties": [
|
|
118
|
+
{
|
|
119
|
+
"id": "links",
|
|
120
|
+
"value": [
|
|
121
|
+
{
|
|
122
|
+
"targetBlank": true,
|
|
123
|
+
"title": "View on Etherscan",
|
|
124
|
+
"url": "https://etherscan.io/block/${__value.raw}"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"matcher": {
|
|
132
|
+
"id": "byName",
|
|
133
|
+
"options": "End Block"
|
|
134
|
+
},
|
|
135
|
+
"properties": [
|
|
136
|
+
{
|
|
137
|
+
"id": "links",
|
|
138
|
+
"value": [
|
|
139
|
+
{
|
|
140
|
+
"targetBlank": true,
|
|
141
|
+
"title": "View on Etherscan",
|
|
142
|
+
"url": "https://etherscan.io/block/${__value.raw}"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"matcher": {
|
|
150
|
+
"id": "byName",
|
|
151
|
+
"options": "Budget Request"
|
|
152
|
+
},
|
|
153
|
+
"properties": [
|
|
154
|
+
{
|
|
155
|
+
"id": "links",
|
|
156
|
+
"value": [
|
|
157
|
+
{
|
|
158
|
+
"targetBlank": true,
|
|
159
|
+
"title": "View Budget Request on Github",
|
|
160
|
+
"url": "https://github.com/yearn/budget/issues/${__value.raw}"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"gridPos": {
|
|
169
|
+
"h": 19,
|
|
170
|
+
"w": 24,
|
|
171
|
+
"x": 0,
|
|
172
|
+
"y": 0
|
|
173
|
+
},
|
|
174
|
+
"id": 1,
|
|
175
|
+
"options": {
|
|
176
|
+
"cellHeight": "sm",
|
|
177
|
+
"footer": {
|
|
178
|
+
"countRows": false,
|
|
179
|
+
"fields": "",
|
|
180
|
+
"reducer": ["sum"],
|
|
181
|
+
"show": false
|
|
182
|
+
},
|
|
183
|
+
"showHeader": true
|
|
184
|
+
},
|
|
185
|
+
"pluginVersion": "12.1.1",
|
|
186
|
+
"targets": [
|
|
187
|
+
{
|
|
188
|
+
"datasource": {
|
|
189
|
+
"type": "frser-sqlite-datasource",
|
|
190
|
+
"uid": "P2D2EEF3E092AF52B"
|
|
191
|
+
},
|
|
192
|
+
"queryText": "SELECT\n stream_id as \"Stream ID\",\n b.address as \"Factory\",\n start_block as \"Start Block\",\n end_block as \"End Block\",\n c.symbol as \"Token\",\n d.address as \"From\",\n e.address as \"To\",\n reason as \"Reason\",\n CASE\n WHEN reason LIKE 'gh-%' AND\n -- ensures all after \"gh-\" is digits\n REPLACE(SUBSTR(reason, 4), '0', '') >= '' AND\n CAST(SUBSTR(reason, 4) AS INTEGER) || '' = SUBSTR(reason, 4)\n THEN CAST(SUBSTR(reason, 4) AS INTEGER)\n ELSE NULL\n END AS \"Budget Request\",\n amount_per_second as \"Amount Per Second\",\n status as \"Status\",\n txgroup as \"TxGroup\"\n\nFROM streams a\nLEFT JOIN addresses b ON a.contract = b.address_id\nLEFT JOIN tokens c ON a.token = c.token_id\nLEFT JOIN addresses d ON a.from_address = d.address_id\nLEFT JOIN addresses e ON a.to_address = e.address_id",
|
|
193
|
+
"queryType": "table",
|
|
194
|
+
"rawQueryText": "SELECT\n stream_id as \"Stream ID\",\n b.address as \"Factory\",\n start_block as \"Start Block\",\n end_block as \"End Block\",\n c.symbol as \"Token\",\n d.address as \"From\",\n e.address as \"To\",\n reason as \"Reason\",\n CASE\n WHEN reason LIKE 'gh-%' AND\n -- ensures all after \"gh-\" is digits\n REPLACE(SUBSTR(reason, 4), '0', '') >= '' AND\n CAST(SUBSTR(reason, 4) AS INTEGER) || '' = SUBSTR(reason, 4)\n THEN CAST(SUBSTR(reason, 4) AS INTEGER)\n ELSE NULL\n END AS \"Budget Request\",\n amount_per_second as \"Amount Per Second\",\n status as \"Status\",\n txgroup as \"TxGroup\"\n\nFROM streams a\nLEFT JOIN addresses b ON a.contract = b.address_id\nLEFT JOIN tokens c ON a.token = c.token_id\nLEFT JOIN addresses d ON a.from_address = d.address_id\nLEFT JOIN addresses e ON a.to_address = e.address_id",
|
|
195
|
+
"refId": "A",
|
|
196
|
+
"timeColumns": ["time", "ts"]
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"title": "LlamaPay Streams",
|
|
200
|
+
"type": "table"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"preload": false,
|
|
204
|
+
"refresh": "",
|
|
205
|
+
"schemaVersion": 41,
|
|
206
|
+
"tags": ["streams", "llamapay", "payments"],
|
|
207
|
+
"templating": {
|
|
208
|
+
"list": []
|
|
209
|
+
},
|
|
210
|
+
"time": {
|
|
211
|
+
"from": "now-6h",
|
|
212
|
+
"to": "now"
|
|
213
|
+
},
|
|
214
|
+
"timepicker": {},
|
|
215
|
+
"timezone": "",
|
|
216
|
+
"title": "LlamaPay",
|
|
217
|
+
"description": "A simple dashboard with a comprehensive view of all LlamaPay payment streams managed by the DAO, including stream status, participants, configuration, and transaction group.",
|
|
218
|
+
"uid": "aa4d62a2-9e52-4acc-8f38-a96c77810aca",
|
|
219
|
+
"version": 3
|
|
220
|
+
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"graphTooltip": 0,
|
|
18
18
|
"id": 2,
|
|
19
19
|
"links": [],
|
|
20
|
-
"liveNow": false,
|
|
21
20
|
"panels": [
|
|
22
21
|
{
|
|
23
22
|
"datasource": "SQLite",
|
|
@@ -39,7 +38,7 @@
|
|
|
39
38
|
"steps": [
|
|
40
39
|
{
|
|
41
40
|
"color": "green",
|
|
42
|
-
"value":
|
|
41
|
+
"value": 0
|
|
43
42
|
},
|
|
44
43
|
{
|
|
45
44
|
"color": "red",
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
"overrides": []
|
|
52
51
|
},
|
|
53
52
|
"gridPos": {
|
|
54
|
-
"h":
|
|
53
|
+
"h": 20,
|
|
55
54
|
"w": 24,
|
|
56
55
|
"x": 0,
|
|
57
56
|
"y": 0
|
|
@@ -62,51 +61,47 @@
|
|
|
62
61
|
"footer": {
|
|
63
62
|
"countRows": false,
|
|
64
63
|
"fields": "",
|
|
65
|
-
"reducer": [
|
|
66
|
-
"sum"
|
|
67
|
-
],
|
|
64
|
+
"reducer": ["sum"],
|
|
68
65
|
"show": false
|
|
69
66
|
},
|
|
70
67
|
"showHeader": true,
|
|
71
68
|
"sortBy": [
|
|
72
69
|
{
|
|
73
70
|
"desc": true,
|
|
74
|
-
"displayName": "
|
|
71
|
+
"displayName": "Month"
|
|
75
72
|
}
|
|
76
73
|
]
|
|
77
74
|
},
|
|
78
|
-
"pluginVersion": "
|
|
75
|
+
"pluginVersion": "12.1.1",
|
|
79
76
|
"targets": [
|
|
80
77
|
{
|
|
81
78
|
"datasource": "SQLite",
|
|
82
|
-
"queryText": "
|
|
79
|
+
"queryText": "SELECT\n month AS \"Month\",\n SUM(CASE WHEN s.top_category = 'Revenue' THEN value_usd ELSE 0 END) AS \"Revenue\",\n SUM(CASE WHEN s.top_category = 'Cost of Revenue' THEN value_usd ELSE 0 END) AS \"Cost of Revenue\",\n SUM(CASE WHEN s.top_category = 'Expenses' THEN value_usd ELSE 0 END) AS \"Expenses\",\n SUM(CASE WHEN s.top_category = 'Other Income' THEN value_usd ELSE 0 END) AS \"Other Income\",\n SUM(CASE WHEN s.top_category = 'Other Expenses' THEN value_usd ELSE 0 END) AS \"Other Expense\",\n (\n SUM(CASE WHEN s.top_category = 'Revenue' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Cost of Revenue' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Expenses' THEN value_usd ELSE 0 END)\n + SUM(CASE WHEN s.top_category = 'Other Income' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Other Expenses' THEN value_usd ELSE 0 END)\n ) AS \"Sorted Net\",\n SUM(CASE WHEN s.top_category = 'Sort Me (Inbound)' THEN value_usd ELSE 0 END) AS \"Unsorted Income\",\n SUM(CASE WHEN s.top_category = 'Sort Me (Outbound)' THEN value_usd ELSE 0 END) AS \"Unsorted Expense\",\n (\n SUM(CASE WHEN s.top_category = 'Revenue' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Cost of Revenue' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Expenses' THEN value_usd ELSE 0 END)\n + SUM(CASE WHEN s.top_category = 'Other Income' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Other Expenses' THEN value_usd ELSE 0 END)\n + SUM(CASE WHEN s.top_category = 'Sort Me (Inbound)' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Sort Me (Outbound)' THEN value_usd ELSE 0 END)\n ) AS \"Net\"\nFROM (\n SELECT\n strftime('%Y-%m', datetime(t.timestamp, 'unixepoch')) AS month,\n gh.top_category,\n COALESCE(t.value_usd, 0) AS value_usd\n FROM treasury_txs AS t\n JOIN txgroups AS tg ON t.txgroup_id = tg.txgroup_id\n JOIN txgroup_hierarchy AS gh ON tg.txgroup_id = gh.txgroup_id\n WHERE t.timestamp >= $__from / 1000 AND tg.name <> 'Ignore'\n) AS s\nGROUP BY month;",
|
|
83
80
|
"queryType": "table",
|
|
84
|
-
"rawQueryText": "
|
|
85
|
-
"refId": "A"
|
|
86
|
-
"timeColumns": [
|
|
87
|
-
"time",
|
|
88
|
-
"ts"
|
|
89
|
-
]
|
|
81
|
+
"rawQueryText": "SELECT\n month AS \"Month\",\n SUM(CASE WHEN s.top_category = 'Revenue' THEN value_usd ELSE 0 END) AS \"Revenue\",\n SUM(CASE WHEN s.top_category = 'Cost of Revenue' THEN value_usd ELSE 0 END) AS \"Cost of Revenue\",\n SUM(CASE WHEN s.top_category = 'Expenses' THEN value_usd ELSE 0 END) AS \"Expenses\",\n SUM(CASE WHEN s.top_category = 'Other Income' THEN value_usd ELSE 0 END) AS \"Other Income\",\n SUM(CASE WHEN s.top_category = 'Other Expenses' THEN value_usd ELSE 0 END) AS \"Other Expense\",\n (\n SUM(CASE WHEN s.top_category = 'Revenue' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Cost of Revenue' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Expenses' THEN value_usd ELSE 0 END)\n + SUM(CASE WHEN s.top_category = 'Other Income' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Other Expenses' THEN value_usd ELSE 0 END)\n ) AS \"Sorted Net\",\n SUM(CASE WHEN s.top_category = 'Sort Me (Inbound)' THEN value_usd ELSE 0 END) AS \"Unsorted Income\",\n SUM(CASE WHEN s.top_category = 'Sort Me (Outbound)' THEN value_usd ELSE 0 END) AS \"Unsorted Expense\",\n (\n SUM(CASE WHEN s.top_category = 'Revenue' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Cost of Revenue' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Expenses' THEN value_usd ELSE 0 END)\n + SUM(CASE WHEN s.top_category = 'Other Income' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Other Expenses' THEN value_usd ELSE 0 END)\n + SUM(CASE WHEN s.top_category = 'Sort Me (Inbound)' THEN value_usd ELSE 0 END)\n - SUM(CASE WHEN s.top_category = 'Sort Me (Outbound)' THEN value_usd ELSE 0 END)\n ) AS \"Net\"\nFROM (\n SELECT\n strftime('%Y-%m', datetime(t.timestamp, 'unixepoch')) AS month,\n gh.top_category,\n COALESCE(t.value_usd, 0) AS value_usd\n FROM treasury_txs AS t\n JOIN txgroups AS tg ON t.txgroup_id = tg.txgroup_id\n JOIN txgroup_hierarchy AS gh ON tg.txgroup_id = gh.txgroup_id\n WHERE t.timestamp >= strftime('%s', '2025-01-01') AND tg.name <> 'Ignore'\n) AS s\nGROUP BY month;",
|
|
82
|
+
"refId": "A"
|
|
90
83
|
}
|
|
91
84
|
],
|
|
92
|
-
"title": "
|
|
93
|
-
"type": "table"
|
|
85
|
+
"title": "Monthly Profit & Loss",
|
|
86
|
+
"type": "table",
|
|
87
|
+
"description": "Displays a table of monthly profit and loss for the DAO, including Revenue, Cost of Revenue, Expenses, Other Income, Other Expense, Sorted Net, Unsorted Income, Unsorted Expense.\n\nUseful for high-level financial reporting and tracking the progress of transaction categorization."
|
|
94
88
|
}
|
|
95
89
|
],
|
|
90
|
+
"preload": false,
|
|
96
91
|
"refresh": "",
|
|
97
|
-
"schemaVersion":
|
|
98
|
-
"tags": [],
|
|
92
|
+
"schemaVersion": 41,
|
|
93
|
+
"tags": ["pnl", "monthly"],
|
|
99
94
|
"templating": {
|
|
100
95
|
"list": []
|
|
101
96
|
},
|
|
102
97
|
"time": {
|
|
103
|
-
"from": "now
|
|
98
|
+
"from": "now/y",
|
|
104
99
|
"to": "now"
|
|
105
100
|
},
|
|
106
101
|
"timepicker": {},
|
|
107
102
|
"timezone": "",
|
|
108
103
|
"title": "Monthly P&L",
|
|
104
|
+
"description": "Summarizes the DAO's monthly profit and loss, providing a breakdown of sorted and unsorted financial activity for each month. Supports financial reporting and tracking the progress of transaction categorization.",
|
|
109
105
|
"uid": "a63fa9a7-d4f3-4092-9bde-194add8bcbeb",
|
|
110
|
-
"version":
|
|
111
|
-
|
|
112
|
-
}
|
|
106
|
+
"version": 5
|
|
107
|
+
}
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
"editable": true,
|
|
16
16
|
"fiscalYearStartMonth": 0,
|
|
17
17
|
"graphTooltip": 0,
|
|
18
|
-
"id":
|
|
18
|
+
"id": 9,
|
|
19
19
|
"links": [],
|
|
20
|
-
"liveNow": false,
|
|
21
20
|
"panels": [
|
|
22
21
|
{
|
|
23
22
|
"datasource": "SQLite",
|
|
@@ -30,13 +29,14 @@
|
|
|
30
29
|
},
|
|
31
30
|
"inspect": false
|
|
32
31
|
},
|
|
32
|
+
"decimals": 8,
|
|
33
33
|
"mappings": [],
|
|
34
34
|
"thresholds": {
|
|
35
35
|
"mode": "absolute",
|
|
36
36
|
"steps": [
|
|
37
37
|
{
|
|
38
38
|
"color": "green",
|
|
39
|
-
"value":
|
|
39
|
+
"value": 0
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"color": "red",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
{
|
|
50
50
|
"matcher": {
|
|
51
51
|
"id": "byName",
|
|
52
|
-
"options": "
|
|
52
|
+
"options": "Hash"
|
|
53
53
|
},
|
|
54
54
|
"properties": [
|
|
55
55
|
{
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
{
|
|
68
68
|
"matcher": {
|
|
69
69
|
"id": "byName",
|
|
70
|
-
"options": "
|
|
70
|
+
"options": "Block"
|
|
71
71
|
},
|
|
72
72
|
"properties": [
|
|
73
73
|
{
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
{
|
|
86
86
|
"matcher": {
|
|
87
87
|
"id": "byName",
|
|
88
|
-
"options": "
|
|
88
|
+
"options": "To"
|
|
89
89
|
},
|
|
90
90
|
"properties": [
|
|
91
91
|
{
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
{
|
|
104
104
|
"matcher": {
|
|
105
105
|
"id": "byName",
|
|
106
|
-
"options": "
|
|
106
|
+
"options": "From"
|
|
107
107
|
},
|
|
108
108
|
"properties": [
|
|
109
109
|
{
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
{
|
|
122
122
|
"matcher": {
|
|
123
123
|
"id": "byName",
|
|
124
|
-
"options": "
|
|
124
|
+
"options": "From Nickname"
|
|
125
125
|
},
|
|
126
126
|
"properties": [
|
|
127
127
|
{
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
{
|
|
131
131
|
"targetBlank": true,
|
|
132
132
|
"title": "View on Etherscan",
|
|
133
|
-
"url": "https://etherscan.io/address/${__data.fields.
|
|
133
|
+
"url": "https://etherscan.io/address/${__data.fields.From}"
|
|
134
134
|
}
|
|
135
135
|
]
|
|
136
136
|
}
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
{
|
|
140
140
|
"matcher": {
|
|
141
141
|
"id": "byName",
|
|
142
|
-
"options": "
|
|
142
|
+
"options": "To Nickname"
|
|
143
143
|
},
|
|
144
144
|
"properties": [
|
|
145
145
|
{
|
|
@@ -148,11 +148,33 @@
|
|
|
148
148
|
{
|
|
149
149
|
"targetBlank": true,
|
|
150
150
|
"title": "View on Etherscan",
|
|
151
|
-
"url": "https://etherscan.io/address/${__data.fields.
|
|
151
|
+
"url": "https://etherscan.io/address/${__data.fields.To}"
|
|
152
152
|
}
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"matcher": {
|
|
159
|
+
"id": "byName",
|
|
160
|
+
"options": "Block"
|
|
161
|
+
},
|
|
162
|
+
"properties": [
|
|
163
|
+
{
|
|
164
|
+
"id": "decimals"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"matcher": {
|
|
170
|
+
"id": "byName",
|
|
171
|
+
"options": "Log Index"
|
|
172
|
+
},
|
|
173
|
+
"properties": [
|
|
174
|
+
{
|
|
175
|
+
"id": "decimals"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
156
178
|
}
|
|
157
179
|
]
|
|
158
180
|
},
|
|
@@ -168,36 +190,166 @@
|
|
|
168
190
|
"footer": {
|
|
169
191
|
"countRows": false,
|
|
170
192
|
"fields": "",
|
|
171
|
-
"reducer": [
|
|
172
|
-
"sum"
|
|
173
|
-
],
|
|
193
|
+
"reducer": ["sum"],
|
|
174
194
|
"show": false
|
|
175
195
|
},
|
|
176
|
-
"showHeader": true
|
|
196
|
+
"showHeader": true,
|
|
197
|
+
"sortBy": [
|
|
198
|
+
{
|
|
199
|
+
"desc": true,
|
|
200
|
+
"displayName": "Timestamp"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
177
203
|
},
|
|
178
|
-
"pluginVersion": "
|
|
204
|
+
"pluginVersion": "12.1.1",
|
|
179
205
|
"targets": [
|
|
180
206
|
{
|
|
181
207
|
"datasource": "SQLite",
|
|
182
|
-
"queryText": "select
|
|
208
|
+
"queryText": "select timestamp as \"Timestamp\", block as \"Block\", hash as \"Hash\", token as \"Token\", \"from\" as \"From\", from_nickname as \"From Nickname\", \"to\" as \"To\", to_nickname as \"To Nickname\", amount as \"Amount\", price as \"Price\", value_usd as \"Value USD\", txgroup as \"TxGroup\", a.parent_txgroup as \"Parent TxGroup\", log_index as \"Log Index\" from ( SELECT datetime(a.timestamp, 'unixepoch') AS timestamp, a.block, a.hash, c.symbol AS token, d.address AS \"from\", d.nickname as from_nickname, e.address AS \"to\", e.nickname as to_nickname, a.amount, a.price, a.value_usd, f.name AS txgroup, g.name AS parent_txgroup, f.txgroup_id, a.log_index FROM treasury_txs a LEFT JOIN chains b ON a.chain = b.chain_dbid LEFT JOIN tokens c ON a.token_id = c.token_id LEFT JOIN addresses d ON a.\"from\" = d.address_id LEFT JOIN addresses e ON a.\"to\" = e.address_id LEFT JOIN txgroups f ON a.txgroup_id = f.txgroup_id LEFT JOIN txgroups g ON f.parent_txgroup = g.txgroup_id WHERE a.timestamp >= $__from / 1000 and a.timestamp < $__to / 1000 and b.chain_name IN (${Chain:sqlstring}) and c.symbol IN (${Token:sqlstring}) and d.address IN (${From:sqlstring}) and e.address IN (${To:sqlstring}) and d.nickname IN (${FromNickname:sqlstring}) and e.nickname IN (${ToNickname:sqlstring}) ) a left join txgroup_hierarchy b on a.txgroup_id = b.txgroup_id WHERE b.top_category IN (${Top:sqlstring}) ORDER BY timestamp",
|
|
183
209
|
"queryType": "table",
|
|
184
|
-
"rawQueryText": "select
|
|
210
|
+
"rawQueryText": "select timestamp as \"Timestamp\", block as \"Block\", hash as \"Hash\", token as \"Token\", \"from\" as \"From\", from_nickname as \"From Nickname\", \"to\" as \"To\", to_nickname as \"To Nickname\", amount as \"Amount\", price as \"Price\", value_usd as \"Value USD\", txgroup as \"TxGroup\", a.parent_txgroup as \"Parent TxGroup\", log_index as \"Log Index\" from ( SELECT datetime(a.timestamp, 'unixepoch') AS timestamp, a.block, a.hash, c.symbol AS token, d.address AS \"from\", d.nickname as from_nickname, e.address AS \"to\", e.nickname as to_nickname, a.amount, a.price, a.value_usd, f.name AS txgroup, g.name AS parent_txgroup, f.txgroup_id, a.log_index FROM treasury_txs a LEFT JOIN chains b ON a.chain = b.chain_dbid LEFT JOIN tokens c ON a.token_id = c.token_id LEFT JOIN addresses d ON a.\"from\" = d.address_id LEFT JOIN addresses e ON a.\"to\" = e.address_id LEFT JOIN txgroups f ON a.txgroup_id = f.txgroup_id LEFT JOIN txgroups g ON f.parent_txgroup = g.txgroup_id WHERE a.timestamp >= $__from / 1000 and a.timestamp < $__to / 1000 and b.chain_name IN (${Chain:sqlstring}) and c.symbol IN (${Token:sqlstring}) and d.address IN (${From:sqlstring}) and e.address IN (${To:sqlstring}) and d.nickname IN (${FromNickname:sqlstring}) and e.nickname IN (${ToNickname:sqlstring}) ) a left join txgroup_hierarchy b on a.txgroup_id = b.txgroup_id WHERE b.top_category IN (${Top:sqlstring}) ORDER BY timestamp",
|
|
185
211
|
"refId": "A",
|
|
186
|
-
"timeColumns": [
|
|
187
|
-
"time",
|
|
188
|
-
"ts"
|
|
189
|
-
]
|
|
212
|
+
"timeColumns": ["time", "ts"]
|
|
190
213
|
}
|
|
191
214
|
],
|
|
192
215
|
"title": "Transactions",
|
|
193
|
-
"type": "table"
|
|
216
|
+
"type": "table",
|
|
217
|
+
"description": "Displays all of the DAO's treasury transactions with full details, including timestamp, block, hash, token, sender/recipient address and nickname, amount, price, value in USD, and transaction group.\n\nIncludes direct links to Etherscan for transaction, block, and address fields."
|
|
194
218
|
}
|
|
195
219
|
],
|
|
220
|
+
"preload": false,
|
|
196
221
|
"refresh": "",
|
|
197
|
-
"schemaVersion":
|
|
198
|
-
"tags": [],
|
|
222
|
+
"schemaVersion": 41,
|
|
223
|
+
"tags": ["transactions", "detailed"],
|
|
199
224
|
"templating": {
|
|
200
|
-
"list": [
|
|
225
|
+
"list": [
|
|
226
|
+
{
|
|
227
|
+
"current": {
|
|
228
|
+
"text": "All",
|
|
229
|
+
"value": "$__all"
|
|
230
|
+
},
|
|
231
|
+
"datasource": "SQLite",
|
|
232
|
+
"definition": "SELECT DISTINCT gh.top_category FROM treasury_txs a INNER JOIN txgroup_hierarchy gh ON a.txgroup_id = gh.txgroup_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000;",
|
|
233
|
+
"includeAll": true,
|
|
234
|
+
"label": "Top Level",
|
|
235
|
+
"name": "Top",
|
|
236
|
+
"options": [],
|
|
237
|
+
"query": "SELECT DISTINCT gh.top_category FROM treasury_txs a INNER JOIN txgroup_hierarchy gh ON a.txgroup_id = gh.txgroup_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000;",
|
|
238
|
+
"refresh": 2,
|
|
239
|
+
"regex": "",
|
|
240
|
+
"sort": 5,
|
|
241
|
+
"type": "query",
|
|
242
|
+
"description": "Filter transactions by top-level category (e.g., Revenue, Cost of Revenue, Expenses, Other Income, Other Expenses, Unsorted Income, Unsorted Expense).\n\nSelecting 'All' includes all categories."
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"current": {
|
|
246
|
+
"text": "All",
|
|
247
|
+
"value": "$__all"
|
|
248
|
+
},
|
|
249
|
+
"datasource": "SQLite",
|
|
250
|
+
"definition": "select distinct chain_name from treasury_txs a left join chains b on a.chain = b.chain_dbid WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
251
|
+
"description": "Filter transactions by blockchain network.\n\nSelecting 'All' includes all supported chains.",
|
|
252
|
+
"includeAll": true,
|
|
253
|
+
"label": "Chain",
|
|
254
|
+
"name": "Chain",
|
|
255
|
+
"options": [],
|
|
256
|
+
"query": "select distinct chain_name from treasury_txs a left join chains b on a.chain = b.chain_dbid WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
257
|
+
"refresh": 2,
|
|
258
|
+
"regex": "",
|
|
259
|
+
"sort": 5,
|
|
260
|
+
"type": "query"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"current": {
|
|
264
|
+
"text": "All",
|
|
265
|
+
"value": "$__all"
|
|
266
|
+
},
|
|
267
|
+
"datasource": "SQLite",
|
|
268
|
+
"definition": "select distinct symbol from treasury_txs a left join tokens b on a.token_id = b.token_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
269
|
+
"description": "Filter transactions by token symbol.\n\nSelecting 'All' includes all tokens.",
|
|
270
|
+
"includeAll": true,
|
|
271
|
+
"label": "Token",
|
|
272
|
+
"name": "Token",
|
|
273
|
+
"options": [],
|
|
274
|
+
"query": "select distinct symbol from treasury_txs a left join tokens b on a.token_id = b.token_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
275
|
+
"refresh": 2,
|
|
276
|
+
"regex": "",
|
|
277
|
+
"sort": 5,
|
|
278
|
+
"type": "query"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"current": {
|
|
282
|
+
"text": "All",
|
|
283
|
+
"value": "$__all"
|
|
284
|
+
},
|
|
285
|
+
"datasource": "SQLite",
|
|
286
|
+
"definition": "select distinct address from treasury_txs a left join addresses b on a.\"from\" = b.address_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
287
|
+
"description": "Filter transactions by sender address.\n\nSelecting 'All' includes all sender addresses.",
|
|
288
|
+
"includeAll": true,
|
|
289
|
+
"label": "From Address",
|
|
290
|
+
"name": "From",
|
|
291
|
+
"options": [],
|
|
292
|
+
"query": "select distinct address from treasury_txs a left join addresses b on a.\"from\" = b.address_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
293
|
+
"refresh": 2,
|
|
294
|
+
"regex": "",
|
|
295
|
+
"sort": 5,
|
|
296
|
+
"type": "query"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"current": {
|
|
300
|
+
"text": "All",
|
|
301
|
+
"value": "$__all"
|
|
302
|
+
},
|
|
303
|
+
"datasource": "SQLite",
|
|
304
|
+
"definition": "select distinct nickname from treasury_txs a inner join addresses b on a.\"from\" = b.address_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
305
|
+
"description": "Filter transactions by sender nickname.\n\nSelecting 'All' includes all senders.",
|
|
306
|
+
"includeAll": true,
|
|
307
|
+
"label": "From Nickname",
|
|
308
|
+
"name": "FromNickname",
|
|
309
|
+
"options": [],
|
|
310
|
+
"query": "select distinct nickname from treasury_txs a inner join addresses b on a.\"from\" = b.address_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
311
|
+
"refresh": 2,
|
|
312
|
+
"regex": "",
|
|
313
|
+
"sort": 5,
|
|
314
|
+
"type": "query"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"current": {
|
|
318
|
+
"text": "All",
|
|
319
|
+
"value": "$__all"
|
|
320
|
+
},
|
|
321
|
+
"datasource": "SQLite",
|
|
322
|
+
"definition": "select distinct address from treasury_txs a left join addresses b on a.\"to\" = b.address_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
323
|
+
"description": "Filter transactions by recipient address.\n\nSelecting 'All' includes all recipient addresses.",
|
|
324
|
+
"includeAll": true,
|
|
325
|
+
"label": "To Address",
|
|
326
|
+
"name": "To",
|
|
327
|
+
"options": [],
|
|
328
|
+
"query": "select distinct address from treasury_txs a left join addresses b on a.\"to\" = b.address_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
329
|
+
"refresh": 2,
|
|
330
|
+
"regex": "",
|
|
331
|
+
"sort": 5,
|
|
332
|
+
"type": "query"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"current": {
|
|
336
|
+
"text": "All",
|
|
337
|
+
"value": "$__all"
|
|
338
|
+
},
|
|
339
|
+
"datasource": "SQLite",
|
|
340
|
+
"definition": "select distinct nickname from treasury_txs a inner join addresses b on a.\"to\" = b.address_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
341
|
+
"description": "Filter transactions by recipient nickname.\n\nSelecting 'All' includes all recipients.",
|
|
342
|
+
"includeAll": true,
|
|
343
|
+
"label": "To Nickname",
|
|
344
|
+
"name": "ToNickname",
|
|
345
|
+
"options": [],
|
|
346
|
+
"query": "select distinct nickname from treasury_txs a inner join addresses b on a.\"to\" = b.address_id WHERE a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000",
|
|
347
|
+
"refresh": 2,
|
|
348
|
+
"regex": "",
|
|
349
|
+
"sort": 5,
|
|
350
|
+
"type": "query"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
201
353
|
},
|
|
202
354
|
"time": {
|
|
203
355
|
"from": "now-7d",
|
|
@@ -206,7 +358,7 @@
|
|
|
206
358
|
"timepicker": {},
|
|
207
359
|
"timezone": "",
|
|
208
360
|
"title": "Treasury Transactions",
|
|
361
|
+
"description": "Provides a real-time, filterable table of all transactions in the DAO treasury database, including timestamp, block, hash, token, addresses, nicknames, amount, price, and value in USD. Enables detailed analysis and monitoring of all value transfers.",
|
|
209
362
|
"uid": "b21f1092-66a4-4fb0-90ef-ed77d2becaa4",
|
|
210
|
-
"version":
|
|
211
|
-
|
|
212
|
-
}
|
|
363
|
+
"version": 6
|
|
364
|
+
}
|