Skip to content

Commit

Permalink
update collective manipulation for OpenTechCommitteeCollective
Browse files Browse the repository at this point in the history
  • Loading branch information
noandrea committed Apr 28, 2024
1 parent 2285005 commit 7c772cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/libs/helpers/state-manipulator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ await processState(stateFile, stateFile.replace(/.json$/, ".mod.json"), [
relayChain: `rococo-local`,
}),

// Make the Council & Technical committee governed by Alith
new CollectiveManipulator("TechCommitteeCollective", [ALITH_ADDRESS]),
new CollectiveManipulator("CouncilCollective", [ALITH_ADDRESS]),
// Make the Open Technical committee governed by Alith
new CollectiveManipulator("OpenTechCommitteeCollective", [ALITH_ADDRESS]),

// Reset the validation data
new ValidationManipulator(),
Expand Down
6 changes: 2 additions & 4 deletions src/libs/helpers/state-manipulator/state-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ export async function neutralizeExportedState(
name: `Fork Network`,
relayChain: `rococo-local`,
}),
new CollectiveManipulator("TechCommitteeCollective", [ALITH_ADDRESS]),
new CollectiveManipulator("CouncilCollective", [ALITH_ADDRESS]),
new CollectiveManipulator("OpenTechCommitteeCollective", [ALITH_ADDRESS]),
new ValidationManipulator(),
new XCMPManipulator(),
new BalancesManipulator([
Expand Down Expand Up @@ -259,8 +258,7 @@ export async function insertParachainCodeIntoRelay(inFile: string, outFile: stri
name: `Fork Network`,
relayChain: `rococo-local`,
}),
new CollectiveManipulator("TechCommitteeCollective", [ALITH_ADDRESS]),
new CollectiveManipulator("CouncilCollective", [ALITH_ADDRESS]),
new CollectiveManipulator("OpenTechCommitteeCollective", [ALITH_ADDRESS]),
new ValidationManipulator(),
new XCMPManipulator(),
new BalancesManipulator([{ account: ALITH_ADDRESS, amount: 10_000n * 10n ** 18n }]),
Expand Down
3 changes: 1 addition & 2 deletions test/state-manipulation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ describe("State Manipulation", () => {
),
new CollatorManipulator(CHARLETH_ADDRESS, CHARLETH_SESSION_ADDRESS),
new HRMPManipulator(),
new CollectiveManipulator("TechCommitteeCollective", [CHARLETH_ADDRESS, HEATH_ADDRESS]),
new CollectiveManipulator("CouncilCollective", [JUDITH_ADDRESS]),
new CollectiveManipulator("OpenTechCommitteeCollective", [CHARLETH_ADDRESS, HEATH_ADDRESS]),
new ValidationManipulator(),
new XCMPManipulator(),
new SpecManipulator({
Expand Down

0 comments on commit 7c772cb

Please sign in to comment.