You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pallets/gated-marketplace/README.md
+72-12Lines changed: 72 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ This module allows to:
49
49
- Enroll or reject applicants to your marketplace.
50
50
- Add or remove users as supported authorities to your marketplace, like administrators and/or asset appraisers
51
51
- WIP: Assign a rating to assets as an Appraiser.
52
+
- Create sell or buy orders. Users can bid on the item if they don't like the sale price.
52
53
53
54
### Terminology
54
55
-**Authority**: Refers to any user that has special faculties within the marketplace, like enroll new users or grade assets.
@@ -60,6 +61,8 @@ This module allows to:
60
61
-**Enroll**: When enrolled, the user's application becomes approved, gaining the ability to sell and buy assets.
61
62
-**Reject**: If the user gets rejected, its application becomes rejected and won't have access to the marketplace.
62
63
-**Custodian**: When submitting an application, the user can optionally specify a third account that will have access to the confidential documents. A custodian doesn't need to be an authority nor being part of the marketplace.
64
+
-**Sell order**: The owner of the item creates sales offer fot the item.
65
+
-**Buy order**: Users from the marketplace can bid for the item.
63
66
64
67
## Interface
65
68
@@ -72,14 +75,28 @@ This module allows to:
72
75
-`remove_authority` is only callable by the marketplace owner or administrator. Removes the authority enforcer from the marketplace. The marketplace owner cannot be removed and the administrator cannot remove itself.
73
76
-`update_label_marketplace` is only callable by the marketplace owner or administrator. Changes the marketplace label. If the new label already exists, the old name won't be changed.
74
77
-`remove_marketplace` is only callable by the marketplace owner or administrator. This action allows the user to remove a marketplace as well as all the information related to this marketplace.
78
+
-`enlist_sell_offer` is only callable by the owner of the item. It allows the user to sell an item in the selected marketplace.
79
+
-`take_sell_offer` any user interested to buy the item can call this extrinsic. User must have enough balance to buy it. When the transaction is completed, the item ownership is transferred to the buyer.
80
+
-`duplicate_offer` allows the owner of the item to duplicate an sell order in any marketplace.
81
+
-`remove_offer` is only callable by the creator of the offer, it deletes any offer type from all the storages.
82
+
-`enlist_buy_offer` is callable by any market participant, the owner of the item can't create buy orders for their own items. User must have the enough balance to call it.
83
+
-`take_buy_offer` is only callable by the owner of the item. If the owner accepts the offer, the buyer must have enough balance to finalize the transaction.
0 commit comments