Program accounts
Every account type the Plaza program owns, with its fields and discriminator, generated from the IDL.
Every account starts with Anchor's 8-byte discriminator, then its fields in the order listed. Field elements are 32 bytes big-endian.
Asp
One per authority, at ["asp", authority].
authorityPubkey- Publishes roots.
namestring- Up to 96 bytes.
manifest_uristring- Up to 512 bytes.
rootsVec<[u8; 32]>- The window of recent roots, oldest first.
Discriminator [37, 52, 108, 149, 65, 129, 88, 20].
Config
One per program, at ["config"].
adminPubkey- The admin key.
fee_recipientPubkey- Receives the withdrawal fee.
fee_bpsu16- The withdrawal fee in basis points.
windowu8- Roots each ASP keeps.
counteru64- Deposits so far. The next deposit's nonce.
Discriminator [155, 12, 170, 224, 30, 250, 204, 130].
DepositTree
One per program, at ["tree"]. An incremental Poseidon Merkle tree of depth 32 over every label, with room for 4,294,967,296. The account is zero-copy: after the discriminator its fields sit at fixed offsets, 2,080 bytes in all.
root[u8; 32]- The current root.
frontier[[u8; 32]; 32]- The rightmost filled node at each level, which is all an append needs.
recent[[u8; 32]; 32]- The roots the last 32 deposits replaced. Deposit number
nwrites the root it replaces at indexn mod 32. A ragequit may prove against any of them as well asroot.
Discriminator [41, 146, 195, 174, 202, 87, 95, 200].
Venue
One per deposit address, at ["venue", destination].
authorityPubkey- Changes the accepted list.
destinationPubkey- The deposit address.
acceptedVec<Pubkey>- ASP accounts accepted, up to 32.
Discriminator [8, 155, 85, 226, 234, 173, 42, 242].