Skip to main content

Operations Overview

This section is for the person actually running the system.

Main operator goals

  • load the correct environment
  • deploy the program safely
  • validate protocol bundle construction
  • bootstrap the vault
  • manage strategy state
  • process deposits and withdrawals
  • inspect on-chain state

Main operator CLIs

CLIPurpose
anchor build / anchor deployBuild and deploy the Anchor program
doctor.tsDiagnose local and on-chain runtime state
drift-smoke.tsBuild the Drift bundle against RPC
kamino-smoke.tsBuild the Kamino bundle against RPC
drift-live-send.tsSend a direct Drift transaction without the vault
vault-bootstrap.tsInitialize the vault and register strategies
vault-admin.tsPause/resume the vault or strategies
vault-user.tsDeposit, request withdrawal, finalize withdrawal
vault-status.tsInspect vault, strategies, allocations, and withdrawals
  1. load .env
  2. follow the devnet deploy runbook
  3. run doctor.ts
  4. run protocol smoke tests
  5. bootstrap the vault
  6. inspect state with vault-status.ts
  7. run live user flows
  8. run the Ranger rebalance demo

Important mindset

The code assumes a clean separation between:
  • protocol validation
  • vault lifecycle
  • full rebalance orchestration
Do not collapse all three into the first live run.