Explore the flow

See OrdoCode build and prove a contract, step by step

A demo example — not a live run on your codebase — so you can see the shape of every output before we run the pipeline on your own contract.

Example contract · DAO treasury, 3-of-5 multisig

01 · Describe — tell us what the contract should do

→ Product description

02 · Review — approve the specification

→ Approved specification

This is your contract logic written as a specification — structured, unambiguous language your team and OrdoCode both read the same way. It's the source Build and Prove work from.

treasury.spec.mdbusiness-level specification
Scenario: Execute Withdrawal

Preconditions
  – approvals(id) ≥ 3 of 5 current signers
  – 24h have elapsed since the final approval

Postconditions
  – funds transfer exactly once, for the approved amount
  – executed(id) becomes true

Main Flow
  1. Signer calls execute(id)
  2. Contract checks approvals ≥ threshold
  3. Contract checks the 24h timelock has elapsed
  4. Contract transfers funds, marks executed(id) = true

Key Invariants
  INV-CP-001   approvals never drop below threshold mid-execution
  INV-TL-001   execution is blocked until the timelock fully elapses
  INV-SEC-002  only the approved amount ever leaves the treasury
Nothing is generated until this is approved.

03 · Build — generate the contract and tests

→ Solidity code + test suite ⏱ 0:00

Shown here: one representative function and its tests, not the full contract — this demo focuses on the withdrawal rule the spec above describes.

Treasury.solwriting…

            
test/Treasury.t.solrunning…
generated alongside the contract

04 · Prove — verify the properties that matter

→ Tests + formal proofs ⏱ 0:00
Property — the rule you approved in Review
Formula
Proof status proving…
Scope Key verifiable properties of the contract
Prover Lean 4 · machine-checked mathematical proof

05 · Deploy — get the code and the evidence

→ Ready to hand off
✓ ready Everything below is generated from the specification you approved — nothing extra, nothing missing.
Code

Treasury.sol — production-ready Solidity, yours to keep.

Tests

5 / 5 passing Foundry suite, checked in as test/Treasury.t.sol.

Proofs

Lean 4 proof package for the property you approved — a machine-checked mathematical proof, not a sample.

Docs

Product description and specification — the same terms your team and your auditors both read.

Everything is downloadable as a project you own.

Apply for beta → Bring your own contract — this is what you'd walk away with.