@dfinity/cmc 0.0.14-next-2023-07-03 → 0.0.14

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.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -55,6 +55,8 @@ const rate = await getIcpToCyclesConversionRate();
55
55
 
56
56
  ### :factory: CMCCanister
57
57
 
58
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L13)
59
+
58
60
  #### Methods
59
61
 
60
62
  - [create](#gear-create)
@@ -68,6 +70,8 @@ const rate = await getIcpToCyclesConversionRate();
68
70
  | -------- | ---------------------------------------------- |
69
71
  | `create` | `(options: CMCCanisterOptions) => CMCCanister` |
70
72
 
73
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L18)
74
+
71
75
  ##### :gear: getIcpToCyclesConversionRate
72
76
 
73
77
  Returns conversion rate of ICP to Cycles
@@ -76,6 +80,8 @@ Returns conversion rate of ICP to Cycles
76
80
  | ------------------------------ | ----------------------- |
77
81
  | `getIcpToCyclesConversionRate` | `() => Promise<bigint>` |
78
82
 
83
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L37)
84
+
79
85
  ##### :gear: notifyCreateCanister
80
86
 
81
87
  Notifies Cycles Minting Canister of the creation of a new canister.
@@ -85,6 +91,8 @@ It returns the new canister principal.
85
91
  | ---------------------- | ---------------------------------------------------------- |
86
92
  | `notifyCreateCanister` | `(request: NotifyCreateCanisterArg) => Promise<Principal>` |
87
93
 
94
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L54)
95
+
88
96
  ##### :gear: notifyTopUp
89
97
 
90
98
  Notifies Cycles Minting Canister of new cycles being added to canister.
@@ -94,4 +102,6 @@ It returns the new Cycles of the canister.
94
102
  | ------------- | ---------------------------------------------- |
95
103
  | `notifyTopUp` | `(request: NotifyTopUpArg) => Promise<bigint>` |
96
104
 
105
+ [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L82)
106
+
97
107
  <!-- TSDOC_END -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfinity/cmc",
3
- "version": "0.0.14-next-2023-07-03",
3
+ "version": "0.0.14",
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": "*",
40
- "@dfinity/candid": "*",
41
- "@dfinity/principal": "*",
42
- "@dfinity/utils": "*"
39
+ "@dfinity/agent": "^0.15.4",
40
+ "@dfinity/candid": "^0.15.4",
41
+ "@dfinity/principal": "^0.15.4",
42
+ "@dfinity/utils": "^0.0.18"
43
43
  }
44
- }
44
+ }