tape-api 0.1.9

Your data, permanently recorded — uncensorable, uneditable, and here for good.
Documentation
use steel::*;
use super::AccountType;
use crate::consts::*;
use crate::state;

#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Miner {
    pub authority: Pubkey,
    pub name: [u8; MAX_NAME_LEN],

    pub unclaimed_rewards: u64,

    pub current_challenge: [u8; 32],
    pub recall_tape: u64,
    pub multiplier: u64,

    pub last_proof_hash: [u8; 32],
    pub last_proof_at: i64,
    pub total_proofs: u64,
    pub total_rewards: u64,
}

state!(AccountType, Miner);