Guziec-Lobuziec / ECMarket

0 stars 1 forks source link

Agreement Manager - agreement A1.2 implementation #15

Open Guziec-Lobuziec opened 6 years ago

Guziec-Lobuziec commented 6 years ago

Scenario:

  1. S creates and sets price, advance payment and time to fall back
  2. B joins and sends price
  3. S accepts B (now >= time to fall back)
  4. S concludes and withdraws price
  5. B concludes

3a. B rejects and withdraws (price - advance payment) if now < time to fall back 4a. S concludes and withdraws advance payment

Custom properties should have price, advance, time to fall back S - seller B - buyer

Guziec-Lobuziec commented 6 years ago

A1.2 State machine

sm-a1 2_1