scaffolding

This commit is contained in:
Hardhat Chad
2025-06-05 16:14:08 -07:00
parent fa1fb5e30c
commit 4138fc2b66
17 changed files with 393 additions and 64 deletions

View File

@@ -6,7 +6,10 @@ use super::OreAccount;
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Market {
/// The id of the block this market is associated with.
pub block_id: u64,
pub id: u64,
/// Mint of the hash token.
pub mint: Pubkey,
}
// TODO Bonding curve stuff

View File

@@ -11,8 +11,8 @@ pub struct Miner {
/// The ID of the last block this miner mined in.
pub block_id: u64,
/// The amount of ORE this miner can deploy into hashpower markets.
pub capacity: u64,
/// The amount of ORE this miner has deployed into hashpower markets.
pub deployed: u64,
/// The hash of the last block this miner mined in.
pub hash: [u8; 32],

View File

@@ -6,6 +6,9 @@ use super::OreAccount;
/// the program's global token account.
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Treasury {}
pub struct Treasury {
/// The total amount of ORE that has been staked.
pub total_stake: u64,
}
account!(OreAccount, Treasury);