protobook_api/state/
receipt.rs

1use steel::*;
2
3use super::ProtobookAccount;
4
5/// A receipt tracks a deposit to fill an order.
6#[repr(C)]
7#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
8pub struct Receipt {
9    /// The holder of the receipt (order taker).
10    pub authority: Pubkey,
11
12    /// The amount of token B deposited by the taker.
13    pub deposit: u64,
14
15    /// The order this receipt is redeemable for.
16    pub order: Pubkey,
17}
18
19account!(ProtobookAccount, Receipt);