close event

This commit is contained in:
Hardhat Chad
2025-06-16 10:14:20 -07:00
parent 7bd953e1d9
commit 340e8112fd
3 changed files with 36 additions and 2 deletions

View File

@@ -97,6 +97,25 @@ pub struct OpenEvent {
pub ts: i64,
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Pod, Zeroable)]
pub struct CloseEvent {
/// The authority of the close transaction.
pub authority: Pubkey,
/// The id of the block.
pub id: u64,
/// The amount of base (hashpower) liquidity burned.
pub burned_base: u64,
/// The amount of quote (ORE) liquidity burned.
pub burned_quote: u64,
/// The timestamp of the event.
pub ts: i64,
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Pod, Zeroable)]
pub struct CommitEvent {
@@ -180,3 +199,4 @@ event!(CommitEvent);
event!(DepositEvent);
event!(WithdrawEvent);
event!(UncommitEvent);
event!(CloseEvent);