All Top-level Files
Not logged in

Files in the top-level directory in any check-in


Orderbookkit

Orderbookkit is a permissionless Stylus-based RFQ and CLOB hybrid. The current implementation is deployed at 0xa601509dbdfddf423259ff24779816610162dc92 on Superposition Mainnet. The proxy is located at 0x4cD881dC30740F050092Db9c97F90652Fa12D7Ca.

Roadmap

orderbookkit

orderbookkit is a contract that implements the on-chain orderbook and RFQ sliplane. It can use risc-runner to run smat contracts from its application space using risc-runner's feature system and delegatecall to simultaneously provide the application with the book without extensive copying, but without violating constraints (for example, writing to storage without restrictions). This functions similarly to a seccomp/pledge jail type of situation of opting into the features the code call supports.

risc-loader

risc-loader is a contract that decodes transaction input data, verifies the supplied data, and creates a new implementation contract of the code given with a 0xaf magic byte to prevent execution under normal circumstances. Contracts are unpacked from lzss compression at this stage.

risc-runner

risc-runner is a contract that runs the RISC-V 32IM contracts. Features are enabled by passing them as an argument to the runner in the form of a u16 word. These can gate storage access, orderbook lookup, and more.

libguest

libguest is a library with a collection of helpers and calls for executing code inside Orderbookkit using the risc-v engine.

competition

competition is a proof of work algorithm that generates market making algorithms that "win" a specific trading "scenario" by permuting a reference existing program (the "seed") using "signals" given to it and having a certain amount of orders filled.