Polymarket/proxy-factories ? reverse-engineered prompt

Reverse engineered prompt

Build me a Solidity repo for Polymarket style proxy wallet factories on Polygon.

I want two main contracts, one for a custom proxy wallet factory and one for a Gnosis Safe style proxy factory, with the ability to deploy new wallet proxies from a single factory address. Please make it clean, production ready, and easy to understand, with the core factory logic, the proxy creation flow, and any small helper contracts or interfaces needed to make it work.

Keep the code focused on what a wallet factory needs to do, not a full app. Include basic project setup, contracts in a sensible folder structure, and enough comments so someone can follow the deployment flow. If there are any current best practices or library patterns I should follow, look up the latest docs online if you need to. I’d also like the deployable addresses and usage notes to be easy to verify against Polygon scan style deployments.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab