tape-api 0.1.9

Your data, permanently recorded — uncensorable, uneditable, and here for good.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use steel::*;
use super::AccountType;
use crate::state;

#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Epoch {
    pub number: u64,
    pub difficulty: u64,
    pub last_epoch_at: i64,
    pub base_rate: u64,
    pub target_rate: u64,
}

state!(AccountType, Epoch);