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.
Install
Rust 1.85 or later.
doctorfetches solc and the Cairo corelib once.git clone https://github.com/JorikSchellekens/hyperdrive && cargo install --path hyperdrive/crates/hyperdrive && hyperdrive doctorAdd hyperdrive to your Foundry project
Run it in the project root. It adds
hyperdrive.tomland keepsfoundry.toml, sources, tests and remappings as they are.hyperdrive initSee what changes on Starknet
Every EVM dependency, with a code and the Solidity line. Acknowledge divergent findings in
hyperdrive.tomlwith a reason; blocked ones need a source change.hyperdrive check src/MyContract.solRun your tests on Cairo
Your
*.t.solFoundry tests run on the compiled Cairo; scenarios run on Cairo and on the EVM and are compared call by call.hyperdrive testPrice it
Starknet L2 gas per call, class sizes against the limit, and native Cairo baselines.
hyperdrive benchDeploy
Declare and deploy.
--dry-runestimates fees first.hyperdrive deploy src/MyContract.sol --network sepolia --account myaccountGet it verified
Link the deployment to the Ethereum contract so users can check it is the same code.
verifyis in progress (milestone M12).hyperdrive verify <ethereum address> --starknet <starknet address> --network sepolia
Guide
Quickstart, Foundry tests on Cairo, scenarios, and what changes from the EVM.
docs/guide.mdDiagnostics
Every code check can report, its tier and what to do about it.
Costs
How L2 gas is measured and where the cost of compiled contracts goes.
docs/costs.mdGet listed
Want your protocol in the registry? Open an issue with the Ethereum addresses.
Open an issue