@dfinity/nns 10.0.1-beta-2025-09-25 → 10.0.1-beta-2025-09-30
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 +8 -8
- package/dist/candid/genesis_token.certified.idl.d.ts +1 -1
- package/dist/candid/genesis_token.d.ts +3 -3
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/genesis_token.idl.d.ts +1 -1
- package/dist/candid/governance.certified.idl.d.ts +1 -1
- package/dist/candid/governance.d.ts +3 -3
- package/dist/candid/governance.did +1 -1
- package/dist/candid/governance.idl.d.ts +1 -1
- package/dist/candid/governance_test.certified.idl.d.ts +1 -1
- package/dist/candid/governance_test.d.ts +3 -3
- package/dist/candid/governance_test.did +1 -1
- package/dist/candid/governance_test.idl.d.ts +1 -1
- package/dist/candid/old_list_neurons_service.certified.idl.d.ts +1 -1
- package/dist/candid/sns_wasm.certified.idl.d.ts +1 -1
- package/dist/candid/sns_wasm.d.ts +3 -3
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/candid/sns_wasm.idl.d.ts +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/{chunk-XWQAKSHF.js → chunk-GJ7FSPCW.js} +2 -2
- package/dist/esm/chunk-GJ7FSPCW.js.map +7 -0
- package/dist/esm/{chunk-CS7WUCJI.js → chunk-LT33VVWB.js} +2 -2
- package/dist/esm/chunk-W6BBRGPQ.js +2 -0
- package/dist/esm/chunk-W6BBRGPQ.js.map +7 -0
- package/dist/esm/chunk-ZJT35CRS.js +8 -0
- package/dist/esm/chunk-ZJT35CRS.js.map +7 -0
- package/dist/esm/genesis_token.canister.js +1 -1
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/sns_wasm.canister.js +1 -1
- package/dist/types/canisters/governance/request.converters.d.ts +1 -1
- package/dist/types/canisters/governance/response.converters.d.ts +1 -1
- package/dist/types/constants/canister_ids.d.ts +1 -1
- package/dist/types/governance.canister.d.ts +1 -1
- package/dist/types/types/governance.options.d.ts +1 -1
- package/dist/types/types/governance_converters.d.ts +2 -2
- package/dist/types/utils/account_identifier.utils.d.ts +1 -1
- package/dist/types/utils/neurons.utils.d.ts +1 -1
- package/package.json +5 -4
- package/dist/esm/chunk-6TEZVJE2.js +0 -8
- package/dist/esm/chunk-6TEZVJE2.js.map +0 -7
- package/dist/esm/chunk-S3UCOEJ5.js +0 -2
- package/dist/esm/chunk-S3UCOEJ5.js.map +0 -7
- package/dist/esm/chunk-XWQAKSHF.js.map +0 -7
- /package/dist/esm/{chunk-CS7WUCJI.js.map → chunk-LT33VVWB.js.map} +0 -0
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ npm i @dfinity/nns
|
|
|
21
21
|
The bundle needs peer dependencies, be sure that following resources are available in your project as well.
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm i @
|
|
24
|
+
npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
@@ -49,7 +49,7 @@ To execute this on a local environment, you will need to fetch the root key when
|
|
|
49
49
|
|
|
50
50
|
```typescript
|
|
51
51
|
import { GovernanceCanister } from "@dfinity/nns";
|
|
52
|
-
import { Principal } from "@
|
|
52
|
+
import { Principal } from "@dfinity/principal";
|
|
53
53
|
import { createAgent } from "@dfinity/utils";
|
|
54
54
|
|
|
55
55
|
const agent = await createAgent({
|
|
@@ -531,9 +531,9 @@ Parameters:
|
|
|
531
531
|
|
|
532
532
|
Merge Maturity of a neuron
|
|
533
533
|
|
|
534
|
-
| Method | Type
|
|
535
|
-
| ------------- |
|
|
536
|
-
| `spawnNeuron` | `({ neuronId, percentageToSpawn, newController, nonce, }: { neuronId: bigint; percentageToSpawn?: number or undefined; newController?:
|
|
534
|
+
| Method | Type |
|
|
535
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
536
|
+
| `spawnNeuron` | `({ neuronId, percentageToSpawn, newController, nonce, }: { neuronId: bigint; percentageToSpawn?: number or undefined; newController?: Principal or undefined; nonce?: bigint or undefined; }) => Promise<bigint>` |
|
|
537
537
|
|
|
538
538
|
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L865)
|
|
539
539
|
|
|
@@ -561,9 +561,9 @@ Remove hotkey to neuron
|
|
|
561
561
|
|
|
562
562
|
Gets the NeuronID of a newly created neuron.
|
|
563
563
|
|
|
564
|
-
| Method | Type
|
|
565
|
-
| --------------------------------- |
|
|
566
|
-
| `claimOrRefreshNeuronFromAccount` | `({ memo, controller, }: { memo: bigint; controller?:
|
|
564
|
+
| Method | Type |
|
|
565
|
+
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
566
|
+
| `claimOrRefreshNeuronFromAccount` | `({ memo, controller, }: { memo: bigint; controller?: Principal or undefined; }) => Promise<bigint or undefined>` |
|
|
567
567
|
|
|
568
568
|
[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/nns/src/governance.canister.ts#L950)
|
|
569
569
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IDL } from "@
|
|
1
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from "@
|
|
2
|
-
import type { IDL } from "@
|
|
3
|
-
import type { Principal } from "@
|
|
1
|
+
import type { ActorMethod } from "@dfinity/agent";
|
|
2
|
+
import type { IDL } from "@dfinity/candid";
|
|
3
|
+
import type { Principal } from "@dfinity/principal";
|
|
4
4
|
|
|
5
5
|
export interface AccountState {
|
|
6
6
|
authenticated_principal_id: [] | [Principal];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 206b61a (2025-09-25 tags: release-2025-09-25_09-52-base) 'rs/nns/gtc/canister/gtc.did' by import-candid
|
|
2
2
|
type AccountState = record {
|
|
3
3
|
authenticated_principal_id : opt principal;
|
|
4
4
|
successfully_transferred_neurons : vec TransferredNeuron;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IDL } from "@
|
|
1
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IDL } from "@
|
|
1
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from "@
|
|
2
|
-
import type { IDL } from "@
|
|
3
|
-
import type { Principal } from "@
|
|
1
|
+
import type { ActorMethod } from "@dfinity/agent";
|
|
2
|
+
import type { IDL } from "@dfinity/candid";
|
|
3
|
+
import type { Principal } from "@dfinity/principal";
|
|
4
4
|
|
|
5
5
|
export interface Account {
|
|
6
6
|
owner: [] | [Principal];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 206b61a (2025-09-25 tags: release-2025-09-25_09-52-base) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IDL } from "@
|
|
1
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IDL } from "@
|
|
1
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from "@
|
|
2
|
-
import type { IDL } from "@
|
|
3
|
-
import type { Principal } from "@
|
|
1
|
+
import type { ActorMethod } from "@dfinity/agent";
|
|
2
|
+
import type { IDL } from "@dfinity/candid";
|
|
3
|
+
import type { Principal } from "@dfinity/principal";
|
|
4
4
|
|
|
5
5
|
export interface Account {
|
|
6
6
|
owner: [] | [Principal];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 206b61a (2025-09-25 tags: release-2025-09-25_09-52-base) 'rs/nns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IDL } from "@
|
|
1
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IDL } from "@
|
|
1
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IDL } from "@
|
|
1
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from "@
|
|
2
|
-
import type { IDL } from "@
|
|
3
|
-
import type { Principal } from "@
|
|
1
|
+
import type { ActorMethod } from "@dfinity/agent";
|
|
2
|
+
import type { IDL } from "@dfinity/candid";
|
|
3
|
+
import type { Principal } from "@dfinity/principal";
|
|
4
4
|
|
|
5
5
|
export interface AddWasmRequest {
|
|
6
6
|
hash: Uint8Array | number[];
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 206b61a (2025-09-25 tags: release-2025-09-25_09-52-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
|
|
2
2
|
type AddWasmRequest = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
wasm : opt SnsWasm;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IDL } from "@
|
|
1
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
2
|
export const idlFactory: IDL.InterfaceFactory;
|