1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Raw account header for the Solana loader input buffer.
//!
//! `RuntimeAccount` is the substrate-level truth Hopper Native uses when it
//! reads the loader's account array. Duplicate-account tracking lives in
//! [`crate::raw_input`]; this type models only the canonical backing account
//! record that duplicates point at.
use crateAddress;
/// Raw C-layout struct matching the Solana BPF account input format.
///
/// Each non-duplicate account in the entrypoint input buffer begins with this
/// header, immediately followed by `data_len` bytes of account data.
///
/// The first byte occupies the loader's duplicate marker slot. Hopper Native
/// reuses that byte as `borrow_state`, which is valid because canonical
/// accounts enter the program with the `0xFF` marker and Hopper uses the same
/// value to mean `NOT_BORROWED`.
const _: = assert!;