New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dfinity/ic-management

Package Overview
Dependencies
Maintainers
11
Versions
501
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfinity/ic-management - npm Package Compare versions

Comparing version 0.0.4-next-2023-06-30 to 0.0.4-next-2023-06-30.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc