Events
What the program emits. Entries exist only as these events.
Entry
Emitted by deposit, withdraw, spend and earn.
| Field | Type | Notes |
|---|---|---|
| book | pubkey | |
| index | u64 | |
| kind | u8 | |
| category | u8 | |
| amount | u64 | |
| agent | pubkey | |
| counterparty | pubkey | |
| memo | [u8; 32] | |
| ts | i64 | |
| head | [u8; 32] |
kind is 0 Deposit, 1 Withdraw, 2 Spend, 3 Earn. category is 0 Models, 1 Tools, 2 Payments for a spend, and 0 otherwise. head is the book's head after this entry.
Sealed
Emitted by seal.
| Field | Type | Notes |
|---|---|---|
| book | pubkey | |
| index | u32 | |
| entries | u64 | |
| head | [u8; 32] | |
| slot | u64 |