dao-treasury 0.0.34__cp312-cp312-win32.whl → 0.0.72__cp312-cp312-win32.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.

Files changed (48) hide show
  1. dao_treasury/.grafana/provisioning/dashboards/breakdowns/Expenses.json +553 -0
  2. dao_treasury/.grafana/provisioning/dashboards/breakdowns/Revenue.json +555 -0
  3. dao_treasury/.grafana/provisioning/dashboards/dashboards.yaml +7 -57
  4. dao_treasury/.grafana/provisioning/dashboards/streams/LlamaPay.json +124 -20
  5. dao_treasury/.grafana/provisioning/dashboards/summary/Monthly.json +284 -22
  6. dao_treasury/.grafana/provisioning/dashboards/transactions/Treasury Transactions.json +47 -63
  7. dao_treasury/.grafana/provisioning/dashboards/transactions/Unsorted Transactions.json +368 -0
  8. dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow (Including Unsorted).json +122 -149
  9. dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow.json +87 -100
  10. dao_treasury/.grafana/provisioning/dashboards/treasury/Current Treasury Assets.json +941 -0
  11. dao_treasury/.grafana/provisioning/dashboards/treasury/Historical Treasury Balances.json +3931 -0
  12. dao_treasury/.grafana/provisioning/dashboards/treasury/Operating Cashflow.json +64 -78
  13. dao_treasury/ENVIRONMENT_VARIABLES.py +12 -0
  14. dao_treasury/__init__.py +14 -0
  15. dao_treasury/_docker.cp312-win32.pyd +0 -0
  16. dao_treasury/_docker.py +38 -21
  17. dao_treasury/_nicknames.cp312-win32.pyd +0 -0
  18. dao_treasury/_nicknames.py +15 -0
  19. dao_treasury/_wallet.cp312-win32.pyd +0 -0
  20. dao_treasury/_wallet.py +14 -10
  21. dao_treasury/constants.cp312-win32.pyd +0 -0
  22. dao_treasury/constants.py +24 -0
  23. dao_treasury/db.py +116 -25
  24. dao_treasury/docker-compose.yaml +1 -5
  25. dao_treasury/main.py +39 -1
  26. dao_treasury/sorting/__init__.cp312-win32.pyd +0 -0
  27. dao_treasury/sorting/_matchers.cp312-win32.pyd +0 -0
  28. dao_treasury/sorting/_rules.cp312-win32.pyd +0 -0
  29. dao_treasury/sorting/factory.cp312-win32.pyd +0 -0
  30. dao_treasury/sorting/rule.cp312-win32.pyd +0 -0
  31. dao_treasury/sorting/rule.py +8 -10
  32. dao_treasury/sorting/rules/__init__.cp312-win32.pyd +0 -0
  33. dao_treasury/sorting/rules/ignore/__init__.cp312-win32.pyd +0 -0
  34. dao_treasury/sorting/rules/ignore/llamapay.cp312-win32.pyd +0 -0
  35. dao_treasury/streams/__init__.cp312-win32.pyd +0 -0
  36. dao_treasury/streams/llamapay.cp312-win32.pyd +0 -0
  37. dao_treasury/streams/llamapay.py +14 -2
  38. dao_treasury/treasury.py +37 -16
  39. dao_treasury/types.cp312-win32.pyd +0 -0
  40. {dao_treasury-0.0.34.dist-info → dao_treasury-0.0.72.dist-info}/METADATA +18 -3
  41. dao_treasury-0.0.72.dist-info/RECORD +55 -0
  42. dao_treasury-0.0.72.dist-info/top_level.txt +2 -0
  43. dao_treasury__mypyc.cp312-win32.pyd +0 -0
  44. bf2b4fe1f86ad2ea158b__mypyc.cp312-win32.pyd +0 -0
  45. dao_treasury/.grafana/provisioning/dashboards/treasury/Treasury.json +0 -2018
  46. dao_treasury-0.0.34.dist-info/RECORD +0 -51
  47. dao_treasury-0.0.34.dist-info/top_level.txt +0 -2
  48. {dao_treasury-0.0.34.dist-info → dao_treasury-0.0.72.dist-info}/WHEEL +0 -0
