Note
Project Ownership Transition: This project was originally developed and maintained by Zellular under the MIT license until the end of 2024. As of January 1, 2025, ownership and further development of this project have been transferred to Zex.
Caution
This code serves as a proof of concept (PoC) for the core module of the Zellular exchange. The Zellular exchange is an application designed as an example of interacting with the sequencer. Do NOT use this code in production environments. It is intended for testnet use only.
- install
MCL
required for fastecdsa (follow instructions) - install libgmp4-dev
$ sudo apt install libgmp-dev
install using poetry install
from the project root directory
cd
into the roo of the project and install using pip install .
In order to test the backend follow these steps:
- run server:
TEST_MODE=1 python app/main.py
- use a websocket client like https://hoppscotch.io/realtime/websocket
- connect to
ws://127.0.0.1:8000/api/v1/ws
- send the following as json body to subscribe to events:
{ "method": "SUBSCRIBE", "params": [ "xmr:0-hol:0@kline_1m", "xmr:0-hol:0@depth" ], "id": 1 }
- connect to
- the data for each of the subscribed channels listed inside
params
will be sent as a json string according to binance websocket API - to stop receiving data from a channel modify the method to
UNSUBSCRIBE
- Sequencer: 15781
- Zex: 15782
- FROST Node: 15783
- FROST Signature Aggregator: 15784
- Zex State Source: 15785