@dfinity/nns 10.0.1 → 10.1.0

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.
@@ -15,6 +15,7 @@ export type Action =
15
15
  | { ManageNeuron: ManageNeuron }
16
16
  | { UpdateCanisterSettings: UpdateCanisterSettings }
17
17
  | { InstallCode: InstallCode }
18
+ | { DeregisterKnownNeuron: DeregisterKnownNeuron }
18
19
  | { StopOrStartCanister: StopOrStartCanister }
19
20
  | { CreateServiceNervousSystem: CreateServiceNervousSystem }
20
21
  | { ExecuteNnsFunction: ExecuteNnsFunction }
@@ -174,6 +175,9 @@ export interface DateRangeFilter {
174
175
  export interface Decimal {
175
176
  human_readable: [] | [string];
176
177
  }
178
+ export interface DeregisterKnownNeuron {
179
+ id: [] | [NeuronId];
180
+ }
177
181
  export interface DerivedProposalInformation {
178
182
  swap_background_information: [] | [SwapBackgroundInformation];
179
183
  }
@@ -239,7 +243,6 @@ export interface GlobalTimeOfDay {
239
243
  }
240
244
  export interface Governance {
241
245
  default_followees: Array<[number, Followees]>;
242
- making_sns_proposal: [] | [MakingSnsProposal];
243
246
  most_recent_monthly_node_provider_rewards: [] | [MonthlyNodeProviderRewards];
244
247
  maturity_modulation_last_updated_at_timestamp_seconds: [] | [bigint];
245
248
  wait_for_quiet_threshold_seconds: bigint;
@@ -360,6 +363,7 @@ export interface KnownNeuron {
360
363
  export interface KnownNeuronData {
361
364
  name: string;
362
365
  description: [] | [string];
366
+ links: [] | [Array<string>];
363
367
  }
364
368
  export interface LedgerParameters {
365
369
  transaction_fee: [] | [Tokens];
@@ -415,11 +419,6 @@ export interface MakeProposalResponse {
415
419
  message: [] | [string];
416
420
  proposal_id: [] | [ProposalId];
417
421
  }
418
- export interface MakingSnsProposal {
419
- proposal: [] | [Proposal];
420
- caller: [] | [Principal];
421
- proposer_id: [] | [NeuronId];
422
- }
423
422
  export interface ManageNeuron {
424
423
  id: [] | [NeuronId];
425
424
  command: [] | [Command];
@@ -706,6 +705,7 @@ export type ProposalActionRequest =
706
705
  | { ManageNeuron: ManageNeuronRequest }
707
706
  | { UpdateCanisterSettings: UpdateCanisterSettings }
708
707
  | { InstallCode: InstallCodeRequest }
708
+ | { DeregisterKnownNeuron: DeregisterKnownNeuron }
709
709
  | { StopOrStartCanister: StopOrStartCanister }
710
710
  | { CreateServiceNervousSystem: CreateServiceNervousSystem }
711
711
  | { ExecuteNnsFunction: ExecuteNnsFunction }
@@ -860,6 +860,7 @@ export interface SpawnResponse {
860
860
  created_neuron_id: [] | [NeuronId];
861
861
  }
862
862
  export interface Split {
863
+ memo: [] | [bigint];
863
864
  amount_e8s: bigint;
864
865
  }
865
866
  export interface StakeMaturity {
@@ -1,10 +1,11 @@
1
- // Generated from IC repo commit 9173238 (2025-08-18 tags: release-2025-08-28_03-17-snapshot-feature) '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
  };
5
5
 
6
6
  type Action = variant {
7
7
  RegisterKnownNeuron : KnownNeuron;
8
+ DeregisterKnownNeuron : DeregisterKnownNeuron;
8
9
  ManageNeuron : ManageNeuron;
9
10
  UpdateCanisterSettings : UpdateCanisterSettings;
10
11
  InstallCode : InstallCode;
@@ -309,7 +310,6 @@ type GlobalTimeOfDay = record {
309
310
 
310
311
  type Governance = record {
311
312
  default_followees : vec record { int32; Followees };
312
- making_sns_proposal : opt MakingSnsProposal;
313
313
  most_recent_monthly_node_provider_rewards : opt MonthlyNodeProviderRewards;
314
314
  maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
315
315
  wait_for_quiet_threshold_seconds : nat64;
@@ -439,9 +439,14 @@ type KnownNeuron = record {
439
439
  known_neuron_data : opt KnownNeuronData;
440
440
  };
441
441
 
442
+ type DeregisterKnownNeuron = record {
443
+ id : opt NeuronId;
444
+ };
445
+
442
446
  type KnownNeuronData = record {
443
447
  name : text;
444
448
  description : opt text;
449
+ links : opt vec text;
445
450
  };
446
451
 
447
452
  type LedgerParameters = record {
@@ -513,12 +518,6 @@ type MakeProposalResponse = record {
513
518
  proposal_id : opt ProposalId;
514
519
  };
515
520
 
516
- type MakingSnsProposal = record {
517
- proposal : opt Proposal;
518
- caller : opt principal;
519
- proposer_id : opt NeuronId;
520
- };
521
-
522
521
  type ManageNeuron = record {
523
522
  id : opt NeuronId;
524
523
  command : opt Command;
@@ -869,6 +868,7 @@ type Proposal = record {
869
868
 
870
869
  type ProposalActionRequest = variant {
871
870
  RegisterKnownNeuron : KnownNeuron;
871
+ DeregisterKnownNeuron : DeregisterKnownNeuron;
872
872
  ManageNeuron : ManageNeuronRequest;
873
873
  UpdateCanisterSettings : UpdateCanisterSettings;
874
874
  InstallCode : InstallCodeRequest;
@@ -900,8 +900,19 @@ type FulfillSubnetRentalRequest = record {
900
900
  //
901
901
  // This must be approved by a prior proposal to bless an IC OS version.
902
902
  //
903
- // This is a full git commit ID in the ic repo. (Therefore, it must be a 40
904
- // character hexidecimal string.)
903
+ // This is a FULL git commit ID in the ic repo. (Therefore, it must be a 40
904
+ // character hexidecimal string, not an abbreviated git commit ID.)
905
+ //
906
+ // One way to find a suitable value is with the following command:
907
+ //
908
+ // ic-admin \
909
+ // get-subnet 0 \
910
+ // --nns-urls https://nns.ic0.app \
911
+ // | grep replica_version_id
912
+ //
913
+ // Where to obtain a recent version of ic-admin:
914
+ //
915
+ // https://github.com/dfinity/ic/releases/latest
905
916
  replica_version_id : opt text;
906
917
  };
907
918
 
@@ -1103,6 +1114,7 @@ type SpawnResponse = record {
1103
1114
 
1104
1115
  type Split = record {
1105
1116
  amount_e8s : nat64;
1117
+ memo : opt nat64;
1106
1118
  };
1107
1119
 
1108
1120
  type StakeMaturity = record {