Skip to content

Core Model

Swaputer binds a liquidity pool, an execution environment, and a state boundary into a World. This page defines the components precisely. For the high-level thesis, begin with What is Swaputer?.

World

The worldId is derived from the bound pool's Pool ID. Every program, account, storage namespace, execution height, and Event is scoped to that worldId.

ComponentResponsibility
Uniswap v4 poolSwaps between ETH and the World token, with native price discovery
Swaputer HookRecognizes executable buys and coordinates settlement
KernelVerifies Actions, runs the SVM, and commits state and Events
World tokenA real ERC-20 in the pool that also pays for execution

Two asset layers

World tokenProgram-defined asset
Where it livesEVM and the Uniswap v4 poolSVM program state
How it is acquiredThe outer swapProgram-defined minting, transfer, or settlement
RulesERC-20 and pool semanticsImmutable program code
ExamplesA World's native tokenSRC20, app points, program state

These assets do not share balance semantics. An SVM program cannot modify the real World token's transfer rules or control its sell path.

Programs define applications

The Kernel provides execution, storage, calls, metering, and Events. It does not hardcode a particular asset or application model. SRC20 and future applications are implemented as programs, optionally with narrowly bound EVM components.

A program's identity is established by its deployment package, code hash, and ABI. Matching an event name or function selector does not make two programs equivalent.

See What Can Be Built for the application design space.

Version boundaries

At creation, a World commits to its Hook, Kernel, World token, byteGasPrice, and protocol version. A change to the VM, ISA, or security boundary requires a new code identity and a new World. Existing program identities, state, and history remain verifiable within the original World.

See Security & Trust Model for the immutable boundary, client verification requirements, and risks outside the protocol.

Programmable onchain worlds built on Uniswap v4 Hooks.