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

Added clarification for parathread registration costs #5960

Merged
merged 7 commits into from
Jun 14, 2024
Merged
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
29 changes: 23 additions & 6 deletions docs/learn/learn-guides-coretime-parachains.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,29 +93,46 @@ successfully.

## Register Parachain State and Code

:::info Deposit requirements for registering a parachain

Due to the reasons [discussed here](https://github.com/paritytech/polkadot-sdk/pull/2372), instead
of the usual per-byte method of charging for storing validation and genesis code upon registration,
the cost is fixed to the maximum possible code size (`MAX_CODE_SIZE`), regardless of the actual
size.

On **Kusama**, the deposit required to register a parachain is **~1100 KSM**.

On **Polkadot**, the deposit required to register a parachain is **~3300 DOT**.

It is possible to deregister the parachain and withdraw the deposit if the parachain has not produced
any blocks. If the parachain produced blocks, then the parachain can only be deregistered through relay
chain governance.

:::

The next step is to register the parachain's genesis wasm and state, which you should have generated
earlier. Note that for this example, we are using `adder-collator`, but in theory a custom runtime
compiled from a
[template](https://github.com/paritytech/polkadot-sdk/tree/88a2f360238787bf5256cfdd14b40c08f519b38e/templates/parachain)
would work as well.

<!-- prettier-ignore -->
:::info
<!-- :::info

Registering the genesis state and WASM code of the parachain requires a deposit that is computed
based on the size (a deposit is paid per byte uploaded):
based on the size (a deposit is paid per byte uploaded): -->

<!-- prettier-ignore -->
- **Kusama**: <RPC network="kusama" path="consts.registrar.dataDepositPerByte" defaultValue={0} filter="humanReadable"/> per byte
<!-- - **Kusama**: <RPC network="kusama" path="consts.registrar.dataDepositPerByte" defaultValue={0} filter="humanReadable"/> per byte -->

<!-- prettier-ignore -->
- **Polkadot**: <RPC network="polkadot" path="consts.registrar.dataDepositPerByte" defaultValue={0} filter="humanReadable"/> per byte
<!-- - **Polkadot**: <RPC network="polkadot" path="consts.registrar.dataDepositPerByte" defaultValue={0} filter="humanReadable"/> per byte -->

The deposit used for registering `ParaID` is already counted in for this deposit, the total deposit
<!-- The deposit used for registering `ParaID` is already counted in for this deposit, the total deposit
requirement for registering `ParaID`, state and code for `adder-collator` is around 46 KSM on Kusama
and 116 DOT on Polkadot.

:::
::: -->

![coretime-register-parathread](../assets/coretime/coretime-register-parathread.png)

Expand Down
Loading