Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add polymesh specific changes - do not merge #1

Open
wants to merge 2 commits into
base: polymesh-v6-monthly-2023-03-fmt
Choose a base branch
from

Conversation

HenriqueNogara
Copy link

@HenriqueNogara HenriqueNogara commented Jun 17, 2024

changelog

new features

  • Adds the following extrinsics: 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

  • Adds the following error variants: StashIdentityDoesNotExist, StashIdentityNotPermissioned, StashIdentityNotCDDed, IdentityIsAlreadyPermissioned, IdentityIsMissingCDD, IntendedCountIsExceedingConsensusLimit, IdentityNotFound, ValidatorNotFound, CommissionTooHigh, CommissionUnchanged;

new external API

  • Adds the following storage: PermissionedIdentity, SlashingAllowedFor, ValidatorCommissionCap, PolymeshStorageVersion;

modified events

  • The indentity field has been added to the following events: Rewarded, Bonded, Unbonded;

new events

  • The following events have been added: Nominated, PermissionedIdentityAdded, PermissionedIdentityRemoved, InvalidatedNominators, SlashingAllowedForChanged, RewardPaymentSchedulingInterrupted, CommissionCapUpdated;

other

  • In validate checks if the stash_did is permissioned;
  • In validate checks if prefs.commission <= Self::validator_commission_cap();
  • In validate instead of checking if Validators::<T>::count() < max_validators checks stash_did_prefs.running_count < stash_did_prefs.intended_count;
  • In nominate check if stash identity exists and if it has gone through CDD;
  • In nominate call Self::release_running_validator;
  • In reap_stash we remove the ensure_signed(origin) check and only allow the extrinsic to be called if it has a balance of zero;
  • In do_withdraw_unbonded change ledger.active < T::Currency::minimum_balance() to ledger.active <= T::Currency::minimum_balance();
  • In chill_stash add call to Self::release_running_validator;
  • In end_era use the scheduler for the rewards;
  • In on_offence if SlashingAllowedFor::<T>::get() == SlashingSwitch::None slash_fraction is set to zero;
  • Adds max_inflated_issuance and non_inflated_yearly_reward as parameters for computing total payout;

data migration

@adamdossa adamdossa changed the title Add polymesh specific changes Add polymesh specific changes - do not merge Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants