This commit is contained in:
Hardhat Chad
2025-06-06 10:02:28 -07:00
parent 42fc923cb1
commit 87cf3603c3
51 changed files with 704 additions and 36 deletions

View File

@@ -0,0 +1,21 @@
use steel::*;
use super::OreDelegateAccount;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Delegate {
/// The authority of the delegate.
pub authority: Pubkey,
/// The number of hash tokens deposited for mining.
pub balance: u64,
/// The block these hash tokens are associated with.
pub block_id: u64,
/// The fee to payout per crank (lamports).
pub fee: u64,
}
account!(OreDelegateAccount, Delegate);