Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
29a3125
Fellowship into Collectives
muharem Feb 15, 2023
11bad7b
Merge remote-tracking branch 'origin/master' into muharem-collectives…
muharem Feb 15, 2023
2d6f124
cargo.lock
muharem Feb 15, 2023
2ccb3d7
tracks alias
muharem Feb 15, 2023
a1332a9
allow to send Fellows origin over XCM
muharem Feb 15, 2023
63d799c
update todos, remove duplication of type
muharem Feb 15, 2023
916997a
use Collectives location for Fellows body
muharem Feb 15, 2023
7b772d2
alias for ranks constants
muharem Feb 16, 2023
97f6629
benchmarks
muharem Feb 16, 2023
1f9cfdd
proxy for Fellowship
muharem Feb 16, 2023
34a7bd3
docs
muharem Feb 16, 2023
6ece4f3
correct copyright date
muharem Feb 20, 2023
7213d57
Apply suggestions from code review
muharem Feb 25, 2023
ea0abd1
Merge remote-tracking branch 'origin/master' into muharem-collectives…
muharem Feb 25, 2023
0b82eaf
rustfmt
muharem Feb 25, 2023
03f5c87
remove council, update origins
muharem Feb 25, 2023
73a2f36
renames
muharem Feb 25, 2023
58c986e
remove tech committee from promote origin
muharem Feb 25, 2023
c0fe803
renames
muharem Feb 26, 2023
ea1cc24
Fellowship import
muharem Feb 26, 2023
7905206
test
muharem Feb 27, 2023
14622ac
rename mod
muharem Feb 27, 2023
f61fb92
fix import
muharem Mar 6, 2023
9e363bc
updated addresses (only ss58 version)
muharem Mar 6, 2023
ec5a4ec
update addresses
muharem Mar 6, 2023
8127b8f
doc nits
joepetrowski Mar 6, 2023
9499e4f
Merge remote-tracking branch 'origin/master' into muharem-collectives…
muharem Mar 6, 2023
45a5976
weights with new api
muharem Mar 6, 2023
8453d33
Merge remote-tracking branch 'origin/muharem-collectives-fellowship' …
muharem Mar 6, 2023
a45f78a
update addresses
muharem Mar 6, 2023
4ba12cb
fix try runtime
muharem Mar 6, 2023
15aaa70
update addresses
muharem Mar 10, 2023
43b2e33
Merge remote-tracking branch 'origin/master' into muharem-fellowship-…
muharem Mar 21, 2023
ad89df1
Merge remote-tracking branch 'origin/master' into muharem-fellowship-…
Apr 3, 2023
6a32bbe
use pallet api to import the members
muharem Apr 5, 2023
7e75e5d
Merge remote-tracking branch 'origin/master' into muharem-fellowship-…
muharem Apr 5, 2023
f46644f
merge fix
muharem Apr 5, 2023
42b1ca9
hex-literal version
muharem Apr 5, 2023
66a61d0
add Bradley to the 1 rank
muharem Apr 9, 2023
4e9401f
Merge remote-tracking branch 'origin/master' into muharem-fellowship-…
muharem Apr 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
renames
  • Loading branch information
