From 7c772cb725c5f0e83de1aba1bcb280eabb2961f2 Mon Sep 17 00:00:00 2001 From: Andrea Giacobino Date: Sun, 28 Apr 2024 16:07:08 +0200 Subject: [PATCH] update collective manipulation for OpenTechCommitteeCollective --- src/libs/helpers/state-manipulator/README.md | 5 ++--- src/libs/helpers/state-manipulator/state-manager.ts | 6 ++---- test/state-manipulation.spec.ts | 3 +-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/libs/helpers/state-manipulator/README.md b/src/libs/helpers/state-manipulator/README.md index 8fff0d3..5f2f2be 100644 --- a/src/libs/helpers/state-manipulator/README.md +++ b/src/libs/helpers/state-manipulator/README.md @@ -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(), diff --git a/src/libs/helpers/state-manipulator/state-manager.ts b/src/libs/helpers/state-manipulator/state-manager.ts index 648b98b..e52a5a0 100644 --- a/src/libs/helpers/state-manipulator/state-manager.ts +++ b/src/libs/helpers/state-manipulator/state-manager.ts @@ -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([ @@ -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 }]), diff --git a/test/state-manipulation.spec.ts b/test/state-manipulation.spec.ts index 968e943..7ad99d0 100644 --- a/test/state-manipulation.spec.ts +++ b/test/state-manipulation.spec.ts @@ -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({