-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
A-testsArea: testsArea: testsC-apiComponents: REST APIComponents: REST APIC-blockchainComponents: blockchainComponents: blockchainC-databaseComponents: databaseComponents: databaseD-averageDifficulty: averageDifficulty: averageP-highPriority: highPriority: highT-featureType: featureType: feature
Description
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
spaceis less than booked in thedealthisdealmust bedeclinedimmediately. Timeout between theDealevent anddeclinetransaction must be no longer than the timeout configured in theStayssmart contract (confirmation timeoutof the state machine). This issue is blocked by State machine stays-contracts#10 - If the availability of the
spaceis enough the watcher must decrease the availability value in the database by the value of thedeal - Implement tests for the new feature
Metadata
Metadata
Assignees
Labels
A-testsArea: testsArea: testsC-apiComponents: REST APIComponents: REST APIC-blockchainComponents: blockchainComponents: blockchainC-databaseComponents: databaseComponents: databaseD-averageDifficulty: averageDifficulty: averageP-highPriority: highPriority: highT-featureType: featureType: feature