Implement an order watcher deamon
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- backend
Direzione di ricerca
Inizia leggendo l’API OrderWatcher dell’issue e il riferimento collegato a 0x OrderWatcher. Definisci come dovrebbero funzionare invalidWatcher, expirationWatcher, la rimozione degli ordini, gli eventi di modifica dello stato, la gestione delle liste e il min-heap di scadenza; completato significa che gli ordini emettono un evento una volta quando cambia la loro eseguibilità e poi vengono rimossi dal registro ordini.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
CODEX order watcher is similar to 0x order watcher
- The
OrderWatcheris a daemon.You can start and stop it from subscribing to order state changes, add orders you would like to track and remove orders that are no longer relevant.Just can add order and get an event if the status of the order is changed. - Once the
OrderWatcheris started and an order has been added to it, it will emit events once, if there is a change in the state backing an order's fillability. If orderWatcher gets an event than it removes an order from the order book. - There are two kinds of watchers in the order watcher. One is
invalidWatcherwhich check the validity of orders except for expiration time. Another one isexpirationWatcherwhich check an expiration time of order. The difference between them is the length of the checking time interval. TheexpirationWatcher's time interval will be much shorter than theorderWatcher. - The
orderWatcherwill be managed by just list and theexpirationWatcherwill be managed by a min-heap. Therefore theexpirationWatcheronly need to monitor one order, which has a minimum expiration time.
API
// orderWatcher
addOrder(order): void
// expirationWatcher
addOrder(order, expiration): void
- Lingua principale
- TypeScript
- Stelle
- 17
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CodeChain-io/codechain-exchange
-
I cannot run tests Apertahelp wanted test
Difficoltà 2/5 1-3 ore Idoneità per principianti 30/100
CodeChain-io/codechain-exchange#28 · 3 commenti ·
-
design
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
design
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
-
layout- responsive web Apertadesign
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
log Matcher :m:
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Tutte le issue di CodeChain-io/codechain-exchange
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
fil-donadoni/tolaria#4409 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
corsairdev/corsair#1764 ·