Expand description
Exchange call message types - nested enum with role-based categorization.
§Adding New Operations
- Determine the role/category: Who is authorized to call this operation?
- User? Vault leader? Specific admin? Anyone?
- Add the variant to the appropriate *Action enum
- Choose a NEVER used explicit discriminant:
NewOperation { ... } = N, - Add handler function and update dispatch
- NEVER change existing discriminants, reorder variants/fields, change types
Structs§
- Admin
Action Discriminants Iter - An iterator over the variants of AdminActionDiscriminants
- Amend
Order Args - Backstop
Liquidate Perp Position Args - Call
Message Discriminants Iter - An iterator over the variants of CallMessageDiscriminants
- Cancel
Order Args - Create
Vault Args - Init
Asset Info Args - Init
Asset Info Args V1 - Init
Borrow Lend Pool Args - Init
Perp Market Args - Init
Spot Market Args - Keeper
Action Discriminants Iter - An iterator over the variants of KeeperActionDiscriminants
- Leverage
Table Args - Mark
Price Update Args - NewOrder
Args - NewTrigger
Order Args - NewTwap
Order Args - Oracle
Price Update Args - Oracle
Price Update With Pyth Proof Args - Pending
Tpsl Pair - Public
Action Discriminants Iter - An iterator over the variants of PublicActionDiscriminants
- Surrogate
Leverage Table Args - Tpsl
- Tpsl
Pair - Update
Asset Info Args - Update
Asset Info Args V1 - Update
Borrow Lend Pool Args - Update
Global Config Args - Update
Global Config Args V1 - Update
Global Vault Config Args - Update
Perp Liquidation Config Args - Update
Perp Market Args - Update
Spot Market Args - Update
Vault Config Args - User
Action Discriminants Iter - An iterator over the variants of UserActionDiscriminants
- Vault
Action Discriminants Iter - An iterator over the variants of VaultActionDiscriminants
Enums§
- Admin
Action - Protocol admin operations.
- Admin
Action Discriminants - Auto-generated discriminant enum variants
- Call
Message - Top-level call message enum organized by authorization role.
- Call
Message Discriminants - Auto-generated discriminant enum variants
- Keeper
Action - Keeper operations requiring specific admin privileges.
- Keeper
Action Discriminants - Auto-generated discriminant enum variants
- Public
Action - Permissionless operations anyone can call.
- Public
Action Discriminants - Auto-generated discriminant enum variants
- User
Action - User operations requiring account ownership or delegation.
- User
Action Discriminants - Auto-generated discriminant enum variants
- Vault
Action - Vault management operations requiring vault leadership.
- Vault
Action Discriminants - Auto-generated discriminant enum variants