ranger-strategy/Anchor.toml
caelum0x 203d08be3b Add Drift account ops: Jupiter swap, deposit/withdraw, market queries
New module src/drift/account-ops.ts (ported from drift-plugin/tools/drift.ts):
- swapSpotToken(): Jupiter swap ExactIn/ExactOut through Drift (real API calls)
- depositToDriftAccount(): deposit collateral to any spot market
- withdrawFromDriftAccount(): withdraw from any spot market
- getDriftUserAccountInfo(): full account state (perp/spot positions, PnL, health)
- getAvailableSpotMarkets(): all Drift spot markets
- getAvailablePerpMarkets(): all Drift perp markets
- doesUserHaveDriftAccount(): check account existence

All imported and wired into strategy engine.
Clean Anchor.toml (removed deleted programs).

20/20 suites, 181/181 tests, zero errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:53:00 +03:00

29 lines
967 B
TOML

[toolchain]
anchor_version = "0.31.1"
solana_version = "2.1.21"
[features]
resolution = true
skip-lint = false
[programs.localnet]
driftbear_custom_adaptor = "4JW3mvrVGXpZZ3jxjw16o4REHnWuEGkbvLkPBg1RbFbQ"
ctoken_market_program = "DPk5Ptke7pfV64sn3RtqQjYGCNYwtA6vmENxXakVfwpJ"
custom_adaptor_completed = "G5RgbPTWyYePXebLMsP6sZTQKkKZhwP3Zn1CnSGhPnPi"
[programs.devnet]
driftbear_custom_adaptor = "4JW3mvrVGXpZZ3jxjw16o4REHnWuEGkbvLkPBg1RbFbQ"
ctoken_market_program = "DPk5Ptke7pfV64sn3RtqQjYGCNYwtA6vmENxXakVfwpJ"
custom_adaptor_completed = "G5RgbPTWyYePXebLMsP6sZTQKkKZhwP3Zn1CnSGhPnPi"
# Reference programs (deployed by Drift Labs / Raydium — not ours to deploy)
# drift_vaults = "vAuLTsyrvSfZRuRB3XgvkPwNGgYSs9YRYymVebLKoxR"
# raydium_clmm = "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK"
[provider]
cluster = "devnet"
wallet = "/Users/arhansubasi/ranger/devnet-keypair.json"
[scripts]
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"