Skip to content

Commit

Permalink
Merge pull request #102 from Cerebellum-Network/hotfix/change-gov-con…
Browse files Browse the repository at this point in the history
…stants-master

Hotfix/change gov constants master
  • Loading branch information
MRamanenkau authored Sep 28, 2023
2 parents 5f1e8d3 + 8e8db52 commit b70432f
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 @@ -130,7 +130,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: 48002,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 5,
Expand Down Expand Up @@ -726,7 +726,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 @@ -802,11 +802,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 @@ -876,13 +876,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 @@ -916,7 +916,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 @@ -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: 48001,
spec_version: 48002,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 5,
Expand Down Expand Up @@ -725,7 +725,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 @@ -801,11 +801,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 @@ -875,13 +875,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 @@ -915,7 +915,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 b70432f

Please sign in to comment.