Skip to content

Titan Integration#38

Open
josh-orca wants to merge 3 commits into
mainfrom
titan-integration
Open

Titan Integration#38
josh-orca wants to merge 3 commits into
mainfrom
titan-integration

Conversation

@josh-orca

@josh-orca josh-orca commented Dec 31, 2025

Copy link
Copy Markdown
Contributor
  • Added the titan-integration crate (xORCA Titan Interface SDK) and the integration-template helper crate to swap (stake) through xORCA via Titan’s trading-venue interfaces.
  • Added integration tests (test_construction, test_quoting, simulations) on LiteSVM to validate venue construction, quoting correctness, bounds, and swap behavior without on-chain mutations.
  • Simulation harness now resolves the xORCA program binary from target/deploy/xorca_staking_program.so, with an XORCA_PROGRAM_SO override for custom paths; accounts are seeded in LiteSVM with large balances for deterministic quotes.
  • Kept template/SDK deps on Solana 2.2.x with litesvm 0.6.x; the crate is excluded from the root workspace to avoid version conflicts with the main SDK.

Testing

  • To execute:
    • Build the on-chain program: cargo build-sbf --manifest-path solana-program/Cargo.toml (produces target/deploy/xorca_staking_program.so), or set XORCA_PROGRAM_SO to the binary path.
    • Set env: SOLANA_RPC_URL=<rpc> for integration tests.
    • From titan-integration/: run cargo test --test test_construction, cargo test --test test_quoting, or the simulation tests after the binary is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant