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

Deals watcher #88

Open
3 tasks
kostysh opened this issue Jul 5, 2022 · 0 comments
Open
3 tasks

Deals watcher #88

kostysh opened this issue Jul 5, 2022 · 0 comments
Assignees
Labels
A-tests Area: tests C-api Components: REST API C-blockchain Components: blockchain C-database Components: database D-average Difficulty: average P-high Priority: high T-feature Type: feature

Comments

@kostysh
Copy link
Contributor

kostysh commented Jul 5, 2022

When the Deal event is emitted in the Stays contract lpms-server must catch this event and check the availability of the associated space.

This issue is blocked by windingtree/stays-contracts#10

  • If the availability of the space is less than booked in the deal this deal must be declined immediately. Timeout between the Deal event and decline transaction must be no longer than the timeout configured in the Stays smart contract (confirmation timeout of the state machine). This issue is blocked by State machine stays-contracts#10
  • If the availability of the space is enough the watcher must decrease the availability value in the database by the value of the deal
  • Implement tests for the new feature
@kostysh kostysh added A-tests Area: tests D-average Difficulty: average P-high Priority: high T-feature Type: feature C-database Components: database C-blockchain Components: blockchain C-api Components: REST API labels Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tests Area: tests C-api Components: REST API C-blockchain Components: blockchain C-database Components: database D-average Difficulty: average P-high Priority: high T-feature Type: feature
Projects
None yet
Development

No branches or pull requests

2 participants