Add polymesh specific changes - do not merge #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
changelog
new features
add_permissioned_validator
,remove_permissioned_validator
,validate_cdd_expiry_nominators
,payout_stakers_by_system
,change_slashing_allowed_for
,update_permissioned_validator_intended_count
,chill_from_governance
,set_commission_cap
;modified external API
StashIdentityDoesNotExist
,StashIdentityNotPermissioned
,StashIdentityNotCDDed
,IdentityIsAlreadyPermissioned
,IdentityIsMissingCDD
,IntendedCountIsExceedingConsensusLimit
,IdentityNotFound
,ValidatorNotFound
,CommissionTooHigh
,CommissionUnchanged
;new external API
PermissionedIdentity
,SlashingAllowedFor
,ValidatorCommissionCap
,PolymeshStorageVersion
;modified events
Rewarded
,Bonded
,Unbonded
;new events
Nominated
,PermissionedIdentityAdded
,PermissionedIdentityRemoved
,InvalidatedNominators
,SlashingAllowedForChanged
,RewardPaymentSchedulingInterrupted
,CommissionCapUpdated
;other
validate
checks if the stash_did is permissioned;validate
checks ifprefs.commission <= Self::validator_commission_cap()
;validate
instead of checking ifValidators::<T>::count() < max_validators
checksstash_did_prefs.running_count < stash_did_prefs.intended_count
;nominate
check if stash identity exists and if it has gone through CDD;nominate
callSelf::release_running_validator
;reap_stash
we remove theensure_signed(origin)
check and only allow the extrinsic to be called if it has a balance of zero;do_withdraw_unbonded
changeledger.active < T::Currency::minimum_balance()
toledger.active <= T::Currency::minimum_balance()
;chill_stash
add call toSelf::release_running_validator
;end_era
use the scheduler for the rewards;on_offence
ifSlashingAllowedFor::<T>::get() == SlashingSwitch::None
slash_fraction is set to zero;max_inflated_issuance
andnon_inflated_yearly_reward
as parameters for computing total payout;data migration