dao-treasury 0.0.10__cp310-cp310-win32.whl → 0.0.70__cp310-cp310-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.
Files changed (58) hide show
  1. dao_treasury/.grafana/provisioning/dashboards/breakdowns/Expenses.json +551 -0
  2. dao_treasury/.grafana/provisioning/dashboards/breakdowns/Revenue.json +551 -0
  3. dao_treasury/.grafana/provisioning/dashboards/dashboards.yaml +7 -7
  4. dao_treasury/.grafana/provisioning/dashboards/streams/LlamaPay.json +220 -0
  5. dao_treasury/.grafana/provisioning/dashboards/summary/Monthly.json +153 -29
  6. dao_treasury/.grafana/provisioning/dashboards/transactions/Treasury Transactions.json +181 -29
  7. dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow (Including Unsorted).json +808 -0
  8. dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow.json +602 -0
  9. dao_treasury/.grafana/provisioning/dashboards/treasury/Current Treasury Assets.json +981 -0
  10. dao_treasury/.grafana/provisioning/dashboards/treasury/Historical Treasury Balances.json +2989 -0
  11. dao_treasury/.grafana/provisioning/dashboards/treasury/Operating Cashflow.json +478 -0
  12. dao_treasury/.grafana/provisioning/datasources/datasources.yaml +17 -0
  13. dao_treasury/ENVIRONMENT_VARIABLES.py +20 -0
  14. dao_treasury/__init__.py +36 -10
  15. dao_treasury/_docker.cp310-win32.pyd +0 -0
  16. dao_treasury/_docker.py +169 -37
  17. dao_treasury/_nicknames.cp310-win32.pyd +0 -0
  18. dao_treasury/_nicknames.py +32 -0
  19. dao_treasury/_wallet.cp310-win32.pyd +0 -0
  20. dao_treasury/_wallet.py +164 -12
  21. dao_treasury/constants.cp310-win32.pyd +0 -0
  22. dao_treasury/constants.py +39 -0
  23. dao_treasury/db.py +925 -150
  24. dao_treasury/docker-compose.yaml +6 -5
  25. dao_treasury/main.py +238 -28
  26. dao_treasury/sorting/__init__.cp310-win32.pyd +0 -0
  27. dao_treasury/sorting/__init__.py +219 -115
  28. dao_treasury/sorting/_matchers.cp310-win32.pyd +0 -0
  29. dao_treasury/sorting/_matchers.py +261 -17
  30. dao_treasury/sorting/_rules.cp310-win32.pyd +0 -0
  31. dao_treasury/sorting/_rules.py +166 -21
  32. dao_treasury/sorting/factory.cp310-win32.pyd +0 -0
  33. dao_treasury/sorting/factory.py +245 -37
  34. dao_treasury/sorting/rule.cp310-win32.pyd +0 -0
  35. dao_treasury/sorting/rule.py +228 -46
  36. dao_treasury/sorting/rules/__init__.cp310-win32.pyd +0 -0
  37. dao_treasury/sorting/rules/__init__.py +1 -0
  38. dao_treasury/sorting/rules/ignore/__init__.cp310-win32.pyd +0 -0
  39. dao_treasury/sorting/rules/ignore/__init__.py +1 -0
  40. dao_treasury/sorting/rules/ignore/llamapay.cp310-win32.pyd +0 -0
  41. dao_treasury/sorting/rules/ignore/llamapay.py +20 -0
  42. dao_treasury/streams/__init__.cp310-win32.pyd +0 -0
  43. dao_treasury/streams/__init__.py +0 -0
  44. dao_treasury/streams/llamapay.cp310-win32.pyd +0 -0
  45. dao_treasury/streams/llamapay.py +388 -0
  46. dao_treasury/treasury.py +118 -25
  47. dao_treasury/types.cp310-win32.pyd +0 -0
  48. dao_treasury/types.py +104 -7
  49. dao_treasury-0.0.70.dist-info/METADATA +134 -0
  50. dao_treasury-0.0.70.dist-info/RECORD +54 -0
  51. dao_treasury-0.0.70.dist-info/top_level.txt +2 -0
  52. dao_treasury__mypyc.cp310-win32.pyd +0 -0
  53. a743a720bbc4482d330e__mypyc.cp310-win32.pyd +0 -0
  54. dao_treasury/.grafana/provisioning/datasources/sqlite.yaml +0 -10
  55. dao_treasury-0.0.10.dist-info/METADATA +0 -36
  56. dao_treasury-0.0.10.dist-info/RECORD +0 -28
  57. dao_treasury-0.0.10.dist-info/top_level.txt +0 -2
  58. {dao_treasury-0.0.10.dist-info → dao_treasury-0.0.70.dist-info}/WHEEL +0 -0
