Milestone escrow on QIE
Keep the order.Change the provider.
Fund work as priced milestones. When a provider steps away, unfinished milestones move to a replacement without restarting or paying twice.

Funded escrow
100 QIE
4 milestones · 25 QIE paid out
In escrow
65 QIE
65% of the 100 QIE funded
Providers
2 on order
A → B on rev 3
Settled
1/4
0 submitted · 65 QIE open
Escrow by revision
QIE still held after each order mutation
Where the money is
QIE by holder · Handoff
100
QIE- In escrow65%
- Provider A25%
- Customer credit10%
Milestones
- M1Design systemProvider ASettled25Dec 4 · 18:00
- M2Checkout flowProvider BReassigned35→30Dec 9 · 18:00
- M3Payments integrationProvider BReassigned25→20Dec 12 · 18:00
- M4QA and launchProvider AOpen15Dec 16 · 18:00
Built on
- QIE Mainnet
- QIE Wallet
- Solidity
- Foundry
- OpenZeppelin
- viem
- wagmi
- Next.js
What SECONDLINE enforces
Progress is portable.Payment happens once.
Five rules the escrow contract enforces on QIE. The app only helps you sign them.
Funds exact milestones
The customer deposits exactly the sum of the milestones. Each has its own amount, deadline and private scope commitment.
Settles each milestone once
Approve it, or let the 48-hour review lapse, and the provider is credited. A settled milestone never pays again.
Signed handoffs
The replacement signs a quote over the handoff package. The outgoing provider co-signs unless the work is overdue.
Moves work atomically
One transaction reassigns every selected milestone and credits savings to the customer. Or nothing moves.
Delivered work stays put
Submitted or disputed milestones can't be moved or refunded. Only the named resolver splits a dispute.

Provider A finishes M1 and is credited 40. M2 is still open past its deadline and grace period. B verifies the handoff and quotes 50 for the 60 left. One transaction moves M2 to B and credits the customer 10.
The signature moment
Overdue recovery · same order ID throughout
- Paid to A and to B
- 40 + 50
- Credited back to the customer
- 10
- Left in escrow, nothing paid twice
- 0
Illustrative units from the product spec, not a real order
The product
One order, fromfunding to handoff.
Six surfaces, one source of truth: the contract. Pick a tab.
Orders
Every order where your wallet is the customer, the original provider or a replacement, read from contract events.
- History rebuilt from on-chain events
- Current state read from the contract
- Open any order by its ID

Funded
100 QIE
In escrow
65 QIE
Order #12
100 QIE
funded · illustrative
Proof
Checked,not claimed.
Every statement below is asserted by a test in the repository or by a live RPC call. The source is on each card.
Key-order independent
Terms, evidence and handoff packages are canonicalized with RFC 8785 before hashing, so the same content always commits to the same digest.
Source
packages/
Bound to the chain
A quote signed for QIE Mainnet yields a different EIP-712 digest on QIE Testnet, so it cannot be replayed across chains.
Source
packages/
Bound to the revision
Any change to the order revision changes the digest, so a quote signed before another mutation is stale.
Source
packages/
Tampered quotes fail
Changing a signed quote's items breaks its items hash, and altering its revision recovers a different signer.
Source
packages/
No silent top-ups
Empty, unsorted, duplicate, zero-amount and increased items are refused before anything reaches a wallet.
Source
packages/
Tamper-evident handoffs
A handoff package keeps its commitment through a JSON round trip, and changing one character of scope changes it.
Source
packages/
- 48
- Protocol and app tests passing
- 1990
- QIE Mainnet chain ID, checked over RPC
- 85
- Contract tests passing, with fuzz and invariants
- 0
- Protocol fee in the pilot
Guarantees
Switch providers.Keep delivered work safe.
replacement → Migration{revision, itemsHash, handoffHash}Signed handoffs
A quote binds the order revision, asset, terms, handoff digest and expiry.
- EIP-712, domain SECONDLINE v2
- Outgoing co-signs before the grace cutoff
- Stale or expired quotes revert
Delivered work stays put
The ruleSubmitted or disputed milestones can never move to another provider.
- 48-hour review, then silence pays
- One named, independent resolver
- Resolvers touch disputed funds only
Paid at most once
Every allocation is a pull credit. Terminal milestones never settle again.
- Exact funding, exact conservation
- No owner, admin or upgrade path
- Recipients withdraw their own credits
Not audited · capped pilot depositsA hash match proves bytes, not qualityAn absent resolver can stall a dispute
Start a pilot
Fund one milestone.Keep the order moving.
Bring your own customer and provider. Small capped deposits in native QIE, no protocol fee, no sign-up.
