EVM Linux Coprocessor as an orderbook for UniswapV4 Hooks
Cartesi Coprocessor orderbook powered by EigenLayer cryptoeconomic security
-
Install Docker Desktop for your operating system.
To install Docker RISC-V support without using Docker Desktop, run the following command:
docker run --privileged --rm tonistiigi/binfmt --install all
-
Cartesi CLI is an easy-to-use tool to build and deploy your dApps. To install it, run:
npm i -g @cartesi/cli
- Start the devnet coprocessor infrastructure:
make infra
- Build and Publish the application:
cd coprocessor
cartesi-coprocessor publish --network devnet
- Deploy
SwapXHook.sol
andSwapXTaskManager.sol
contracts:
Warning
Before deploy the contract, create a .env
file like this
RPC_URL=http://localhost:8545
PRIVATE_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
MACHINE_HASH=""
TASK_ISSUER_ADDRESS=""
- You can see the machine hash running
cartesi hash
in the folder/coprocessor
; - You can see the task issuer address for the devnet enviroment running
cartesi-coprocessor address-book
;
make v4
make hook
make buy
make sell
Note
WIP
WIP