nucypher / nucypher-monitor

NuCypher network intelligence crawler and web dashboard
7 stars 15 forks source link

[WIP] Add staker info json endpoint to status monitor #82

Closed derekpierre closed 3 years ago

derekpierre commented 3 years ago

Based over #81 .

Basically mimics the output of nucypher status stakers. Could maybe add UI element, and have json as a request parameter (?)

Sample output

{
   "min_fee_rate":"50 gwei",
   "missed_commitments":-1,
   "nickname":"...",
   "owned_tokens":"... NU",
   "restake":true,
   "snapshots":true,
   "staked_current_period":"... NU",
   "staked_next_period":"... NU",
   "staker_address":"0x...",
   "unclaimed_fees":"0 ETH",
   "winddown":false,
   "worker_address":"0x..."
}
codecov-io commented 3 years ago

Codecov Report

Merging #82 into master will decrease coverage by 2.12%. The diff coverage is 17.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #82      +/-   ##
==========================================
- Coverage   47.28%   45.16%   -2.13%     
==========================================
  Files          10       10              
  Lines         977     1034      +57     
==========================================
+ Hits          462      467       +5     
- Misses        515      567      +52     
Impacted Files Coverage Δ
monitor/dashboard.py 16.02% <17.46%> (-3.34%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 627dc2d...9120784. Read the comment docs.