Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info People and Coretime Chains #6102

Merged
merged 7 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion components/RPC-Connection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down Expand Up @@ -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}`);
}
Expand Down Expand Up @@ -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.");
}
Expand Down
18 changes: 14 additions & 4 deletions components/utilities/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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");
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion docs/general/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Explore Polkadot with a secure and user-friendly wallets listed on the

- **Around 20 DOT**:

- {{ polkadot: __<RPC network="polkadot" path="consts.identity.basicDeposit" defaultValue={202580000000} filter="humanReadable"/>:__ :polkadot }}
- {{ polkadot: __<RPC network="polkadotpeople" path="consts.identity.basicDeposit" defaultValue={2001700000} filter="humanReadable"/>:__ :polkadot }}
register an [on-chain identity](../learn/learn-identity.md)
- {{ polkadot: __<RPC network="polkadot" path="consts.proxy.proxyDepositBase" defaultValue={200080000000} filter="humanReadable"/>:__ :polkadot }}
create a [proxy account](../learn/learn-proxies.md).
Expand Down
2 changes: 1 addition & 1 deletion docs/general/kusama/kusama-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: __<RPC network="kusama" path="consts.identity.basicDeposit" defaultValue={333333333000} filter="humanReadable"/>:__ :kusama }}
- {{ kusama: __<RPC network="kusamapeople" path="consts.identity.basicDeposit" defaultValue={6672333321} filter="humanReadable"/>:__ :kusama }}
register an [on-chain identity](../../learn/learn-identity.md)

- {{ kusama: __<RPC network="kusama" path="consts.proxy.proxyDepositBase" defaultValue={666933332400} filter="humanReadable"/>:__ :kusama }}
Expand Down
8 changes: 4 additions & 4 deletions docs/learn/learn-guides-identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <RPC network="polkadot" path="consts.identity.basicDeposit" defaultValue={33333000000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusama-people" path="consts.identity.basicDeposit" defaultValue={33333000000} filter="humanReadable"/> :kusama }}
{{ polkadot: <RPC network="polkadotpeople" path="consts.identity.basicDeposit" defaultValue={2001700000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusamapeople" path="consts.identity.basicDeposit" defaultValue={6672333321} filter="humanReadable"/> :kusama }}
is reserved for setting identity and
{{ polkadot: <RPC network="polkadot" path="consts.identity.subAccountDeposit" defaultValue={6666000000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusama-people" path="consts.identity.subAccountDeposit" defaultValue={6666000000} filter="humanReadable"/> :kusama }}
{{ polkadot: <RPC network="polkadotpeople" path="consts.identity.subAccountDeposit" defaultValue={2005300000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusamapeople" path="consts.identity.subAccountDeposit" defaultValue={6684333309} filter="humanReadable"/> :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.

Expand Down
47 changes: 19 additions & 28 deletions docs/learn/learn-identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <RPC network="polkadot" path="consts.identity.basicDeposit" defaultValue={202580000000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusama-people" path="consts.identity.basicDeposit" defaultValue={33333000000} filter="humanReadable"/> :kusama }}
{{ polkadot: <RPC network="polkadotpeople" path="consts.identity.basicDeposit" defaultValue={2001700000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusamapeople" path="consts.identity.basicDeposit" defaultValue={6672333321} filter="humanReadable"/> :kusama }}
and
{{ polkadot: <RPC network="polkadot" path="consts.identity.byteDeposit" defaultValue={660000000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusama-people" path="consts.identity.byteDeposit" defaultValue={8333000000} filter="humanReadable"/> :kusama }}
{{ polkadot: <RPC network="polkadotpeople" path="consts.identity.byteDeposit" defaultValue={100000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusamapeople" path="consts.identity.byteDeposit" defaultValue={333333} filter="humanReadable"/> :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: <RPC network="polkadotpeople" path="consts.identity.subAccountDeposit" defaultValue={200530000000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusamapeople" path="consts.identity.subAccountDeposit" defaultValue={6666000000} filter="humanReadable"/> :kusama }}
is required for every sub-account.

## Judgements

After a user injects their information on chain, they can request judgement from a registrar. Users
Expand Down Expand Up @@ -111,19 +115,6 @@ Registrar 3: <br /> **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: <RPC network="polkadot" path="consts.identity.subAccountDeposit" defaultValue={200530000000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusama-people" path="consts.identity.subAccountDeposit" defaultValue={6666000000} filter="humanReadable"/> :kusama }}
is required for every sub-account.

---

:::info Polkadot-JS Guides
Expand Down
71 changes: 45 additions & 26 deletions docs/learn/learn-system-chains.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -36,6 +36,11 @@ so "System Parachains" is preferred now. A discussion on this evolution can be f

## Existing System Chains

<!-- prettier-ignore -->
<Tabs groupId="clients" values={[ {label: 'Polkadot', value: 'polkadot'}, { label: 'Kusama', value: 'kusama'} ]}>

<TabItem value="polkadot">

### Asset Hub

The [Asset Hub](https://github.com/paritytech/polkadot-sdk/tree/master/cumulus#asset-hub-) on both
Expand Down Expand Up @@ -67,6 +72,43 @@ while only
{{ kusama: <RPC network="statemine" path="consts.balances.existentialDeposit" defaultValue={3333333} filter="humanReadable"/> :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).

</TabItem>
<TabItem value="kusama">

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
Expand Down Expand Up @@ -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.
</TabItem>
</Tabs>
8 changes: 4 additions & 4 deletions docs/maintain/maintain-polkadot-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <RPC network="polkadot" path="consts.balances.existentialDeposit" defaultValue={10000000000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="polkadot" path="consts.balances.existentialDeposit" defaultValue={10000000000} filter="humanReadable"/> :kusama }}
{{ kusama: <RPC network="kusama" path="consts.balances.existentialDeposit" defaultValue={10000000000} filter="humanReadable"/> :kusama }}
- The deposit required to set an Identity is
{{ polkadot: <RPC network="polkadot" path="consts.identity.basicDeposit" defaultValue={202580000000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="polkadot" path="consts.identity.basicDeposit" defaultValue={202580000000} filter="humanReadable"/> :kusama }}
{{ polkadot: <RPC network="polkadotpeople" path="consts.identity.basicDeposit" defaultValue={2001700000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="kusamapeople" path="consts.identity.basicDeposit" defaultValue={6672333321} filter="humanReadable"/> :kusama }}
- The minimum contribution required to participate in a crowdloan is
{{ polkadot: <RPC network="polkadot" path="consts.crowdloan.minContribution" defaultValue={50000000000} filter="humanReadable"/> :polkadot }}
{{ kusama: <RPC network="polkadot" path="consts.crowdloan.minContribution" defaultValue={50000000000} filter="humanReadable"/> :kusama }}
{{ kusama: <RPC network="kusama" path="consts.crowdloan.minContribution" defaultValue={50000000000} filter="humanReadable"/> :kusama }}

### Governance

Expand Down
2 changes: 1 addition & 1 deletion tests/rpc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
Loading