Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribe to surplus auction updates #297

Open
6 tasks
LukSteib opened this issue Jun 14, 2022 · 0 comments
Open
6 tasks

Subscribe to surplus auction updates #297

LukSteib opened this issue Jun 14, 2022 · 0 comments
Labels

Comments

@LukSteib
Copy link
Contributor

Goal

Update surplus auctions

Context

The issue is a subset of the implementation proposal you can find here

Work should be done inside surplus.ts

Tasks

  • Create a function to subscribe to auction updates subscribeToSurplusAuctions(network, callback)
    • execute fetchCurrentSurplusAuctions
      • return list of auctions via callback(auctions)
    • subscribe via websocket to new events
      • as soon as there is new event, execute fetchSurplusAuctionByIndex to refetch related auction
        • return auction via callback([auction])
@LukSteib LukSteib added the flap label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant