[CI Skip] 0.51.0-beta.1

This commit is contained in:
Travis CI
2019-03-23 19:20:35 +00:00
parent 26d01aa5a3
commit b2fd61af5e
13 changed files with 51 additions and 44 deletions
+11 -8
View File
@@ -202,23 +202,26 @@ ___
### staking
▸ **bond**(controller: `Address`, value: `Compact<BalanceOf>`, payee: `RewardDestination`)
- **summary**: Take the origin account as a stash and lock up `value` of its balance. `controller` will be the account that controls it.
- **summary**: Take the origin account as a stash and lock up `value` of its balance. `controller` will be the account that controls it. The dispatch origin for this call must be _Signed_.
▸ **bondExtra**(max_additional: `BalanceOf`)
- **summary**: Add some extra amount that have appeared in the stash `free_balance` into the balance up for staking. Use this if there are additional funds in your stash account that you wish to bond. NOTE: This call must be made by the controller, not the stash.
- **summary**: Add some extra amount that have appeared in the stash `free_balance` into the balance up for staking. Use this if there are additional funds in your stash account that you wish to bond. The dispatch origin for this call must be _Signed_ by the controller, not the stash.
▸ **chill**()
- **summary**: Declare no desire to either validate or nominate. Effects will be felt at the beginning of the next era. NOTE: This call must be made by the controller, not the stash.
- **summary**: Declare no desire to either validate or nominate. Effects will be felt at the beginning of the next era. The dispatch origin for this call must be _Signed_ by the controller, not the stash.
▸ **forceNewEra**(apply_rewards: `bool`)
- **summary**: Force there to be a new era. This also forces a new session immediately after. `apply_rewards` should be true for validators to get the session reward.
▸ **nominate**(targets: `Vec<Address>`)
- **summary**: Declare the desire to nominate `targets` for the origin controller. Effects will be felt at the beginning of the next era. NOTE: This call must be made by the controller, not the stash.
- **summary**: Declare the desire to nominate `targets` for the origin controller. Effects will be felt at the beginning of the next era. The dispatch origin for this call must be _Signed_ by the controller, not the stash.
▸ **setBondingDuration**(new: `Compact<BlockNumber>`)
- **summary**: The length of the bonding duration in eras.
▸ **setController**(controller: `Address`)
- **summary**: (Re-)set the payment target for a controller. Effects will be felt at the beginning of the next era. The dispatch origin for this call must be _Signed_ by the controller, not the stash.
▸ **setInvulnerables**(validators: `Vec<AccountId>`)
- **summary**: Set the validators who cannot be slashed (if any).
@@ -226,7 +229,7 @@ ___
- **summary**: Set the offline slash grace period.
▸ **setPayee**(payee: `RewardDestination`)
- **summary**: (Re-)set the payment target for a controller. Effects will be felt at the beginning of the next era. NOTE: This call must be made by the controller, not the stash.
- **summary**: (Re-)set the payment target for a controller. Effects will be felt at the beginning of the next era. The dispatch origin for this call must be _Signed_ by the controller, not the stash.
▸ **setSessionsPerEra**(new: `Compact<BlockNumber>`)
- **summary**: Set the number of sessions in an era.
@@ -235,13 +238,13 @@ ___
- **summary**: The ideal number of validators.
▸ **unbond**(value: `Compact<BalanceOf>`)
- **summary**: Schedule a portion of the stash to be unlocked ready for transfer out after the bond period ends. If this leaves an amount actively bonded less than T::Currency::existential_deposit(), then it is increased to the full amount. Once the unlock period is done, you can call `withdraw_unbonded` to actually move the funds out of management ready for transfer. NOTE: This call must be made by the controller, not the stash. See also [`Call::withdraw_unbonded`].
- **summary**: Schedule a portion of the stash to be unlocked ready for transfer out after the bond period ends. If this leaves an amount actively bonded less than T::Currency::existential_deposit(), then it is increased to the full amount. Once the unlock period is done, you can call `withdraw_unbonded` to actually move the funds out of management ready for transfer. The dispatch origin for this call must be _Signed_ by the controller, not the stash. See also [`Call::withdraw_unbonded`].
▸ **validate**(prefs: `ValidatorPrefs`)
- **summary**: Declare the desire to validate for the origin controller. Effects will be felt at the beginning of the next era. NOTE: This call must be made by the controller, not the stash.
- **summary**: Declare the desire to validate for the origin controller. Effects will be felt at the beginning of the next era. The dispatch origin for this call must be _Signed_ by the controller, not the stash.
▸ **withdrawUnbonded**()
- **summary**: Remove any unlocked chunks from the `unlocking` queue from our management. This essentially frees up that balance to be used by the stash account to do whatever it wants. NOTE: This call must be made by the controller, not the stash. See also [`Call::unbond`].
- **summary**: Remove any unlocked chunks from the `unlocking` queue from our management. This essentially frees up that balance to be used by the stash account to do whatever it wants. The dispatch origin for this call must be _Signed_ by the controller, not the stash. See also [`Call::unbond`].
___
+13 -9
View File
@@ -81,6 +81,12 @@ ___
### contract
▸ **accountCounter**(): `u64`
- **summary**: The subtrie counter
▸ **accountInfoOf**(`AccountId`): `Option<AccountInfo>`
- **summary**: The code associated with a given account.
▸ **blockGasLimit**(): `Gas`
- **summary**: The maximum amount of gas that could be expended per block.
@@ -327,23 +333,21 @@ ___
▸ **bondingDuration**(): `BlockNumber`
- **summary**: The length of the bonding duration in blocks.
▸ **currentElected**(): `Vec<AccountId>`
- **summary**: The currently elected validator set keyed by stash account ID.
▸ **currentEra**(): `BlockNumber`
- **summary**: The current era index.
▸ **currentEraReward**(): `BalanceOf`
- **summary**: The accumulated reward for the current era. Reset to zero at the beginning of the era and increased for every successfully finished session.
▸ **currentOfflineSlash**(): `BalanceOf`
- **summary**: Slash, per validator that is taken for the first time they are found to be offline.
▸ **currentSessionReward**(): `BalanceOf`
- **summary**: Maximum reward, per validator, that is provided per acceptable session.
▸ **forcingNewEra**(): `Option<Null>`
- **summary**: We are forcing a new era.
▸ **invulerables**(): `Vec<AccountId>`
▸ **invulnerables**(): `Vec<AccountId>`
- **summary**: Any validators that may never be slashed or forcibly kicked. It's a Vec since they're easy to initialise and the performance hit is minimal (we expect no more than four invulnerables) and restricted to testnets.
@@ -360,7 +364,7 @@ ___
- **summary**: The next value of sessions per era.
▸ **nominators**(`AccountId`): `Vec<AccountId>`
- **summary**: The set of keys are all controllers that want to nominate. The value are the nominations.
- **summary**: The map from nominator stash key to the set of stash keys of all validators to nominate.
▸ **offlineSlash**(): `Perbill`
- **summary**: Slash, per validator that is taken for the first time they are found to be offline.
@@ -369,7 +373,7 @@ ___
- **summary**: Number of instances of offline reports before slashing begins for validators.
▸ **payee**(`AccountId`): `RewardDestination`
- **summary**: Where the reward payment should be made.
- **summary**: Where the reward payment should be made. Keyed by stash.
▸ **recentlyOffline**(): `Vec<(AccountId,BlockNumber,u32)>`
- **summary**: Most recent `RECENT_OFFLINE_COUNT` instances. (who it was, when it was reported, how many instances they were offline for).
@@ -387,13 +391,13 @@ ___
- **summary**: The amount of balance actively at stake for each validator slot, currently. This is used to derive rewards and punishments.
▸ **stakers**(`AccountId`): `Exposure`
- **summary**: Nominators for a particular account that is in action right now. You can't iterate through validators here, but you can find them in the `sessions` module.
- **summary**: Nominators for a particular account that is in action right now. You can't iterate through validators here, but you can find them in the `sessions` module. This is keyed by the stash account.
▸ **validatorCount**(): `u32`
- **summary**: The ideal number of staking participants.
▸ **validators**(`AccountId`): `ValidatorPrefs`
- **summary**: The set of keys are all controllers that want to validate. The values are the preferences that a validator has.
- **summary**: The map from (wannabe) validator stash key to the preferences of that validator.
___