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,