@dfinity/nns 8.2.0 → 8.2.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.
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 0f35ac817b (2024-12-06) 'rs/nns/gtc/canister/gtc.did' by import-candid
1
+ // Generated from IC repo commit aa705aaa62 (2025-01-08 tags: release-2025-01-09_03-19-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;
@@ -110,6 +110,7 @@ export const idlFactory = ({ IDL }) => {
110
110
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
111
111
  const CanisterSettings = IDL.Record({
112
112
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
113
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
113
114
  'controllers' : IDL.Opt(Controllers),
114
115
  'log_visibility' : IDL.Opt(IDL.Int32),
115
116
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -365,12 +366,16 @@ export const idlFactory = ({ IDL }) => {
365
366
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
366
367
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
367
368
  'count' : IDL.Opt(IDL.Nat64),
369
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
368
370
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
371
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
372
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
369
373
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
370
374
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
371
375
  ),
372
376
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
373
377
  'total_voting_power' : IDL.Opt(IDL.Nat64),
378
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
374
379
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
375
380
  });
376
381
  const GovernanceCachedMetrics = IDL.Record({
@@ -395,6 +400,9 @@ export const idlFactory = ({ IDL }) => {
395
400
  'total_staked_e8s_seed' : IDL.Nat64,
396
401
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
397
402
  'total_staked_e8s' : IDL.Nat64,
403
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
404
+ NeuronSubsetMetrics
405
+ ),
398
406
  'not_dissolving_neurons_count' : IDL.Nat64,
399
407
  'total_locked_e8s' : IDL.Nat64,
400
408
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -405,6 +413,9 @@ export const idlFactory = ({ IDL }) => {
405
413
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
406
414
  IDL.Tuple(IDL.Nat64, IDL.Float64)
407
415
  ),
416
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
417
+ NeuronSubsetMetrics
418
+ ),
408
419
  'total_staked_e8s_ect' : IDL.Nat64,
409
420
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
410
421
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -1093,6 +1104,7 @@ export const init = ({ IDL }) => {
1093
1104
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1094
1105
  const CanisterSettings = IDL.Record({
1095
1106
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
1107
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
1096
1108
  'controllers' : IDL.Opt(Controllers),
1097
1109
  'log_visibility' : IDL.Opt(IDL.Int32),
1098
1110
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -1348,12 +1360,16 @@ export const init = ({ IDL }) => {
1348
1360
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1349
1361
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1350
1362
  'count' : IDL.Opt(IDL.Nat64),
1363
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1351
1364
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1365
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1366
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1352
1367
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1353
1368
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1354
1369
  ),
1355
1370
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1356
1371
  'total_voting_power' : IDL.Opt(IDL.Nat64),
1372
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1357
1373
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1358
1374
  });
1359
1375
  const GovernanceCachedMetrics = IDL.Record({
@@ -1378,6 +1394,9 @@ export const init = ({ IDL }) => {
1378
1394
  'total_staked_e8s_seed' : IDL.Nat64,
1379
1395
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1380
1396
  'total_staked_e8s' : IDL.Nat64,
1397
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1398
+ NeuronSubsetMetrics
1399
+ ),
1381
1400
  'not_dissolving_neurons_count' : IDL.Nat64,
1382
1401
  'total_locked_e8s' : IDL.Nat64,
1383
1402
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -1388,6 +1407,9 @@ export const init = ({ IDL }) => {
1388
1407
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1389
1408
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1390
1409
  ),
1410
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1411
+ NeuronSubsetMetrics
1412
+ ),
1391
1413
  'total_staked_e8s_ect' : IDL.Nat64,
1392
1414
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1393
1415
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -51,6 +51,7 @@ export interface Canister {
51
51
  }
52
52
  export interface CanisterSettings {
53
53
  freezing_threshold: [] | [bigint];
54
+ wasm_memory_threshold: [] | [bigint];
54
55
  controllers: [] | [Controllers];
55
56
  log_visibility: [] | [number];
56
57
  wasm_memory_limit: [] | [bigint];
@@ -258,12 +259,14 @@ export interface GovernanceCachedMetrics {
258
259
  total_staked_e8s_seed: bigint;
259
260
  total_staked_maturity_e8s_equivalent_ect: bigint;
260
261
  total_staked_e8s: bigint;
262
+ fully_lost_voting_power_neuron_subset_metrics: [] | [NeuronSubsetMetrics];
261
263
  not_dissolving_neurons_count: bigint;
262
264
  total_locked_e8s: bigint;
263
265
  neurons_fund_total_active_neurons: bigint;
264
266
  total_voting_power_non_self_authenticating_controller: [] | [bigint];
265
267
  total_staked_maturity_e8s_equivalent: bigint;
266
268
  not_dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
269
+ declining_voting_power_neuron_subset_metrics: [] | [NeuronSubsetMetrics];
267
270
  total_staked_e8s_ect: bigint;
268
271
  not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
269
272
  dissolved_neurons_e8s: bigint;
@@ -554,10 +557,14 @@ export interface NeuronSubsetMetrics {
554
557
  voting_power_buckets: Array<[bigint, bigint]>;
555
558
  total_staked_e8s: [] | [bigint];
556
559
  count: [] | [bigint];
560
+ deciding_voting_power_buckets: Array<[bigint, bigint]>;
557
561
  total_staked_maturity_e8s_equivalent: [] | [bigint];
562
+ total_potential_voting_power: [] | [bigint];
563
+ total_deciding_voting_power: [] | [bigint];
558
564
  staked_maturity_e8s_equivalent_buckets: Array<[bigint, bigint]>;
559
565
  staked_e8s_buckets: Array<[bigint, bigint]>;
560
566
  total_voting_power: [] | [bigint];
567
+ potential_voting_power_buckets: Array<[bigint, bigint]>;
561
568
  count_buckets: Array<[bigint, bigint]>;
562
569
  }
563
570
  export interface NeuronsFundAuditInfo {
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 0f35ac817b (2024-12-06) 'rs/nns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit aa705aaa62 (2025-01-08 tags: release-2025-01-09_03-19-base) 'rs/nns/governance/canister/governance.did' by import-candid
2
2
  type AccountIdentifier = record {
3
3
  hash : blob;
4
4
  };
@@ -65,6 +65,7 @@ type CanisterSettings = record {
65
65
  wasm_memory_limit : opt nat64;
66
66
  memory_allocation : opt nat64;
67
67
  compute_allocation : opt nat64;
68
+ wasm_memory_threshold : opt nat64;
68
69
  };
69
70
 
70
71
  type CanisterStatusResultV2 = record {
@@ -124,8 +125,6 @@ type RefreshVotingPowerResponse = record {
124
125
  };
125
126
 
126
127
  // KEEP THIS IN SYNC WITH ManageNeuronCommandRequest!
127
- //
128
- // Deprecated. Use ManageNeuronCommandRequest instead. It is equivalent.
129
128
  type Command = variant {
130
129
  Spawn : Spawn;
131
130
  Split : Split;
@@ -349,15 +348,18 @@ type GovernanceCachedMetrics = record {
349
348
  };
350
349
  dissolving_neurons_count_buckets : vec record { nat64; nat64 };
351
350
  dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
352
- non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
353
351
  dissolving_neurons_count : nat64;
354
352
  dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
355
353
  total_staked_maturity_e8s_equivalent_seed : nat64;
356
354
  community_fund_total_staked_e8s : nat64;
357
355
  not_dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
358
- public_neuron_subset_metrics : opt NeuronSubsetMetrics;
359
356
  timestamp_seconds : nat64;
360
357
  seed_neuron_count : nat64;
358
+
359
+ non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
360
+ public_neuron_subset_metrics : opt NeuronSubsetMetrics;
361
+ declining_voting_power_neuron_subset_metrics : opt NeuronSubsetMetrics;
362
+ fully_lost_voting_power_neuron_subset_metrics : opt NeuronSubsetMetrics;
361
363
  };
362
364
 
363
365
  type GovernanceError = record {
@@ -496,10 +498,6 @@ type ManageNeuron = record {
496
498
  };
497
499
 
498
500
  // KEEP THIS IN SYNC WITH COMMAND!
499
- //
500
- // Command is deprecated, but people need time to migrate to this. Therefore, we
501
- // have not deleted Command yet. In the meantime, ManageNeuronCommandRequest
502
- // must be kept in sync with Command.
503
501
  type ManageNeuronCommandRequest = variant {
504
502
  Spawn : Spawn;
505
503
  Split : Split;
@@ -768,16 +766,25 @@ type NeuronStakeTransfer = record {
768
766
  };
769
767
 
770
768
  type NeuronSubsetMetrics = record {
771
- total_maturity_e8s_equivalent : opt nat64;
772
- maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
773
- voting_power_buckets : vec record { nat64; nat64 };
774
- total_staked_e8s : opt nat64;
775
769
  count : opt nat64;
770
+
771
+ total_staked_e8s : opt nat64;
772
+ total_maturity_e8s_equivalent : opt nat64;
776
773
  total_staked_maturity_e8s_equivalent : opt nat64;
777
- staked_maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
778
- staked_e8s_buckets : vec record { nat64; nat64 };
774
+
779
775
  total_voting_power : opt nat64;
776
+ total_deciding_voting_power : opt nat64;
777
+ total_potential_voting_power : opt nat64;
778
+
780
779
  count_buckets : vec record { nat64; nat64 };
780
+
781
+ staked_e8s_buckets : vec record { nat64; nat64 };
782
+ maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
783
+ staked_maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
784
+
785
+ voting_power_buckets : vec record { nat64; nat64 };
786
+ deciding_voting_power_buckets : vec record { nat64; nat64 };
787
+ potential_voting_power_buckets : vec record { nat64; nat64 };
781
788
  };
782
789
 
783
790
  type NeuronsFundAuditInfo = record {
@@ -110,6 +110,7 @@ export const idlFactory = ({ IDL }) => {
110
110
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
111
111
  const CanisterSettings = IDL.Record({
112
112
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
113
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
113
114
  'controllers' : IDL.Opt(Controllers),
114
115
  'log_visibility' : IDL.Opt(IDL.Int32),
115
116
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -365,12 +366,16 @@ export const idlFactory = ({ IDL }) => {
365
366
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
366
367
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
367
368
  'count' : IDL.Opt(IDL.Nat64),
369
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
368
370
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
371
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
372
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
369
373
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
370
374
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
371
375
  ),
372
376
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
373
377
  'total_voting_power' : IDL.Opt(IDL.Nat64),
378
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
374
379
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
375
380
  });
376
381
  const GovernanceCachedMetrics = IDL.Record({
@@ -395,6 +400,9 @@ export const idlFactory = ({ IDL }) => {
395
400
  'total_staked_e8s_seed' : IDL.Nat64,
396
401
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
397
402
  'total_staked_e8s' : IDL.Nat64,
403
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
404
+ NeuronSubsetMetrics
405
+ ),
398
406
  'not_dissolving_neurons_count' : IDL.Nat64,
399
407
  'total_locked_e8s' : IDL.Nat64,
400
408
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -405,6 +413,9 @@ export const idlFactory = ({ IDL }) => {
405
413
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
406
414
  IDL.Tuple(IDL.Nat64, IDL.Float64)
407
415
  ),
416
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
417
+ NeuronSubsetMetrics
418
+ ),
408
419
  'total_staked_e8s_ect' : IDL.Nat64,
409
420
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
410
421
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -1109,6 +1120,7 @@ export const init = ({ IDL }) => {
1109
1120
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1110
1121
  const CanisterSettings = IDL.Record({
1111
1122
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
1123
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
1112
1124
  'controllers' : IDL.Opt(Controllers),
1113
1125
  'log_visibility' : IDL.Opt(IDL.Int32),
1114
1126
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -1364,12 +1376,16 @@ export const init = ({ IDL }) => {
1364
1376
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1365
1377
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1366
1378
  'count' : IDL.Opt(IDL.Nat64),
1379
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1367
1380
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1381
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1382
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1368
1383
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1369
1384
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1370
1385
  ),
1371
1386
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1372
1387
  'total_voting_power' : IDL.Opt(IDL.Nat64),
1388
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1373
1389
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1374
1390
  });
1375
1391
  const GovernanceCachedMetrics = IDL.Record({
@@ -1394,6 +1410,9 @@ export const init = ({ IDL }) => {
1394
1410
  'total_staked_e8s_seed' : IDL.Nat64,
1395
1411
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1396
1412
  'total_staked_e8s' : IDL.Nat64,
1413
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1414
+ NeuronSubsetMetrics
1415
+ ),
1397
1416
  'not_dissolving_neurons_count' : IDL.Nat64,
1398
1417
  'total_locked_e8s' : IDL.Nat64,
1399
1418
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -1404,6 +1423,9 @@ export const init = ({ IDL }) => {
1404
1423
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1405
1424
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1406
1425
  ),
1426
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1427
+ NeuronSubsetMetrics
1428
+ ),
1407
1429
  'total_staked_e8s_ect' : IDL.Nat64,
1408
1430
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1409
1431
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -110,6 +110,7 @@ export const idlFactory = ({ IDL }) => {
110
110
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
111
111
  const CanisterSettings = IDL.Record({
112
112
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
113
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
113
114
  'controllers' : IDL.Opt(Controllers),
114
115
  'log_visibility' : IDL.Opt(IDL.Int32),
115
116
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -365,12 +366,16 @@ export const idlFactory = ({ IDL }) => {
365
366
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
366
367
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
367
368
  'count' : IDL.Opt(IDL.Nat64),
369
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
368
370
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
371
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
372
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
369
373
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
370
374
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
371
375
  ),
372
376
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
373
377
  'total_voting_power' : IDL.Opt(IDL.Nat64),
378
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
374
379
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
375
380
  });
376
381
  const GovernanceCachedMetrics = IDL.Record({
@@ -395,6 +400,9 @@ export const idlFactory = ({ IDL }) => {
395
400
  'total_staked_e8s_seed' : IDL.Nat64,
396
401
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
397
402
  'total_staked_e8s' : IDL.Nat64,
403
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
404
+ NeuronSubsetMetrics
405
+ ),
398
406
  'not_dissolving_neurons_count' : IDL.Nat64,
399
407
  'total_locked_e8s' : IDL.Nat64,
400
408
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -405,6 +413,9 @@ export const idlFactory = ({ IDL }) => {
405
413
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
406
414
  IDL.Tuple(IDL.Nat64, IDL.Float64)
407
415
  ),
416
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
417
+ NeuronSubsetMetrics
418
+ ),
408
419
  'total_staked_e8s_ect' : IDL.Nat64,
409
420
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
410
421
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -1094,6 +1105,7 @@ export const init = ({ IDL }) => {
1094
1105
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1095
1106
  const CanisterSettings = IDL.Record({
1096
1107
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
1108
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
1097
1109
  'controllers' : IDL.Opt(Controllers),
1098
1110
  'log_visibility' : IDL.Opt(IDL.Int32),
1099
1111
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -1349,12 +1361,16 @@ export const init = ({ IDL }) => {
1349
1361
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1350
1362
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1351
1363
  'count' : IDL.Opt(IDL.Nat64),
1364
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1352
1365
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1366
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1367
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1353
1368
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1354
1369
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1355
1370
  ),
1356
1371
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1357
1372
  'total_voting_power' : IDL.Opt(IDL.Nat64),
1373
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1358
1374
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1359
1375
  });
1360
1376
  const GovernanceCachedMetrics = IDL.Record({
@@ -1379,6 +1395,9 @@ export const init = ({ IDL }) => {
1379
1395
  'total_staked_e8s_seed' : IDL.Nat64,
1380
1396
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1381
1397
  'total_staked_e8s' : IDL.Nat64,
1398
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1399
+ NeuronSubsetMetrics
1400
+ ),
1382
1401
  'not_dissolving_neurons_count' : IDL.Nat64,
1383
1402
  'total_locked_e8s' : IDL.Nat64,
1384
1403
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -1389,6 +1408,9 @@ export const init = ({ IDL }) => {
1389
1408
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1390
1409
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1391
1410
  ),
1411
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1412
+ NeuronSubsetMetrics
1413
+ ),
1392
1414
  'total_staked_e8s_ect' : IDL.Nat64,
1393
1415
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1394
1416
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -51,6 +51,7 @@ export interface Canister {
51
51
  }
52
52
  export interface CanisterSettings {
53
53
  freezing_threshold: [] | [bigint];
54
+ wasm_memory_threshold: [] | [bigint];
54
55
  controllers: [] | [Controllers];
55
56
  log_visibility: [] | [number];
56
57
  wasm_memory_limit: [] | [bigint];
@@ -258,12 +259,14 @@ export interface GovernanceCachedMetrics {
258
259
  total_staked_e8s_seed: bigint;
259
260
  total_staked_maturity_e8s_equivalent_ect: bigint;
260
261
  total_staked_e8s: bigint;
262
+ fully_lost_voting_power_neuron_subset_metrics: [] | [NeuronSubsetMetrics];
261
263
  not_dissolving_neurons_count: bigint;
262
264
  total_locked_e8s: bigint;
263
265
  neurons_fund_total_active_neurons: bigint;
264
266
  total_voting_power_non_self_authenticating_controller: [] | [bigint];
265
267
  total_staked_maturity_e8s_equivalent: bigint;
266
268
  not_dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
269
+ declining_voting_power_neuron_subset_metrics: [] | [NeuronSubsetMetrics];
267
270
  total_staked_e8s_ect: bigint;
268
271
  not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
269
272
  dissolved_neurons_e8s: bigint;
@@ -554,10 +557,14 @@ export interface NeuronSubsetMetrics {
554
557
  voting_power_buckets: Array<[bigint, bigint]>;
555
558
  total_staked_e8s: [] | [bigint];
556
559
  count: [] | [bigint];
560
+ deciding_voting_power_buckets: Array<[bigint, bigint]>;
557
561
  total_staked_maturity_e8s_equivalent: [] | [bigint];
562
+ total_potential_voting_power: [] | [bigint];
563
+ total_deciding_voting_power: [] | [bigint];
558
564
  staked_maturity_e8s_equivalent_buckets: Array<[bigint, bigint]>;
559
565
  staked_e8s_buckets: Array<[bigint, bigint]>;
560
566
  total_voting_power: [] | [bigint];
567
+ potential_voting_power_buckets: Array<[bigint, bigint]>;
561
568
  count_buckets: Array<[bigint, bigint]>;
562
569
  }
563
570
  export interface NeuronsFundAuditInfo {
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 0f35ac817b (2024-12-06) 'rs/nns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit aa705aaa62 (2025-01-08 tags: release-2025-01-09_03-19-base) 'rs/nns/governance/canister/governance_test.did' by import-candid
2
2
  type AccountIdentifier = record {
3
3
  hash : blob;
4
4
  };
@@ -65,6 +65,7 @@ type CanisterSettings = record {
65
65
  wasm_memory_limit : opt nat64;
66
66
  memory_allocation : opt nat64;
67
67
  compute_allocation : opt nat64;
68
+ wasm_memory_threshold : opt nat64;
68
69
  };
69
70
 
70
71
  type CanisterStatusResultV2 = record {
@@ -346,15 +347,18 @@ type GovernanceCachedMetrics = record {
346
347
  };
347
348
  dissolving_neurons_count_buckets : vec record { nat64; nat64 };
348
349
  dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
349
- non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
350
350
  dissolving_neurons_count : nat64;
351
351
  dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
352
352
  total_staked_maturity_e8s_equivalent_seed : nat64;
353
353
  community_fund_total_staked_e8s : nat64;
354
354
  not_dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
355
- public_neuron_subset_metrics : opt NeuronSubsetMetrics;
356
355
  timestamp_seconds : nat64;
357
356
  seed_neuron_count : nat64;
357
+
358
+ non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
359
+ public_neuron_subset_metrics : opt NeuronSubsetMetrics;
360
+ declining_voting_power_neuron_subset_metrics : opt NeuronSubsetMetrics;
361
+ fully_lost_voting_power_neuron_subset_metrics : opt NeuronSubsetMetrics;
358
362
  };
359
363
 
360
364
  type GovernanceError = record {
@@ -694,16 +698,25 @@ type NeuronStakeTransfer = record {
694
698
  };
695
699
 
696
700
  type NeuronSubsetMetrics = record {
697
- total_maturity_e8s_equivalent : opt nat64;
698
- maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
699
- voting_power_buckets : vec record { nat64; nat64 };
700
- total_staked_e8s : opt nat64;
701
701
  count : opt nat64;
702
+
703
+ total_staked_e8s : opt nat64;
704
+ total_maturity_e8s_equivalent : opt nat64;
702
705
  total_staked_maturity_e8s_equivalent : opt nat64;
703
- staked_maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
704
- staked_e8s_buckets : vec record { nat64; nat64 };
706
+
705
707
  total_voting_power : opt nat64;
708
+ total_deciding_voting_power : opt nat64;
709
+ total_potential_voting_power : opt nat64;
710
+
706
711
  count_buckets : vec record { nat64; nat64 };
712
+
713
+ staked_e8s_buckets : vec record { nat64; nat64 };
714
+ maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
715
+ staked_maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
716
+
717
+ voting_power_buckets : vec record { nat64; nat64 };
718
+ deciding_voting_power_buckets : vec record { nat64; nat64 };
719
+ potential_voting_power_buckets : vec record { nat64; nat64 };
707
720
  };
708
721
 
709
722
  type NeuronsFundAuditInfo = record {
@@ -110,6 +110,7 @@ export const idlFactory = ({ IDL }) => {
110
110
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
111
111
  const CanisterSettings = IDL.Record({
112
112
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
113
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
113
114
  'controllers' : IDL.Opt(Controllers),
114
115
  'log_visibility' : IDL.Opt(IDL.Int32),
115
116
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -365,12 +366,16 @@ export const idlFactory = ({ IDL }) => {
365
366
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
366
367
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
367
368
  'count' : IDL.Opt(IDL.Nat64),
369
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
368
370
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
371
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
372
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
369
373
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
370
374
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
371
375
  ),
372
376
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
373
377
  'total_voting_power' : IDL.Opt(IDL.Nat64),
378
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
374
379
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
375
380
  });
376
381
  const GovernanceCachedMetrics = IDL.Record({
@@ -395,6 +400,9 @@ export const idlFactory = ({ IDL }) => {
395
400
  'total_staked_e8s_seed' : IDL.Nat64,
396
401
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
397
402
  'total_staked_e8s' : IDL.Nat64,
403
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
404
+ NeuronSubsetMetrics
405
+ ),
398
406
  'not_dissolving_neurons_count' : IDL.Nat64,
399
407
  'total_locked_e8s' : IDL.Nat64,
400
408
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -405,6 +413,9 @@ export const idlFactory = ({ IDL }) => {
405
413
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
406
414
  IDL.Tuple(IDL.Nat64, IDL.Float64)
407
415
  ),
416
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
417
+ NeuronSubsetMetrics
418
+ ),
408
419
  'total_staked_e8s_ect' : IDL.Nat64,
409
420
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
410
421
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -1110,6 +1121,7 @@ export const init = ({ IDL }) => {
1110
1121
  const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1111
1122
  const CanisterSettings = IDL.Record({
1112
1123
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
1124
+ 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),
1113
1125
  'controllers' : IDL.Opt(Controllers),
1114
1126
  'log_visibility' : IDL.Opt(IDL.Int32),
1115
1127
  'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
@@ -1365,12 +1377,16 @@ export const init = ({ IDL }) => {
1365
1377
  'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1366
1378
  'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1367
1379
  'count' : IDL.Opt(IDL.Nat64),
1380
+ 'deciding_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1368
1381
  'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1382
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1383
+ 'total_deciding_voting_power' : IDL.Opt(IDL.Nat64),
1369
1384
  'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1370
1385
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1371
1386
  ),
1372
1387
  'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1373
1388
  'total_voting_power' : IDL.Opt(IDL.Nat64),
1389
+ 'potential_voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1374
1390
  'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1375
1391
  });
1376
1392
  const GovernanceCachedMetrics = IDL.Record({
@@ -1395,6 +1411,9 @@ export const init = ({ IDL }) => {
1395
1411
  'total_staked_e8s_seed' : IDL.Nat64,
1396
1412
  'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1397
1413
  'total_staked_e8s' : IDL.Nat64,
1414
+ 'fully_lost_voting_power_neuron_subset_metrics' : IDL.Opt(
1415
+ NeuronSubsetMetrics
1416
+ ),
1398
1417
  'not_dissolving_neurons_count' : IDL.Nat64,
1399
1418
  'total_locked_e8s' : IDL.Nat64,
1400
1419
  'neurons_fund_total_active_neurons' : IDL.Nat64,
@@ -1405,6 +1424,9 @@ export const init = ({ IDL }) => {
1405
1424
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1406
1425
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1407
1426
  ),
1427
+ 'declining_voting_power_neuron_subset_metrics' : IDL.Opt(
1428
+ NeuronSubsetMetrics
1429
+ ),
1408
1430
  'total_staked_e8s_ect' : IDL.Nat64,
1409
1431
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1410
1432
  'dissolved_neurons_e8s' : IDL.Nat64,
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 0f35ac817b (2024-12-06) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
1
+ // Generated from IC repo commit aa705aaa62 (2025-01-08 tags: release-2025-01-09_03-19-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;