Skip to main content

carbon-drift-v2

Stars2
Forks0
UpdatedJune 2, 2026 at 18:27

Carbon decoder reference for Drift v2 (perpetuals) on Solana — program `dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH`, crate `carbon-drift-v2-decoder` (196 instructions, 17 account types, 19 CPI events). Use when decoding, indexing, or analyzing this program with Carbon: looking up instruction args/discriminators/accounts, account struct fields, or CPI event schemas. Run the bundled `scripts/carbon.py` to extract details from the local cargo cache. Triggers on "Drift v2", "drift-v2", "carbon-drift-v2-decoder", "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH", "DriftDecoder", "Drift v2 (perpetuals)", "AddInsuranceFundStake", "AddPerpLpShares", "AdminDisableUpdatePerpBidAskTwap", "BeginSwap", "CancelOrder", "CancelOrderByUserId", "CurveRecordEvent", "DeleteUserRecordEvent", "DepositRecordEvent", "FuelSeasonRecordEvent", "FuelOverflow", "HighLeverageModeConfig", "InsuranceFundStake", "OpenbookV2FulfillmentConfig".

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly