Skip to content

Commit 626f4f0

Browse files
committed
partial marketplaces readme changes
Before updating to the latest offer functionality
1 parent 9c667db commit 626f4f0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

pallets/gated-marketplace/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Create marketplaces that require previous authorization before placing sell and
1111
- [Polkadot-js CLI](#polkadot-js-cli)
1212
- [Create a marketplace](#create-a-marketplace)
1313
- [Get a marketplace](#get-a-marketplace)
14-
- [Get what permissions does an account have on a marketplace](#get-what-permissions-does-an-account-have-on-a-marketplace)
15-
- [Get all the accounts that have a certain permission on a marketplace](#get-all-the-accounts-that-have-a-certain-permission-on-a-marketplace)
14+
- [Get what roles does an account have on a marketplace](#get-what-roles-does-an-account-have-on-a-marketplace)
15+
- [Get all the accounts that have a certain role on a marketplace](#get-all-the-accounts-that-have-a-certain-role-on-a-marketplace)
1616
- [Apply to a marketplace (without custodian)](#apply-to-a-marketplace-without-custodian)
1717
- [Apply to a marketplace (with custodian)](#apply-to-a-marketplace-with-custodian)
1818
- [Get an application](#get-an-application)
@@ -26,8 +26,8 @@ Create marketplaces that require previous authorization before placing sell and
2626
- [Polkadot-js api (javascript library)](#polkadot-js-api-javascript-library)
2727
- [Create a marketplace](#create-a-marketplace-1)
2828
- [Get a marketplace](#get-a-marketplace-1)
29-
- [Get what permissions does an account have on a marketplace](#get-what-permissions-does-an-account-have-on-a-marketplace-1)
30-
- [Get all the accounts that have a certain permission on a marketplace](#get-all-the-accounts-that-have-a-certain-permission-on-a-marketplace-1)
29+
- [Get what permissions does an account have on a marketplace](#get-what-permissions-does-an-account-have-on-a-marketplace)
30+
- [Get all the accounts that have a certain permission on a marketplace](#get-all-the-accounts-that-have-a-certain-permission-on-a-marketplace)
3131
- [Apply to a marketplace (without custodian)](#apply-to-a-marketplace-without-custodian-1)
3232
- [Apply to a marketplace (with custodian)](#apply-to-a-marketplace-with-custodian-1)
3333
- [Get an application](#get-an-application-1)
@@ -76,8 +76,6 @@ This module allows to:
7676

7777
### Getters
7878
- `marketplaces`
79-
- `marketplaces_by_authority` (double storage map)
80-
- `authorities_by_marketplace` (double storage map)
8179
- `applications`
8280
- `applications_by_account` (double storage map)
8381
- `applicants_by_marketplace` (double storage map)
@@ -131,7 +129,7 @@ polkadot-js-api query.gatedMarketplace.marketplaces "0xace33a53e2c1a5c7fa2f92033
131129
}
132130
```
133131

134-
#### Get what permissions does an account have on a marketplace
132+
#### Get what roles does an account have on a marketplace
135133
```bash
136134
# account_id, marketplace_id
137135
polkadot-js-api query.gatedMarketplace.marketplacesByAuthority "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY" "0xace33a53e2c1a5c7fa2f920338136d0ddc3aba23eacaf708e3871bc856a34b95"
@@ -145,7 +143,7 @@ polkadot-js-api query.gatedMarketplace.marketplacesByAuthority "5GrwvaEF5zXb26Fz
145143
}
146144
```
147145

148-
#### Get all the accounts that have a certain permission on a marketplace
146+
#### Get all the accounts that have a certain role on a marketplace
149147
```bash
150148
# marketplace_id, type of authoriry (it can be "Owner", "Admin" or "Appraiser")
151149
polkadot-js-api query.gatedMarketplace.authoritiesByMarketplace "0xace33a53e2c1a5c7fa2f920338136d0ddc3aba23eacaf708e3871bc856a34b95" "Admin"

0 commit comments

Comments
 (0)