@dfinity/cmc
Advanced tools
Comparing version 3.2.2-next-2024-10-13 to 3.2.2-next-2024-10-15
{ | ||
"name": "@dfinity/cmc", | ||
"version": "3.2.2-next-2024-10-13", | ||
"version": "3.2.2-next-2024-10-15", | ||
"description": "A library for interfacing with the cycle minting canister.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -58,3 +58,3 @@ # cmc-js | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L13) | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L14) | ||
@@ -67,2 +67,3 @@ #### Methods | ||
- [notifyTopUp](#gear-notifytopup) | ||
- [getDefaultSubnets](#gear-getdefaultsubnets) | ||
@@ -75,3 +76,3 @@ ##### :gear: create | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L18) | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L15) | ||
@@ -86,3 +87,3 @@ ##### :gear: getIcpToCyclesConversionRate | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L37) | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L31) | ||
@@ -98,3 +99,3 @@ ##### :gear: notifyCreateCanister | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L54) | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L48) | ||
@@ -110,4 +111,21 @@ ##### :gear: notifyTopUp | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L82) | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L76) | ||
##### :gear: getDefaultSubnets | ||
This function calls the `get_default_subnets` method of the CMC canister, which returns a list of | ||
default subnets as `Principal` objects. It can be called as query or update. | ||
| Method | Type | | ||
| ------------------- | ------------------------------------------------------- | | ||
| `getDefaultSubnets` | `({ certified }?: QueryParams) => Promise<Principal[]>` | | ||
Parameters: | ||
- `params`: - The query parameters for the call. | ||
- `params.certified`: - Determines whether the response should be certified | ||
(default: non-certified if not specified). | ||
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L101) | ||
<!-- TSDOC_END --> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109986
126