@@ -0,0 +1,555 @@
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
+ "description": "Provides a detailed breakdown of DAO revenue over time, including totals and averages by period and transaction group. Intended for monitoring income streams, identifying trends, and supporting financial reporting. Use the 'Tx Group' filter to view specific revenue categories (e.g., Revenue, Other Income) or all groups. Data Links in panels allow quick navigation to filtered transaction details.",
19
+ "editable": true,
20
+ "fiscalYearStartMonth": 0,
21
+ "graphTooltip": 1,
22
+ "id": 9,
23
+ "links": [],
24
+ "panels": [
25
+ {
26
+ "datasource": "SQLite",
27
+ "description": "Displays the total revenue for the selected period, aggregated across all revenue transaction groups.\n\nClicking the value opens a filtered transactions dashboard for this period and group.",
28
+ "fieldConfig": {
29
+ "defaults": {
30
+ "color": {
31
+ "fixedColor": "semi-dark-green",
32
+ "mode": "fixed"
33
+ },
34
+ "mappings": [],
35
+ "thresholds": {
36
+ "mode": "absolute",
37
+ "steps": [
38
+ {
39
+ "color": "green",
40
+ "value": 0
41
+ },
42
+ {
43
+ "color": "red",
44
+ "value": 80
45
+ }
46
+ ]
47
+ },
48
+ "unit": "currencyUSD"
49
+ },
50
+ "overrides": [
51
+ {
52
+ "matcher": {
53
+ "id": "byName",
54
+ "options": "total_revenue"
55
+ },
56
+ "properties": [
57
+ {
58
+ "id": "links",
59
+ "value": [
60
+ {
61
+ "targetBlank": true,
62
+ "title": "View Revenue Transactions For This Period",
63
+ "url": "/d/b21f1092-66a4-4fb0-90ef-ed77d2becaa4?var-Top=Revenue&from=$__from&to=$__to"
64
+ }
65
+ ]
66
+ }
67
+ ]
68
+ }
69
+ ]
70
+ },
71
+ "gridPos": {
72
+ "h": 4,
73
+ "w": 6,
74
+ "x": 0,
75
+ "y": 0
76
+ },
77
+ "id": 1,
78
+ "options": {
79
+ "colorMode": "background",
80
+ "graphMode": "area",
81
+ "justifyMode": "auto",
82
+ "orientation": "auto",
83
+ "percentChangeColorMode": "standard",
84
+ "reduceOptions": {
85
+ "calcs": ["lastNotNull"],
86
+ "fields": "",
87
+ "values": false
88
+ },
89
+ "showPercentChange": false,
90
+ "textMode": "auto",
91
+ "wideLayout": true
92
+ },
93
+ "pluginVersion": "12.2.1",
94
+ "targets": [
95
+ {
96
+ "datasource": "SQLite",
97
+ "queryText": "SELECT SUM(t.value_usd) AS total_revenue FROM general_ledger t JOIN txgroup_hierarchy gh USING (txgroup_id) inner join txgroups t USING (txgroup_id) WHERE gh.top_category = 'Revenue' AND t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND t.name IN (${Txgroup:sqlstring})",
98
+ "queryType": "table",
99
+ "rawQueryText": "SELECT SUM(t.value_usd) AS total_revenue FROM general_ledger t JOIN txgroup_hierarchy gh USING (txgroup_id) inner join txgroups t USING (txgroup_id) WHERE gh.top_category = 'Revenue' AND t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND t.name IN (${Txgroup:sqlstring})",
100
+ "refId": "A",
101
+ "timeColumns": ["time", "ts"]
102
+ }
103
+ ],
104
+ "title": "Revenue",
105
+ "type": "stat"
106
+ },
107
+ {
108
+ "datasource": "SQLite",
109
+ "description": "Shows the average revenue per month for the selected period.\n\nClicking the value opens a filtered transactions dashboard for this period and group.",
110
+ "fieldConfig": {
111
+ "defaults": {
112
+ "color": {
113
+ "fixedColor": "semi-dark-green",
114
+ "mode": "fixed"
115
+ },
116
+ "mappings": [],
117
+ "thresholds": {
118
+ "mode": "absolute",
119
+ "steps": [
120
+ {
121
+ "color": "green",
122
+ "value": 0
123
+ },
124
+ {
125
+ "color": "red",
126
+ "value": 80
127
+ }
128
+ ]
129
+ },
130
+ "unit": "currencyUSD"
131
+ },
132
+ "overrides": [
133
+ {
134
+ "matcher": {
135
+ "id": "byName",
136
+ "options": "total_revenue"
137
+ },
138
+ "properties": [
139
+ {
140
+ "id": "links",
141
+ "value": [
142
+ {
143
+ "targetBlank": true,
144
+ "title": "View Revenue Transactions For This Period",
145
+ "url": "/d/b21f1092-66a4-4fb0-90ef-ed77d2becaa4?var-Top=Revenue&from=$__from&to=$__to"
146
+ }
147
+ ]
148
+ }
149
+ ]
150
+ }
151
+ ]
152
+ },
153
+ "gridPos": {
154
+ "h": 4,
155
+ "w": 6,
156
+ "x": 6,
157
+ "y": 0
158
+ },
159
+ "id": 4,
160
+ "options": {
161
+ "colorMode": "background",
162
+ "graphMode": "area",
163
+ "justifyMode": "auto",
164
+ "orientation": "auto",
165
+ "percentChangeColorMode": "standard",
166
+ "reduceOptions": {
167
+ "calcs": ["lastNotNull"],
168
+ "fields": "",
169
+ "values": false
170
+ },
171
+ "showPercentChange": false,
172
+ "textMode": "auto",
173
+ "wideLayout": true
174
+ },
175
+ "pluginVersion": "12.2.1",
176
+ "targets": [
177
+ {
178
+ "datasource": "SQLite",
179
+ "queryText": "SELECT SUM(t.value_usd) / ((($__to - $__from) / 1000.0 / 60 / 60 / 24 / 30.436875)) AS total_revenue FROM general_ledger t JOIN txgroup_hierarchy gh USING (txgroup_id) INNER JOIN txgroups t USING (txgroup_id) WHERE gh.top_category = 'Revenue' AND t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND t.name IN (${Txgroup:sqlstring})",
180
+ "queryType": "table",
181
+ "rawQueryText": "SELECT SUM(t.value_usd) / ((($__to - $__from) / 1000.0 / 60 / 60 / 24 / 30.436875)) AS total_revenue FROM general_ledger t JOIN txgroup_hierarchy gh USING (txgroup_id) INNER JOIN txgroups t USING (txgroup_id) WHERE gh.top_category = 'Revenue' AND t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND t.name IN (${Txgroup:sqlstring})",
182
+ "refId": "A",
183
+ "timeColumns": ["time", "ts"]
184
+ }
185
+ ],
186
+ "title": "Monthly Revenue",
187
+ "type": "stat"
188
+ },
189
+ {
190
+ "datasource": "SQLite",
191
+ "description": "Shows the average revenue per week for the selected period.\n\nClicking the value opens a filtered transactions dashboard for this period and group.",
192
+ "fieldConfig": {
193
+ "defaults": {
194
+ "color": {
195
+ "fixedColor": "semi-dark-green",
196
+ "mode": "fixed"
197
+ },
198
+ "mappings": [],
199
+ "thresholds": {
200
+ "mode": "absolute",
201
+ "steps": [
202
+ {
203
+ "color": "green",
204
+ "value": 0
205
+ },
206
+ {
207
+ "color": "red",
208
+ "value": 80
209
+ }
210
+ ]
211
+ },
212
+ "unit": "currencyUSD"
213
+ },
214
+ "overrides": [
215
+ {
216
+ "matcher": {
217
+ "id": "byName",
218
+ "options": "total_revenue"
219
+ },
220
+ "properties": [
221
+ {
222
+ "id": "links",
223
+ "value": [
224
+ {
225
+ "targetBlank": true,
226
+ "title": "View Revenue Transactions For This Period",
227
+ "url": "/d/b21f1092-66a4-4fb0-90ef-ed77d2becaa4?var-Top=Revenue&from=$__from&to=$__to"
228
+ }
229
+ ]
230
+ }
231
+ ]
232
+ }
233
+ ]
234
+ },
235
+ "gridPos": {
236
+ "h": 4,
237
+ "w": 6,
238
+ "x": 12,
239
+ "y": 0
240
+ },
241
+ "id": 2,
242
+ "options": {
243
+ "colorMode": "background",
244
+ "graphMode": "area",
245
+ "justifyMode": "auto",
246
+ "orientation": "auto",
247
+ "percentChangeColorMode": "standard",
248
+ "reduceOptions": {
249
+ "calcs": ["lastNotNull"],
250
+ "fields": "",
251
+ "values": false
252
+ },
253
+ "showPercentChange": false,
254
+ "textMode": "auto",
255
+ "wideLayout": true
256
+ },
257
+ "pluginVersion": "12.2.1",
258
+ "targets": [
259
+ {
260
+ "datasource": "SQLite",
261
+ "queryText": "SELECT SUM(t.value_usd) / ((($__to - $__from) / 1000.0 / 60 / 60 / 24 / 7)) AS total_revenue FROM general_ledger t JOIN txgroup_hierarchy gh USING (txgroup_id) INNER JOIN txgroups t USING (txgroup_id) WHERE gh.top_category = 'Revenue' AND t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND t.name IN (${Txgroup:sqlstring})",
262
+ "queryType": "table",
263
+ "rawQueryText": "SELECT SUM(t.value_usd) / ((($__to - $__from) / 1000.0 / 60 / 60 / 24 / 7)) AS total_revenue FROM general_ledger t JOIN txgroup_hierarchy gh USING (txgroup_id) INNER JOIN txgroups t USING (txgroup_id) WHERE gh.top_category = 'Revenue' AND t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND t.name IN (${Txgroup:sqlstring})",
264
+ "refId": "A",
265
+ "timeColumns": ["time", "ts"]
266
+ }
267
+ ],
268
+ "title": "Weekly Revenue",
269
+ "type": "stat"
270
+ },
271
+ {
272
+ "datasource": "SQLite",
273
+ "description": "Shows the average revenue per day for the selected period.\n\nClicking the value opens a filtered transactions dashboard for this period and group.",
274
+ "fieldConfig": {
275
+ "defaults": {
276
+ "color": {
277
+ "fixedColor": "semi-dark-green",
278
+ "mode": "fixed"
279
+ },
280
+ "mappings": [],
281
+ "thresholds": {
282
+ "mode": "absolute",
283
+ "steps": [
284
+ {
285
+ "color": "green",
286
+ "value": 0
287
+ },
288
+ {
289
+ "color": "red",
290
+ "value": 80
291
+ }
292
+ ]
293
+ },
294
+ "unit": "currencyUSD"
295
+ },
296
+ "overrides": [
297
+ {
298
+ "matcher": {
299
+ "id": "byName",
300
+ "options": "total_revenue"
301
+ },
302
+ "properties": [
303
+ {
304
+ "id": "links",
305
+ "value": [
306
+ {
307
+ "targetBlank": true,
308
+ "title": "View Revenue Transactions For This Period",
309
+ "url": "/d/b21f1092-66a4-4fb0-90ef-ed77d2becaa4?var-Top=Revenue&from=$__from&to=$__to"
310
+ }
311
+ ]
312
+ }
313
+ ]
314
+ }
315
+ ]
316
+ },
317
+ "gridPos": {
318
+ "h": 4,
319
+ "w": 6,
320
+ "x": 18,
321
+ "y": 0
322
+ },
323
+ "id": 3,
324
+ "options": {
325
+ "colorMode": "background",
326
+ "graphMode": "area",
327
+ "justifyMode": "auto",
328
+ "orientation": "auto",
329
+ "percentChangeColorMode": "standard",
330
+ "reduceOptions": {
331
+ "calcs": ["lastNotNull"],
332
+ "fields": "",
333
+ "values": false
334
+ },
335
+ "showPercentChange": false,
336
+ "textMode": "auto",
337
+ "wideLayout": true
338
+ },
339
+ "pluginVersion": "12.2.1",
340
+ "targets": [
341
+ {
342
+ "datasource": "SQLite",
343
+ "queryText": "SELECT SUM(t.value_usd) / ((($__to - $__from) / 1000.0 / 60 / 60 / 24)) AS total_revenue FROM general_ledger t JOIN txgroup_hierarchy gh USING (txgroup_id) INNER JOIN txgroups t USING (txgroup_id) WHERE gh.top_category = 'Revenue' AND t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND t.name IN (${Txgroup:sqlstring})",
344
+ "queryType": "table",
345
+ "rawQueryText": "SELECT SUM(t.value_usd) / ((($__to - $__from) / 1000.0 / 60 / 60 / 24)) AS total_revenue FROM general_ledger t JOIN txgroup_hierarchy gh USING (txgroup_id) INNER JOIN txgroups t USING (txgroup_id) WHERE gh.top_category = 'Revenue' AND t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND t.name IN (${Txgroup:sqlstring})",
346
+ "refId": "A",
347
+ "timeColumns": ["time", "ts"]
348
+ }
349
+ ],
350
+ "title": "Daily Revenue",
351
+ "type": "stat"
352
+ },
353
+ {
354
+ "datasource": "SQLite",
355
+ "description": "Time series chart of revenue by transaction group, aggregated weekly for the selected period.\n\nClicking a group name opens a filtered transactions dashboard for that group and period.",
356
+ "fieldConfig": {
357
+ "defaults": {
358
+ "color": {
359
+ "mode": "palette-classic"
360
+ },
361
+ "custom": {
362
+ "axisBorderShow": false,
363
+ "axisCenteredZero": false,
364
+ "axisColorMode": "text",
365
+ "axisLabel": "",
366
+ "axisPlacement": "auto",
367
+ "barAlignment": 0,
368
+ "barWidthFactor": 0.6,
369
+ "drawStyle": "bars",
370
+ "fillOpacity": 70,
371
+ "gradientMode": "none",
372
+ "hideFrom": {
373
+ "legend": false,
374
+ "tooltip": false,
375
+ "viz": false
376
+ },
377
+ "insertNulls": false,
378
+ "lineInterpolation": "linear",
379
+ "lineWidth": 1,
380
+ "pointSize": 5,
381
+ "scaleDistribution": {
382
+ "type": "linear"
383
+ },
384
+ "showPoints": "auto",
385
+ "showValues": false,
386
+ "spanNulls": false,
387
+ "stacking": {
388
+ "group": "A",
389
+ "mode": "normal"
390
+ },
391
+ "thresholdsStyle": {
392
+ "mode": "off"
393
+ }
394
+ },
395
+ "mappings": [],
396
+ "thresholds": {
397
+ "mode": "absolute",
398
+ "steps": [
399
+ {
400
+ "color": "green",
401
+ "value": 0
402
+ },
403
+ {
404
+ "color": "red",
405
+ "value": 80
406
+ }
407
+ ]
408
+ },
409
+ "unit": "currencyUSD"
410
+ },
411
+ "overrides": [
412
+ {
413
+ "matcher": {
414
+ "id": "byName",
415
+ "options": "Revenue (sum)"
416
+ },
417
+ "properties": [
418
+ {
419
+ "id": "links",
420
+ "value": [
421
+ {
422
+ "targetBlank": true,
423
+ "title": "View ${__series.name} Transactions",
424
+ "url": "/d/b21f1092-66a4-4fb0-90ef-ed77d2becaa4?var-Top=${__series.name}&from=$__from&to=$__to"
425
+ }
426
+ ]
427
+ }
428
+ ]
429
+ }
430
+ ]
431
+ },
432
+ "gridPos": {
433
+ "h": 12,
434
+ "w": 24,
435
+ "x": 0,
436
+ "y": 4
437
+ },
438
+ "id": 11,
439
+ "options": {
440
+ "legend": {
441
+ "calcs": ["sum"],
442
+ "displayMode": "list",
443
+ "placement": "bottom",
444
+ "showLegend": true
445
+ },
446
+ "tooltip": {
447
+ "hideZeros": false,
448
+ "mode": "multi",
449
+ "sort": "none"
450
+ }
451
+ },
452
+ "pluginVersion": "12.2.1",
453
+ "targets": [
454
+ {
455
+ "datasource": "SQLite",
456
+ "queryText": "SELECT t.timestamp, g.name AS \"TxGroup\", SUM(CASE WHEN gh.top_category in ('Revenue', 'Other Income') THEN t.value_usd ELSE 0 END) AS \"Revenue\" FROM general_ledger AS t JOIN txgroup_hierarchy gh ON t.txgroup_id = gh.txgroup_id INNER JOIN txgroups g USING (txgroup_id) WHERE t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND g.name IN (${Txgroup:sqlstring}) GROUP BY t.timestamp, g.name ORDER BY t.timestamp;",
457
+ "queryType": "table",
458
+ "rawQueryText": "SELECT t.timestamp, g.name AS \"TxGroup\", SUM(CASE WHEN gh.top_category in ('Revenue', 'Other Income') THEN t.value_usd ELSE 0 END) AS \"Revenue\" FROM general_ledger AS t JOIN txgroup_hierarchy gh ON t.txgroup_id = gh.txgroup_id INNER JOIN txgroups g USING (txgroup_id) WHERE t.timestamp >= $__from/1000 AND t.timestamp <= $__to/1000 AND g.name IN (${Txgroup:sqlstring}) GROUP BY t.timestamp, g.name ORDER BY t.timestamp;",
459
+ "refId": "A",
460
+ "timeColumns": ["timestamp"]
461
+ }
462
+ ],
463
+ "title": "Weekly Cashflow",
464
+ "transformations": [
465
+ {
466
+ "id": "formatTime",
467
+ "options": {
468
+ "outputFormat": "YYYY-WW",
469
+ "timeField": "timestamp",
470
+ "timezone": "browser",
471
+ "useTimezone": true
472
+ }
473
+ },
474
+ {
475
+ "id": "convertFieldType",
476
+ "options": {
477
+ "conversions": [
478
+ {
479
+ "dateFormat": "YYYY-WW",
480
+ "destinationType": "time",
481
+ "targetField": "timestamp"
482
+ }
483
+ ],
484
+ "fields": {}
485
+ }
486
+ },
487
+ {
488
+ "id": "groupBy",
489
+ "options": {
490
+ "fields": {
491
+ "Revenue": {
492
+ "aggregations": ["sum"],
493
+ "operation": "aggregate"
494
+ },
495
+ "TxGroup": {
496
+ "aggregations": [],
497
+ "operation": "groupby"
498
+ },
499
+ "timestamp": {
500
+ "aggregations": [],
501
+ "operation": "groupby"
502
+ }
503
+ }
504
+ }
505
+ },
506
+ {
507
+ "id": "partitionByValues",
508
+ "options": {
509
+ "fields": ["TxGroup"],
510
+ "keepFields": false,
511
+ "naming": {
512
+ "asLabels": false
513
+ }
514
+ }
515
+ }
516
+ ],
517
+ "type": "timeseries"
518
+ }
519
+ ],
520
+ "preload": false,
521
+ "refresh": "",
522
+ "schemaVersion": 42,
523
+ "tags": ["breakdown", "revenue"],
524
+ "templating": {
525
+ "list": [
526
+ {
527
+ "allowCustomValue": true,
528
+ "current": {
529
+ "text": "All",
530
+ "value": "$__all"
531
+ },
532
+ "definition": "SELECT DISTINCT t.name FROM treasury_txs a INNER JOIN txgroup_hierarchy gh ON a.txgroup_id = gh.txgroup_id LEFT JOIN txgroups t ON gh.txgroup_id = t.txgroup_id WHERE (gh.top_category = 'Revenue' OR gh.top_category = 'Other Income') AND a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000;",
533
+ "description": "Filter the dashboard by transaction group.\n\nSelect one or more groups to view revenue for specific categories, or 'All' to include every group.",
534
+ "includeAll": true,
535
+ "label": "Tx Group",
536
+ "name": "Txgroup",
537
+ "options": [],
538
+ "query": "SELECT DISTINCT t.name FROM treasury_txs a INNER JOIN txgroup_hierarchy gh ON a.txgroup_id = gh.txgroup_id LEFT JOIN txgroups t ON gh.txgroup_id = t.txgroup_id WHERE (gh.top_category = 'Revenue' OR gh.top_category = 'Other Income') AND a.timestamp >= $__from/1000 AND a.timestamp <= $__to/1000;",
539
+ "refresh": 2,
540
+ "regex": "",
541
+ "sort": 5,
542
+ "type": "query"
543
+ }
544
+ ]
545
+ },
546
+ "time": {
547
+ "from": "now-6M",
548
+ "to": "now"
549
+ },
550
+ "timepicker": {},
551
+ "timezone": "",
552
+ "title": "Revenue Over Time",
553
+ "uid": "5284bb56-b9fb-4f36-b971-eb125bfdac7d",
554
+ "version": 12
555
+ }
@@ -1,60 +1,10 @@
1
1
  apiVersion: 1
