From 68f83e8a2c5d2362c67a761f9354470ccdd4bfb8 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Tue, 24 Jun 2025 14:58:46 -0500 Subject: [PATCH] events --- api/src/event.rs | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/api/src/event.rs b/api/src/event.rs index 1ac4221..5ac4c5b 100644 --- a/api/src/event.rs +++ b/api/src/event.rs @@ -108,7 +108,6 @@ pub struct MineEvent { pub enum RewardsType { Nugget = 0, Lode = 1, - Motherlode = 2, } #[repr(C)] @@ -164,15 +163,15 @@ pub struct CommitEvent { /// The event discriminator. pub disc: u64, + /// The amount of hashpower committed. + pub amount: u64, + /// The authority of the commit transaction. pub authority: Pubkey, /// The id of the block. pub block_id: u64, - /// The amount of hashpower committed. - pub amount: u64, - /// The total amount of hashpower committed to the block. pub block_commitment: u64, @@ -189,15 +188,15 @@ pub struct UncommitEvent { /// The event discriminator. pub disc: u64, + /// The amount of hashpower committed. + pub amount: u64, + /// The authority of the commit transaction. pub authority: Pubkey, /// The id of the block. pub block_id: u64, - /// The amount of hashpower committed. - pub amount: u64, - /// The total amount of hashpower committed to the block. pub block_commitment: u64, @@ -214,15 +213,15 @@ pub struct DepositEvent { /// The event discriminator. pub disc: u64, + /// The amount of ORE collateral deposited. + pub amount: u64, + /// The authority of the commit transaction. pub authority: Pubkey, /// The id of the block. pub block_id: u64, - /// The amount of ORE collateral deposited. - pub amount: u64, - /// The total amount of ORE this user has deposited as collateral. pub collateral: u64, @@ -236,15 +235,15 @@ pub struct WithdrawEvent { /// The event discriminator. pub disc: u64, + /// The amount of ORE collateral withdrawn. + pub amount: u64, + /// The authority of the commit transaction. pub authority: Pubkey, /// The id of the block. pub block_id: u64, - /// The amount of ORE collateral withdrawn. - pub amount: u64, - /// The total amount of ORE this user has deposited as collateral. pub collateral: u64,