@dfinity/cmc 5.0.3 → 5.0.4-next-2025-04-15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -57,14 +57,9 @@ const rate = await getIcpToCyclesConversionRate();
57
57
 
58
58
  [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L15)
59
59
 
60
- #### Methods
60
+ #### Static Methods
61
61
 
62
62
  - [create](#gear-create)
63
- - [getIcpToCyclesConversionRate](#gear-geticptocyclesconversionrate)
64
- - [notifyCreateCanister](#gear-notifycreatecanister)
65
- - [notifyTopUp](#gear-notifytopup)
66
- - [getDefaultSubnets](#gear-getdefaultsubnets)
67
- - [getSubnetTypesToSubnets](#gear-getsubnettypestosubnets)
68
63
 
69
64
  ##### :gear: create
70
65
 
@@ -74,6 +69,14 @@ const rate = await getIcpToCyclesConversionRate();
74
69
 
75
70
  [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L16)
76
71
 
72
+ #### Methods
73
+
74
+ - [getIcpToCyclesConversionRate](#gear-geticptocyclesconversionrate)
75
+ - [notifyCreateCanister](#gear-notifycreatecanister)
76
+ - [notifyTopUp](#gear-notifytopup)
77
+ - [getDefaultSubnets](#gear-getdefaultsubnets)
78
+ - [getSubnetTypesToSubnets](#gear-getsubnettypestosubnets)
79
+
77
80
  ##### :gear: getIcpToCyclesConversionRate
78
81
 
79
82
  Returns conversion rate of ICP to Cycles. It can be called as query or update.
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 2f02a66 (2025-02-13 tags: release-2025-02-20_10-16-disable-best-effort-messaging) 'rs/nns/cmc/cmc.did' by import-candid
1
+ // Generated from IC repo commit 148ccc9 (2025-04-04 tags: rosetta-icrc-release-1.2.0) 'rs/nns/cmc/cmc.did' by import-candid
2
2
  type Cycles = nat;
3
3
  type BlockIndex = nat64;
4
4
  type log_visibility = variant {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfinity/cmc",
3
- "version": "5.0.3",
3
+ "version": "5.0.4-next-2025-04-15",
4
4
  "description": "A library for interfacing with the cycle minting canister.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/cjs/index.cjs.js",
@@ -36,9 +36,9 @@
36
36
  ],
37
37
  "homepage": "https://github.com/dfinity/ic-js#readme",
38
38
  "peerDependencies": {
39
- "@dfinity/agent": "^2.0.0",
40
- "@dfinity/candid": "^2.0.0",
41
- "@dfinity/principal": "^2.0.0",
42
- "@dfinity/utils": "^2.11.0"
39
+ "@dfinity/agent": "*",
40
+ "@dfinity/candid": "*",
41
+ "@dfinity/principal": "*",
42
+ "@dfinity/utils": "*"
43
43
  }
44
- }
44
+ }