Languages, Libraries & Stacks
COBE - Cartesi Order Book Exchange App Rollup is a verifiable off-chain CLOB exchange built with Cartesi Rollups. COBE's core processing and matching engine is built with Python but it works on Ethereum 🤯 Thanks to the unique architecture of Cartesi, our exchange can get actions of users from the underlying layer, however can process them off-chain with 100% verifiability. COBE reads inputs from the L1 smart contract, processes transactions, and reports the execution traces. These execution proofs can be verified by anyone.
How it's Made
COBE has 4 main components.
- Cartesi Rollup - this is the part where transactions are processed, which means the order book and the engine lives inside this rollup. This rollup is coded with Python and uses two main classes to manage the Order Book and Portfolio.
- Indexer API - this indexer API continuously polls the Rollup GraphQL to get the reports (events). By using events, it creates an SQL database in order to serve the UI faster and better. Also, the indexer has a built-in Rest API inside of it which serves the orderbook and balances the UI.
- UI - UI shows the ask and bid book and user balances. UI allows people to deposit ERC20s into their portfolio, and add ask or bid orders.
- L1 - L1 uses generic Cartesi Rollup contracts, like InputFacet, portal, and DApp etc.
Explore similar projects
A novel AMM leveraging ERC20 streams for granular, efficient on-chain DCA.