@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.
Files changed (47) hide show
  1. package/README.md +8 -8
  2. package/dist/candid/genesis_token.certified.idl.d.ts +1 -1
  3. package/dist/candid/genesis_token.d.ts +3 -3
  4. package/dist/candid/genesis_token.did +1 -1
  5. package/dist/candid/genesis_token.idl.d.ts +1 -1
  6. package/dist/candid/governance.certified.idl.d.ts +1 -1
  7. package/dist/candid/governance.d.ts +3 -3
  8. package/dist/candid/governance.did +1 -1
  9. package/dist/candid/governance.idl.d.ts +1 -1
  10. package/dist/candid/governance_test.certified.idl.d.ts +1 -1
  11. package/dist/candid/governance_test.d.ts +3 -3
  12. package/dist/candid/governance_test.did +1 -1
  13. package/dist/candid/governance_test.idl.d.ts +1 -1
  14. package/dist/candid/old_list_neurons_service.certified.idl.d.ts +1 -1
  15. package/dist/candid/sns_wasm.certified.idl.d.ts +1 -1
  16. package/dist/candid/sns_wasm.d.ts +3 -3
  17. package/dist/candid/sns_wasm.did +1 -1
  18. package/dist/candid/sns_wasm.idl.d.ts +1 -1
  19. package/dist/cjs/index.cjs.js +2 -2
  20. package/dist/cjs/index.cjs.js.map +3 -3
  21. package/dist/esm/{chunk-XWQAKSHF.js → chunk-GJ7FSPCW.js} +2 -2
  22. package/dist/esm/chunk-GJ7FSPCW.js.map +7 -0
  23. package/dist/esm/{chunk-CS7WUCJI.js → chunk-LT33VVWB.js} +2 -2
  24. package/dist/esm/chunk-W6BBRGPQ.js +2 -0
  25. package/dist/esm/chunk-W6BBRGPQ.js.map +7 -0
  26. package/dist/esm/chunk-ZJT35CRS.js +8 -0
  27. package/dist/esm/chunk-ZJT35CRS.js.map +7 -0
  28. package/dist/esm/genesis_token.canister.js +1 -1
  29. package/dist/esm/governance.canister.js +1 -1
  30. package/dist/esm/index.js +1 -1
  31. package/dist/esm/index.js.map +2 -2
  32. package/dist/esm/sns_wasm.canister.js +1 -1
  33. package/dist/types/canisters/governance/request.converters.d.ts +1 -1
  34. package/dist/types/canisters/governance/response.converters.d.ts +1 -1
  35. package/dist/types/constants/canister_ids.d.ts +1 -1
  36. package/dist/types/governance.canister.d.ts +1 -1
  37. package/dist/types/types/governance.options.d.ts +1 -1
  38. package/dist/types/types/governance_converters.d.ts +2 -2
  39. package/dist/types/utils/account_identifier.utils.d.ts +1 -1
  40. package/dist/types/utils/neurons.utils.d.ts +1 -1
  41. package/package.json +5 -4
  42. package/dist/esm/chunk-6TEZVJE2.js +0 -8
  43. package/dist/esm/chunk-6TEZVJE2.js.map +0 -7
  44. package/dist/esm/chunk-S3UCOEJ5.js +0 -2
  45. package/dist/esm/chunk-S3UCOEJ5.js.map +0 -7
  46. package/dist/esm/chunk-XWQAKSHF.js.map +0 -7
  47. /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 @icp-sdk/core @dfinity/utils
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 "@icp-sdk/core/principal";
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?: any; nonce?: bigint or undefined; }) => Promise<bigint>` |
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?: any; }) => Promise<bigint or undefined>` |
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 "@icp-sdk/core/candid";
1
+ import type { IDL } from "@dfinity/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,6 +1,6 @@
1
- import type { ActorMethod } from "@icp-sdk/core/agent";
2
- import type { IDL } from "@icp-sdk/core/candid";
3
- import type { Principal } from "@icp-sdk/core/principal";
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 bf0d4d1 (2025-09-19 tags: release-2025-09-19_10-17-base) 'rs/nns/gtc/canister/gtc.did' by import-candid
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 "@icp-sdk/core/candid";
1
+ import type { IDL } from "@dfinity/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@icp-sdk/core/candid";
1
+ import type { IDL } from "@dfinity/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,6 +1,6 @@
1
- import type { ActorMethod } from "@icp-sdk/core/agent";
2
- import type { IDL } from "@icp-sdk/core/candid";
3
- import type { Principal } from "@icp-sdk/core/principal";
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 bf0d4d1 (2025-09-19 tags: release-2025-09-19_10-17-base) 'rs/nns/governance/canister/governance.did' by import-candid
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 "@icp-sdk/core/candid";
1
+ import type { IDL } from "@dfinity/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@icp-sdk/core/candid";
1
+ import type { IDL } from "@dfinity/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,6 +1,6 @@
1
- import type { ActorMethod } from "@icp-sdk/core/agent";
2
- import type { IDL } from "@icp-sdk/core/candid";
3
- import type { Principal } from "@icp-sdk/core/principal";
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 bf0d4d1 (2025-09-19 tags: release-2025-09-19_10-17-base) 'rs/nns/governance/canister/governance_test.did' by import-candid
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 "@icp-sdk/core/candid";
1
+ import type { IDL } from "@dfinity/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@icp-sdk/core/candid";
1
+ import type { IDL } from "@dfinity/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,2 +1,2 @@
1
- import type { IDL } from "@icp-sdk/core/candid";
1
+ import type { IDL } from "@dfinity/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;
@@ -1,6 +1,6 @@
1
- import type { ActorMethod } from "@icp-sdk/core/agent";
2
- import type { IDL } from "@icp-sdk/core/candid";
3
- import type { Principal } from "@icp-sdk/core/principal";
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[];
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit bf0d4d1 (2025-09-19 tags: release-2025-09-19_10-17-base) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
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 "@icp-sdk/core/candid";
1
+ import type { IDL } from "@dfinity/candid";
2
2
  export const idlFactory: IDL.InterfaceFactory;