Skip to content

Commit

Permalink
Merge pull request #97 from Cerebellum-Network/hotfix/change-gov-cons…
Browse files Browse the repository at this point in the history
…tants

Hotfix/change gov constants
  • Loading branch information
MRamanenkau authored Sep 28, 2023
2 parents 9e77121 + d7aa2a7 commit cd7077b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion node/service/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub fn cere_dev_genesis(

let num_endowed_accounts = endowed_accounts.len();

const ENDOWMENT: Balance = 10_000_000 * TEST_UNITS;
const ENDOWMENT: Balance = 10_000_000_000 * TEST_UNITS;
const STASH: Balance = ENDOWMENT / 1000;

cere_dev::GenesisConfig {
Expand Down
16 changes: 8 additions & 8 deletions runtime/cere-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 48003,
spec_version: 48005,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 5,
Expand Down Expand Up @@ -724,7 +724,7 @@ parameter_types! {
pub const LaunchPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
pub const VotingPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
pub const FastTrackVotingPeriod: BlockNumber = 3 * 60 * MINUTES;
pub const MinimumDeposit: Balance = 5000 * DOLLARS;
pub const MinimumDeposit: Balance = 5_000_000 * DOLLARS;
pub const EnactmentPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
pub const CooloffPeriod: BlockNumber = 7 * 24 * 60 * MINUTES;
pub const MaxProposals: u32 = 100;
Expand Down Expand Up @@ -800,11 +800,11 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
}

parameter_types! {
pub const CandidacyBond: Balance = 100 * DOLLARS;
pub const CandidacyBond: Balance = 500_000_000 * DOLLARS;
// 1 storage item created, key size is 32 bytes, value size is 16+16.
pub const VotingBondBase: Balance = deposit(1, 64);
pub const VotingBondFactor: Balance = 1 * DOLLARS;
pub const TermDuration: BlockNumber = 7 * DAYS;
pub const TermDuration: BlockNumber = 182 * DAYS;
pub const DesiredMembers: u32 = 13;
pub const DesiredRunnersUp: u32 = 20;
pub const ElectionsPhragmenPalletId: LockIdentifier = *b"phrelect";
Expand Down Expand Up @@ -874,13 +874,13 @@ impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {

parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: Balance = 100 * DOLLARS;
pub const ProposalBondMinimum: Balance = 5_000_000 * DOLLARS;
pub const SpendPeriod: BlockNumber = 1 * DAYS;
pub const Burn: Permill = Permill::from_percent(0);
pub const TipCountdown: BlockNumber = 1 * DAYS;
pub const TipFindersFee: Percent = Percent::from_percent(20);
pub const TipReportDepositBase: Balance = 1 * DOLLARS;
pub const DataDepositPerByte: Balance = 1 * CENTS;
pub const TipReportDepositBase: Balance = 5_000_000 * DOLLARS;
pub const DataDepositPerByte: Balance = 1 * DOLLARS;
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
pub const MaximumReasonLength: u32 = 16384;
pub const MaxApprovals: u32 = 100;
Expand Down Expand Up @@ -914,7 +914,7 @@ impl pallet_treasury::Config for Runtime {
parameter_types! {
pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);
pub const BountyValueMinimum: Balance = 10 * DOLLARS;
pub const BountyDepositBase: Balance = 1 * DOLLARS;
pub const BountyDepositBase: Balance = 5_000_000 * DOLLARS;
pub const CuratorDepositMultiplier: Permill = Permill::from_percent(50);
pub const CuratorDepositMin: Balance = 1 * DOLLARS;
pub const CuratorDepositMax: Balance = 100 * DOLLARS;
Expand Down
16 changes: 8 additions & 8 deletions runtime/cere/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 48001,
spec_version: 48005,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 5,
Expand Down Expand Up @@ -722,7 +722,7 @@ parameter_types! {
pub const LaunchPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
pub const VotingPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
pub const FastTrackVotingPeriod: BlockNumber = 3 * 60 * MINUTES;
pub const MinimumDeposit: Balance = 5000 * DOLLARS;
pub const MinimumDeposit: Balance = 5_000_000 * DOLLARS;
pub const EnactmentPeriod: BlockNumber = 1 * 24 * 60 * MINUTES;
pub const CooloffPeriod: BlockNumber = 7 * 24 * 60 * MINUTES;
pub const MaxProposals: u32 = 100;
Expand Down Expand Up @@ -798,11 +798,11 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
}

parameter_types! {
pub const CandidacyBond: Balance = 100 * DOLLARS;
pub const CandidacyBond: Balance = 500_000_000 * DOLLARS;
// 1 storage item created, key size is 32 bytes, value size is 16+16.
pub const VotingBondBase: Balance = deposit(1, 64);
pub const VotingBondFactor: Balance = 1 * DOLLARS;
pub const TermDuration: BlockNumber = 7 * DAYS;
pub const TermDuration: BlockNumber = 182 * DAYS;
pub const DesiredMembers: u32 = 13;
pub const DesiredRunnersUp: u32 = 20;
pub const ElectionsPhragmenPalletId: LockIdentifier = *b"phrelect";
Expand Down Expand Up @@ -872,13 +872,13 @@ impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {

parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: Balance = 100 * DOLLARS;
pub const ProposalBondMinimum: Balance = 5_000_000 * DOLLARS;
pub const SpendPeriod: BlockNumber = 1 * DAYS;
pub const Burn: Permill = Permill::from_percent(0);
pub const TipCountdown: BlockNumber = 1 * DAYS;
pub const TipFindersFee: Percent = Percent::from_percent(20);
pub const TipReportDepositBase: Balance = 1 * DOLLARS;
pub const DataDepositPerByte: Balance = 1 * CENTS;
pub const TipReportDepositBase: Balance = 5_000_000 * DOLLARS;
pub const DataDepositPerByte: Balance = 1 * DOLLARS;
pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry");
pub const MaximumReasonLength: u32 = 16384;
pub const MaxApprovals: u32 = 100;
Expand Down Expand Up @@ -912,7 +912,7 @@ impl pallet_treasury::Config for Runtime {
parameter_types! {
pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);
pub const BountyValueMinimum: Balance = 10 * DOLLARS;
pub const BountyDepositBase: Balance = 1 * DOLLARS;
pub const BountyDepositBase: Balance = 5_000_000 * DOLLARS;
pub const CuratorDepositMultiplier: Permill = Permill::from_percent(50);
pub const CuratorDepositMin: Balance = 1 * DOLLARS;
pub const CuratorDepositMax: Balance = 100 * DOLLARS;
Expand Down

0 comments on commit cd7077b

Please sign in to comment.