Files in the top-level directory in any check-in
- .cargo
- .fossil-settings
- cache
- cmd
- competition
- db
- forge-lib
- interfaces
- lib
- libguest
- liborderbookkit
- liborderbookkit-math
- orderbookkit
- research
- risc-loader
- risc-runner
- solidity
- src
- test-orderbookkit
- tests
- tools
- Cargo.lock
- Cargo.toml
- CONCEPT.md
- deploy-all.rc
- deploy-stylus.rc
- ERRORS.md
- foundry.toml
- go.mod
- go.sum
- HACKING
- in-FBB470E31DDE48540265
- LICENSE
- logo.png
- Makefile
- mutants.sh
- out-FBB470E31DDE48540265
- print-error-table.rc
- README.md
- risc-loader-bin.sh
- rust-toolchain.toml
- SECURITY.md
- small logo white.png
- small logo.png
- tests.rc
- tests.sh
- wasm-post.rc
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
[X] RFQ support implemented and tested
[ ] CLOB audited and integrated with RFQ for lane features
[ ] Fees added
[ ] Mutation testing beyond
orderbookkit[ ] Guest program support during execution supported
[ ] Off-chain bundler spooler completed
[ ] Ingestor implemented
[ ] Aggregator implemented
[ ] Neural networks supported via the guest
[ ] Program generator supported
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.