@dfinity/ic-management
Advanced tools
Comparing version 0.0.4-next-2023-06-30 to 0.0.4-next-2023-06-30.1
{ | ||
"name": "@dfinity/ic-management", | ||
"version": "0.0.4-next-2023-06-30", | ||
"version": "0.0.4-next-2023-06-30.1", | ||
"description": "A library for interfacing with the IC management canister.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -60,4 +60,11 @@ # ic-management-js | ||
- [create](#gear-create) | ||
- [createCanister](#gear-createcanister) | ||
- [updateSettings](#gear-updatesettings) | ||
- [installCode](#gear-installcode) | ||
- [uninstallCode](#gear-uninstallcode) | ||
- [startCanister](#gear-startcanister) | ||
- [stopCanister](#gear-stopcanister) | ||
- [canisterStatus](#gear-canisterstatus) | ||
- [updateSettings](#gear-updatesettings) | ||
- [canisterInfo](#gear-canisterinfo) | ||
- [deleteCanister](#gear-deletecanister) | ||
@@ -70,9 +77,9 @@ ##### :gear: create | ||
##### :gear: canisterStatus | ||
##### :gear: createCanister | ||
Returns canister details (memory size, status, etc.) | ||
Create a new canister | ||
| Method | Type | | ||
| ---------------- | ------------------------------------------------------------ | | ||
| `canisterStatus` | `(canisterId: Principal) => Promise<CanisterStatusResponse>` | | ||
| Method | Type | | ||
| ---------------- | ------------------------------------------------------------------------------------ | | ||
| `createCanister` | `({ settings, senderCanisterVerion, }?: CreateCanisterParams) => Promise<Principal>` | | ||
@@ -83,6 +90,62 @@ ##### :gear: updateSettings | ||
| Method | Type | | ||
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `updateSettings` | `({ canisterId, settings: { controllers, freezingThreshold, memoryAllocation, computeAllocation, }, }: UpdateSettingsParams) => Promise<void>` | | ||
| Method | Type | | ||
| ---------------- | ------------------------------------------------------------------------------------------ | | ||
| `updateSettings` | `({ canisterId, senderCanisterVerion, settings, }: UpdateSettingsParams) => Promise<void>` | | ||
##### :gear: installCode | ||
Install code to a canister | ||
| Method | Type | | ||
| ------------- | ---------------------------------------------------------------------------------------------------- | | ||
| `installCode` | `({ mode, canisterId, wasmModule, arg, senderCanisterVerion, }: InstallCodeParams) => Promise<void>` | | ||
##### :gear: uninstallCode | ||
Uninstall code from a canister | ||
| Method | Type | | ||
| --------------- | ------------------------------------------------------------------------------- | | ||
| `uninstallCode` | `({ canisterId, senderCanisterVerion, }: UninstallCodeParams) => Promise<void>` | | ||
##### :gear: startCanister | ||
Start a canister | ||
| Method | Type | | ||
| --------------- | ------------------------------------------ | | ||
| `startCanister` | `(canisterId: Principal) => Promise<void>` | | ||
##### :gear: stopCanister | ||
Stop a canister | ||
| Method | Type | | ||
| -------------- | ------------------------------------------ | | ||
| `stopCanister` | `(canisterId: Principal) => Promise<void>` | | ||
##### :gear: canisterStatus | ||
Get canister details (memory size, status, etc.) | ||
| Method | Type | | ||
| ---------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | | ||
| `canisterStatus` | `(canisterId: Principal) => Promise<{ status: { stopped: null; } or { stopping: null; } | { running: null; }; memory_size: bigint; cycles: bigint; settings: definite_canister_settings; idle_cycles_burned_per_day: bigint; module_hash: [] | [...]; }>` | | ||
##### :gear: canisterInfo | ||
Get canister info (controllers, module hash, changes, etc.) | ||
| Method | Type | | ||
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| `canisterInfo` | `({ canisterId, numRequestChanges, }: CanisterInfoParams) => Promise<{ controllers: Principal[]; module_hash: [] or [Uint8Array]; recent_changes: change[]; total_num_changes: bigint; }>` | | ||
##### :gear: deleteCanister | ||
Deletes a canister | ||
| Method | Type | | ||
| ---------------- | ------------------------------------------ | | ||
| `deleteCanister` | `(canisterId: Principal) => Promise<void>` | | ||
<!-- TSDOC_END --> | ||
@@ -89,0 +152,0 @@ |
154758
153