dao-treasury 0.0.55__tar.gz → 0.0.57__tar.gz

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.

Files changed (48) hide show
  1. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/PKG-INFO +1 -1
  2. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/dashboards/dashboards.yaml +9 -1
  3. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow (Including Unsorted).json +12 -2
  4. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow.json +9 -2
  5. dao_treasury-0.0.57/dao_treasury/.grafana/provisioning/dashboards/treasury/Current Treasury Assets.json +593 -0
  6. dao_treasury-0.0.55/dao_treasury/.grafana/provisioning/dashboards/treasury/Treasury.json → dao_treasury-0.0.57/dao_treasury/.grafana/provisioning/dashboards/treasury/Historical Treasury Balances.json +3 -3
  7. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/dashboards/treasury/Operating Cashflow.json +7 -2
  8. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury.egg-info/PKG-INFO +1 -1
  9. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury.egg-info/SOURCES.txt +2 -1
  10. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/pyproject.toml +1 -1
  11. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/MANIFEST.in +0 -0
  12. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/README.md +0 -0
  13. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/dashboards/breakdowns/Expenses.json +0 -0
  14. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/dashboards/breakdowns/Revenue.json +0 -0
  15. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/dashboards/streams/LlamaPay.json +0 -0
  16. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/dashboards/summary/Monthly.json +0 -0
  17. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/dashboards/transactions/Treasury Transactions.json +0 -0
  18. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/.grafana/provisioning/datasources/datasources.yaml +0 -0
  19. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/ENVIRONMENT_VARIABLES.py +0 -0
  20. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/__init__.py +0 -0
  21. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/_docker.py +0 -0
  22. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/_nicknames.py +0 -0
  23. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/_wallet.py +0 -0
  24. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/constants.py +0 -0
  25. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/db.py +0 -0
  26. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/docker-compose.yaml +0 -0
  27. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/main.py +0 -0
  28. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/py.typed +0 -0
  29. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/sorting/__init__.py +0 -0
  30. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/sorting/_matchers.py +0 -0
  31. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/sorting/_rules.py +0 -0
  32. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/sorting/factory.py +0 -0
  33. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/sorting/rule.py +0 -0
  34. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/sorting/rules/__init__.py +0 -0
  35. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/sorting/rules/ignore/__init__.py +0 -0
  36. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/sorting/rules/ignore/llamapay.py +0 -0
  37. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/streams/__init__.py +0 -0
  38. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/streams/llamapay.py +0 -0
  39. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/treasury.py +0 -0
  40. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury/types.py +0 -0
  41. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury.egg-info/dependency_links.txt +0 -0
  42. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury.egg-info/not-zip-safe +0 -0
  43. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury.egg-info/requires.txt +0 -0
  44. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/dao_treasury.egg-info/top_level.txt +0 -0
  45. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/setup.cfg +0 -0
  46. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/setup.py +0 -0
  47. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/tests/test_treasury.py +0 -0
  48. {dao_treasury-0.0.55 → dao_treasury-0.0.57}/tests/test_wallet.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dao_treasury
3
- Version: 0.0.55
3
+ Version: 0.0.57
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
@@ -11,7 +11,7 @@ providers:
11
11
  path: /etc/grafana/provisioning/dashboards/summary
12
12
 
13
13
  # Dashboards
14
- - name: 'Treasury'
14
+ - name: 'Current Treasury Assets'
15
15
  folder: 'Treasury'
16
16
  type: file
17
17
  disableDeletion: true
@@ -42,6 +42,14 @@ providers:
42
42
  editable: false
43
43
  options:
44
44
  path: /etc/grafana/provisioning/dashboards/treasury
45
+
46
+ - name: 'Historical Treasury Balances'
47
+ folder: 'Treasury'
48
+ type: file
49
+ disableDeletion: true
50
+ editable: false
51
+ options:
52
+ path: /etc/grafana/provisioning/dashboards/treasury
45
53
 
46
54
  - name: 'Treasury Transactions'
47
55
  folder: 'Transactions'
