Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 1 addition & 20 deletions cli/src/commands/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {isNullish} from '@dfinity/utils';
import kleur from 'kleur';
import {modules, troublemakers} from '../modules/modules';
import {modules} from '../modules/modules';
import {buildContext} from '../services/context.services';
import type {Module} from '../services/modules/module.services';
import type {CliContext} from '../types/context';
Expand All @@ -16,12 +16,6 @@ export const deploy = async (args?: string[]) => {
installFn: installModulesParallel,
postInstallFn: postInstallModulesParallel
});
await deployModules({
context,
mods: troublemakers,
installFn: installModulesSerial,
postInstallFn: postInstallModulesSerial
});
};

interface DeployModulesParams {
Expand Down Expand Up @@ -101,16 +95,3 @@ const postInstallModulesParallel = async ({
})
);
};

// Installing one after the other is slower 😢
const installModulesSerial = async ({context, mods}: {context: CliContext; mods: Module[]}) => {
for (const mod of mods) {
await mod.install(context);
}
};

const postInstallModulesSerial = async ({context, mods}: {context: CliContext; mods: Module[]}) => {
for (const mod of mods) {
await mod.postInstall(context);
}
};
2 changes: 2 additions & 0 deletions cli/src/constants/modules.constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const NEURON_ID = 666n;

export const ICP_LEDGER_CANISTER_ID = 'ryjl3-tyaaa-aaaaa-aaaba-cai';
46 changes: 0 additions & 46 deletions cli/src/modules/cmc/cmc.install.ts

This file was deleted.

60 changes: 0 additions & 60 deletions cli/src/modules/cmc/cmc.post-install.ts

This file was deleted.

47 changes: 0 additions & 47 deletions cli/src/modules/cmc/index.ts

This file was deleted.

142 changes: 0 additions & 142 deletions cli/src/modules/governance/governance.install.ts

This file was deleted.

Loading
Loading