Expand description
Shared account types for Pyra services.
Provides type definitions for Drift protocol accounts, Pyra vault accounts, and Redis cache wrappers. These types are the superset of fields needed by api-v2, settlement-service, and notification-service for Redis deserialization.
Structs§
- Cache
- Generic cache wrapper for Redis-stored account data.
- Drift
User - Drift user account containing spot positions.
- Historical
Oracle Data - Subset of the Drift HistoricalOracleData struct.
- Insurance
Fund - Subset of the Drift InsuranceFund struct.
- Spend
Limits Order Account - Pending spend-limits order account stored in Redis.
- Spot
Market - Subset of the Drift SpotMarket account fields needed by consumer services.
- Spot
Position - A single spot position within a Drift user account.
- Time
Lock - Time lock used by withdraw and spend-limit order accounts.
- Vault
- Pyra vault account stored in Redis by the indexer.
- Withdraw
Order Account - Pending withdraw order account stored in Redis.
Enums§
- Spot
Balance Type - Whether a spot balance is a deposit or borrow.