Skip to content

Commit 7c50006

Browse files
committed
Remove pallet-bounties
1 parent dc2c81d commit 7c50006

File tree

10 files changed

+2
-517
lines changed

10 files changed

+2
-517
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk", tag =
7474
pallet-aura = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2503", default-features = false }
7575
pallet-authorship = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2503", default-features = false }
7676
pallet-balances = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2503", default-features = false }
77-
pallet-bounties = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2503", default-features = false }
7877
pallet-collective = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2503", default-features = false }
7978
pallet-democracy = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2503", default-features = false }
8079
pallet-message-queue = { git = "https://github.com/paritytech/polkadot-sdk", tag = "polkadot-stable2503", default-features = false } #TODO check if was deleted from EPT

runtime/mainnet/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ frame-try-runtime = { workspace = true, default-features = false, optional = tru
4646
pallet-aura = { workspace = true, default-features = false }
4747
pallet-authorship = { workspace = true, default-features = false }
4848
pallet-balances = { workspace = true, default-features = false }
49-
pallet-bounties = { workspace = true, default-features = false }
5049
pallet-collective = { workspace = true, default-features = false }
5150
pallet-session = { workspace = true, default-features = false }
5251
pallet-sudo = { workspace = true, default-features = false }
@@ -127,7 +126,6 @@ std = [
127126
"pallet-aura/std",
128127
"pallet-authorship/std",
129128
"pallet-balances/std",
130-
"pallet-bounties/std",
131129
"pallet-collator-staking/std",
132130
"pallet-collective/std",
133131
"pallet-dmarket/std",
@@ -183,7 +181,6 @@ runtime-benchmarks = [
183181
"frame-system-benchmarking/runtime-benchmarks",
184182
"frame-system/runtime-benchmarks",
185183
"pallet-balances/runtime-benchmarks",
186-
"pallet-bounties/runtime-benchmarks",
187184
"pallet-collator-staking/runtime-benchmarks",
188185
"pallet-collective/runtime-benchmarks",
189186
"pallet-dmarket/runtime-benchmarks",
@@ -227,7 +224,6 @@ try-runtime = [
227224
"pallet-aura/try-runtime",
228225
"pallet-authorship/try-runtime",
229226
"pallet-balances/try-runtime",
230-
"pallet-bounties/try-runtime",
231227
"pallet-collator-staking/try-runtime",
232228
"pallet-collective/try-runtime",
233229
"pallet-dmarket/try-runtime",

runtime/mainnet/src/lib.rs

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ impl pallet_treasury::Config for Runtime {
10511051
type PalletId = TreasuryPalletId;
10521052
type BurnDestination = ();
10531053
type WeightInfo = weights::pallet_treasury::WeightInfo<Runtime>;
1054-
type SpendFunds = Bounties;
1054+
type SpendFunds = ();
10551055
type MaxApprovals = MaxApprovals;
10561056
type SpendOrigin = EnsureWithSuccess<RootOrCouncilTwoThirdsMajority, AccountId, MaxBalance>;
10571057
type AssetKind = ();
@@ -1065,33 +1065,6 @@ impl pallet_treasury::Config for Runtime {
10651065
type BenchmarkHelper = TreasuryBenchmarkHelper<Balances>;
10661066
}
10671067

1068-
parameter_types! {
1069-
pub const BountyDepositBase: Balance = 10 * MYTH;
1070-
pub const BountyDepositPayoutDelay: BlockNumber = 0;
1071-
pub const BountyUpdatePeriod: BlockNumber = 90 * DAYS;
1072-
pub const CuratorDepositMultiplier: Permill = Permill::from_percent(50);
1073-
pub const CuratorDepositMin: Balance = 100 * MYTH;
1074-
pub const CuratorDepositMax: Balance = 2000 * MYTH;
1075-
pub const BountyValueMinimum: Balance = 100 * MYTH;
1076-
pub const DataDepositPerByte: Balance = 100 * MILLI_MYTH;
1077-
}
1078-
1079-
impl pallet_bounties::Config for Runtime {
1080-
type RuntimeEvent = RuntimeEvent;
1081-
type BountyDepositBase = BountyDepositBase;
1082-
type BountyDepositPayoutDelay = BountyDepositPayoutDelay;
1083-
type BountyUpdatePeriod = BountyUpdatePeriod;
1084-
type CuratorDepositMultiplier = CuratorDepositMultiplier;
1085-
type CuratorDepositMin = CuratorDepositMin;
1086-
type CuratorDepositMax = CuratorDepositMax;
1087-
type BountyValueMinimum = BountyValueMinimum;
1088-
type DataDepositPerByte = DataDepositPerByte;
1089-
type MaximumReasonLength = MaximumReasonLength;
1090-
type WeightInfo = weights::pallet_bounties::WeightInfo<Runtime>;
1091-
type ChildBountyManager = ();
1092-
type OnSlash = Treasury;
1093-
}
1094-
10951068
parameter_types! {
10961069
// 27 | Min encoded size of `Registration`
10971070
// - 10 | Min encoded size of `IdentityInfo`
@@ -1135,7 +1108,6 @@ construct_runtime!(
11351108
Council: pallet_collective::<Instance1> = 16,
11361109
Democracy: pallet_democracy = 17,
11371110
Treasury: pallet_treasury = 18,
1138-
Bounties: pallet_bounties = 19,
11391111

11401112
// Collator support. The order of these 4 are important and shall not change.
11411113
Authorship: pallet_authorship = 20,
@@ -1189,7 +1161,6 @@ mod benches {
11891161
[pallet_sudo, Sudo]
11901162
[pallet_timestamp, Timestamp]
11911163
[pallet_treasury, Treasury]
1192-
[pallet_bounties, Bounties]
11931164
[pallet_vesting, Vesting]
11941165
[pallet_utility, Utility]
11951166
[pallet_collator_staking, CollatorStaking]

runtime/mainnet/src/weights/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ pub mod cumulus_pallet_weight_reclaim;
3232
pub mod cumulus_pallet_xcmp_queue;
3333
pub mod frame_system;
3434
pub mod pallet_balances;
35-
pub mod pallet_bounties;
3635
pub mod pallet_collator_staking;
3736
pub mod pallet_collective;
3837
pub mod pallet_democracy;

runtime/mainnet/src/weights/pallet_bounties.rs

Lines changed: 0 additions & 221 deletions
This file was deleted.

runtime/testnet/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ frame-try-runtime = { workspace = true, default-features = false, optional = tru
4545
pallet-aura = { workspace = true, default-features = false }
4646
pallet-authorship = { workspace = true, default-features = false }
4747
pallet-balances = { workspace = true, default-features = false }
48-
pallet-bounties = { workspace = true, default-features = false }
4948
pallet-collective = { workspace = true, default-features = false }
5049
pallet-democracy = { workspace = true, default-features = false }
5150
pallet-session = { workspace = true, default-features = false }
@@ -123,7 +122,6 @@ std = [
123122
"pallet-aura/std",
124123
"pallet-authorship/std",
125124
"pallet-balances/std",
126-
"pallet-bounties/std",
127125
"pallet-collator-staking/std",
128126
"pallet-collective/std",
129127
"pallet-democracy/std",
@@ -179,7 +177,6 @@ runtime-benchmarks = [
179177
"frame-system-benchmarking/runtime-benchmarks",
180178
"frame-system/runtime-benchmarks",
181179
"pallet-balances/runtime-benchmarks",
182-
"pallet-bounties/runtime-benchmarks",
183180
"pallet-collator-staking/runtime-benchmarks",
184181
"pallet-collective/runtime-benchmarks",
185182
"pallet-democracy/runtime-benchmarks",
@@ -222,7 +219,6 @@ try-runtime = [
222219
"pallet-aura/try-runtime",
223220
"pallet-authorship/try-runtime",
224221
"pallet-balances/try-runtime",
225-
"pallet-bounties/try-runtime",
226222
"pallet-collator-staking/try-runtime",
227223
"pallet-collective/try-runtime",
228224
"pallet-democracy/try-runtime",

0 commit comments

Comments
 (0)