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