dao-treasury 0.0.62__cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.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 +526 -0
  2. dao_treasury/.grafana/provisioning/dashboards/breakdowns/Revenue.json +526 -0
  3. dao_treasury/.grafana/provisioning/dashboards/dashboards.yaml +84 -0
  4. dao_treasury/.grafana/provisioning/dashboards/streams/LlamaPay.json +225 -0
  5. dao_treasury/.grafana/provisioning/dashboards/summary/Monthly.json +108 -0
  6. dao_treasury/.grafana/provisioning/dashboards/transactions/Treasury Transactions.json +360 -0
  7. dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow (Including Unsorted).json +876 -0
  8. dao_treasury/.grafana/provisioning/dashboards/treasury/Cashflow.json +645 -0
  9. dao_treasury/.grafana/provisioning/dashboards/treasury/Current Treasury Assets.json +593 -0
  10. dao_treasury/.grafana/provisioning/dashboards/treasury/Historical Treasury Balances.json +2999 -0
  11. dao_treasury/.grafana/provisioning/dashboards/treasury/Operating Cashflow.json +513 -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.cpython-312-i386-linux-gnu.so +0 -0
  16. dao_treasury/_docker.py +193 -0
  17. dao_treasury/_nicknames.cpython-312-i386-linux-gnu.so +0 -0
  18. dao_treasury/_nicknames.py +32 -0
  19. dao_treasury/_wallet.cpython-312-i386-linux-gnu.so +0 -0
  20. dao_treasury/_wallet.py +250 -0
  21. dao_treasury/constants.cpython-312-i386-linux-gnu.so +0 -0
  22. dao_treasury/constants.py +39 -0
  23. dao_treasury/db.py +1450 -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__.cpython-312-i386-linux-gnu.so +0 -0
  28. dao_treasury/sorting/__init__.py +295 -0
  29. dao_treasury/sorting/_matchers.cpython-312-i386-linux-gnu.so +0 -0
  30. dao_treasury/sorting/_matchers.py +387 -0
  31. dao_treasury/sorting/_rules.cpython-312-i386-linux-gnu.so +0 -0
  32. dao_treasury/sorting/_rules.py +235 -0
  33. dao_treasury/sorting/factory.cpython-312-i386-linux-gnu.so +0 -0
  34. dao_treasury/sorting/factory.py +299 -0
  35. dao_treasury/sorting/rule.cpython-312-i386-linux-gnu.so +0 -0
  36. dao_treasury/sorting/rule.py +344 -0
  37. dao_treasury/sorting/rules/__init__.cpython-312-i386-linux-gnu.so +0 -0
  38. dao_treasury/sorting/rules/__init__.py +1 -0
  39. dao_treasury/sorting/rules/ignore/__init__.cpython-312-i386-linux-gnu.so +0 -0
  40. dao_treasury/sorting/rules/ignore/__init__.py +1 -0
  41. dao_treasury/sorting/rules/ignore/llamapay.cpython-312-i386-linux-gnu.so +0 -0
  42. dao_treasury/sorting/rules/ignore/llamapay.py +20 -0
  43. dao_treasury/streams/__init__.cpython-312-i386-linux-gnu.so +0 -0
  44. dao_treasury/streams/__init__.py +0 -0
  45. dao_treasury/streams/llamapay.cpython-312-i386-linux-gnu.so +0 -0
  46. dao_treasury/streams/llamapay.py +388 -0
  47. dao_treasury/treasury.py +191 -0
  48. dao_treasury/types.cpython-312-i386-linux-gnu.so +0 -0
  49. dao_treasury/types.py +133 -0
  50. dao_treasury-0.0.62.dist-info/METADATA +120 -0
  51. dao_treasury-0.0.62.dist-info/RECORD +54 -0
  52. dao_treasury-0.0.62.dist-info/WHEEL +7 -0
  53. dao_treasury-0.0.62.dist-info/top_level.txt +2 -0
  54. dao_treasury__mypyc.cpython-312-i386-linux-gnu.so +0 -0
