Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Conduit - Open Source 0x Relayer API implemented in NodeJS

NotificationsYou must be signed in to change notification settings

johnrjj/conduit

Repository files navigation

Conduit Conduit - 0x Relayer API

CircleCIcode style: prettier

Overview

[Work in progress, PR/Contributions welcome! Testing on Kovan test network]

ZeroEx Open Source Relayer using theOpen Orderbook strategy.

Follows ZeroExStandard Relayer API V0 Draft specification.

Getting started

Local dev setup

To start the local dev server:

yarn installyarn dev

The server is hosted athttp://localhost:3000

To make sure it is working, make a GET request tohttp://localhost:3000/api/v0/token_pairs

Architecture

                              ┌──────────────┐                                                     │              │                                                     │    Client    │                                                     │              │                                                     └──────────────┘                                                           ▲  ▲                                                         ┌───────┘  └───────┐                                                 │                  ▼                                          ┌─────────────┐    ┌─────────────┐                                   │             │    │             │                                   │  WebSocket  │    │  HTTP API   │                                   │             │    │             │                                   └─────────────┘    └─────────────┘                                          ▲                  ▲                                                 │ emits            │                                                 └─events┐   ┌──────┘                                                         │   │                                                                │   ▼                                ┌──────────────────┐      ┌──────────────┐       ┌──────────────┐    │  Relevant event  │      │              │       │◦◦◦◦◦◦◦◦◦◦◦◦◦◦│    │     streams      │─────▶│  App Engine  │◀─────▶│◦◦◦◦0x.js◦◦◦◦◦│    │ (includes 0x.js) │      │              │       │◦◦◦◦◦◦◦◦◦◦◦◦◦◦│    └──────────────────┘      └──────────────┘       └──────────────┘                                      ▲                                                                    │                                                                    ▼                                                            ┌──────────────┐                                                     │              │                                                     │  Orderbook   │                                                     │              │                                                     └──────────────┘                                                             ▲                                                                    │                                                                    ▼                                                            ┌──────────────┐                                                     │              │                                                     │  Data store  │                                                     │              │                                                     └──────────────┘

Roadmap

I'll be adding support forMatching as soon asthis proposal is implemented. I personally think the matching strategy will lead to a better UX (atomic, no race conditions, faster relay feedback), but currently requires large upfront capital. Matching engine will use sorted sets on top of red-black trees and will be configured as a separate strategy.


[8]ページ先頭

©2009-2025 Movatter.jp