Skip to content

Commit 219a75b

Browse files
[CI Skip] release/stable 0.0.299
skip-checks: true
1 parent d9055bc commit 219a75b

30 files changed

+2174
-158
lines changed

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
1 Andrzej Fix typo in api.query.multi.md (#126)
2121
1 angdiam Update api.query.other.md (#181)
2222
1 Antonio Savage Adding specifics to the Intro API (#140)
23+
1 Arjun Porwal Docs Maintenance: Bump dependencies & minor fixes (#494)
2324
1 behnam izadi Update basics.md (#261)
2425
1 benjichat formats 'Get chain information' example in-line with others (#283)
2526
1 Daniel Bastos Fix broken keyring intro link (#253)

docs/asset-hub-kusama/constants.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ The following sections contain the module constants, also known as parameter typ
1414

1515
- **[balances](#balances)**
1616

17+
- **[collatorSelection](#collatorselection)**
18+
1719
- **[foreignAssets](#foreignassets)**
1820

1921
- **[messageQueue](#messagequeue)**
@@ -26,10 +28,16 @@ The following sections contain the module constants, also known as parameter typ
2628

2729
- **[parachainSystem](#parachainsystem)**
2830

31+
- **[polkadotXcm](#polkadotxcm)**
32+
2933
- **[poolAssets](#poolassets)**
3034

3135
- **[proxy](#proxy)**
3236

37+
- **[revive](#revive)**
38+
39+
- **[stateTrieMigration](#statetriemigration)**
40+
3341
- **[system](#system)**
3442

3543
- **[timestamp](#timestamp)**
@@ -156,6 +164,36 @@ ___
156164
___
157165

158166

167+
## collatorSelection
168+
169+
### kickThreshold: `u32`
170+
- **interface**: `api.consts.collatorSelection.kickThreshold`
171+
172+
### maxCandidates: `u32`
173+
- **interface**: `api.consts.collatorSelection.maxCandidates`
174+
- **summary**: Maximum number of candidates that we should have.
175+
176+
This does not take into account the invulnerables.
177+
178+
### maxInvulnerables: `u32`
179+
- **interface**: `api.consts.collatorSelection.maxInvulnerables`
180+
- **summary**: Maximum number of invulnerables.
181+
182+
### minEligibleCollators: `u32`
183+
- **interface**: `api.consts.collatorSelection.minEligibleCollators`
184+
- **summary**: Minimum number eligible collators. Should always be greater than zero. This includes Invulnerable collators. This ensures that there will always be one collator who can produce a block.
185+
186+
### potAccount: `AccountId32`
187+
- **interface**: `api.consts.collatorSelection.potAccount`
188+
- **summary**: Gets this pallet's derived pot account.
189+
190+
### potId: `FrameSupportPalletId`
191+
- **interface**: `api.consts.collatorSelection.potId`
192+
- **summary**: Account Identifier from which the internal Pot is generated.
193+
194+
___
195+
196+
159197
## foreignAssets
160198

161199
### approvalDeposit: `u128`
@@ -334,6 +372,15 @@ ___
334372
___
335373

336374

375+
## polkadotXcm
376+
377+
### advertisedXcmVersion: `u32`
378+
- **interface**: `api.consts.polkadotXcm.advertisedXcmVersion`
379+
- **summary**: The latest supported version that we advertise. Generally just set it to `pallet_xcm::CurrentXcmVersion`.
380+
381+
___
382+
383+
337384
## poolAssets
338385

339386
### approvalDeposit: `u128`
@@ -406,6 +453,76 @@ ___
406453
___
407454

408455

456+
## revive
457+
458+
### chainId: `u64`
459+
- **interface**: `api.consts.revive.chainId`
460+
- **summary**: The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
461+
462+
This is a unique identifier assigned to each blockchain network, preventing replay attacks.
463+
464+
### codeHashLockupDepositPercent: `Perbill`
465+
- **interface**: `api.consts.revive.codeHashLockupDepositPercent`
466+
- **summary**: The percentage of the storage deposit that should be held for using a code hash. Instantiating a contract, protects the code from being removed. In order to prevent abuse these actions are protected with a percentage of the code deposit.
467+
468+
### depositPerByte: `u128`
469+
- **interface**: `api.consts.revive.depositPerByte`
470+
- **summary**: The amount of balance a caller has to pay for each byte of storage.
471+
472+
#### Note
473+
474+
It is safe to change this value on a live chain as all refunds are pro rata.
475+
476+
### depositPerItem: `u128`
477+
- **interface**: `api.consts.revive.depositPerItem`
478+
- **summary**: The amount of balance a caller has to pay for each storage item.
479+
480+
#### Note
481+
482+
It is safe to change this value on a live chain as all refunds are pro rata.
483+
484+
### nativeToEthRatio: `u32`
485+
- **interface**: `api.consts.revive.nativeToEthRatio`
486+
- **summary**: The ratio between the decimal representation of the native token and the ETH token.
487+
488+
### unsafeUnstableInterface: `bool`
489+
- **interface**: `api.consts.revive.unsafeUnstableInterface`
490+
- **summary**: Make contract callable functions marked as `#[unstable]` available.
491+
492+
Contracts that use `#[unstable]` functions won't be able to be uploaded unless this is set to `true`. This is only meant for testnets and dev nodes in order to experiment with new features.
493+
494+
#### Warning
495+
496+
Do **not** set to `true` on productions chains.
497+
498+
___
499+
500+
501+
## stateTrieMigration
502+
503+
### maxKeyLen: `u32`
504+
- **interface**: `api.consts.stateTrieMigration.maxKeyLen`
505+
- **summary**: Maximal number of bytes that a key can have.
506+
507+
FRAME itself does not limit the key length. The concrete value must therefore depend on your storage usage. A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of keys which are then hashed and concatenated, resulting in arbitrarily long keys.
508+
509+
Use the *state migration RPC* to retrieve the length of the longest key in your storage: <https://github.com/paritytech/substrate/issues/11642>
510+
511+
The migration will halt with a `Halted` event if this value is too small. Since there is no real penalty from over-estimating, it is advised to use a large value. The default is 512 byte.
512+
513+
Some key lengths for reference:
514+
515+
- [`frame_support::storage::StorageValue`]: 32 byte
516+
517+
- [`frame_support::storage::StorageMap`]: 64 byte
518+
519+
- [`frame_support::storage::StorageDoubleMap`]: 96 byte
520+
521+
For more info see <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
522+
523+
___
524+
525+
409526
## system
410527

411528
### blockHashCount: `u32`

0 commit comments

Comments
 (0)