@@ -0,0 +1,593 @@
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": 18,
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": [
64
+ "last"
65
+ ],
66
+ "fields": "",
67
+ "values": false
68
+ },
69
+ "showPercentChange": false,
70
+ "textMode": "auto",
71
+ "wideLayout": true
72
+ },
73
+ "pluginVersion": "12.2.0",
74
+ "targets": [
75
+ {
76
+ "datasource": "PROMETHEUS",
77
+ "editorMode": "code",
78
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (bucket, token)",
79
+ "format": "table",
80
+ "instant": false,
81
+ "legendFormat": "__auto",
82
+ "range": true,
83
+ "refId": "A"
84
+ }
85
+ ],
86
+ "title": "Total Assets",
87
+ "transformations": [
88
+ {
89
+ "id": "groupBy",
90
+ "options": {
91
+ "fields": {
92
+ "Time": {
93
+ "aggregations": [
94
+ "last"
95
+ ],
96
+ "operation": "aggregate"
97
+ },
98
+ "Value": {
99
+ "aggregations": [
100
+ "last"
101
+ ],
102
+ "operation": "aggregate"
103
+ },
104
+ "bucket": {
105
+ "aggregations": [],
106
+ "operation": "groupby"
107
+ },
108
+ "token": {
109
+ "aggregations": [],
110
+ "operation": "groupby"
111
+ }
112
+ }
113
+ }
114
+ },
115
+ {
116
+ "id": "filterFieldsByName",
117
+ "options": {
118
+ "include": {
119
+ "names": [
120
+ "Value (last)",
121
+ "Time (last)"
122
+ ]
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "id": "reduce",
128
+ "options": {
129
+ "includeTimeField": false,
130
+ "mode": "reduceFields",
131
+ "reducers": [
132
+ "sum"
133
+ ]
134
+ }
135
+ }
136
+ ],
137
+ "type": "stat"
138
+ },
139
+ {
140
+ "datasource": "PROMETHEUS",
141
+ "fieldConfig": {
142
+ "defaults": {
143
+ "color": {
144
+ "mode": "thresholds"
145
+ },
146
+ "custom": {
147
+ "align": "auto",
148
+ "cellOptions": {
149
+ "type": "auto"
150
+ },
151
+ "footer": {
152
+ "reducers": []
153
+ },
154
+ "hideFrom": {
155
+ "viz": false
156
+ },
157
+ "inspect": false
158
+ },
159
+ "mappings": [],
160
+ "thresholds": {
161
+ "mode": "absolute",
162
+ "steps": [
163
+ {
164
+ "color": "green",
165
+ "value": 0
166
+ },
167
+ {
168
+ "color": "red",
169
+ "value": 80
170
+ }
171
+ ]
172
+ }
173
+ },
174
+ "overrides": []
175
+ },
176
+ "gridPos": {
177
+ "h": 3,
178
+ "w": 6,
179
+ "x": 18,
180
+ "y": 0
181
+ },
182
+ "id": 2,
183
+ "options": {
184
+ "cellHeight": "sm",
185
+ "showHeader": true
186
+ },
187
+ "pluginVersion": "12.2.0",
188
+ "targets": [
189
+ {
190
+ "datasource": "PROMETHEUS",
191
+ "editorMode": "code",
192
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000)",
193
+ "format": "table",
194
+ "instant": false,
195
+ "legendFormat": "__auto",
196
+ "range": true,
197
+ "refId": "A"
198
+ }
199
+ ],
200
+ "title": "Last Update",
201
+ "transformations": [
202
+ {
203
+ "id": "reduce",
204
+ "options": {
205
+ "includeTimeField": true,
206
+ "mode": "reduceFields",
207
+ "reducers": [
208
+ "last"
209
+ ]
210
+ }
211
+ },
212
+ {
213
+ "id": "filterFieldsByName",
214
+ "options": {
215
+ "byVariable": false,
216
+ "include": {
217
+ "names": [
218
+ "Time"
219
+ ]
220
+ }
221
+ }
222
+ },
223
+ {
224
+ "id": "renameByRegex",
225
+ "options": {
226
+ "regex": "Time",
227
+ "renamePattern": "The last snapshot was taken at:"
228
+ }
229
+ }
230
+ ],
231
+ "type": "table"
232
+ },
233
+ {
234
+ "datasource": "PROMETHEUS",
235
+ "fieldConfig": {
236
+ "defaults": {
237
+ "color": {
238
+ "mode": "thresholds"
239
+ },
240
+ "custom": {
241
+ "align": "auto",
242
+ "cellOptions": {
243
+ "type": "auto"
244
+ },
245
+ "footer": {
246
+ "reducers": []
247
+ },
248
+ "inspect": false
249
+ },
250
+ "mappings": [],
251
+ "thresholds": {
252
+ "mode": "absolute",
253
+ "steps": [
254
+ {
255
+ "color": "green",
256
+ "value": 0
257
+ },
258
+ {
259
+ "color": "red",
260
+ "value": 80
261
+ }
262
+ ]
263
+ },
264
+ "unit": "currencyUSD"
265
+ },
266
+ "overrides": []
267
+ },
268
+ "gridPos": {
269
+ "h": 6,
270
+ "w": 24,
271
+ "x": 0,
272
+ "y": 3
273
+ },
274
+ "id": 1,
275
+ "options": {
276
+ "cellHeight": "sm",
277
+ "showHeader": true,
278
+ "sortBy": [
279
+ {
280
+ "desc": true,
281
+ "displayName": "Current Balance"
282
+ }
283
+ ]
284
+ },
285
+ "pluginVersion": "12.2.0",
286
+ "targets": [
287
+ {
288
+ "datasource": "PROMETHEUS",
289
+ "editorMode": "code",
290
+ "exemplar": false,
291
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (token, bucket)",
292
+ "format": "table",
293
+ "instant": false,
294
+ "interval": "",
295
+ "legendFormat": "__auto",
296
+ "range": true,
297
+ "refId": "A"
298
+ },
299
+ {
300
+ "datasource": "PROMETHEUS",
301
+ "editorMode": "code",
302
+ "expr": "sum(treasury_assets{param=\"value\"}<500_000_000) by (token, bucket)",
303
+ "hide": true,
304
+ "instant": false,
305
+ "legendFormat": "__auto",
306
+ "range": true,
307
+ "refId": "B"
308
+ }
309
+ ],
310
+ "title": "Current Asset Summary",
311
+ "transformations": [
312
+ {
313
+ "id": "groupBy",
314
+ "options": {
315
+ "fields": {
316
+ "BTC": {
317
+ "aggregations": []
318
+ },
319
+ "Cash & cash equivalents": {
320
+ "aggregations": []
321
+ },
322
+ "ETH": {
323
+ "aggregations": []
324
+ },
325
+ "Other short term assets": {
326
+ "aggregations": []
327
+ },
328
+ "Time": {
329
+ "aggregations": [
330
+ "last"
331
+ ],
332
+ "operation": "aggregate"
333
+ },
334
+ "Value": {
335
+ "aggregations": [
336
+ "last"
337
+ ],
338
+ "operation": "aggregate"
339
+ },
340
+ "bucket": {
341
+ "aggregations": [],
342
+ "operation": "groupby"
343
+ },
344
+ "token": {
345
+ "aggregations": [],
346
+ "operation": "groupby"
347
+ }
348
+ }
349
+ }
350
+ },
351
+ {
352
+ "disabled": true,
353
+ "id": "filterFieldsByName",
354
+ "options": {
355
+ "include": {
356
+ "names": [
357
+ "bucket",
358
+ "token",
359
+ "Value (last)"
360
+ ]
361
+ }
362
+ }
363
+ },
364
+ {
365
+ "id": "groupBy",
366
+ "options": {
367
+ "fields": {
368
+ "Bucket": {
369
+ "aggregations": [],
370
+ "operation": "groupby"
371
+ },
372
+ "Last Known Value USD": {
373
+ "aggregations": [
374
+ "sum"
375
+ ],
376
+ "operation": "aggregate"
377
+ },
378
+ "Last Seen": {
379
+ "aggregations": [
380
+ "min"
381
+ ],
382
+ "operation": "aggregate"
383
+ },
384
+ "Time (last)": {
385
+ "aggregations": [
386
+ "min"
387
+ ],
388
+ "operation": "aggregate"
389
+ },
390
+ "Value (last)": {
391
+ "aggregations": [
392
+ "sum"
393
+ ],
394
+ "operation": "aggregate"
395
+ },
396
+ "bucket": {
397
+ "aggregations": [],
398
+ "operation": "groupby"
399
+ }
400
+ }
401
+ }
402
+ },
403
+ {
404
+ "id": "organize",
405
+ "options": {
406
+ "excludeByName": {},
407
+ "includeByName": {},
408
+ "indexByName": {
409
+ "Time (last) (min)": 2,
410
+ "Value (last) (sum)": 1,
411
+ "bucket": 0
412
+ },
413
+ "renameByName": {
414
+ "Time (last) (min)": "Last Seen",
415
+ "Value (last) (sum)": "Last Known Value USD",
416
+ "bucket": "Bucket",
417
+ "token": "Token"
418
+ }
419
+ }
420
+ }
421
+ ],
422
+ "type": "table"
423
+ },
424
+ {
425
+ "datasource": "PROMETHEUS",
426
+ "fieldConfig": {
427
+ "defaults": {
428
+ "color": {
429
+ "mode": "thresholds"
430
+ },
431
+ "custom": {
432
+ "align": "auto",
433
+ "cellOptions": {
434
+ "type": "auto"
435
+ },
436
+ "footer": {
437
+ "reducers": []
438
+ },
439
+ "inspect": false
440
+ },
441
+ "mappings": [],
442
+ "thresholds": {
443
+ "mode": "absolute",
444
+ "steps": [
445
+ {
446
+ "color": "green",
447
+ "value": 0
448
+ },
449
+ {
450
+ "color": "red",
451
+ "value": 80
452
+ }
453
+ ]
454
+ },
455
+ "unit": "currencyUSD"
456
+ },
457
+ "overrides": []
458
+ },
459
+ "gridPos": {
460
+ "h": 13,
461
+ "w": 24,
462
+ "x": 0,
463
+ "y": 9
464
+ },
465
+ "id": 4,
466
+ "options": {
467
+ "cellHeight": "sm",
468
+ "showHeader": true,
469
+ "sortBy": [
470
+ {
471
+ "desc": true,
472
+ "displayName": "Last Known Value USD"
473
+ }
474
+ ]
475
+ },
476
+ "pluginVersion": "12.2.0",
477
+ "targets": [
478
+ {
479
+ "datasource": "PROMETHEUS",
480
+ "editorMode": "code",
481
+ "exemplar": false,
482
+ "expr": "sum(treasury_assets{param=\"usd value\"}<500_000_000) by (token, bucket)",
483
+ "format": "table",
484
+ "instant": false,
485
+ "interval": "",
486
+ "legendFormat": "__auto",
487
+ "range": true,
488
+ "refId": "A"
489
+ },
490
+ {
491
+ "datasource": "PROMETHEUS",
492
+ "editorMode": "code",
493
+ "expr": "sum(treasury_assets{param=\"value\"}<500_000_000) by (token, bucket)",
494
+ "hide": true,
495
+ "instant": false,
496
+ "legendFormat": "__auto",
497
+ "range": true,
498
+ "refId": "B"
499
+ }
500
+ ],
501
+ "title": "Current Asset Breakdown",
502
+ "transformations": [
503
+ {
504
+ "id": "groupBy",
505
+ "options": {
506
+ "fields": {
507
+ "BTC": {
508
+ "aggregations": []
509
+ },
510
+ "Cash & cash equivalents": {
511
+ "aggregations": []
512
+ },
513
+ "ETH": {
514
+ "aggregations": []
515
+ },
516
+ "Other short term assets": {
517
+ "aggregations": []
518
+ },
519
+ "Time": {
520
+ "aggregations": [
521
+ "last"
522
+ ],
523
+ "operation": "aggregate"
524
+ },
525
+ "Value": {
526
+ "aggregations": [
527
+ "last"
528
+ ],
529
+ "operation": "aggregate"
530
+ },
531
+ "bucket": {
532
+ "aggregations": [],
533
+ "operation": "groupby"
534
+ },
535
+ "token": {
536
+ "aggregations": [],
537
+ "operation": "groupby"
538
+ }
539
+ }
540
+ }
541
+ },
542
+ {
543
+ "disabled": true,
544
+ "id": "filterFieldsByName",
545
+ "options": {
546
+ "include": {
547
+ "names": [
548
+ "bucket",
549
+ "token",
550
+ "Value (last)"
551
+ ]
552
+ }
553
+ }
554
+ },
555
+ {
556
+ "id": "organize",
557
+ "options": {
558
+ "excludeByName": {},
559
+ "includeByName": {},
560
+ "indexByName": {
561
+ "Time (last)": 3,
562
+ "Value (last)": 2,
563
+ "bucket": 0,
564
+ "token": 1
565
+ },
566
+ "renameByName": {
567
+ "Time (last)": "Last Seen",
568
+ "Value (last)": "Last Known Value USD",
569
+ "bucket": "Bucket",
570
+ "token": "Token"
571
+ }
572
+ }
573
+ }
574
+ ],
575
+ "type": "table"
576
+ }
577
+ ],
578
+ "preload": false,
579
+ "schemaVersion": 42,
580
+ "tags": [],
581
+ "templating": {
582
+ "list": []
583
+ },
584
+ "time": {
585
+ "from": "now-2d",
586
+ "to": "now"
587
+ },
588
+ "timepicker": {},
589
+ "timezone": "browser",
590
+ "title": "Current Assets",
591
+ "uid": "ad47zqk",
592
+ "version": 2
593
+ }