1

Code

parameter_types! {
    pub const CouncilMotionDuration: BlockNumber = 3 * MINUTES;
    pub const CouncilMaxProposals: u32 = 100;
    pub const CouncilMaxMembers: u32 = 100;
}

type TechnicalCollective = pallet_collective::Instance1;

impl pallet_collective::Config<TechnicalCollective> for Runtime {
    type RuntimeOrigin = RuntimeOrigin;
    type Proposal = RuntimeCall;
    type RuntimeEvent = RuntimeEvent;
    type MotionDuration = CouncilMotionDuration;
    type MaxProposals = CouncilMaxProposals;
    type MaxMembers = CouncilMaxMembers;
    type DefaultVote = pallet_collective::PrimeDefaultVote;
    type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
}

type EnsureRootOrHalfCouncil = EitherOfDiverse<
    EnsureRoot<AccountId>,
    pallet_collective::EnsureProportionMoreThan<AccountId, TechnicalCollective, 1, 2>,
>;

impl pallet_validator_set::Config for Runtime {
    type RuntimeEvent = RuntimeEvent;
    // see readme for type declaration
    type AddRemoveOrigin = EnsureRootOrHalfCouncil;
    type MinAuthorities = MinAuthorities;
}

Im looking a documentation where it explains how to use governance with a POa based chain , how to configure scheduling here?>

The Issue

  • How to execute an extrinsic with a custom origin with a given blocknumber after voting approval ?
  • Cannot see validators are rotating after an epoch

How to configure those ?

5
  • 1
    What is the issue here? Please clarify your question. If you want to configure the collective pallet you can look here. If you want to configure the scheduler pallet you can look here
    – Bruno
    May 3, 2023 at 22:58
  • added more context, thank you
    – not 0x12
    May 3, 2023 at 23:06
  • Please include the Github link to your repo.
    – Bruno
    May 3, 2023 at 23:20
  • @Bruno still the project is on private mode due to management decisions , thank you
    – not 0x12
    May 4, 2023 at 4:50
  • @Bruno I have ended up with this error substrate.stackexchange.com/questions/7785/… when trying to submit keys
    – not 0x12
    May 8, 2023 at 3:01

1 Answer 1

1

How to execute an extrinsic with a custom origin with a given blocknumber after voting approval?

Use the scheduler pallet with the preimage pallet or you can use the scheduler pallet with the utility pallet's dispatchAs extrinsic.

Cannot see validators are rotating after an epoch

Make sure you have the validator-set pallet and the session pallet properly configured:

2
  • will there be an example or a document on this Use the scheduler pallet with the preimage pallet or you can use the scheduler pallet with the utility pallet's dispatchAs extrinsic.
    – not 0x12
    May 8, 2023 at 7:01
  • 1
    There is an old one here. There is also one solely on the scheduler pallet here. There is also a section on the Polkadot wiki here. Moonbeam also has a good doc here.
    – Bruno
    May 8, 2023 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.