Skip to content

zellular-xyz/zex-core

Repository files navigation

Zex

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.

Dependencies

  1. install MCL required for fastecdsa (follow instructions)
  2. install libgmp4-dev
$ sudo apt install libgmp-dev

install

Poetry

install using poetry install from the project root directory

pip

cd into the roo of the project and install using pip install .

In order to test the backend follow these steps:

  1. run server: TEST_MODE=1 python app/main.py
  2. use a websocket client like https://hoppscotch.io/realtime/websocket
    1. connect to ws://127.0.0.1:8000/api/v1/ws
    2. 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
    }
  3. the data for each of the subscribed channels listed inside params will be sent as a json string according to binance websocket API
  4. to stop receiving data from a channel modify the method to UNSUBSCRIBE

Ports

  1. Sequencer: 15781
  2. Zex: 15782
  3. FROST Node: 15783
  4. FROST Signature Aggregator: 15784
  5. Zex State Source: 15785

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •