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
184 changes: 40 additions & 144 deletions cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"lint": "eslint --max-warnings 0 'src/**/*.ts'"
},
"dependencies": {
"@icp-sdk/canisters": "^2.0.1",
"@icp-sdk/canisters": "^3.0.0",
"@icp-sdk/core": "^4.2.3",
"@junobuild/admin": "^3.0.4",
"@junobuild/cdn": "^2.0.4",
"@junobuild/admin": "^3.1.0",
"@junobuild/cdn": "^2.1.0",
"@junobuild/cli-tools": "^0.9.4",
"@junobuild/config": "^2.7.0",
"@junobuild/config-loader": "^0.4.6",
Expand Down
6 changes: 3 additions & 3 deletions cli/src/constants/upgrade.constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {canister_install_mode} from '@icp-sdk/canisters/ic-management';
import type {IcManagementDid} from '@icp-sdk/canisters/ic-management';

export const INSTALL_MODE_INSTALL: canister_install_mode = {install: null};
export const INSTALL_MODE_INSTALL: IcManagementDid.canister_install_mode = {install: null};

export const INSTALL_MODE_UPGRADE: canister_install_mode = {
export const INSTALL_MODE_UPGRADE: IcManagementDid.canister_install_mode = {
upgrade: [{skip_pre_upgrade: [false], wasm_memory_persistence: [{replace: null}]}]
};
4 changes: 2 additions & 2 deletions cli/src/modules/cmc/cmc.post-install.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {hexStringToUint8Array} from '@dfinity/utils';
import {GovernanceCanister, NnsFunction, type MakeProposalRequest} from '@icp-sdk/canisters/nns';
import {NnsFunction, NnsGovernanceCanister, type MakeProposalRequest} from '@icp-sdk/canisters/nns';
import {IC_ROOT_KEY} from '@icp-sdk/core/agent';
import {IDL} from '@icp-sdk/core/candid';
import {Principal} from '@icp-sdk/core/principal';
Expand All @@ -19,7 +19,7 @@ export const makeAuthorizedSubnetworksProposal = async ({
port
});

const {makeProposal} = GovernanceCanister.create({
const {makeProposal} = NnsGovernanceCanister.create({
agent
});

Expand Down
4 changes: 2 additions & 2 deletions cli/src/modules/governance/governance.post-install.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {GovernanceCanister, NnsFunction, type MakeProposalRequest} from '@icp-sdk/canisters/nns';
import {NnsFunction, NnsGovernanceCanister, type MakeProposalRequest} from '@icp-sdk/canisters/nns';
import {IDL} from '@icp-sdk/core/candid';
import {createAgent} from '../../api/agent.api';
import {MAIN_IDENTITY_KEY} from '../../constants/constants';
Expand All @@ -16,7 +16,7 @@ export const makeIcpXdrProposal = async ({
port
});

const {makeProposal} = GovernanceCanister.create({
const {makeProposal} = NnsGovernanceCanister.create({
agent
});

Expand Down
4 changes: 2 additions & 2 deletions cli/src/modules/satellite/dynamic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {fromNullable, isNullish, nonNullish, uint8ArrayToHexString} from '@dfinity/utils';
import {ICManagementCanister} from '@icp-sdk/canisters/ic-management';
import {IcManagementCanister} from '@icp-sdk/canisters/ic-management';
import {Principal} from '@icp-sdk/core/principal';
import {
junoConfigExist as junoConfigExistTools,
Expand Down Expand Up @@ -71,7 +71,7 @@ class SatelliteDynamicModule extends SatelliteModule {
}: SatelliteDynamicModuleRegisterParams): Promise<string | undefined> {
const {agent} = context;

const {canisterStatus} = ICManagementCanister.create({
const {canisterStatus} = IcManagementCanister.create({
agent
});

Expand Down
4 changes: 2 additions & 2 deletions cli/src/modules/satellite/satellite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {isNullish} from '@dfinity/utils';
import type {PrincipalText} from '@dfinity/zod-schemas';
import {ICManagementCanister} from '@icp-sdk/canisters/ic-management';
import {IcManagementCanister} from '@icp-sdk/canisters/ic-management';
import {Principal} from '@icp-sdk/core/principal';
import {
listSatelliteControllers,
Expand Down Expand Up @@ -74,7 +74,7 @@ export const setSatelliteControllers = async ({

// We do not have mission control in the satellite image, therefore we set the admin controllers ourselves.
if (admin.length > 0) {
const {updateSettings} = ICManagementCanister.create({
const {updateSettings} = IcManagementCanister.create({
agent
});

Expand Down
4 changes: 2 additions & 2 deletions cli/src/services/modules/juno.module.services.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {isNullish} from '@dfinity/utils';
import {ICManagementCanister} from '@icp-sdk/canisters/ic-management';
import {IcManagementCanister} from '@icp-sdk/canisters/ic-management';
import {Principal} from '@icp-sdk/core/principal';
import type {ControllerScope} from '../../declarations/console';
import type {CliContext} from '../../types/context';
Expand Down Expand Up @@ -37,7 +37,7 @@ export class JunoModule extends Module {

const updateControllers = async () => {
// Set the controller to the canister.
const {updateSettings, canisterStatus} = ICManagementCanister.create({
const {updateSettings, canisterStatus} = IcManagementCanister.create({
agent
});

Expand Down
Loading