Sample data. Built from the compile survey; nothing on this site is deployed or attested yet.
hyperdriveregistry

Bring your protocol to Starknet

Keep your Solidity and your Foundry tests. hyperdrive compiles the contracts you already have and tells you, line by line, what behaves differently on Starknet.

  1. Install

    Rust 1.85 or later. doctor fetches solc and the Cairo corelib once.

    git clone https://github.com/JorikSchellekens/hyperdrive && cargo install --path hyperdrive/crates/hyperdrive && hyperdrive doctor
  2. Add hyperdrive to your Foundry project

    Run it in the project root. It adds hyperdrive.toml and keeps foundry.toml, sources, tests and remappings as they are.

    hyperdrive init
  3. See what changes on Starknet

    Every EVM dependency, with a code and the Solidity line. Acknowledge divergent findings in hyperdrive.toml with a reason; blocked ones need a source change.

    hyperdrive check src/MyContract.sol
  4. Run your tests on Cairo

    Your *.t.sol Foundry tests run on the compiled Cairo; scenarios run on Cairo and on the EVM and are compared call by call.

    hyperdrive test
  5. Price it

    Starknet L2 gas per call, class sizes against the limit, and native Cairo baselines.

    hyperdrive bench
  6. Deploy

    Declare and deploy. --dry-run estimates fees first.

    hyperdrive deploy src/MyContract.sol --network sepolia --account myaccount
  7. Get it verified

    Link the deployment to the Ethereum contract so users can check it is the same code. verify is in progress (milestone M12).

    hyperdrive verify <ethereum address> --starknet <starknet address> --network sepolia