mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-29 15:11:03 +00:00
delegate
This commit is contained in:
21
ore-delegate/api/src/state/delegate.rs
Normal file
21
ore-delegate/api/src/state/delegate.rs
Normal 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);
|
||||
Reference in New Issue
Block a user