File size: 507 Bytes
6391563
 
 
14285d3
 
 
 
 
6391563
 
 
 
 
14285d3
6391563
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pydantic import BaseModel

class ProductivityData(BaseModel):
    total_completed_jobs: dict[str, dict[int, str]]
    
    
    
class Last24hProductivityData(BaseModel):
    unique_folded: int
    total_completed_jobs: int
    
class Productivity(BaseModel):
    all_time: ProductivityData
    last_24h: Last24hProductivityData
    
class ThroughputData(BaseModel):
    validator_sent: float
    miner_sent: float

class Throughput(BaseModel):
    all_time: ThroughputData
    last_24h: ThroughputData