0xMiden / 0xMiden/web-sdk

Add a helper/event dispatcher to be informed about on chain events

Offen
#94 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @WiktorStarczewski Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
1
Forks
21
Ø Merge
12 Std. 14 Min.
Gemergte PRs (30 T.)
41

Beschreibung

### What should be done?

Ideally through WebSockets, but the impl can be hidden for now.

### How should it be done?

Events the consumer can be informed about: new note arrived, transaction confirmed etc.
Note: There can be an overlap with the API simplifcation story, which adds the ability to await transaction send, which implicitly waits for confirmation.

### When is this task done?

Goal: Remove the need for await new Promise((resolve) => setTimeout(resolve, 10000))

### Additional context

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Look for existing event handling or WebSocket code in the SDK. The goal is to create a helper that dispatches events like 'new note arrived' and 'transaction confirmed'. Start by understanding the current transaction sending and confirmation flow. Check if there are existing patterns for async operations or listeners. Implement a dispatcher that eliminates the need for manual timeouts, then test by subscribing to events and verifying they fire correctly.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
api, backend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.