Application: Stylus Saturdays Odyssey
Team: Bayge/Superposition
Milestone: 03, 6 blogposts published, 1 dApp released
Funding Amount Unlocked: 83,168
Date Submitted: 27/02/206
Publish 6 blogposts on the Stylus Saturdays blog, audit and open source one dApp, Orderbookkit.xyz.
For the third deliverable, I open sourced and have an audit in progress with Octane for a Stylus smart contract based on an entirely new plugin and trading architecture, Orderbookkit.
Orderbookkit is a Request For Quote (RFQ) and Central Limit Orderbook (CLOB) hybrid that inverts the classic hook architecture by leveraging RISC-V powered code that runs with restrictions like system call jails.
Orderbookkit makes it possible to build agentic market makers with bobcat-sdk and using a new architecture of abstract plugins on-chain. Trades are provided to the RFQ engine before the CLOB with off-chain bundling, making price discovery free, eliminating the main pain point of fully on-chain orderbooks. The trades in the RFQ “sliplane” are optionally interacted with with restrictions like a syscall jail architecture, an entirely new system of being able to compose multiple programs together with full access to the orderbook with delegatecalls without any friction.
The plugin architecture makes it possible to build perps, lending, private liquidity and more, all within the same liquidity source as the rest of the book. It makes it possible to drag and drop new features to the underlying system without changing any underlying code. It also supports mixed execution environments, as plugins own their own state and are able actors in the same system. In this sense, Orderbookkit functions more like a very novel execution engine than a classic orderbook. The plugins will eventually be created automatically using a type of Proof of Work algorithm in the browser to extract liquidity from other on-chain sources.
The code can be found here:
https://code.markovgeist.org/orderbookkit.xyz
I also wrote and released several in depth technical posts:
https://stylus-saturdays.com/p/time-travelling-debugging-with-codetracer We introduced CodeTracer in this post, and identified problems with their platform. We tried to address this with their team but were unsuccessful using it in the end (despite making a new application based on a fun concept). We worked closely with the very proactive WakeUp Labs, who were very supportive, and built a proof of concept their AssemblyScript for Stylus implementation! We featured Gonza from WakeUp Labs.
https://stylus-saturdays.com/p/extreme-codesize-optimisations-reentrancy
In this post, we discussed a strategy to keep codesize down using a type of reentrancy programming in the Stylus context.
https://stylus-saturdays.com/p/templates-with-scaffold-stylus-openzeppelin
We introduced Scaffold Stylus, showing off how to use their platform. We built a new proxy example using OpenZeppelin’s audited contracts to build a toll gate for assets. We interviewed Philip Stanislaus from Oak Security.