Skip to content

Bridge contracts#1

Open
juanbono wants to merge 33 commits intomainfrom
bridge-contracts
Open

Bridge contracts#1
juanbono wants to merge 33 commits intomainfrom
bridge-contracts

Conversation

@juanbono
Copy link
Copy Markdown
Collaborator

@juanbono juanbono commented Apr 16, 2026

This PR adds a set of contracts for bridging stablecoins between any number of chains. The burn-and-mint bridge architecture is explained in docs/bridge.md.

* test: add HEVM formal verification tests for bridge contracts

Adds 27 symbolic execution proofs using HEVM covering access control,
input validation, token accounting, and supply conservation across
Inbox, BridgeMinter, BridgeBurner, and end-to-end bridge round-trips.

23/27 pass with HEVM v0.57 + z3; 4 hit known engine limitations
(vm.sign through DELEGATECALL proxy, symbolic byte array allocation).

Uses a standalone FormalTestBase that deploys via new + ERC1967Proxy
(no vm.etch) since HEVM does not support that cheatcode.

* chore: migrate to halmos
@juanbono juanbono marked this pull request as ready for review April 17, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants