mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-17 07:26:52 +00:00
close event
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user