Skip to content

Commit

Permalink
Added clarification for parathread registration costs (#5960)
Browse files Browse the repository at this point in the history
* Added clarification

* add DOT

* more detail

* Update docs/learn/learn-guides-coretime-parachains.md

* Update docs/learn/learn-guides-coretime-parachains.md

* Update docs/learn/learn-guides-coretime-parachains.md

* deregister parachain

---------

Co-authored-by: Radha <[email protected]>
  • Loading branch information
CrackTheCode016 and DrW3RK authored Jun 14, 2024
1 parent c64a5cf commit c1837f9
Showing 1 changed file with 23 additions and 6 deletions.
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

0 comments on commit c1837f9

Please sign in to comment.