From 2b862c4fbc4df7126c240485578a521335fc2c81 Mon Sep 17 00:00:00 2001 From: Filippo Date: Thu, 25 Jul 2024 15:05:48 +0200 Subject: [PATCH 1/7] bug fix kusama people rpc wrongly implemented --- components/RPC-Connection.jsx | 12 +++++++++++- components/utilities/filters.js | 18 ++++++++++++++---- docs/learn/learn-identity.md | 8 ++++---- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/components/RPC-Connection.jsx b/components/RPC-Connection.jsx index 4ca01d75a2b3..468641bb3197 100644 --- a/components/RPC-Connection.jsx +++ b/components/RPC-Connection.jsx @@ -14,7 +14,8 @@ const Polkadot = "polkadot"; const Kusama = "kusama"; const Statemine = "statemine"; const Statemint = "statemint"; -const KusamaPeople = "kusama-people"; +const KusamaPeople = "kusamapeople"; +const PolkadotPeople = "polkadotpeople"; function RPC({ network, path, defaultValue, filter = undefined }) { const [returnValue, setReturnValue] = useState(''); @@ -47,6 +48,9 @@ function RPC({ network, path, defaultValue, filter = undefined }) { case KusamaPeople: wsUrl = "wss://kusama-people-rpc.polkadot.io"; break; + case PolkadotPeople: + wsUrl = "wss://polkadot-people-rpc.polkadot.io"; + break; default: console.log(`Unknown network provided, ${network}`); } @@ -98,6 +102,12 @@ async function syncData(network, path, setReturnValue) { case "statemint": wsUrl = "wss://statemint-rpc.polkadot.io/"; break; + case "polkadotpeople": + wsUrl = "wss://polkadot-people-rpc.polkadot.io/"; + break; + case "kusamapeople": + wsUrl = "wss://kusama-people-rpc.polkadot.io/"; + break; default: console.log("Unknown socket url provided, no connection made."); } diff --git a/components/utilities/filters.js b/components/utilities/filters.js index 6dc9a3cb6c4a..fc5b439435ac 100644 --- a/components/utilities/filters.js +++ b/components/utilities/filters.js @@ -2,6 +2,8 @@ const Polkadot = "polkadot"; const Kusama = "kusama"; const Statemine = "statemine"; const Statemint = "statemint"; +const PolkadotPeople = "polkadotpeople"; +const KusamaPeople = "kusamapeople"; const values = { polkadot: { @@ -20,15 +22,23 @@ const values = { precision: 1e12, symbol: "KSM", }, + polkadotpeople: { + precision: 1e10, + symbol: "DOT", + }, + kusamapeople: { + precision: 1e12, + symbol: "KSM", + }, }; module.exports = { HumanReadable: function (value, network, setReturnValue) { let decimals = undefined; - if (network === Polkadot || network === Statemint) { + if (network === Polkadot || network === Statemint || network == PolkadotPeople) { decimals = 3; - } else if (network === Kusama || network === Statemine) { + } else if (network === Kusama || network === Statemine || network == KusamaPeople) { decimals = 6; } else { console.log("Unknown network type found when attempting to apply 'Human Readable' filter"); @@ -63,9 +73,9 @@ module.exports = { ErasToDays: function (value, setReturnValue, network) { let factor = undefined; - if (network === Polkadot || network === Statemint) { + if (network === Polkadot || network === Statemint || network == PolkadotPeople) { factor = 1; - } else if (network === Kusama || network === Statemine) { + } else if (network === Kusama || network === Statemine || network == KusamaPeople) { factor = 4; } else { console.log("Unknown network type found when attempting to apply 'Human Readable' filter"); diff --git a/docs/learn/learn-identity.md b/docs/learn/learn-identity.md index eb56e6ea25a5..2f6847b0dcbe 100644 --- a/docs/learn/learn-identity.md +++ b/docs/learn/learn-identity.md @@ -25,11 +25,11 @@ participants to add personal information to their on-chain account and subsequen verification of this information by [registrars](#registrars). Users must reserve funds in a bond to store their information on chain: -{{ polkadot: :polkadot }} -{{ kusama: :kusama }} +{{ polkadot: :polkadot }} +{{ kusama: :kusama }} and -{{ polkadot: :polkadot }} -{{ kusama: :kusama }} +{{ polkadot: :polkadot }} +{{ kusama: :kusama }} (per byte) per each field beyond the legal name. These funds are _locked_, not spent - they are returned when the identity is cleared. From c4ce68f702eaf1330d0ecd7232dae4563268e839 Mon Sep 17 00:00:00 2001 From: Filippo Date: Thu, 25 Jul 2024 16:02:53 +0200 Subject: [PATCH 2/7] fix all rpc calls --- components/utilities/filters.js | 8 ++++---- docs/general/getting-started.md | 2 +- docs/general/kusama/kusama-getting-started.md | 2 +- docs/learn/learn-guides-identity.md | 8 ++++---- docs/learn/learn-identity.md | 4 ++-- docs/maintain/maintain-polkadot-parameters.md | 8 ++++---- tests/rpc.test.js | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/components/utilities/filters.js b/components/utilities/filters.js index fc5b439435ac..80813e8a68ee 100644 --- a/components/utilities/filters.js +++ b/components/utilities/filters.js @@ -23,12 +23,12 @@ const values = { symbol: "KSM", }, polkadotpeople: { - precision: 1e10, - symbol: "DOT", + precision: 1e7, + symbol: "milli DOT", }, kusamapeople: { - precision: 1e12, - symbol: "KSM", + precision: 1e9, + symbol: "milli KSM", }, }; diff --git a/docs/general/getting-started.md b/docs/general/getting-started.md index 4cc7f33f7ffc..0529922360fb 100644 --- a/docs/general/getting-started.md +++ b/docs/general/getting-started.md @@ -176,7 +176,7 @@ Explore Polkadot with a secure and user-friendly wallets listed on the - **Around 20 DOT**: - - {{ polkadot: __:__ :polkadot }} + - {{ polkadot: __:__ :polkadot }} register an [on-chain identity](../learn/learn-identity.md) - {{ polkadot: __:__ :polkadot }} create a [proxy account](../learn/learn-proxies.md). diff --git a/docs/general/kusama/kusama-getting-started.md b/docs/general/kusama/kusama-getting-started.md index 2096faee1ea7..cbea7eeeaa7a 100644 --- a/docs/general/kusama/kusama-getting-started.md +++ b/docs/general/kusama/kusama-getting-started.md @@ -167,7 +167,7 @@ governance, acquisition of a parachain slot and for enabling several key functio the minimum contribution required to participate in [crowdloans](../../learn/learn-crowdloans.md) for [parachain slot auctions](../../learn/learn-auction.md). -- {{ kusama: __:__ :kusama }} +- {{ kusama: __:__ :kusama }} register an [on-chain identity](../../learn/learn-identity.md) - {{ kusama: __:__ :kusama }} diff --git a/docs/learn/learn-guides-identity.md b/docs/learn/learn-guides-identity.md index ec3db3fac8d5..ef2f12fd086b 100644 --- a/docs/learn/learn-guides-identity.md +++ b/docs/learn/learn-guides-identity.md @@ -153,11 +153,11 @@ use it to set a sub-identity to your Ledger account. - Sign and submit the transaction from the parent account with the identity You should now see the sub-identity displayed on-chain. You need to be aware that -{{ polkadot: :polkadot }} -{{ kusama: :kusama }} +{{ polkadot: :polkadot }} +{{ kusama: :kusama }} is reserved for setting identity and -{{ polkadot: :polkadot }} -{{ kusama: :kusama }} +{{ polkadot: :polkadot }} +{{ kusama: :kusama }} for each sub-identity. This reserved account balance is freed once you [clear the identities](../learn/learn-identity.md#clearing-and-killing-an-identity) on the account. diff --git a/docs/learn/learn-identity.md b/docs/learn/learn-identity.md index 2f6847b0dcbe..582b95fe02e1 100644 --- a/docs/learn/learn-identity.md +++ b/docs/learn/learn-identity.md @@ -26,10 +26,10 @@ verification of this information by [registrars](#registrars). Users must reserve funds in a bond to store their information on chain: {{ polkadot: :polkadot }} -{{ kusama: :kusama }} +{{ kusama: :kusama }} and {{ polkadot: :polkadot }} -{{ kusama: :kusama }} +{{ kusama: :kusama }} (per byte) per each field beyond the legal name. These funds are _locked_, not spent - they are returned when the identity is cleared. diff --git a/docs/maintain/maintain-polkadot-parameters.md b/docs/maintain/maintain-polkadot-parameters.md index 8e3cda678dc5..3ba610fcdccc 100644 --- a/docs/maintain/maintain-polkadot-parameters.md +++ b/docs/maintain/maintain-polkadot-parameters.md @@ -40,13 +40,13 @@ a block in the chain. Thus, the times given are *estimates*. See - The [Existential Deposit](../learn/learn-accounts.md#existential-deposit-and-reaping) is {{ polkadot: :polkadot }} - {{ kusama: :kusama }} + {{ kusama: :kusama }} - The deposit required to set an Identity is - {{ polkadot: :polkadot }} - {{ kusama: :kusama }} + {{ polkadot: :polkadot }} + {{ kusama: :kusama }} - The minimum contribution required to participate in a crowdloan is {{ polkadot: :polkadot }} - {{ kusama: :kusama }} + {{ kusama: :kusama }} ### Governance diff --git a/tests/rpc.test.js b/tests/rpc.test.js index 7d64d90d1167..b7a45818a252 100644 --- a/tests/rpc.test.js +++ b/tests/rpc.test.js @@ -35,7 +35,7 @@ const paths = [ { path: 'consts.system.blockHashCount', network: 'kusama' }, { path: 'consts.balances.existentialDeposit', network: 'kusama' }, { path: 'query.staking.validatorCount', network: 'kusama' }, - { path: 'consts.identity.basicDeposit', network: 'kusama' }, + { path: 'consts.identity.basicDeposit', network: 'kusamapeople' }, { path: 'query.staking.currentEra', network: 'kusama' }, { path: 'query.staking.minNominatorBond', network: 'kusama' }, { path: 'query.staking.maxNominatorsCount', network: 'kusama' }, From dbc329dc12a2a00c6efe9a1a928129348e51c5c1 Mon Sep 17 00:00:00 2001 From: Filippo Date: Thu, 25 Jul 2024 17:07:39 +0200 Subject: [PATCH 3/7] added info system chains --- components/utilities/filters.js | 4 +- docs/learn/learn-identity.md | 39 +++++++---------- docs/learn/learn-system-chains.md | 71 ++++++++++++++++++++----------- 3 files changed, 62 insertions(+), 52 deletions(-) diff --git a/components/utilities/filters.js b/components/utilities/filters.js index 80813e8a68ee..daf934fc8552 100644 --- a/components/utilities/filters.js +++ b/components/utilities/filters.js @@ -24,11 +24,11 @@ const values = { }, polkadotpeople: { precision: 1e7, - symbol: "milli DOT", + symbol: "milliDOT", }, kusamapeople: { precision: 1e9, - symbol: "milli KSM", + symbol: "milliKSM", }, }; diff --git a/docs/learn/learn-identity.md b/docs/learn/learn-identity.md index 582b95fe02e1..a044731152d8 100644 --- a/docs/learn/learn-identity.md +++ b/docs/learn/learn-identity.md @@ -9,17 +9,6 @@ slug: ../learn-identity import RPC from "./../../components/RPC-Connection"; -:::warning The identity pallet is no longer on the Kusama Relay Chain. - -If you are on **Kusama**, any of the extrinsics which require you to use the relay chain now have to -be called via the system parachain, -[which you can find here.](https://polkadot.js.org/apps/?rpc=wss://kusama-people-rpc.polkadot.io) - -The identity pallet, along with all of its data, has been migrated to and resumes functionality on -the [People Chain](../general/glossary.md#people-chain), a system parachain for identity management. - -::: - {{ polkadot: Polkadot :polkadot }}{{ kusama: Kusama :kusama }} provides a naming system that allows participants to add personal information to their on-chain account and subsequently ask for verification of this information by [registrars](#registrars). @@ -33,6 +22,21 @@ and (per byte) per each field beyond the legal name. These funds are _locked_, not spent - they are returned when the identity is cleared. +Identities are managed on the [People system chain](./learn-system-chains.md). + +## Sub-Identities + +Users can also link accounts by setting "sub accounts", each with its own identity, under a primary +account. The system reserves a bond for each sub account. An example of how you might use this would +be a validation company running multiple validators. A single entity, "My Staking Company", could +register multiple sub accounts that represent the [Stash accounts](learn-cryptography.md) of each of +their validators. + +An account can have a maximum of 100 sub-accounts. Note that a deposit of +{{ polkadot: :polkadot }} +{{ kusama: :kusama }} +is required for every sub-account. + ## Judgements After a user injects their information on chain, they can request judgement from a registrar. Users @@ -111,19 +115,6 @@ Registrar 3:
**Account**: See [this page](./learn-guides-identity.md#registrars) to learn how to become a Registrar. -## Sub-Identities - -Users can also link accounts by setting "sub accounts", each with its own identity, under a primary -account. The system reserves a bond for each sub account. An example of how you might use this would -be a validation company running multiple validators. A single entity, "My Staking Company", could -register multiple sub accounts that represent the [Stash accounts](learn-cryptography.md) of each of -their validators. - -An account can have a maximum of 100 sub-accounts. Note that a deposit of -{{ polkadot: :polkadot }} -{{ kusama: :kusama }} -is required for every sub-account. - --- :::info Polkadot-JS Guides diff --git a/docs/learn/learn-system-chains.md b/docs/learn/learn-system-chains.md index 3c7ea6a185bd..c00d47e3a07a 100644 --- a/docs/learn/learn-system-chains.md +++ b/docs/learn/learn-system-chains.md @@ -7,7 +7,7 @@ keywords: [common good, system, parachains, system level, public utility] slug: ../learn-system-chains --- -import RPC from "./../../components/RPC-Connection"; +import RPC from "./../../components/RPC-Connection"; import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; ## Overview @@ -36,6 +36,11 @@ so "System Parachains" is preferred now. A discussion on this evolution can be f ## Existing System Chains + + + + + ### Asset Hub The [Asset Hub](https://github.com/paritytech/polkadot-sdk/tree/master/cumulus#asset-hub-) on both @@ -67,6 +72,43 @@ while only {{ kusama: :kusama }} on the Asset Hub. +### Collectives + +The Polkadot Collectives parachain was added in +[Referendum 81](https://polkadot.polkassembly.io/referendum/81) and exists only on Polkadot (i.e., +there is no Kusama equivalent). The Collectives chain hosts on-chain collectives that serve the +Polkadot network. + +Some of these collectives are the +[Polkadot Alliance](https://polkadot.polkassembly.io/referendum/94) and the Polkadot Technical +[Fellowship](./learn-polkadot-technical-fellowship.md). These on-chain collectives will play +important roles in the future of network stewardship and decentralized governance. + +Networks themselves can act as collectives and express their legislative voices as single opinions +within other networks. This is achieved with the assistance from a [bridge hub](#bridge-hubs). + +### Bridge Hubs + +Before Polkadot and Kusama supported their first parachains, the only way to design a bridge was to +put the logic onto the Relay Chain itself. Since both networks now support parachains, it makes +sense to have a parachain on each network dedicated to bridges. This is because of the execution +isolation provided by parachains. + +See the [Bridges page](learn-bridges.md) for information on the latest bridge projects. + +### People Chain + +The People Chain allows users to [transfer tokens](./learn-transactions.md), mange their account [identity](./learn-identity.md), [proxies](./learn-proxies.md) and [multi-signature accounts](./learn-account-multisig.md), and more. + +### Coretime Chain + +The Coretime system chain allows users to buy coretime and access Polkadot's computation. [Coretime marketplaces](./learn-guides-coretime-marketplaces.md) run on top of the Coretime chain. For more information about agile coretime, see [here](./learn-agile-coretime.md). + + + + +Compared to Polkadot, Kusama does not have the Collectives system chain and it has the Encointer system chain. + ### Encointer Encointer is a blockchain platform for self-sovereign ID and a global universal basic income. With @@ -107,28 +149,5 @@ To learn more about Encointer, check out the official ::: -### Collectives - -The Polkadot Collectives parachain was added in -[Referendum 81](https://polkadot.polkassembly.io/referendum/81) and exists only on Polkadot (i.e., -there is no Kusama equivalent). The Collectives chain hosts on-chain collectives that serve the -Polkadot network. - -Some of these collectives are the -[Polkadot Alliance](https://polkadot.polkassembly.io/referendum/94) and the Polkadot Technical -[Fellowship](./learn-polkadot-technical-fellowship.md). These on-chain collectives will play -important roles in the future of network stewardship and decentralized governance. - -Networks themselves can act as collectives and express their legislative voices as single opinions -within other networks. This is achieved with the assistance from a [bridge hub](#bridge-hubs). - -### Bridge Hubs - -Before Polkadot and Kusama supported their first parachains, the only way to design a bridge was to -put the logic onto the Relay Chain itself. Since both networks now support parachains, it makes -sense to have a parachain on each network dedicated to bridges. This is because of the execution -isolation provided by parachains. - -See the [Bridges page](learn-bridges.md) for information on the latest bridge projects. Currently, a -Bridge Hub parachain is in development that will be a portal for trust-minimized bridges to other -networks. + + From 01eea23d058a689d845e4249f03601e73a88f2e0 Mon Sep 17 00:00:00 2001 From: Filippo Date: Thu, 25 Jul 2024 17:21:13 +0200 Subject: [PATCH 4/7] minor edit --- docs/learn/learn-system-chains.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/learn/learn-system-chains.md b/docs/learn/learn-system-chains.md index c00d47e3a07a..ffb55e9b792c 100644 --- a/docs/learn/learn-system-chains.md +++ b/docs/learn/learn-system-chains.md @@ -98,7 +98,7 @@ See the [Bridges page](learn-bridges.md) for information on the latest bridge pr ### People Chain -The People Chain allows users to [transfer tokens](./learn-transactions.md), mange their account [identity](./learn-identity.md), [proxies](./learn-proxies.md) and [multi-signature accounts](./learn-account-multisig.md), and more. +The People Chain allows users to mange their account [identity](./learn-identity.md). ### Coretime Chain From e01bc26752ded80ce3e8496416752de7832a20c6 Mon Sep 17 00:00:00 2001 From: Filippo Date: Thu, 25 Jul 2024 17:22:50 +0200 Subject: [PATCH 5/7] correction --- docs/learn/learn-system-chains.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/learn/learn-system-chains.md b/docs/learn/learn-system-chains.md index ffb55e9b792c..8b7252392657 100644 --- a/docs/learn/learn-system-chains.md +++ b/docs/learn/learn-system-chains.md @@ -102,7 +102,7 @@ The People Chain allows users to mange their account [identity](./learn-identity ### Coretime Chain -The Coretime system chain allows users to buy coretime and access Polkadot's computation. [Coretime marketplaces](./learn-guides-coretime-marketplaces.md) run on top of the Coretime chain. For more information about agile coretime, see [here](./learn-agile-coretime.md). +The Coretime system chain allows users to buy coretime to access Polkadot's computation. [Coretime marketplaces](./learn-guides-coretime-marketplaces.md) run on top of the Coretime chain. For more information about agile coretime, see [here](./learn-agile-coretime.md). From dc734123288db38933c0ad87eca5d26c549088b8 Mon Sep 17 00:00:00 2001 From: bader y Date: Thu, 25 Jul 2024 15:40:52 -0400 Subject: [PATCH 6/7] Update docs/learn/learn-system-chains.md --- docs/learn/learn-system-chains.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/learn/learn-system-chains.md b/docs/learn/learn-system-chains.md index 8b7252392657..bbc79ccb638c 100644 --- a/docs/learn/learn-system-chains.md +++ b/docs/learn/learn-system-chains.md @@ -107,7 +107,7 @@ The Coretime system chain allows users to buy coretime to access Polkadot's comp -Compared to Polkadot, Kusama does not have the Collectives system chain and it has the Encointer system chain. +Compared to Polkadot, Kusama does not have the Collectives system chain, and it has the Encointer system chain. ### Encointer From b031e2039e424ca5695f14910be05dff4ea0790f Mon Sep 17 00:00:00 2001 From: Filippo Date: Fri, 26 Jul 2024 10:13:04 +0200 Subject: [PATCH 7/7] added Encointer link --- docs/learn/learn-system-chains.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/learn/learn-system-chains.md b/docs/learn/learn-system-chains.md index bbc79ccb638c..18fe78ec30dd 100644 --- a/docs/learn/learn-system-chains.md +++ b/docs/learn/learn-system-chains.md @@ -107,7 +107,7 @@ The Coretime system chain allows users to buy coretime to access Polkadot's comp -Compared to Polkadot, Kusama does not have the Collectives system chain, and it has the Encointer system chain. +Compared to Polkadot, Kusama does not have the Collectives system chain, and it has the [Encointer](https://encointer.org/encointer-for-web3/) system chain. ### Encointer