@@ -0,0 +1,981 @@
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
+ },
41
+ "unit": "currencyUSD"
42
+ },
43
+ "overrides": []
44
+ },
45
+ "gridPos": {
46
+ "h": 3,
47
+ "w": 6,
48
+ "x": 0,
49
+ "y": 0
50
+ },
51
+ "id": 3,
52
+ "options": {
53
+ "colorMode": "value",
54
+ "graphMode": "area",
55
+ "justifyMode": "auto",
56
+ "orientation": "auto",
57
+ "percentChangeColorMode": "standard",
58
+ "reduceOptions": {
59
+ "calcs": ["last"],
60
+ "fields": "",
61
+ "values": false
62
+ },
63
+ "showPercentChange": false,
64
+ "textMode": "auto",
65
+ "wideLayout": true
66
+ },
67
+ "pluginVersion": "12.2.1",
68
+ "targets": [
69
+ {
70
+ "datasource": "PROMETHEUS",
71
+ "editorMode": "code",
72
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (bucket, token)",
73
+ "format": "table",
74
+ "instant": false,
75
+ "legendFormat": "__auto",
76
+ "range": true,
77
+ "refId": "A"
78
+ }
79
+ ],
80
+ "title": "Total Assets",
81
+ "transformations": [
82
+ {
83
+ "id": "groupBy",
84
+ "options": {
85
+ "fields": {
86
+ "Time": {
87
+ "aggregations": ["last"],
88
+ "operation": "aggregate"
89
+ },
90
+ "Value": {
91
+ "aggregations": ["last"],
92
+ "operation": "aggregate"
93
+ },
94
+ "bucket": {
95
+ "aggregations": [],
96
+ "operation": "groupby"
97
+ },
98
+ "token": {
99
+ "aggregations": [],
100
+ "operation": "groupby"
101
+ }
102
+ }
103
+ }
104
+ },
105
+ {
106
+ "id": "filterFieldsByName",
107
+ "options": {
108
+ "include": {
109
+ "names": ["Value (last)", "Time (last)"]
110
+ }
111
+ }
112
+ },
113
+ {
114
+ "id": "reduce",
115
+ "options": {
116
+ "includeTimeField": false,
117
+ "mode": "reduceFields",
118
+ "reducers": ["sum"]
119
+ }
120
+ }
121
+ ],
122
+ "type": "stat",
123
+ "description": "Displays the total value of all DAO treasury assets in USD, aggregated across all wallets, asset types, and buckets."
124
+ },
125
+ {
126
+ "datasource": "PROMETHEUS",
127
+ "fieldConfig": {
128
+ "defaults": {
129
+ "color": {
130
+ "mode": "thresholds"
131
+ },
132
+ "mappings": [],
133
+ "thresholds": {
134
+ "mode": "absolute",
135
+ "steps": [
136
+ {
137
+ "color": "green",
138
+ "value": 0
139
+ }
140
+ ]
141
+ },
142
+ "unit": "currencyUSD"
143
+ },
144
+ "overrides": []
145
+ },
146
+ "gridPos": {
147
+ "h": 3,
148
+ "w": 4,
149
+ "x": 6,
150
+ "y": 0
151
+ },
152
+ "id": 10,
153
+ "options": {
154
+ "colorMode": "value",
155
+ "graphMode": "area",
156
+ "justifyMode": "auto",
157
+ "orientation": "auto",
158
+ "percentChangeColorMode": "standard",
159
+ "reduceOptions": {
160
+ "calcs": ["last"],
161
+ "fields": "",
162
+ "values": false
163
+ },
164
+ "showPercentChange": false,
165
+ "textMode": "auto",
166
+ "wideLayout": true
167
+ },
168
+ "pluginVersion": "12.2.1",
169
+ "targets": [
170
+ {
171
+ "datasource": "PROMETHEUS",
172
+ "editorMode": "code",
173
+ "expr": "sum(treasury_assets{param=\"usd value\",bucket=\"Cash & cash equivalents\"}<500_000_000) by (bucket, token)",
174
+ "format": "table",
175
+ "instant": false,
176
+ "legendFormat": "__auto",
177
+ "range": true,
178
+ "refId": "A"
179
+ }
180
+ ],
181
+ "title": "Total Stablecoins",
182
+ "transformations": [
183
+ {
184
+ "id": "groupBy",
185
+ "options": {
186
+ "fields": {
187
+ "Time": {
188
+ "aggregations": ["last"],
189
+ "operation": "aggregate"
190
+ },
191
+ "Value": {
192
+ "aggregations": ["last"],
193
+ "operation": "aggregate"
194
+ },
195
+ "bucket": {
196
+ "aggregations": [],
197
+ "operation": "groupby"
198
+ },
199
+ "token": {
200
+ "aggregations": [],
201
+ "operation": "groupby"
202
+ }
203
+ }
204
+ }
205
+ },
206
+ {
207
+ "id": "filterFieldsByName",
208
+ "options": {
209
+ "include": {
210
+ "names": ["Value (last)", "Time (last)"]
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "id": "reduce",
216
+ "options": {
217
+ "includeTimeField": false,
218
+ "mode": "reduceFields",
219
+ "reducers": ["sum"]
220
+ }
221
+ }
222
+ ],
223
+ "type": "stat",
224
+ "description": "Displays the total USD value of all stablecoins (cash & cash equivalents) held in any of the DAO's treasury wallets."
225
+ },
226
+ {
227
+ "datasource": "PROMETHEUS",
228
+ "fieldConfig": {
229
+ "defaults": {
230
+ "color": {
231
+ "mode": "thresholds"
232
+ },
233
+ "mappings": [],
234
+ "thresholds": {
235
+ "mode": "absolute",
236
+ "steps": [
237
+ {
238
+ "color": "green",
239
+ "value": 0
240
+ }
241
+ ]
242
+ },
243
+ "unit": "currencyUSD"
244
+ },
245
+ "overrides": []
246
+ },
247
+ "gridPos": {
248
+ "h": 3,
249
+ "w": 4,
250
+ "x": 10,
251
+ "y": 0
252
+ },
253
+ "id": 11,
254
+ "options": {
255
+ "colorMode": "value",
256
+ "graphMode": "area",
257
+ "justifyMode": "auto",
258
+ "orientation": "auto",
259
+ "percentChangeColorMode": "standard",
260
+ "reduceOptions": {
261
+ "calcs": ["last"],
262
+ "fields": "",
263
+ "values": false
264
+ },
265
+ "showPercentChange": false,
266
+ "textMode": "auto",
267
+ "wideLayout": true
268
+ },
269
+ "pluginVersion": "12.2.1",
270
+ "targets": [
271
+ {
272
+ "datasource": "PROMETHEUS",
273
+ "editorMode": "code",
274
+ "expr": "sum(treasury_assets{param=\"usd value\",bucket=\"ETH\"}<500_000_000) by (bucket, token)",
275
+ "format": "table",
276
+ "instant": false,
277
+ "legendFormat": "__auto",
278
+ "range": true,
279
+ "refId": "A"
280
+ }
281
+ ],
282
+ "title": "Total ETH",
283
+ "transformations": [
284
+ {
285
+ "id": "groupBy",
286
+ "options": {
287
+ "fields": {
288
+ "Time": {
289
+ "aggregations": ["last"],
290
+ "operation": "aggregate"
291
+ },
292
+ "Value": {
293
+ "aggregations": ["last"],
294
+ "operation": "aggregate"
295
+ },
296
+ "bucket": {
297
+ "aggregations": [],
298
+ "operation": "groupby"
299
+ },
300
+ "token": {
301
+ "aggregations": [],
302
+ "operation": "groupby"
303
+ }
304
+ }
305
+ }
306
+ },
307
+ {
308
+ "id": "filterFieldsByName",
309
+ "options": {
310
+ "include": {
311
+ "names": ["Value (last)", "Time (last)"]
312
+ }
313
+ }
314
+ },
315
+ {
316
+ "id": "reduce",
317
+ "options": {
318
+ "includeTimeField": false,
319
+ "mode": "reduceFields",
320
+ "reducers": ["sum"]
321
+ }
322
+ }
323
+ ],
324
+ "type": "stat",
325
+ "description": "Displays the total USD value of all ETH and ETH-like tokens held in any of the DAO's treasury wallets."
326
+ },
327
+ {
328
+ "datasource": "PROMETHEUS",
329
+ "fieldConfig": {
330
+ "defaults": {
331
+ "color": {
332
+ "mode": "thresholds"
333
+ },
334
+ "mappings": [],
335
+ "thresholds": {
336
+ "mode": "absolute",
337
+ "steps": [
338
+ {
339
+ "color": "green",
340
+ "value": 0
341
+ }
342
+ ]
343
+ },
344
+ "unit": "currencyUSD"
345
+ },
346
+ "overrides": []
347
+ },
348
+ "gridPos": {
349
+ "h": 3,
350
+ "w": 4,
351
+ "x": 14,
352
+ "y": 0
353
+ },
354
+ "id": 12,
355
+ "options": {
356
+ "colorMode": "value",
357
+ "graphMode": "area",
358
+ "justifyMode": "auto",
359
+ "orientation": "auto",
360
+ "percentChangeColorMode": "standard",
361
+ "reduceOptions": {
362
+ "calcs": ["last"],
363
+ "fields": "",
364
+ "values": false
365
+ },
366
+ "showPercentChange": false,
367
+ "textMode": "auto",
368
+ "wideLayout": true
369
+ },
370
+ "pluginVersion": "12.2.1",
371
+ "targets": [
372
+ {
373
+ "datasource": "PROMETHEUS",
374
+ "editorMode": "code",
375
+ "expr": "sum(treasury_assets{param=\"usd value\",bucket=\"BTC\"}<500_000_000) by (bucket, token)",
376
+ "format": "table",
377
+ "instant": false,
378
+ "legendFormat": "__auto",
379
+ "range": true,
380
+ "refId": "A"
381
+ }
382
+ ],
383
+ "title": "Total BTC",
384
+ "transformations": [
385
+ {
386
+ "id": "groupBy",
387
+ "options": {
388
+ "fields": {
389
+ "Time": {
390
+ "aggregations": ["last"],
391
+ "operation": "aggregate"
392
+ },
393
+ "Value": {
394
+ "aggregations": ["last"],
395
+ "operation": "aggregate"
396
+ },
397
+ "bucket": {
398
+ "aggregations": [],
399
+ "operation": "groupby"
400
+ },
401
+ "token": {
402
+ "aggregations": [],
403
+ "operation": "groupby"
404
+ }
405
+ }
406
+ }
407
+ },
408
+ {
409
+ "id": "filterFieldsByName",
410
+ "options": {
411
+ "include": {
412
+ "names": ["Value (last)", "Time (last)"]
413
+ }
414
+ }
415
+ },
416
+ {
417
+ "id": "reduce",
418
+ "options": {
419
+ "includeTimeField": false,
420
+ "mode": "reduceFields",
421
+ "reducers": ["sum"]
422
+ }
423
+ }
424
+ ],
425
+ "type": "stat",
426
+ "description": "Displays the total USD value of all BTC and BTC-like tokens held in any of the DAO's treasury wallets."
427
+ },
428
+ {
429
+ "datasource": "PROMETHEUS",
430
+ "fieldConfig": {
431
+ "defaults": {
432
+ "color": {
433
+ "mode": "thresholds"
434
+ },
435
+ "custom": {
436
+ "align": "auto",
437
+ "cellOptions": {
438
+ "type": "auto"
439
+ },
440
+ "footer": {
441
+ "reducers": []
442
+ },
443
+ "hideFrom": {
444
+ "viz": false
445
+ },
446
+ "inspect": false
447
+ },
448
+ "mappings": [],
449
+ "thresholds": {
450
+ "mode": "absolute",
451
+ "steps": [
452
+ {
453
+ "color": "green",
454
+ "value": 0
455
+ }
456
+ ]
457
+ }
458
+ },
459
+ "overrides": []
460
+ },
461
+ "gridPos": {
462
+ "h": 3,
463
+ "w": 6,
464
+ "x": 18,
465
+ "y": 0
466
+ },
467
+ "id": 2,
468
+ "options": {
469
+ "cellHeight": "sm",
470
+ "showHeader": true
471
+ },
472
+ "pluginVersion": "12.2.1",
473
+ "targets": [
474
+ {
475
+ "datasource": "PROMETHEUS",
476
+ "editorMode": "code",
477
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000)",
478
+ "format": "table",
479
+ "instant": false,
480
+ "legendFormat": "__auto",
481
+ "range": true,
482
+ "refId": "A"
483
+ }
484
+ ],
485
+ "title": "Last Update",
486
+ "transformations": [
487
+ {
488
+ "id": "reduce",
489
+ "options": {
490
+ "includeTimeField": true,
491
+ "mode": "reduceFields",
492
+ "reducers": ["last"]
493
+ }
494
+ },
495
+ {
496
+ "id": "filterFieldsByName",
497
+ "options": {
498
+ "byVariable": false,
499
+ "include": {
500
+ "names": ["Time"]
501
+ }
502
+ }
503
+ },
504
+ {
505
+ "id": "renameByRegex",
506
+ "options": {
507
+ "regex": "Time",
508
+ "renamePattern": "The last snapshot was taken at:"
509
+ }
510
+ }
511
+ ],
512
+ "type": "table",
513
+ "description": "Shows the timestamp of the most recent complete data snapshot for treasury assets."
514
+ },
515
+ {
516
+ "datasource": "PROMETHEUS",
517
+ "fieldConfig": {
518
+ "defaults": {
519
+ "color": {
520
+ "fixedColor": "#0066ff",
521
+ "mode": "palette-classic"
522
+ },
523
+ "custom": {
524
+ "hideFrom": {
525
+ "legend": false,
526
+ "tooltip": false,
527
+ "viz": false
528
+ }
529
+ },
530
+ "mappings": [],
531
+ "unit": "currencyUSD"
532
+ },
533
+ "overrides": [
534
+ {
535
+ "matcher": {
536
+ "id": "byName",
537
+ "options": "BTC"
538
+ },
539
+ "properties": [
540
+ {
541
+ "id": "color",
542
+ "value": {
543
+ "fixedColor": "orange",
544
+ "mode": "shades"
545
+ }
546
+ }
547
+ ]
548
+ },
549
+ {
550
+ "matcher": {
551
+ "id": "byName",
552
+ "options": "ETH"
553
+ },
554
+ "properties": [
555
+ {
556
+ "id": "color",
557
+ "value": {
558
+ "fixedColor": "#0066ff",
559
+ "mode": "fixed"
560
+ }
561
+ }
562
+ ]
563
+ },
564
+ {
565
+ "matcher": {
566
+ "id": "byName",
567
+ "options": "Cash & cash equivalents"
568
+ },
569
+ "properties": [
570
+ {
571
+ "id": "color",
572
+ "value": {
573
+ "fixedColor": "semi-dark-green",
574
+ "mode": "fixed"
575
+ }
576
+ }
577
+ ]
578
+ },
579
+ {
580
+ "matcher": {
581
+ "id": "byName",
582
+ "options": "Other short term assets"
583
+ },
584
+ "properties": [
585
+ {
586
+ "id": "color",
587
+ "value": {
588
+ "fixedColor": "semi-dark-purple",
589
+ "mode": "fixed"
590
+ }
591
+ }
592
+ ]
593
+ }
594
+ ]
595
+ },
596
+ "gridPos": {
597
+ "h": 7,
598
+ "w": 9,
599
+ "x": 0,
600
+ "y": 3
601
+ },
602
+ "id": 13,
603
+ "options": {
604
+ "displayLabels": [],
605
+ "legend": {
606
+ "displayMode": "list",
607
+ "placement": "bottom",
608
+ "showLegend": true,
609
+ "values": ["percent"]
610
+ },
611
+ "pieType": "pie",
612
+ "reduceOptions": {
613
+ "calcs": ["lastNotNull"],
614
+ "fields": "",
615
+ "values": false
616
+ },
617
+ "sort": "desc",
618
+ "tooltip": {
619
+ "hideZeros": false,
620
+ "mode": "multi",
621
+ "sort": "asc"
622
+ }
623
+ },
624
+ "pluginVersion": "12.2.1",
625
+ "targets": [
626
+ {
627
+ "datasource": "PROMETHEUS",
628
+ "editorMode": "code",
629
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (bucket)",
630
+ "instant": false,
631
+ "legendFormat": "__auto",
632
+ "range": true,
633
+ "refId": "A"
634
+ }
635
+ ],
636
+ "title": "",
637
+ "type": "piechart",
638
+ "description": "Pie chart visualizing the distribution of treasury assets by bucket (e.g., stablecoins, ETH, BTC, other assets)."
639
+ },
640
+ {
641
+ "datasource": "PROMETHEUS",
642
+ "fieldConfig": {
643
+ "defaults": {
644
+ "color": {
645
+ "mode": "thresholds"
646
+ },
647
+ "custom": {
648
+ "align": "auto",
649
+ "cellOptions": {
650
+ "type": "auto"
651
+ },
652
+ "footer": {
653
+ "reducers": []
654
+ },
655
+ "inspect": false
656
+ },
657
+ "mappings": [],
658
+ "thresholds": {
659
+ "mode": "absolute",
660
+ "steps": [
661
+ {
662
+ "color": "green",
663
+ "value": 0
664
+ }
665
+ ]
666
+ },
667
+ "unit": "currencyUSD"
668
+ },
669
+ "overrides": []
670
+ },
671
+ "gridPos": {
672
+ "h": 7,
673
+ "w": 15,
674
+ "x": 9,
675
+ "y": 3
676
+ },
677
+ "id": 1,
678
+ "options": {
679
+ "cellHeight": "sm",
680
+ "showHeader": true,
681
+ "sortBy": [
682
+ {
683
+ "desc": true,
684
+ "displayName": "Last Known Value USD"
685
+ }
686
+ ]
687
+ },
688
+ "pluginVersion": "12.2.1",
689
+ "targets": [
690
+ {
691
+ "datasource": "PROMETHEUS",
692
+ "editorMode": "code",
693
+ "exemplar": false,
694
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (token, bucket)",
695
+ "format": "table",
696
+ "instant": false,
697
+ "interval": "",
698
+ "legendFormat": "__auto",
699
+ "range": true,
700
+ "refId": "A"
701
+ },
702
+ {
703
+ "datasource": "PROMETHEUS",
704
+ "editorMode": "code",
705
+ "expr": "sum(treasury_assets{param=\"value\"}<500_000_000) by (token, bucket)",
706
+ "hide": true,
707
+ "instant": false,
708
+ "legendFormat": "__auto",
709
+ "range": true,
710
+ "refId": "B"
711
+ }
712
+ ],
713
+ "title": "Current Asset Summary",
714
+ "transformations": [
715
+ {
716
+ "id": "groupBy",
717
+ "options": {
718
+ "fields": {
719
+ "BTC": {
720
+ "aggregations": []
721
+ },
722
+ "Cash & cash equivalents": {
723
+ "aggregations": []
724
+ },
725
+ "ETH": {
726
+ "aggregations": []
727
+ },
728
+ "Other short term assets": {
729
+ "aggregations": []
730
+ },
731
+ "Time": {
732
+ "aggregations": ["last"],
733
+ "operation": "aggregate"
734
+ },
735
+ "Value": {
736
+ "aggregations": ["last"],
737
+ "operation": "aggregate"
738
+ },
739
+ "bucket": {
740
+ "aggregations": [],
741
+ "operation": "groupby"
742
+ },
743
+ "token": {
744
+ "aggregations": [],
745
+ "operation": "groupby"
746
+ }
747
+ }
748
+ }
749
+ },
750
+ {
751
+ "id": "groupBy",
752
+ "options": {
753
+ "fields": {
754
+ "Bucket": {
755
+ "aggregations": [],
756
+ "operation": "groupby"
757
+ },
758
+ "Last Known Value USD": {
759
+ "aggregations": ["sum"],
760
+ "operation": "aggregate"
761
+ },
762
+ "Last Seen": {
763
+ "aggregations": ["min"],
764
+ "operation": "aggregate"
765
+ },
766
+ "Time (last)": {
767
+ "aggregations": ["min"],
768
+ "operation": "aggregate"
769
+ },
770
+ "Value (last)": {
771
+ "aggregations": ["sum"],
772
+ "operation": "aggregate"
773
+ },
774
+ "bucket": {
775
+ "aggregations": [],
776
+ "operation": "groupby"
777
+ }
778
+ }
779
+ }
780
+ },
781
+ {
782
+ "id": "organize",
783
+ "options": {
784
+ "excludeByName": {},
785
+ "includeByName": {},
786
+ "indexByName": {
787
+ "Time (last) (min)": 2,
788
+ "Value (last) (sum)": 1,
789
+ "bucket": 0
790
+ },
791
+ "renameByName": {
792
+ "Time (last) (min)": "Last Seen",
793
+ "Value (last) (sum)": "Last Known Value USD",
794
+ "bucket": "Bucket",
795
+ "token": "Token"
796
+ }
797
+ }
798
+ }
799
+ ],
800
+ "type": "table",
801
+ "description": "Table summarizing the latest known USD value for each asset token and bucket, including all available tokens in any of the DAO's treasury wallets."
802
+ },
803
+ {
804
+ "datasource": "PROMETHEUS",
805
+ "fieldConfig": {
806
+ "defaults": {
807
+ "color": {
808
+ "mode": "thresholds"
809
+ },
810
+ "custom": {
811
+ "align": "auto",
812
+ "cellOptions": {
813
+ "type": "auto"
814
+ },
815
+ "footer": {
816
+ "reducers": []
817
+ },
818
+ "inspect": false
819
+ },
820
+ "mappings": [],
821
+ "thresholds": {
822
+ "mode": "absolute",
823
+ "steps": [
824
+ {
825
+ "color": "green",
826
+ "value": 0
827
+ }
828
+ ]
829
+ },
830
+ "unit": "currencyUSD"
831
+ },
832
+ "overrides": [
833
+ {
834
+ "matcher": {
835
+ "id": "byName",
836
+ "options": "token"
837
+ },
838
+ "properties": [
839
+ {
840
+ "id": "links",
841
+ "value": [
842
+ {
843
+ "title": "View Transactions for ${__value.raw}",
844
+ "url": "/d/b21f1092-66a4-4fb0-90ef-ed77d2becaa4?var-Token=${__value.raw}&from=now-5y&to=now",
845
+ "targetBlank": true
846
+ }
847
+ ]
848
+ }
849
+ ]
850
+ }
851
+ ]
852
+ },
853
+ "gridPos": {
854
+ "h": 13,
855
+ "w": 24,
856
+ "x": 0,
857
+ "y": 10
858
+ },
859
+ "id": 4,
860
+ "options": {
861
+ "cellHeight": "sm",
862
+ "showHeader": true,
863
+ "sortBy": [
864
+ {
865
+ "desc": true,
866
+ "displayName": "Last Known Value USD"
867
+ }
868
+ ]
869
+ },
870
+ "pluginVersion": "12.2.1",
871
+ "targets": [
872
+ {
873
+ "datasource": "PROMETHEUS",
874
+ "editorMode": "code",
875
+ "exemplar": false,
876
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (token, bucket)",
877
+ "format": "table",
878
+ "instant": false,
879
+ "interval": "",
880
+ "legendFormat": "__auto",
881
+ "range": true,
882
+ "refId": "A"
883
+ },
884
+ {
885
+ "datasource": "PROMETHEUS",
886
+ "editorMode": "code",
887
+ "expr": "sum(treasury_assets{param=\"value\"}<500_000_000) by (token, bucket)",
888
+ "hide": true,
889
+ "instant": false,
890
+ "legendFormat": "__auto",
891
+ "range": true,
892
+ "refId": "B"
893
+ }
894
+ ],
895
+ "title": "Current Asset Breakdown",
896
+ "transformations": [
897
+ {
898
+ "id": "groupBy",
899
+ "options": {
900
+ "fields": {
901
+ "BTC": {
902
+ "aggregations": []
903
+ },
904
+ "Cash & cash equivalents": {
905
+ "aggregations": []
906
+ },
907
+ "ETH": {
908
+ "aggregations": []
909
+ },
910
+ "Other short term assets": {
911
+ "aggregations": []
912
+ },
913
+ "Time": {
914
+ "aggregations": ["last"],
915
+ "operation": "aggregate"
916
+ },
917
+ "Value": {
918
+ "aggregations": ["last"],
919
+ "operation": "aggregate"
920
+ },
921
+ "bucket": {
922
+ "aggregations": [],
923
+ "operation": "groupby"
924
+ },
925
+ "token": {
926
+ "aggregations": [],
927
+ "operation": "groupby"
928
+ }
929
+ }
930
+ }
931
+ },
932
+ {
933
+ "disabled": true,
934
+ "id": "filterFieldsByName",
935
+ "options": {
936
+ "include": {
937
+ "names": ["bucket", "token", "Value (last)"]
938
+ }
939
+ }
940
+ },
941
+ {
942
+ "id": "organize",
943
+ "options": {
944
+ "excludeByName": {},
945
+ "includeByName": {},
946
+ "indexByName": {
947
+ "Time (last)": 3,
948
+ "Value (last)": 2,
949
+ "bucket": 0,
950
+ "token": 1
951
+ },
952
+ "renameByName": {
953
+ "Time (last)": "Last Seen",
954
+ "Value (last)": "Last Known Value USD",
955
+ "bucket": "Bucket",
956
+ "token": "Token"
957
+ }
958
+ }
959
+ }
960
+ ],
961
+ "type": "table",
962
+ "description": "Detailed breakdown of the latest known USD value for each asset token and bucket, including all available tokens in any of the DAO's treasury wallets.\n\nData Link: Click any token to view all transactions for that token in the Treasury Transactions dashboard."
963
+ }
964
+ ],
965
+ "preload": false,
966
+ "schemaVersion": 42,
967
+ "tags": ["assets", "current"],
968
+ "templating": {
969
+ "list": []
970
+ },
971
+ "time": {
972
+ "from": "now-3d",
973
+ "to": "now"
974
+ },
975
+ "timepicker": {},
976
+ "timezone": "browser",
977
+ "title": "Current Assets",
978
+ "description": "Provides a real-time summary and detailed breakdown of all assets currently held in the DAO's treasury, including stablecoins, ETH, BTC, and other asset types. Useful for monitoring the DAO's current financial position, asset allocation, and recent changes. Data Links allow quick navigation to transaction details for each token.",
979
+ "uid": "ad47zqk",
980
+ "version": 9
981
+ }