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