mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Add Child Bounties to Polkadot and Kusama (#4863)
* add to kusama * polkadot too * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/ * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/ * Update Cargo.lock * Update runtime/kusama/src/lib.rs * Update runtime/polkadot/src/lib.rs * import Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
@@ -785,13 +785,28 @@ impl pallet_bounties::Config for Runtime {
|
||||
type BountyUpdatePeriod = BountyUpdatePeriod;
|
||||
type BountyCuratorDeposit = BountyCuratorDeposit;
|
||||
type BountyValueMinimum = BountyValueMinimum;
|
||||
type ChildBountyManager = ();
|
||||
type ChildBountyManager = ChildBounties;
|
||||
type DataDepositPerByte = DataDepositPerByte;
|
||||
type Event = Event;
|
||||
type MaximumReasonLength = MaximumReasonLength;
|
||||
type WeightInfo = weights::pallet_bounties::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
pub const MaxActiveChildBountyCount: u32 = 100;
|
||||
pub const ChildBountyValueMinimum: Balance = BountyValueMinimum::get() / 10;
|
||||
// This will be 1% of the bounty value.
|
||||
pub const ChildBountyCuratorDepositBase: Permill = Permill::from_percent(1);
|
||||
}
|
||||
|
||||
impl pallet_child_bounties::Config for Runtime {
|
||||
type Event = Event;
|
||||
type MaxActiveChildBountyCount = MaxActiveChildBountyCount;
|
||||
type ChildBountyValueMinimum = ChildBountyValueMinimum;
|
||||
type ChildBountyCuratorDepositBase = ChildBountyCuratorDepositBase;
|
||||
type WeightInfo = weights::pallet_child_bounties::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
impl pallet_tips::Config for Runtime {
|
||||
type MaximumReasonLength = MaximumReasonLength;
|
||||
type DataDepositPerByte = DataDepositPerByte;
|
||||
@@ -1109,6 +1124,7 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
Call::TechnicalMembership(..) |
|
||||
Call::Treasury(..) |
|
||||
Call::Bounties(..) |
|
||||
Call::ChildBounties(..) |
|
||||
Call::Tips(..) |
|
||||
Call::Claims(..) |
|
||||
Call::Utility(..) |
|
||||
@@ -1143,7 +1159,8 @@ impl InstanceFilter<Call> for ProxyType {
|
||||
Call::Council(..) | Call::TechnicalCommittee(..) |
|
||||
Call::PhragmenElection(..) |
|
||||
Call::Treasury(..) | Call::Bounties(..) |
|
||||
Call::Tips(..) | Call::Utility(..)
|
||||
Call::Tips(..) | Call::Utility(..) |
|
||||
Call::ChildBounties(..)
|
||||
),
|
||||
ProxyType::Staking => {
|
||||
matches!(c, Call::Staking(..) | Call::Session(..) | Call::Utility(..))
|
||||
@@ -1427,8 +1444,9 @@ construct_runtime! {
|
||||
// Preimage registrar.
|
||||
Preimage: pallet_preimage::{Pallet, Call, Storage, Event<T>} = 32,
|
||||
|
||||
// Bounties module.
|
||||
// Bounties modules.
|
||||
Bounties: pallet_bounties::{Pallet, Call, Storage, Event<T>} = 35,
|
||||
ChildBounties: pallet_child_bounties = 40,
|
||||
|
||||
// Tips module.
|
||||
Tips: pallet_tips::{Pallet, Call, Storage, Event<T>} = 36,
|
||||
@@ -1547,6 +1565,7 @@ mod benches {
|
||||
[pallet_bags_list, BagsList]
|
||||
[frame_benchmarking::baseline, Baseline::<Runtime>]
|
||||
[pallet_bounties, Bounties]
|
||||
[pallet_child_bounties, ChildBounties]
|
||||
[pallet_collective, Council]
|
||||
[pallet_collective, TechnicalCommittee]
|
||||
[pallet_democracy, Democracy]
|
||||
|
||||
Reference in New Issue
Block a user