@@ -24,6 +24,7 @@
24
24
  {
25
25
  "datasource": "SQLite",
26
26
  "fieldConfig": {
27
+ "unit": "currencyUSD",
27
28
  "defaults": {
28
29
  "color": {
29
30
  "mode": "thresholds"
@@ -89,6 +90,7 @@
89
90
  {
90
91
  "datasource": "SQLite",
91
92
  "fieldConfig": {
93
+ "unit": "currencyUSD",
92
94
  "defaults": {
93
95
  "color": {
94
96
  "mode": "thresholds"
@@ -154,6 +156,7 @@
154
156
  {
155
157
  "datasource": "SQLite",
156
158
  "fieldConfig": {
159
+ "unit": "currencyUSD",
157
160
  "defaults": {
158
161
  "color": {
159
162
  "mode": "thresholds"
@@ -219,6 +222,7 @@
219
222
  {
220
223
  "datasource": "SQLite",
221
224
  "fieldConfig": {
225
+ "unit": "currencyUSD",
222
226
  "defaults": {
223
227
  "color": {
224
228
  "mode": "thresholds"
@@ -284,6 +288,7 @@
284
288
  {
285
289
  "datasource": "SQLite",
286
290
  "fieldConfig": {
291
+ "unit": "currencyUSD",
287
292
  "defaults": {
288
293
  "color": {
289
294
  "mode": "thresholds"
@@ -350,6 +355,7 @@
350
355
  "datasource": "SQLite",
351
356
  "description": "",
352
357
  "fieldConfig": {
358
+ "unit": "currencyUSD",
353
359
  "defaults": {
354
360
  "color": {
355
361
  "mode": "thresholds"
@@ -416,6 +422,7 @@
416
422
  "datasource": "SQLite",
417
423
  "description": "",
418
424
  "fieldConfig": {
425
+ "unit": "currencyUSD",
419
426
  "defaults": {
420
427
  "color": {
421
428
  "mode": "palette-classic"
@@ -651,6 +658,7 @@
651
658
  "datasource": "SQLite",
652
659
  "description": "",
653
660
  "fieldConfig": {
661
+ "unit": "currencyUSD",
654
662
  "defaults": {
655
663
  "color": {
656
664
  "mode": "thresholds"
@@ -717,6 +725,7 @@
717
725
  "datasource": "SQLite",
718
726
  "description": "",
719
727
  "fieldConfig": {
728
+ "unit": "currencyUSD",
720
729
  "defaults": {
721
730
  "color": {
722
731
  "mode": "thresholds"
@@ -783,6 +792,7 @@
783
792
  "datasource": "SQLite",
784
793
  "description": "",
785
794
  "fieldConfig": {
795
+ "unit": "currencyUSD",
786
796
  "defaults": {
787
797
  "color": {
788
798
  "mode": "thresholds"
@@ -862,5 +872,5 @@
862
872
  "title": "Total Cashflow Summary (Including Unsorted)",
863
873
  "description": "Offers a complete picture of all DAO cashflows, including both sorted and unsorted transactions. This dashboard is ideal for tracking transactions still pending categorization and understanding their impact on overall cashflow.",
864
874
  "uid": "2b6e7c1d-8f4a-4e3b-9b2a-1c7d8e9f0a2b",
865
- "version": 4
866
- }
875
+ "version": 5
876
+ }
@@ -24,6 +24,7 @@
24
24
  {
25
25
  "datasource": "SQLite",
26
26
  "fieldConfig": {
27
+ "unit": "currencyUSD",
27
28
  "defaults": {
28
29
  "color": {
29
30
  "mode": "thresholds"
@@ -89,6 +90,7 @@
89
90
  {
90
91
  "datasource": "SQLite",
91
92
  "fieldConfig": {
93
+ "unit": "currencyUSD",
92
94
  "defaults": {
93
95
  "color": {
94
96
  "mode": "thresholds"
@@ -154,6 +156,7 @@
154
156
  {
155
157
  "datasource": "SQLite",
156
158
  "fieldConfig": {
159
+ "unit": "currencyUSD",
157
160
  "defaults": {
158
161
  "color": {
159
162
  "mode": "thresholds"
@@ -219,6 +222,7 @@
219
222
  {
220
223
  "datasource": "SQLite",
221
224
  "fieldConfig": {
225
+ "unit": "currencyUSD",
222
226
  "defaults": {
223
227
  "color": {
224
228
  "mode": "thresholds"
@@ -284,6 +288,7 @@
284
288
  {
285
289
  "datasource": "SQLite",
286
290
  "fieldConfig": {
291
+ "unit": "currencyUSD",
287
292
  "defaults": {
288
293
  "color": {
289
294
  "mode": "thresholds"
@@ -350,6 +355,7 @@
350
355
  "datasource": "SQLite",
351
356
  "description": "",
352
357
  "fieldConfig": {
358
+ "unit": "currencyUSD",
353
359
  "defaults": {
354
360
  "color": {
355
361
  "mode": "thresholds"
@@ -416,6 +422,7 @@
416
422
  "datasource": "SQLite",
417
423
  "description": "",
418
424
  "fieldConfig": {
425
+ "unit": "currencyUSD",
419
426
  "defaults": {
420
427
  "color": {
421
428
  "mode": "palette-classic"
@@ -634,5 +641,5 @@
634
641
  "title": "Total Cashflow Summary",
635
642
  "description": "Shows all sorted cashflows, including Revenue, Cost of Revenue, Expenses, Other Income, and Other Expense, but omits transactions pending categorization. Useful for analyzing the DAO's complete sorted financial flows.",
636
643
  "uid": "7e2b1c8a-4e2d-4b7a-9c1a-2f8e6b7d9c3f",
637
- "version": 4
638
- }
644
+ "version": 5
645
+ }
@@ -0,0 +1,593 @@
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": 0,
22
+ "links": [],
23
+ "panels": [
24
+ {
25
+ "datasource": "PROMETHEUS",
26
+ "fieldConfig": {
27
+ "defaults": {
28
+ "color": {
29
+ "mode": "thresholds"
30
+ },
31
+ "mappings": [],
32
+ "thresholds": {
33
+ "mode": "absolute",
34
+ "steps": [
35
+ {
36
+ "color": "green",
37
+ "value": 0
38
+ },
39
+ {
40
+ "color": "red",
41
+ "value": 80
42
+ }
43
+ ]
44
+ },
45
+ "unit": "currencyUSD"
46
+ },
47
+ "overrides": []
48
+ },
49
+ "gridPos": {
50
+ "h": 3,
51
+ "w": 18,
52
+ "x": 0,
53
+ "y": 0
54
+ },
55
+ "id": 3,
56
+ "options": {
57
+ "colorMode": "value",
58
+ "graphMode": "area",
59
+ "justifyMode": "auto",
60
+ "orientation": "auto",
61
+ "percentChangeColorMode": "standard",
62
+ "reduceOptions": {
63
+ "calcs": [
64
+ "last"
65
+ ],
66
+ "fields": "",
67
+ "values": false
68
+ },
69
+ "showPercentChange": false,
70
+ "textMode": "auto",
71
+ "wideLayout": true
72
+ },
73
+ "pluginVersion": "12.2.0",
74
+ "targets": [
75
+ {
76
+ "datasource": "PROMETHEUS",
77
+ "editorMode": "code",
78
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (bucket, token)",
79
+ "format": "table",
80
+ "instant": false,
81
+ "legendFormat": "__auto",
82
+ "range": true,
83
+ "refId": "A"
84
+ }
85
+ ],
86
+ "title": "Total Assets",
87
+ "transformations": [
88
+ {
89
+ "id": "groupBy",
90
+ "options": {
91
+ "fields": {
92
+ "Time": {
93
+ "aggregations": [
94
+ "last"
95
+ ],
96
+ "operation": "aggregate"
97
+ },
98
+ "Value": {
99
+ "aggregations": [
100
+ "last"
101
+ ],
102
+ "operation": "aggregate"
103
+ },
104
+ "bucket": {
105
+ "aggregations": [],
106
+ "operation": "groupby"
107
+ },
108
+ "token": {
109
+ "aggregations": [],
110
+ "operation": "groupby"
111
+ }
112
+ }
113
+ }
114
+ },
115
+ {
116
+ "id": "filterFieldsByName",
117
+ "options": {
118
+ "include": {
119
+ "names": [
120
+ "Value (last)",
121
+ "Time (last)"
122
+ ]
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "id": "reduce",
128
+ "options": {
129
+ "includeTimeField": false,
130
+ "mode": "reduceFields",
131
+ "reducers": [
132
+ "sum"
133
+ ]
134
+ }
135
+ }
136
+ ],
137
+ "type": "stat"
138
+ },
139
+ {
140
+ "datasource": "PROMETHEUS",
141
+ "fieldConfig": {
142
+ "defaults": {
143
+ "color": {
144
+ "mode": "thresholds"
145
+ },
146
+ "custom": {
147
+ "align": "auto",
148
+ "cellOptions": {
149
+ "type": "auto"
150
+ },
151
+ "footer": {
152
+ "reducers": []
153
+ },
154
+ "hideFrom": {
155
+ "viz": false
156
+ },
157
+ "inspect": false
158
+ },
159
+ "mappings": [],
160
+ "thresholds": {
161
+ "mode": "absolute",
162
+ "steps": [
163
+ {
164
+ "color": "green",
165
+ "value": 0
166
+ },
167
+ {
168
+ "color": "red",
169
+ "value": 80
170
+ }
171
+ ]
172
+ }
173
+ },
174
+ "overrides": []
175
+ },
176
+ "gridPos": {
177
+ "h": 3,
178
+ "w": 6,
179
+ "x": 18,
180
+ "y": 0
181
+ },
182
+ "id": 2,
183
+ "options": {
184
+ "cellHeight": "sm",
185
+ "showHeader": true
186
+ },
187
+ "pluginVersion": "12.2.0",
188
+ "targets": [
189
+ {
190
+ "datasource": "PROMETHEUS",
191
+ "editorMode": "code",
192
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000)",
193
+ "format": "table",
194
+ "instant": false,
195
+ "legendFormat": "__auto",
196
+ "range": true,
197
+ "refId": "A"
198
+ }
199
+ ],
200
+ "title": "Last Update",
201
+ "transformations": [
202
+ {
203
+ "id": "reduce",
204
+ "options": {
205
+ "includeTimeField": true,
206
+ "mode": "reduceFields",
207
+ "reducers": [
208
+ "last"
209
+ ]
210
+ }
211
+ },
212
+ {
213
+ "id": "filterFieldsByName",
214
+ "options": {
215
+ "byVariable": false,
216
+ "include": {
217
+ "names": [
218
+ "Time"
219
+ ]
220
+ }
221
+ }
222
+ },
223
+ {
224
+ "id": "renameByRegex",
225
+ "options": {
226
+ "regex": "Time",
227
+ "renamePattern": "The last snapshot was taken at:"
228
+ }
229
+ }
230
+ ],
231
+ "type": "table"
232
+ },
233
+ {
234
+ "datasource": "PROMETHEUS",
235
+ "fieldConfig": {
236
+ "defaults": {
237
+ "color": {
238
+ "mode": "thresholds"
239
+ },
240
+ "custom": {
241
+ "align": "auto",
242
+ "cellOptions": {
243
+ "type": "auto"
244
+ },
245
+ "footer": {
246
+ "reducers": []
247
+ },
248
+ "inspect": false
249
+ },
250
+ "mappings": [],
251
+ "thresholds": {
252
+ "mode": "absolute",
253
+ "steps": [
254
+ {
255
+ "color": "green",
256
+ "value": 0
257
+ },
258
+ {
259
+ "color": "red",
260
+ "value": 80
261
+ }
262
+ ]
263
+ },
264
+ "unit": "currencyUSD"
265
+ },
266
+ "overrides": []
267
+ },
268
+ "gridPos": {
269
+ "h": 6,
270
+ "w": 24,
271
+ "x": 0,
272
+ "y": 3
273
+ },
274
+ "id": 1,
275
+ "options": {
276
+ "cellHeight": "sm",
277
+ "showHeader": true,
278
+ "sortBy": [
279
+ {
280
+ "desc": true,
281
+ "displayName": "Current Balance"
282
+ }
283
+ ]
284
+ },
285
+ "pluginVersion": "12.2.0",
286
+ "targets": [
287
+ {
288
+ "datasource": "PROMETHEUS",
289
+ "editorMode": "code",
290
+ "exemplar": false,
291
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (token, bucket)",
292
+ "format": "table",
293
+ "instant": false,
294
+ "interval": "",
295
+ "legendFormat": "__auto",
296
+ "range": true,
297
+ "refId": "A"
298
+ },
299
+ {
300
+ "datasource": "PROMETHEUS",
301
+ "editorMode": "code",
302
+ "expr": "sum(treasury_assets{param=\"value\"}<500_000_000) by (token, bucket)",
303
+ "hide": true,
304
+ "instant": false,
305
+ "legendFormat": "__auto",
306
+ "range": true,
307
+ "refId": "B"
308
+ }
309
+ ],
310
+ "title": "Current Asset Summary",
311
+ "transformations": [
312
+ {
313
+ "id": "groupBy",
314
+ "options": {
315
+ "fields": {
316
+ "BTC": {
317
+ "aggregations": []
318
+ },
319
+ "Cash & cash equivalents": {
320
+ "aggregations": []
321
+ },
322
+ "ETH": {
323
+ "aggregations": []
324
+ },
325
+ "Other short term assets": {
326
+ "aggregations": []
327
+ },
328
+ "Time": {
329
+ "aggregations": [
330
+ "last"
331
+ ],
332
+ "operation": "aggregate"
333
+ },
334
+ "Value": {
335
+ "aggregations": [
336
+ "last"
337
+ ],
338
+ "operation": "aggregate"
339
+ },
340
+ "bucket": {
341
+ "aggregations": [],
342
+ "operation": "groupby"
343
+ },
344
+ "token": {
345
+ "aggregations": [],
346
+ "operation": "groupby"
347
+ }
348
+ }
349
+ }
350
+ },
351
+ {
352
+ "disabled": true,
353
+ "id": "filterFieldsByName",
354
+ "options": {
355
+ "include": {
356
+ "names": [
357
+ "bucket",
358
+ "token",
359
+ "Value (last)"
360
+ ]
361
+ }
362
+ }
363
+ },
364
+ {
365
+ "id": "groupBy",
366
+ "options": {
367
+ "fields": {
368
+ "Bucket": {
369
+ "aggregations": [],
370
+ "operation": "groupby"
371
+ },
372
+ "Last Known Value USD": {
373
+ "aggregations": [
374
+ "sum"
375
+ ],
376
+ "operation": "aggregate"
377
+ },
378
+ "Last Seen": {
379
+ "aggregations": [
380
+ "min"
381
+ ],
382
+ "operation": "aggregate"
383
+ },
384
+ "Time (last)": {
385
+ "aggregations": [
386
+ "min"
387
+ ],
388
+ "operation": "aggregate"
389
+ },
390
+ "Value (last)": {
391
+ "aggregations": [
392
+ "sum"
393
+ ],
394
+ "operation": "aggregate"
395
+ },
396
+ "bucket": {
397
+ "aggregations": [],
398
+ "operation": "groupby"
399
+ }
400
+ }
401
+ }
402
+ },
403
+ {
404
+ "id": "organize",
405
+ "options": {
406
+ "excludeByName": {},
407
+ "includeByName": {},
408
+ "indexByName": {
409
+ "Time (last) (min)": 2,
410
+ "Value (last) (sum)": 1,
411
+ "bucket": 0
412
+ },
413
+ "renameByName": {
414
+ "Time (last) (min)": "Last Seen",
415
+ "Value (last) (sum)": "Last Known Value USD",
416
+ "bucket": "Bucket",
417
+ "token": "Token"
418
+ }
419
+ }
420
+ }
421
+ ],
422
+ "type": "table"
423
+ },
424
+ {
425
+ "datasource": "PROMETHEUS",
426
+ "fieldConfig": {
427
+ "defaults": {
428
+ "color": {
429
+ "mode": "thresholds"
430
+ },
431
+ "custom": {
432
+ "align": "auto",
433
+ "cellOptions": {
434
+ "type": "auto"
435
+ },
436
+ "footer": {
437
+ "reducers": []
438
+ },
439
+ "inspect": false
440
+ },
441
+ "mappings": [],
442
+ "thresholds": {
443
+ "mode": "absolute",
444
+ "steps": [
445
+ {
446
+ "color": "green",
447
+ "value": 0
448
+ },
449
+ {
450
+ "color": "red",
451
+ "value": 80
452
+ }
453
+ ]
454
+ },
455
+ "unit": "currencyUSD"
456
+ },
457
+ "overrides": []
458
+ },
459
+ "gridPos": {
460
+ "h": 13,
461
+ "w": 24,
462
+ "x": 0,
463
+ "y": 9
464
+ },
465
+ "id": 4,
466
+ "options": {
467
+ "cellHeight": "sm",
468
+ "showHeader": true,
469
+ "sortBy": [
470
+ {
471
+ "desc": true,
472
+ "displayName": "Last Known Value USD"
473
+ }
474
+ ]
475
+ },
476
+ "pluginVersion": "12.2.0",
477
+ "targets": [
478
+ {
479
+ "datasource": "PROMETHEUS",
480
+ "editorMode": "code",
481
+ "exemplar": false,
482
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (token, bucket)",
483
+ "format": "table",
484
+ "instant": false,
485
+ "interval": "",
486
+ "legendFormat": "__auto",
487
+ "range": true,
488
+ "refId": "A"
489
+ },
490
+ {
491
+ "datasource": "PROMETHEUS",
492
+ "editorMode": "code",
493
+ "expr": "sum(treasury_assets{param=\"value\"}<500_000_000) by (token, bucket)",
494
+ "hide": true,
495
+ "instant": false,
496
+ "legendFormat": "__auto",
497
+ "range": true,
498
+ "refId": "B"
499
+ }
500
+ ],
501
+ "title": "Current Asset Breakdown",
502
+ "transformations": [
503
+ {
504
+ "id": "groupBy",
505
+ "options": {
506
+ "fields": {
507
+ "BTC": {
508
+ "aggregations": []
509
+ },
510
+ "Cash & cash equivalents": {
511
+ "aggregations": []
512
+ },
513
+ "ETH": {
514
+ "aggregations": []
515
+ },
516
+ "Other short term assets": {
517
+ "aggregations": []
518
+ },
519
+ "Time": {
520
+ "aggregations": [
521
+ "last"
522
+ ],
523
+ "operation": "aggregate"
524
+ },
525
+ "Value": {
526
+ "aggregations": [
527
+ "last"
528
+ ],
529
+ "operation": "aggregate"
530
+ },
531
+ "bucket": {
532
+ "aggregations": [],
533
+ "operation": "groupby"
534
+ },
535
+ "token": {
536
+ "aggregations": [],
537
+ "operation": "groupby"
538
+ }
539
+ }
540
+ }
541
+ },
542
+ {
543
+ "disabled": true,
544
+ "id": "filterFieldsByName",
545
+ "options": {
546
+ "include": {
547
+ "names": [
548
+ "bucket",
549
+ "token",
550
+ "Value (last)"
551
+ ]
552
+ }
553
+ }
554
+ },
555
+ {
556
+ "id": "organize",
557
+ "options": {
558
+ "excludeByName": {},
559
+ "includeByName": {},
560
+ "indexByName": {
561
+ "Time (last)": 3,
562
+ "Value (last)": 2,
563
+ "bucket": 0,
564
+ "token": 1
565
+ },
566
+ "renameByName": {
567
+ "Time (last)": "Last Seen",
568
+ "Value (last)": "Last Known Value USD",
569
+ "bucket": "Bucket",
570
+ "token": "Token"
571
+ }
572
+ }
573
+ }
574
+ ],
575
+ "type": "table"
576
+ }
577
+ ],
578
+ "preload": false,
579
+ "schemaVersion": 42,
580
+ "tags": [],
581
+ "templating": {
582
+ "list": []
583
+ },
584
+ "time": {
585
+ "from": "now-2d",
586
+ "to": "now"
587
+ },
588
+ "timepicker": {},
589
+ "timezone": "browser",
590
+ "title": "Current Assets",
591
+ "uid": "ad47zqk",
592
+ "version": 2
593
+ }
@@ -2992,8 +2992,8 @@
2992
2992
  },
2993
2993
  "timepicker": {},
2994
2994
  "timezone": "",
2995
- "title": "Treasury Balances",
2995
+ "title": "Historical Treasury Balances",
2996
2996
  "description": "Displays real-time balances of the DAO's treasury assets, including YFI, ETH, BTC, \"cash\" (stablecoins), and other assets, as well as liabilities and debt. Useful for monitoring the DAO's current financial position and asset allocation.",
2997
2997
  "uid": "9_ppKhd7z",
2998
- "version": 4
2999
- }
2998
+ "version": 5
2999
+ }
@@ -24,6 +24,7 @@
24
24
  {
25
25
  "datasource": "SQLite",
26
26
  "fieldConfig": {
27
+ "unit": "currencyUSD",
27
28
  "defaults": {
28
29
  "color": {
29
30
  "mode": "thresholds"
@@ -89,6 +90,7 @@
89
90
  {
90
91
  "datasource": "SQLite",
91
92
  "fieldConfig": {
93
+ "unit": "currencyUSD",
92
94
  "defaults": {
93
95
  "color": {
94
96
  "mode": "thresholds"
@@ -154,6 +156,7 @@
154
156
  {
155
157
  "datasource": "SQLite",
156
158
  "fieldConfig": {
159
+ "unit": "currencyUSD",
157
160
  "defaults": {
158
161
  "color": {
159
162
  "mode": "thresholds"
@@ -220,6 +223,7 @@
220
223
  "datasource": "SQLite",
221
224
  "description": "",
222
225
  "fieldConfig": {
226
+ "unit": "currencyUSD",
223
227
  "defaults": {
224
228
  "color": {
225
229
  "mode": "thresholds"
@@ -286,6 +290,7 @@
286
290
  "datasource": "SQLite",
287
291
  "description": "",
288
292
  "fieldConfig": {
293
+ "unit": "currencyUSD",
289
294
  "defaults": {
290
295
  "color": {
291
296
  "mode": "palette-classic"
@@ -504,5 +509,5 @@
504
509
  "title": "Operating Cashflow Summary",
505
510
  "description": "Provides a focused view of core operational cashflows, including only sorted transactions in Revenue, Cost of Revenue, and Expenses categories. Excludes unsorted transactions and non-operational activity, helping monitor specifically the DAO's operational financial flows.",
506
511
  "uid": "fdf9969c-357a-4203-ae7b-12816e87bc7e",
507
- "version": 4
508
- }
512
+ "version": 5
513
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dao_treasury
3
- Version: 0.0.55
3
+ Version: 0.0.57
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
@@ -28,8 +28,9 @@ dao_treasury/.grafana/provisioning/dashboards/summary/Monthly.json
28
28
  dao_treasury/.grafana/provisioning/dashboards/transactions/Treasury Transactions.json
29
29
  dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow (Including Unsorted).json
30
30
  dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow.json
31
+ dao_treasury/.grafana/provisioning/dashboards/treasury/Current Treasury Assets.json
32
+ dao_treasury/.grafana/provisioning/dashboards/treasury/Historical Treasury Balances.json
31
33
  dao_treasury/.grafana/provisioning/dashboards/treasury/Operating Cashflow.json
32
- dao_treasury/.grafana/provisioning/dashboards/treasury/Treasury.json
33
34
  dao_treasury/.grafana/provisioning/datasources/datasources.yaml
34
35
  dao_treasury/sorting/__init__.py
35
36
  dao_treasury/sorting/_matchers.py
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dao-treasury"
3
- version = "0.0.55"
3
+ version = "0.0.57"
4
4
  description = "Produce comprehensive financial reports for your on-chain org"
5
5
  authors = ["BobTheBuidler <bobthebuidlerdefi@gmail.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes