Skip to content

Commit ae5e4e1

Browse files
feat: remove custom install IC canisters (#264)
1 parent cc055a3 commit ae5e4e1

13 files changed

Lines changed: 5 additions & 600 deletions

File tree

cli/src/commands/deploy.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {isNullish} from '@dfinity/utils';
22
import kleur from 'kleur';
3-
import {modules, troublemakers} from '../modules/modules';
3+
import {modules} from '../modules/modules';
44
import {buildContext} from '../services/context.services';
55
import type {Module} from '../services/modules/module.services';
66
import type {CliContext} from '../types/context';
@@ -16,12 +16,6 @@ export const deploy = async (args?: string[]) => {
1616
installFn: installModulesParallel,
1717
postInstallFn: postInstallModulesParallel
1818
});
19-
await deployModules({
20-
context,
21-
mods: troublemakers,
22-
installFn: installModulesSerial,
23-
postInstallFn: postInstallModulesSerial
24-
});
2519
};
2620

2721
interface DeployModulesParams {
@@ -101,16 +95,3 @@ const postInstallModulesParallel = async ({
10195
})
10296
);
10397
};
104-
105-
// Installing one after the other is slower 😢
106-
const installModulesSerial = async ({context, mods}: {context: CliContext; mods: Module[]}) => {
107-
for (const mod of mods) {
108-
await mod.install(context);
109-
}
110-
};
111-
112-
const postInstallModulesSerial = async ({context, mods}: {context: CliContext; mods: Module[]}) => {
113-
for (const mod of mods) {
114-
await mod.postInstall(context);
115-
}
116-
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
export const NEURON_ID = 666n;
2+
3+
export const ICP_LEDGER_CANISTER_ID = 'ryjl3-tyaaa-aaaaa-aaaba-cai';

cli/src/modules/cmc/cmc.install.ts

Lines changed: 0 additions & 46 deletions
This file was deleted.

cli/src/modules/cmc/cmc.post-install.ts

Lines changed: 0 additions & 60 deletions
This file was deleted.

cli/src/modules/cmc/index.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

cli/src/modules/governance/governance.install.ts

Lines changed: 0 additions & 142 deletions
This file was deleted.

0 commit comments

Comments
 (0)