@dfinity/nns 11.1.1-next-2025-11-17.1 → 11.1.2

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -12,10 +12,10 @@ import type { Principal } from "@icp-sdk/core/principal";
12
12
 
13
13
  export interface Account {
14
14
  owner: [] | [Principal];
15
- subaccount: [] | [Uint8Array | number[]];
15
+ subaccount: [] | [Uint8Array];
16
16
  }
17
17
  export interface AccountIdentifier {
18
- hash: Uint8Array | number[];
18
+ hash: Uint8Array;
19
19
  }
20
20
  export type Action =
21
21
  | { RegisterKnownNeuron: KnownNeuron }
@@ -79,7 +79,7 @@ export interface CanisterStatusResultV2 {
79
79
  memory_size: [] | [bigint];
80
80
  cycles: [] | [bigint];
81
81
  idle_cycles_burned_per_day: [] | [bigint];
82
- module_hash: Uint8Array | number[];
82
+ module_hash: Uint8Array;
83
83
  }
84
84
  export interface CanisterSummary {
85
85
  status: [] | [CanisterStatusResultV2];
@@ -230,7 +230,7 @@ export interface Duration {
230
230
  }
231
231
  export interface ExecuteNnsFunction {
232
232
  nns_function: number;
233
- payload: Uint8Array | number[];
233
+ payload: Uint8Array;
234
234
  }
235
235
  export interface Follow {
236
236
  topic: number;
@@ -399,14 +399,14 @@ export interface InitialTokenDistribution {
399
399
  }
400
400
  export interface InstallCode {
401
401
  skip_stopping_before_installing: [] | [boolean];
402
- wasm_module_hash: [] | [Uint8Array | number[]];
402
+ wasm_module_hash: [] | [Uint8Array];
403
403
  canister_id: [] | [Principal];
404
- arg_hash: [] | [Uint8Array | number[]];
404
+ arg_hash: [] | [Uint8Array];
405
405
  install_mode: [] | [number];
406
406
  }
407
407
  export interface InstallCodeRequest {
408
- arg: [] | [Uint8Array | number[]];
409
- wasm_module: [] | [Uint8Array | number[]];
408
+ arg: [] | [Uint8Array];
409
+ wasm_module: [] | [Uint8Array];
410
410
  skip_stopping_before_installing: [] | [boolean];
411
411
  canister_id: [] | [Principal];
412
412
  install_mode: [] | [number];
@@ -483,7 +483,7 @@ export interface ListNeurons {
483
483
  /**
484
484
  * These fields select neurons to be in the result set.
485
485
  */
486
- neuron_ids: BigUint64Array | bigint[];
486
+ neuron_ids: BigUint64Array;
487
487
  page_number: [] | [bigint];
488
488
  /**
489
489
  * Only has an effect when include_neurons_readable_by_caller.
@@ -521,13 +521,13 @@ export interface ListNodeProvidersResponse {
521
521
  node_providers: Array<NodeProvider>;
522
522
  }
523
523
  export interface ListProposalInfoRequest {
524
- include_reward_status: Int32Array | number[];
524
+ include_reward_status: Int32Array;
525
525
  omit_large_fields: [] | [boolean];
526
526
  before_proposal: [] | [ProposalId];
527
527
  limit: number;
528
- exclude_topic: Int32Array | number[];
528
+ exclude_topic: Int32Array;
529
529
  include_all_manage_neuron_proposals: [] | [boolean];
530
- include_status: Int32Array | number[];
530
+ include_status: Int32Array;
531
531
  }
532
532
  export interface ListProposalInfoResponse {
533
533
  proposal_info: Array<ProposalInfo>;
@@ -723,7 +723,7 @@ export interface Neuron {
723
723
  auto_stake_maturity: [] | [boolean];
724
724
  aging_since_timestamp_seconds: bigint;
725
725
  hot_keys: Array<Principal>;
726
- account: Uint8Array | number[];
726
+ account: Uint8Array;
727
727
  joined_community_fund_timestamp_seconds: [] | [bigint];
728
728
  /**
729
729
  * The maturity disbursements in progress, i.e. the disbursements that are initiated but not
@@ -757,7 +757,7 @@ export interface NeuronId {
757
757
  id: bigint;
758
758
  }
759
759
  export type NeuronIdOrSubaccount =
760
- | { Subaccount: Uint8Array | number[] }
760
+ | { Subaccount: Uint8Array }
761
761
  | { NeuronId: NeuronId };
762
762
  export interface NeuronInFlightCommand {
763
763
  command: [] | [Command_2];
@@ -809,16 +809,16 @@ export interface NeuronInfo {
809
809
  age_seconds: bigint;
810
810
  }
811
811
  export interface NeuronStakeTransfer {
812
- to_subaccount: Uint8Array | number[];
812
+ to_subaccount: Uint8Array;
813
813
  neuron_stake_e8s: bigint;
814
814
  from: [] | [Principal];
815
815
  memo: bigint;
816
- from_subaccount: Uint8Array | number[];
816
+ from_subaccount: Uint8Array;
817
817
  transfer_timestamp: bigint;
818
818
  block_height: bigint;
819
819
  }
820
820
  export interface NeuronSubaccount {
821
- subaccount: Uint8Array | number[];
821
+ subaccount: Uint8Array;
822
822
  }
823
823
  export interface NeuronSubsetMetrics {
824
824
  total_maturity_e8s_equivalent: [] | [bigint];
@@ -1289,7 +1289,7 @@ export interface _SERVICE {
1289
1289
  [] | [MonthlyNodeProviderRewards]
1290
1290
  >;
1291
1291
  get_network_economics_parameters: ActorMethod<[], NetworkEconomics>;
1292
- get_neuron_ids: ActorMethod<[], BigUint64Array | bigint[]>;
1292
+ get_neuron_ids: ActorMethod<[], BigUint64Array>;
1293
1293
  get_neuron_index: ActorMethod<[GetNeuronIndexRequest], GetNeuronIndexResult>;
1294
1294
  get_neuron_info: ActorMethod<[bigint], Result_5>;
1295
1295
  get_neuron_info_by_id_or_subaccount: ActorMethod<
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -12,10 +12,10 @@ import type { Principal } from "@icp-sdk/core/principal";
12
12
 
13
13
  export interface Account {
14
14
  owner: [] | [Principal];
15
- subaccount: [] | [Uint8Array | number[]];
15
+ subaccount: [] | [Uint8Array];
16
16
  }
17
17
  export interface AccountIdentifier {
18
- hash: Uint8Array | number[];
18
+ hash: Uint8Array;
19
19
  }
20
20
  export type Action =
21
21
  | { RegisterKnownNeuron: KnownNeuron }
@@ -79,7 +79,7 @@ export interface CanisterStatusResultV2 {
79
79
  memory_size: [] | [bigint];
80
80
  cycles: [] | [bigint];
81
81
  idle_cycles_burned_per_day: [] | [bigint];
82
- module_hash: Uint8Array | number[];
82
+ module_hash: Uint8Array;
83
83
  }
84
84
  export interface CanisterSummary {
85
85
  status: [] | [CanisterStatusResultV2];
@@ -230,7 +230,7 @@ export interface Duration {
230
230
  }
231
231
  export interface ExecuteNnsFunction {
232
232
  nns_function: number;
233
- payload: Uint8Array | number[];
233
+ payload: Uint8Array;
234
234
  }
235
235
  export interface Follow {
236
236
  topic: number;
@@ -399,14 +399,14 @@ export interface InitialTokenDistribution {
399
399
  }
400
400
  export interface InstallCode {
401
401
  skip_stopping_before_installing: [] | [boolean];
402
- wasm_module_hash: [] | [Uint8Array | number[]];
402
+ wasm_module_hash: [] | [Uint8Array];
403
403
  canister_id: [] | [Principal];
404
- arg_hash: [] | [Uint8Array | number[]];
404
+ arg_hash: [] | [Uint8Array];
405
405
  install_mode: [] | [number];
406
406
  }
407
407
  export interface InstallCodeRequest {
408
- arg: [] | [Uint8Array | number[]];
409
- wasm_module: [] | [Uint8Array | number[]];
408
+ arg: [] | [Uint8Array];
409
+ wasm_module: [] | [Uint8Array];
410
410
  skip_stopping_before_installing: [] | [boolean];
411
411
  canister_id: [] | [Principal];
412
412
  install_mode: [] | [number];
@@ -483,7 +483,7 @@ export interface ListNeurons {
483
483
  /**
484
484
  * These fields select neurons to be in the result set.
485
485
  */
486
- neuron_ids: BigUint64Array | bigint[];
486
+ neuron_ids: BigUint64Array;
487
487
  page_number: [] | [bigint];
488
488
  /**
489
489
  * Only has an effect when include_neurons_readable_by_caller.
@@ -521,13 +521,13 @@ export interface ListNodeProvidersResponse {
521
521
  node_providers: Array<NodeProvider>;
522
522
  }
523
523
  export interface ListProposalInfoRequest {
524
- include_reward_status: Int32Array | number[];
524
+ include_reward_status: Int32Array;
525
525
  omit_large_fields: [] | [boolean];
526
526
  before_proposal: [] | [ProposalId];
527
527
  limit: number;
528
- exclude_topic: Int32Array | number[];
528
+ exclude_topic: Int32Array;
529
529
  include_all_manage_neuron_proposals: [] | [boolean];
530
- include_status: Int32Array | number[];
530
+ include_status: Int32Array;
531
531
  }
532
532
  export interface ListProposalInfoResponse {
533
533
  proposal_info: Array<ProposalInfo>;
@@ -723,7 +723,7 @@ export interface Neuron {
723
723
  auto_stake_maturity: [] | [boolean];
724
724
  aging_since_timestamp_seconds: bigint;
725
725
  hot_keys: Array<Principal>;
726
- account: Uint8Array | number[];
726
+ account: Uint8Array;
727
727
  joined_community_fund_timestamp_seconds: [] | [bigint];
728
728
  /**
729
729
  * The maturity disbursements in progress, i.e. the disbursements that are initiated but not
@@ -757,7 +757,7 @@ export interface NeuronId {
757
757
  id: bigint;
758
758
  }
759
759
  export type NeuronIdOrSubaccount =
760
- | { Subaccount: Uint8Array | number[] }
760
+ | { Subaccount: Uint8Array }
761
761
  | { NeuronId: NeuronId };
762
762
  export interface NeuronInFlightCommand {
763
763
  command: [] | [Command_2];
@@ -809,16 +809,16 @@ export interface NeuronInfo {
809
809
  age_seconds: bigint;
810
810
  }
811
811
  export interface NeuronStakeTransfer {
812
- to_subaccount: Uint8Array | number[];
812
+ to_subaccount: Uint8Array;
813
813
  neuron_stake_e8s: bigint;
814
814
  from: [] | [Principal];
815
815
  memo: bigint;
816
- from_subaccount: Uint8Array | number[];
816
+ from_subaccount: Uint8Array;
817
817
  transfer_timestamp: bigint;
818
818
  block_height: bigint;
819
819
  }
820
820
  export interface NeuronSubaccount {
821
- subaccount: Uint8Array | number[];
821
+ subaccount: Uint8Array;
822
822
  }
823
823
  export interface NeuronSubsetMetrics {
824
824
  total_maturity_e8s_equivalent: [] | [bigint];
@@ -1289,7 +1289,7 @@ export interface _SERVICE {
1289
1289
  [] | [MonthlyNodeProviderRewards]
1290
1290
  >;
1291
1291
  get_network_economics_parameters: ActorMethod<[], NetworkEconomics>;
1292
- get_neuron_ids: ActorMethod<[], BigUint64Array | bigint[]>;
1292
+ get_neuron_ids: ActorMethod<[], BigUint64Array>;
1293
1293
  get_neuron_index: ActorMethod<[GetNeuronIndexRequest], GetNeuronIndexResult>;
1294
1294
  get_neuron_info: ActorMethod<[bigint], Result_5>;
1295
1295
  get_neuron_info_by_id_or_subaccount: ActorMethod<
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit fa06b0e (2025-11-12 tags: release-2025-11-13_03-24-base) 'packages/nns/src/candid/governance_test.did.tmp' by import-candid
1
+ // Generated from IC repo commit 4e64157 (2025-11-17) 'packages/nns/src/candid/governance_test.did.tmp' by import-candid
2
2
 
3
3
  type AccountIdentifier = record {
4
4
  hash : blob;
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
@@ -11,7 +11,7 @@ import type { IDL } from "@icp-sdk/core/candid";
11
11
  import type { Principal } from "@icp-sdk/core/principal";
12
12
 
13
13
  export interface AddWasmRequest {
14
- hash: Uint8Array | number[];
14
+ hash: Uint8Array;
15
15
  wasm: [] | [SnsWasm];
16
16
  skip_update_latest_version: [] | [boolean];
17
17
  }
@@ -78,7 +78,7 @@ export interface GetNextSnsVersionResponse {
78
78
  next_version: [] | [SnsVersion];
79
79
  }
80
80
  export interface GetProposalIdThatAddedWasmRequest {
81
- hash: Uint8Array | number[];
81
+ hash: Uint8Array;
82
82
  }
83
83
  export interface GetProposalIdThatAddedWasmResponse {
84
84
  proposal_id: [] | [bigint];
@@ -87,13 +87,13 @@ export interface GetSnsSubnetIdsResponse {
87
87
  sns_subnet_ids: Array<Principal>;
88
88
  }
89
89
  export interface GetWasmMetadataRequest {
90
- hash: [] | [Uint8Array | number[]];
90
+ hash: [] | [Uint8Array];
91
91
  }
92
92
  export interface GetWasmMetadataResponse {
93
93
  result: [] | [Result_1];
94
94
  }
95
95
  export interface GetWasmRequest {
96
- hash: Uint8Array | number[];
96
+ hash: Uint8Array;
97
97
  }
98
98
  export interface GetWasmResponse {
99
99
  wasm: [] | [SnsWasm];
@@ -134,7 +134,7 @@ export interface ListUpgradeStepsResponse {
134
134
  steps: Array<ListUpgradeStep>;
135
135
  }
136
136
  export interface MetadataSection {
137
- contents: [] | [Uint8Array | number[]];
137
+ contents: [] | [Uint8Array];
138
138
  name: [] | [string];
139
139
  visibility: [] | [string];
140
140
  }
@@ -168,7 +168,7 @@ export interface PrettySnsVersion {
168
168
  governance_wasm_hash: string;
169
169
  index_wasm_hash: string;
170
170
  }
171
- export type Result = { Error: SnsWasmError } | { Hash: Uint8Array | number[] };
171
+ export type Result = { Error: SnsWasmError } | { Hash: Uint8Array };
172
172
  export type Result_1 = { Ok: Ok } | { Error: SnsWasmError };
173
173
  export interface SnsCanisterIds {
174
174
  root: [] | [Principal];
@@ -226,15 +226,15 @@ export interface SnsUpgrade {
226
226
  current_version: [] | [SnsVersion];
227
227
  }
228
228
  export interface SnsVersion {
229
- archive_wasm_hash: Uint8Array | number[];
230
- root_wasm_hash: Uint8Array | number[];
231
- swap_wasm_hash: Uint8Array | number[];
232
- ledger_wasm_hash: Uint8Array | number[];
233
- governance_wasm_hash: Uint8Array | number[];
234
- index_wasm_hash: Uint8Array | number[];
229
+ archive_wasm_hash: Uint8Array;
230
+ root_wasm_hash: Uint8Array;
231
+ swap_wasm_hash: Uint8Array;
232
+ ledger_wasm_hash: Uint8Array;
233
+ governance_wasm_hash: Uint8Array;
234
+ index_wasm_hash: Uint8Array;
235
235
  }
236
236
  export interface SnsWasm {
237
- wasm: Uint8Array | number[];
237
+ wasm: Uint8Array;
238
238
  proposal_id: [] | [bigint];
239
239
  canister_type: number;
240
240
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  // @ts-nocheck
4
4
 
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0-patch-typed-arrays.
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
6
  // You should NOT make any changes in this file as it will be overwritten.
7
7
  // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
8
 
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @module api/nns
3
+ */
1
4
  export type { RewardEvent } from "./candid/governance";
2
5
  export type { DeployedSns } from "./candid/sns_wasm";
3
6
  export * from "./enums/governance.enums";