Skip to main content

universalsettle_api/state/
split_vault.rs

1use steel::*;
2
3use super::SettlementAccount;
4
5/// SplitVault holds the identity of a seller's vault.
6#[repr(C)]
7#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
8pub struct SplitVault {
9    /// The destination wallet for the seller's revenue (signer for the vault)
10    pub seller: Pubkey, // 32 bytes
11
12    /// PDA bump seed
13    pub bump: u8, // 1 byte
14
15    /// Padding for 8-byte alignment and future growth
16    pub _padding: [u8; 31], // Pad to 64 bytes total for consistency
17}
18
19account!(SettlementAccount, SplitVault);