ActionProposal stores encoded actions and frozen voting/execution data. Discriminator: [144, 192, 194, 210, 241, 173, 240, 41]. Size is 162 + action_data length bytes, including discriminator. PDA seeds: ["proposal", vault, proposal_id as u64LE].
Field names below use onchain snake_case; SDK representations generally use camelCase. Amounts are atomic integers unless stated otherwise. Reserved bytes remain part of the serialized layout.
Proposal fields
States and actions
action_data encodes Vec<ProposalAction>, using public proposalActionsCodec. A PositionUpdate must be the sole root action. Settings and policy action encoding is covered in Policies and proposal actions.
At activation, created_at becomes the activation timestamp, voting_ends_at is activation plus voting period, and executable_at is voting end plus timelock. LP mint supply is frozen; rejection threshold is ceil(supply × configured threshold / 1_000_000). Combined Reject and OptOut LP count toward rejection.
Draft consumes an ID but no live-proposal slot. Active and Approved consume a slot; rejection, cancellation, or execution releases it. Execution waits for all pending-withdrawal LP to reach zero.
Vote account
VoteAccount discriminator: [203, 238, 154, 106, 200, 131, 0, 41]. Size: 107 bytes. PDA seeds: ["vote", proposal, voter].
OptOut immediately creates or tops up the matching withdrawal PDA. Approved/Executed OptOut unstaking closes the vote record while leaving the withdrawal in place. Early active, rejected, or cancelled votes return LP and close the opt-out request when supplied. See Voting and opting out for constructors and account ordering.