Skip to content

Commit

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

Update gov related constants
  • Loading branch information
MRamanenkau authored Sep 26, 2023
2 parents 9c15a70 + 48b5d1e commit ecb2522
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 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
10 changes: 5 additions & 5 deletions runtime/cere-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,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 @@ -789,11 +789,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 @@ -868,8 +868,8 @@ parameter_types! {
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
10 changes: 5 additions & 5 deletions runtime/cere/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,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 @@ -787,11 +787,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 @@ -866,8 +866,8 @@ parameter_types! {
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

0 comments on commit ecb2522

Please sign in to comment.