Guziec-Lobuziec / ECMarket

0 stars 1 forks source link

Agreement Manager - agreement A1.1 implementation #13

Open Guziec-Lobuziec opened 6 years ago

Guziec-Lobuziec commented 6 years ago

Scenario:

  1. S creates
  2. B joins and sends tokens
  3. S accepts B and receive tokens
  4. B concludes

Other B-s withdraw sent tokens. Only accepted B can conclude agreement. Only S can accept other B-s. Explorer will show how much tokens each party has sent A1.1 should replace dummy agreement

Guziec-Lobuziec commented 6 years ago

B - buyer S - seller

Guziec-Lobuziec commented 6 years ago

When creating seller should have ability to set price

Guziec-Lobuziec commented 6 years ago
Guziec-Lobuziec commented 6 years ago

Supplicant can at any time pay out tokens they payed in. But once accepted they become Buyer and no longer can withdraw their assets.

Guziec-Lobuziec commented 6 years ago

A1.1 State machine

sm-a1 1 flow_1