muharem committed Feb 25, 2023
commit 73a2f36a7b7063d14c81188a94e8f08fa622acbe
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub mod account {
use frame_support::PalletId;

/// Relay Chain treasury pallet id, used to convert into AccountId
pub const RELAY_TREASURY_PALL_ID: PalletId = PalletId(*b"py/trsry");
pub const RELAY_TREASURY_PALLET_ID: PalletId = PalletId(*b"py/trsry");
/// Alliance pallet id.
/// It is used as a temporarily place to deposit a slashed imbalance
/// before the teleport to the treasury.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub use origins::{

use crate::{
constants, impls::ToParentTreasury, weights, AccountId, Balance, Balances, BlockNumber,
DotLocation, FellowshipReferenda, Preimage, Runtime, RuntimeCall, RuntimeEvent, Scheduler,
DAYS,
DotLocation, FellowshipReferenda, Preimage, RelayTreasuryAccount, Runtime, RuntimeCall,
RuntimeEvent, Scheduler, DAYS,
};
use frame_support::{
parameter_types,
Expand All @@ -48,7 +48,7 @@ use self::origins::EnsureFellowship;
pub mod ranks {
use pallet_ranked_collective::Rank;

pub const INITIATES: Rank = 0;
pub const CANDIDATES: Rank = 0;
pub const DAN_1: Rank = 1;
pub const DAN_2: Rank = 2;
pub const DAN_3: Rank = 3; // aka Fellows.
Expand All @@ -66,8 +66,7 @@ parameter_types! {
pub const UndecidingTimeout: BlockNumber = 7 * DAYS;
pub const TechnicalCommittee: BodyId = BodyId::Technical;
// Referenda pallet account, used to temporarily deposit slashed imbalance before teleporting.
pub ReferendaPalletAccId: AccountId = constants::account::REFERENDA_PALLET_ID.into_account_truncating();
pub RelayTreasuryAccId: AccountId = constants::account::RELAY_TREASURY_PALL_ID.into_account_truncating();
pub ReferendaPalletAccount: AccountId = constants::account::REFERENDA_PALLET_ID.into_account_truncating();
pub const FellowshipAdminBodyId: BodyId = BodyId::Index(FELLOWSHIP_ADMIN_INDEX);
}

Expand All @@ -85,7 +84,7 @@ impl pallet_referenda::Config<FellowshipReferendaInstance> for Runtime {
pallet_ranked_collective::EnsureMember<Runtime, FellowshipCollectiveInstance, 1>;
type CancelOrigin = FellowshipExperts;
type KillOrigin = FellowshipMasters;
type Slash = ToParentTreasury<RelayTreasuryAccId, ReferendaPalletAccId, Runtime>;
type Slash = ToParentTreasury<RelayTreasuryAccount, ReferendaPalletAccount, Runtime>;
type Votes = pallet_ranked_collective::Votes;
type Tally = pallet_ranked_collective::TallyOf<Runtime, FellowshipCollectiveInstance>;
type SubmissionDeposit = SubmissionDeposit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub mod pallet_origins {
() => {}
}
decl_unit_ensures!(
FellowshipInitiates: Rank = ranks::INITIATES,
FellowshipInitiates: Rank = ranks::CANDIDATES,
Fellows: Rank = ranks::DAN_3,
FellowshipExperts: Rank = ranks::DAN_5,
FellowshipMasters: Rank = ranks::DAN_7,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@ parameter_types! {
pub const AllyDeposit: Balance = 1_000 * UNITS; // 1,000 DOT bond to join as an Ally
// The Alliance pallet account, used as a temporary place to deposit a slashed imbalance
// before the teleport to the Treasury.
pub AlliancePalletAccId: AccountId = constants::account::ALLIANCE_PALLET_ID.into_account_truncating();
pub RelayTreasuryAccId: AccountId = constants::account::RELAY_TREASURY_PALL_ID.into_account_truncating();
pub AlliancePalletAccount: AccountId = constants::account::ALLIANCE_PALLET_ID.into_account_truncating();
pub RelayTreasuryAccount: AccountId = constants::account::RELAY_TREASURY_PALLET_ID.into_account_truncating();
// The number of blocks a member must wait between giving a retirement notice and retiring.
// Supposed to be greater than time required to `kick_member` with alliance motion.
pub const AllianceRetirementPeriod: BlockNumber = (90 * DAYS) + ALLIANCE_MOTION_DURATION;
Expand All @@ -481,7 +481,7 @@ impl pallet_alliance::Config for Runtime {
type MembershipManager = RootOrAllianceTwoThirdsMajority;
type AnnouncementOrigin = RootOrAllianceTwoThirdsMajority;
type Currency = Balances;
type Slashed = ToParentTreasury<RelayTreasuryAccId, AlliancePalletAccId, Runtime>;
type Slashed = ToParentTreasury<RelayTreasuryAccount, AlliancePalletAccount, Runtime>;
type InitializeMembers = AllianceMotion;
type MembershipChanged = AllianceMotion;
type RetirementPeriod = AllianceRetirementPeriod;
Expand Down