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
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ Create marketplaces that require previous authorization before placing sell and
9
9
-[Getters](#getters)
10
10
-[Usage](#usage)
11
11
-[Polkadot-js CLI](#polkadot-js-cli)
12
+
-[Submit initial role setup (needs sudo](#submit-initial-role-setup-needs-sudo)
12
13
-[Create a marketplace](#create-a-marketplace)
13
14
-[Get a marketplace](#get-a-marketplace)
14
15
-[Get what roles does an account have on a marketplace](#get-what-roles-does-an-account-have-on-a-marketplace)
@@ -34,6 +35,7 @@ Create marketplaces that require previous authorization before placing sell and
34
35
-[Take sell offer - direct purchase](#take-sell-offer---direct-purchase)
35
36
-[Take buy offer](#take-buy-offer)
36
37
-[Polkadot-js api (javascript library)](#polkadot-js-api-javascript-library)
38
+
-[Submit initial role setup (needs sudo)](#submit-initial-role-setup-needs-sudo-1)
37
39
-[Create a marketplace](#create-a-marketplace-1)
38
40
-[Get a marketplace](#get-a-marketplace-1)
39
41
-[Get what roles does an account have on a marketplace](#get-what-roles-does-an-account-have-on-a-marketplace-1)
@@ -87,8 +89,10 @@ This module allows to:
87
89
## Interface
88
90
89
91
### Dispachable functions
92
+
93
+
-`initial_setup` enables all the permission related functionality using the `RBAC` pallet, it can only be called by the sudo account or a majority of the Council (60%). It is essential to call this extrinsic before using other extrinsics.
90
94
-`create_marketplace` creates an on-chain marketplace record, it takes a `label` and an account that will fulfill the role of `administrator`, the extrinsic origin will be set up automatically as the marketplace owner.
91
-
-`apply` starts the process to enter the specidied`marketplace`.
95
+
-`apply` starts the process to enter the specified`marketplace`.
92
96
-`reapply` allows the applicant to apply again for the selected marketplace.
93
97
-`enroll` is only callable by the marketplace owner or administrator, as it finishes the application process. It takes a `marketplace` identification, and `account` or `application` identification to enroll or reject, and an `approved` boolean flag which approves the application if set to `true`. Owner/admin can add a feedback regarding the user's application.
94
98
-`add_authority` is only callable by the marketplace owner or administrator. As it name implies, adds a new user that will have special permission within the marketplace. It takes the `account` which will have the permissions, the type of `authority` it will have, and the `marketplace` identification in which the permissions will be enforced.
@@ -145,6 +149,11 @@ The following examples will be using these prefunded accounts and testing data:
While most of the data flow is almost identical to its CLI counter part, the javascript library is much more versatile regarding queries. The API setup will be ommited.
413
+
While most of the data flow is almost identical to its CLI counter part, the javascript library is much more versatile regarding queries.
0 commit comments