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