Quickstart
Kailua enables rollup operators to add a new fault proof system to their rollup via the Optimism DisputeGameFactory
contract.
Kailua's contracts rely on RISC-Zero zkVM proofs to finalize/dismiss output proposals, and are compatible with
Optimism's Bedrock contracts v1.4.0
and above.
Prerequisites
Local Devnet
You can deploy a local optimism devnet equipped with Kailua through the following commands:
just devnet-install
- Fetches
v1.9.1
of theoptimism
monorepo.
- Fetches
just devnet-build
- Builds the local cargo and foundry projects.
just devnet-up
- Starts a local OP Stack devnet using docker.
- Dumps the output into
devnetlog.txt
for inspection.
just devnet-upgrade
- Upgrades the devnet to use the
KailuaGame
contract. - Assumes the default values of the local optimism devnet, but can take parameters.
- Upgrades the devnet to use the
just devnet-propose
- Launches the Kailua proposer.
- This runs the sequences, which periodically creates new
KailuaGame
instances.
just devnet-validate
- Launches the Kailua validator.
- This monitors
KailuaGame
instances for disputes and creates proofs to resolve them. - Note: Use
RISC0_DEV_MODE=1
to use fake proofs.
just devnet-fault
- Deploys a single
KailuaGame
instance with a faulty sequencing proposal. - Tests the validator's fault proving functionality.
- Tests the proposer's canonical chain tracking functionality.
- Deploys a single
- After you're done:
just devnet-down
to stop the running docker containers.just devnet-clean
to cleanup the docker volumes.