2
2
 
3
3
  providers:
4
- # Home
5
- - name: 'Summary'
6
- folder: 'Summary'
7
- type: file
8
- disableDeletion: true
9
- editable: false
10
- options:
11
- path: /etc/grafana/provisioning/dashboards/summary
12
-
13
- # Dashboards
14
- - name: 'Treasury'
15
- folder: 'Treasury'
16
- type: file
17
- disableDeletion: true
18
- editable: false
19
- options:
20
- path: /etc/grafana/provisioning/dashboards/treasury
21
-
22
- - name: 'Operating Cashflow Summary'
23
- folder: 'Treasury'
24
- type: file
25
- disableDeletion: true
26
- editable: false
27
- options:
28
- path: /etc/grafana/provisioning/dashboards/treasury
29
-
30
- - name: 'Total Cashflow Summary'
31
- folder: 'Treasury'
32
- type: file
33
- disableDeletion: true
34
- editable: false
35
- options:
36
- path: /etc/grafana/provisioning/dashboards/treasury
37
-
38
- - name: 'Total Cashflow Summary (Including Unsorted)'
39
- folder: 'Treasury'
40
- type: file
41
- disableDeletion: true
42
- editable: false
43
- options:
44
- path: /etc/grafana/provisioning/dashboards/treasury
45
-
46
- - name: 'Treasury Transactions'
47
- folder: 'Transactions'
48
- type: file
49
- disableDeletion: true
50
- editable: false
51
- options:
52
- path: /etc/grafana/provisioning/dashboards/transactions
53
-
54
- - name: 'LlamaPay Streams'
55
- folder: 'Streams'
56
- type: file
57
- disableDeletion: true
58
- editable: false
59
- options:
60
- path: /etc/grafana/provisioning/dashboards/streams
4
+ - name: 'All Dashboards'
5
+ folder: ''
6
+ type: file
7
+ disableDeletion: false
8
+ editable: true
9
+ options:
10
+ path: /etc/grafana/provisioning/dashboards