Visual market-making desks for 1inch Aqua: draw a graph, it compiles to SwapVM bytecode. No code.
QilinSwap is a visual builder for 1inch Aqua market-making strategies. Draw a control-flow graph from blocks: pricing, fees, branches on trade direction or your own inventory. It compiles to SwapVM bytecode, including two opcodes we wrote ourselves. One signature ships it and funds never leave your wallet. A dashboard streams live fills, The Graph indexes every move (we built Aqua's first indexer), and an embedded AI copilot answers questions about your strategies and drafts new ones.
A strategy is a control-flow graph, not a form: SwapVM re-reads the program counter after every instruction, so any instruction can branch. Our TypeScript assembler compiles the React Flow canvas into SwapVM bytecode, with golden tests pinning TS/Solidity parity (235 vitest, 19 forge). 1inch: official Aqua and SwapVM contracts, plus two custom opcodes in Solidity (0x22 InventorySkew, 0x23 IfInventoryAbove) appended to the opcode table in an allowed router redeploy, live on Base Sepolia. The Graph: we built Aqua's first indexer twice over the same events, a reusable Rust Substreams module and a Studio subgraph. The embedded copilot reads it, and reaches the rest of the network through the official Subgraph MCP, whose HTTP+SSE wire protocol we implemented by hand inside a Cloudflare worker. Its proposals are validated by the same compiler as the canvas and it never signs. Uniswap: Trading API for the market line and rebalance routing. Nix builds the dev stack, the site and the deploy.

