Skip to main content

COBE

COBE

An Order Book Exchange that allows inputs from Ethereum but makes the computation off-chain trustlessly via Cartesi Rollups.
Hackathon ProjectDeFi

About COBE

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.

Why Cartesi? COBE is just a demonstration to show what can be done with Cartesi’s Linux runtime. By using Cartesi, we managed to write a complex, but MVP level, matching engine in Python. In current VMs like EVM, it is not easy and not feasible to build a perfect matching engine. Cartesi offers the flexibility of RISC architecture and Linux Runtime which means we can write even more complex processes. We can even write it with Javascript, Rust or C++.

How it's Made

COBE has 4 main components.

  1. 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.
  2. 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.
  3. 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.
  4. L1 - L1 uses generic Cartesi Rollup contracts, like InputFacet, portal, and DApp etc.

More

Gallery

Last updated: Oct 20, 2023
Anyone is free to submit information about their project. Do your own research and use your best judgment when using or interacting with any of the projects listed in this directory. Being listed in this directory is not an endorsement from the Cartesi Foundation or any other related entity.

Explore similar projects

DCA.Monster
In progress - Alpha

DCA.Monster

DCA.Monster is an Automated Market Maker (AMM) leveraging ERC20 streams for granular, efficient on-chain Dollar Cost Averaging (DCA).

Last updated: Apr 10, 2024
HedgeHog Protocol
Hackathon Project

HedgeHog Protocol

A DeFi protocol that hedges against the inherent impermanent loss of Uniswap liquidity pools using NFTs.

Last updated: Oct 20, 2023
p2pix
Hackathon Project

p2pix

A trustless p2p solution for exchanging FIAT to ERC20 layer 2 tokens

Last updated: Oct 20, 2023