mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
22 lines
472 B
Rust
22 lines
472 B
Rust
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);
|