DField SolutionsMérnöki stúdió · Budapest
Loading · Töltődik
Skip to content
Category: Solidity state machines

Pactum

Paid when the work is done.

What it is

Pactum is an escrow smart contract modelled as an explicit, guarded state machine that moves a job from Created through Funded to Completed, with dispute and deadline-reclaim paths. Its strength is the disciplined design: access control on every transition and the checks-effects-interactions pattern throughout, with 18 Foundry tests including fuzzing that exercise the full lifecycle. It is a from-scratch Solidity build with a demo-mode tracker frontend that you can download and run locally.

A guarded state machine (Created→Funded→Completed + Disputed + deadline reclaim) with access control and CEI - 18 Foundry tests incl. fuzz cover the full lifecycle. Demo-mode tracker frontend.

What's inside

The full source, the tests, and CI. Open it, read it, change it. A zero-dependency core, free, in the MIT spirit.

Run it after unzip

pnpm install && pnpm dev