@dfinity/cmc 5.0.6 → 5.0.7-beta-2025-07-18.1
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 +22 -0
- package/dist/candid/cmc.did +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -90,6 +90,10 @@ Parameters:
|
|
|
90
90
|
- `params`: - The parameters for the call.
|
|
91
91
|
- `params.certified`: - Determines whether the response should be certified (default: non-certified)
|
|
92
92
|
|
|
93
|
+
Returns:
|
|
94
|
+
|
|
95
|
+
Promise<BigInt>
|
|
96
|
+
|
|
93
97
|
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L35)
|
|
94
98
|
|
|
95
99
|
##### :gear: notifyCreateCanister
|
|
@@ -101,6 +105,10 @@ It returns the new canister principal.
|
|
|
101
105
|
| ---------------------- | ---------------------------------------------------------- |
|
|
102
106
|
| `notifyCreateCanister` | `(request: NotifyCreateCanisterArg) => Promise<Principal>` |
|
|
103
107
|
|
|
108
|
+
Returns:
|
|
109
|
+
|
|
110
|
+
Promise<Principal>
|
|
111
|
+
|
|
104
112
|
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L57)
|
|
105
113
|
|
|
106
114
|
##### :gear: notifyTopUp
|
|
@@ -112,6 +120,10 @@ It returns the new Cycles of the canister.
|
|
|
112
120
|
| ------------- | ---------------------------------------------- |
|
|
113
121
|
| `notifyTopUp` | `(request: NotifyTopUpArg) => Promise<bigint>` |
|
|
114
122
|
|
|
123
|
+
Returns:
|
|
124
|
+
|
|
125
|
+
Promise<Cycles>
|
|
126
|
+
|
|
115
127
|
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L85)
|
|
116
128
|
|
|
117
129
|
##### :gear: getDefaultSubnets
|
|
@@ -129,6 +141,11 @@ Parameters:
|
|
|
129
141
|
- `params.certified`: - Determines whether the response should be certified
|
|
130
142
|
(default: non-certified if not specified).
|
|
131
143
|
|
|
144
|
+
Returns:
|
|
145
|
+
|
|
146
|
+
- A promise that resolves to an array of `Principal` objects
|
|
147
|
+
representing the default subnets.
|
|
148
|
+
|
|
132
149
|
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L110)
|
|
133
150
|
|
|
134
151
|
##### :gear: getSubnetTypesToSubnets
|
|
@@ -147,6 +164,11 @@ Parameters:
|
|
|
147
164
|
- `params.certified`: - Specifies whether the response should be certified.
|
|
148
165
|
If not provided, the response defaults to non-certified.
|
|
149
166
|
|
|
167
|
+
Returns:
|
|
168
|
+
|
|
169
|
+
- A promise that resolves to an object representing
|
|
170
|
+
the mapping of subnet types to subnets.
|
|
171
|
+
|
|
150
172
|
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/cmc/src/cmc.canister.ts#L129)
|
|
151
173
|
|
|
152
174
|
<!-- TSDOC_END -->
|
package/dist/candid/cmc.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit e915efe (2025-07-02 tags: release-2025-07-03_03-27-base) '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
|
+
"version": "5.0.7-beta-2025-07-18.1",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"ts-declaration": "tsc --emitDeclarationOnly --outDir dist/types",
|
|
17
17
|
"build": "npm run rmdir && mkdir -p dist && cp -R candid dist && node esbuild.mjs && npm run ts-declaration",
|
|
18
18
|
"prepack": "npm run build",
|
|
19
|
-
"test": "
|
|
19
|
+
"test": "vitest"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
@@ -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": "*",
|
|
40
|
+
"@dfinity/candid": "*",
|
|
41
|
+
"@dfinity/principal": "*",
|
|
42
|
+
"@dfinity/utils": "*"
|
|
43
43
|
}
|
|
44
|
-
}
|
|
44
|
+
}
|