Skip to content

Commit

Permalink
updated task
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Feb 3, 2025
1 parent d545326 commit 29622c1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/helpers/staticVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@ export const MULTISIG_UPDATE_V1_V2_DESCRIPTION =
"Prepares proposal for update V1 to V2";
export const MULTISIG_UPDATE_V2_V3_DESCRIPTION =
"Prepares proposal for update V2 to V3";
export const MULTISIG_UPDATE_V3_V4_DESCRIPTION =
"Prepares proposal for update V3 to V4";
export const MULTISIG_ENCODE_SET_MANAGER_DEPENDENCIES_DESCRIPTION =
"Encodes manager set dependencies";
1 change: 1 addition & 0 deletions lib/multiSig-tasks/multiSigTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ import "./encode-proposal-payload";
import "./encodeProposalSetDependencies";
import "./update-v1-to-v2";
import "./update-v2-to-v3";
import "./update-v3-to-v4";
9 changes: 5 additions & 4 deletions lib/multiSig-tasks/update-v3-to-v4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ import {
import {
ACCOUNT,
ACCOUNT_DESCRIPTION,
MULTISIG_UPDATE_V2_V3_DESCRIPTION,
MULTISIG_UPDATE_V3_V4_DESCRIPTION,
} from "../helpers/staticVariables";
import { taskLogger } from "../logger";
import {
MULTISIG_ENCODE_PROPOSAL_PAYLOAD,
MULTISIG_SUBMIT_PROPOSAL,
MULTISIG_UPDATE_V2_V3,
MULTISIG_UPDATE_V3_V4,
} from "../tasksNames";

task(MULTISIG_UPDATE_V2_V3, MULTISIG_UPDATE_V2_V3_DESCRIPTION)
task(MULTISIG_UPDATE_V3_V4, MULTISIG_UPDATE_V3_V4_DESCRIPTION)
.addOptionalParam(ACCOUNT, ACCOUNT_DESCRIPTION, undefined, types.string)
.setAction(async (args: TransactionArguments, hre) => {
try {
taskLogger.setLogLevel("info");
taskLogger.info(`${MULTISIG_UPDATE_V2_V3} task...`);
taskLogger.info(`${MULTISIG_UPDATE_V3_V4} task...`);
await setLocalNodeDeploymentPath(hre);
const destinations: string[] = [];
const values: number[] = [];
Expand All @@ -35,6 +35,7 @@ task(MULTISIG_UPDATE_V2_V3, MULTISIG_UPDATE_V2_V3_DESCRIPTION)
await generateContractUpdate(hre, "SpecificGroupStrategy", destinations, values, payloads);
await generateContractUpdate(hre, "DefaultStrategy", destinations, values, payloads);
await generateContractUpdate(hre, "Account", destinations, values, payloads);
await generateContractUpdate(hre, "Vote", destinations, values, payloads);

taskLogger.info("--destinations", destinations.join(","));
taskLogger.info("--values", values.join(","));
Expand Down
1 change: 1 addition & 0 deletions lib/tasksNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const MULTISIG_IS_CONFIRMED_BY = "stakedCelo:multiSig:isConfirmedBy";
export const MULTISIG_ENCODE_PROPOSAL_PAYLOAD = "stakedCelo:multiSig:encode:proposal:payload";
export const MULTISIG_UPDATE_V1_V2 = "stakedCelo:multiSig:update:v1:v2";
export const MULTISIG_UPDATE_V2_V3 = "stakedCelo:multiSig:update:v2:v3";
export const MULTISIG_UPDATE_V3_V4 = "stakedCelo:multiSig:update:v3:v4";
export const MULTISIG_ENCODE_SET_MANAGER_DEPENDENCIES =
"stakedCelo:multisig:encode:managerSetDependencies";

Expand Down

0 comments on commit 29622c1

Please sign in to comment.