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..daf934fc8552 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: 1e7, + symbol: "milliDOT", + }, + kusamapeople: { + precision: 1e9, + symbol: "milliKSM", + }, }; 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/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 eb56e6ea25a5..a044731152d8 100644 --- a/docs/learn/learn-identity.md +++ b/docs/learn/learn-identity.md @@ -9,30 +9,34 @@ 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). 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. +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..18fe78ec30dd 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 mange their account [identity](./learn-identity.md). + +### Coretime Chain + +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). + + + + +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 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. + + diff --git a/docs/maintain/maintain-polkadot-parameters.md b/docs/maintain/maintain-polkadot-parameters.md index 153d7d9b1221..ed4d143bee4c 100644 --- a/docs/maintain/maintain-polkadot-parameters.md +++ b/docs/maintain/maintain-polkadot-parameters.md @@ -62,13 +62,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' },