Skip to content

Commit

Permalink
[CI Skip] release/stable 0.0.212
Browse files Browse the repository at this point in the history
skip-checks: true
  • Loading branch information
github-actions[bot] committed Oct 8, 2022
1 parent 607428b commit bea0094
Show file tree
Hide file tree
Showing 9 changed files with 167 additions and 38 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
235 Jaco Bump dev (#358)
236 Jaco Bump API (#362)
7 Kevin Veros Hamonangan Update ss58.md (#81)
5 brettkolodny Contract query subscriptions workaround in Contract FAQ (#60)
5 Jhon Update types.basics.md (#165)
Expand Down
16 changes: 9 additions & 7 deletions docs/substrate/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ ___

## contracts

### contractAccessWeight: `Weight`
### contractAccessWeight: `SpWeightsWeightV2Weight`
- **interface**: `api.consts.contracts.contractAccessWeight`
- **summary**: The weight per byte of code that is charged when loading a contract from storage.

Expand All @@ -265,7 +265,7 @@ ___

1. The queue is in storage in order to be persistent between blocks. We want to limit the amount of storage that can be consumed. 2. The queue is stored in a vector and needs to be decoded as a whole when reading it at the end of each block. Longer queues take more weight to decode and hence limit the amount of items that can be deleted per block.

### deletionWeightLimit: `Weight`
### deletionWeightLimit: `SpWeightsWeightV2Weight`
- **interface**: `api.consts.contracts.deletionWeightLimit`
- **summary**: The maximum amount of weight that can be consumed per block for lazy trie removal.

Expand Down Expand Up @@ -390,7 +390,7 @@ ___
### minerMaxVotesPerVoter: `u32`
- **interface**: `api.consts.electionProviderMultiPhase.minerMaxVotesPerVoter`

### minerMaxWeight: `Weight`
### minerMaxWeight: `SpWeightsWeightV2Weight`
- **interface**: `api.consts.electionProviderMultiPhase.minerMaxWeight`

### minerTxPriority: `u64`
Expand Down Expand Up @@ -425,7 +425,7 @@ ___

It is best to avoid adjusting this during an election, as it impacts downstream data structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you update this value during an election, you _must_ ensure that `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise, attempts to submit new solutions may cause a runtime panic.

### signedMaxWeight: `Weight`
### signedMaxWeight: `SpWeightsWeightV2Weight`
- **interface**: `api.consts.electionProviderMultiPhase.signedMaxWeight`
- **summary**: Maximum weight of a signed solution.

Expand Down Expand Up @@ -765,7 +765,7 @@ ___

## scheduler

### maximumWeight: `Weight`
### maximumWeight: `SpWeightsWeightV2Weight`
- **interface**: `api.consts.scheduler.maximumWeight`
- **summary**: The maximum weight that may be scheduled per block for any dispatchables of less priority than `schedule::HARD_DEADLINE`.

Expand Down Expand Up @@ -833,7 +833,7 @@ ___

If migrating an existing pallet from storage value to config value, this should be set to same value or greater as in storage.

Note: `HistoryDepth` is used as the upper bound for the `BoundedVec` item `StakingLedger.claimed_rewards`. Setting this value lower than the existing value can lead to inconsistencies and will need to be handled properly in a migration.
Note: `HistoryDepth` is used as the upper bound for the `BoundedVec` item `StakingLedger.claimed_rewards`. Setting this value lower than the existing value can lead to inconsistencies in the `StakingLedger` and will need to be handled properly in a migration. The test `reducing_history_depth_abrupt` shows this effect.

### maxNominations: `u32`
- **interface**: `api.consts.staking.maxNominations`
Expand All @@ -847,7 +847,9 @@ ___

### maxUnlockingChunks: `u32`
- **interface**: `api.consts.staking.maxUnlockingChunks`
- **summary**: The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively determines how many unique eras a staker may be unbonding in.
- **summary**: The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively determines how many unique eras a staker may be unbonding in.

Note: `MaxUnlockingChunks` is used as the upper bound for the `BoundedVec` item `StakingLedger.unlocking`. Setting this value lower than the existing value can lead to inconsistencies in the `StakingLedger` and will need to be handled properly in a runtime migration. The test `reducing_max_unlocking_chunks_abrupt` shows this effect.

### sessionsPerEra: `u32`
- **interface**: `api.consts.staking.sessionsPerEra`
Expand Down
4 changes: 4 additions & 0 deletions docs/substrate/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,10 @@ ___
- **interface**: `api.errors.fastUnstake.AlreadyQueued.is`
- **summary**: The bonded account has already been queued.

### CallNotAllowed
- **interface**: `api.errors.fastUnstake.CallNotAllowed.is`
- **summary**: The call is not allowed at this point because the pallet is not active.

### NotController
- **interface**: `api.errors.fastUnstake.NotController.is`
- **summary**: The provided Controller account was not found.
Expand Down
20 changes: 10 additions & 10 deletions docs/substrate/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ ___
- **interface**: `api.events.fastUnstake.Slashed.is`
- **summary**: A staker was slashed for requesting fast-unstake whilst being exposed.

### Unstaked(`AccountId32`, `Option<u32>`, `Result<Null, SpRuntimeDispatchError>`)
### Unstaked(`AccountId32`, `Result<Null, SpRuntimeDispatchError>`)
- **interface**: `api.events.fastUnstake.Unstaked.is`
- **summary**: A staker was unstaked.

Expand Down Expand Up @@ -1205,31 +1205,31 @@ ___

### Chilled(`AccountId32`)
- **interface**: `api.events.staking.Chilled.is`
- **summary**: An account has stopped participating as either a validator or nominator. \[stash\]
- **summary**: An account has stopped participating as either a validator or nominator.

### EraPaid(`u32`, `u128`, `u128`)
- **interface**: `api.events.staking.EraPaid.is`
- **summary**: The era payout has been set; the first balance is the validator-payout; the second is the remainder from the maximum amount of reward. \[era_index, validator_payout, remainder\]
- **summary**: The era payout has been set; the first balance is the validator-payout; the second is the remainder from the maximum amount of reward.

### Kicked(`AccountId32`, `AccountId32`)
- **interface**: `api.events.staking.Kicked.is`
- **summary**: A nominator has been kicked from a validator. \[nominator, stash\]
- **summary**: A nominator has been kicked from a validator.

### OldSlashingReportDiscarded(`u32`)
- **interface**: `api.events.staking.OldSlashingReportDiscarded.is`
- **summary**: An old slashing report from a prior era was discarded because it could not be processed. \[session_index\]
- **summary**: An old slashing report from a prior era was discarded because it could not be processed.

### PayoutStarted(`u32`, `AccountId32`)
- **interface**: `api.events.staking.PayoutStarted.is`
- **summary**: The stakers' rewards are getting paid. \[era_index, validator_stash\]
- **summary**: The stakers' rewards are getting paid.

### Rewarded(`AccountId32`, `u128`)
- **interface**: `api.events.staking.Rewarded.is`
- **summary**: The nominator has been rewarded by this amount. \[stash, amount\]
- **summary**: The nominator has been rewarded by this amount.

### Slashed(`AccountId32`, `u128`)
- **interface**: `api.events.staking.Slashed.is`
- **summary**: One staker (and potentially its nominators) has been slashed by the given amount. \[staker, amount\]
- **summary**: One staker (and potentially its nominators) has been slashed by the given amount.

### StakersElected()
- **interface**: `api.events.staking.StakersElected.is`
Expand All @@ -1241,15 +1241,15 @@ ___

### Unbonded(`AccountId32`, `u128`)
- **interface**: `api.events.staking.Unbonded.is`
- **summary**: An account has unbonded this amount. \[stash, amount\]
- **summary**: An account has unbonded this amount.

### ValidatorPrefsSet(`AccountId32`, `PalletStakingValidatorPrefs`)
- **interface**: `api.events.staking.ValidatorPrefsSet.is`
- **summary**: A validator has set their preferences.

### Withdrawn(`AccountId32`, `u128`)
- **interface**: `api.events.staking.Withdrawn.is`
- **summary**: An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` from the unlocking queue. \[stash, amount\]
- **summary**: An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` from the unlocking queue.

___

Expand Down
Loading

0 comments on commit bea0094

Please sign in to comment.