@dfinity/nns 5.1.2 → 5.2.0-next-2024-07-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 (38) hide show
  1. package/README.md +48 -35
  2. package/dist/candid/genesis_token.did +1 -1
  3. package/dist/candid/governance.certified.idl.js +145 -21
  4. package/dist/candid/governance.d.ts +71 -6
  5. package/dist/candid/governance.did +64 -5
  6. package/dist/candid/governance.idl.js +145 -21
  7. package/dist/candid/governance_test.certified.idl.js +145 -21
  8. package/dist/candid/governance_test.d.ts +71 -6
  9. package/dist/candid/governance_test.did +64 -5
  10. package/dist/candid/governance_test.idl.js +145 -21
  11. package/dist/candid/old_list_neurons_service.certified.idl.d.ts +2 -0
  12. package/dist/candid/old_list_neurons_service.certified.idl.js +78 -0
  13. package/dist/candid/sns_wasm.certified.idl.js +3 -0
  14. package/dist/candid/sns_wasm.d.ts +5 -0
  15. package/dist/candid/sns_wasm.did +4 -1
  16. package/dist/candid/sns_wasm.idl.js +3 -0
  17. package/dist/cjs/index.cjs.js +1 -1
  18. package/dist/cjs/index.cjs.js.map +4 -4
  19. package/dist/esm/chunk-R4CH4PKK.js +2 -0
  20. package/dist/esm/chunk-R4CH4PKK.js.map +7 -0
  21. package/dist/esm/chunk-REL225EW.js +19 -0
  22. package/dist/esm/chunk-REL225EW.js.map +7 -0
  23. package/dist/esm/governance.canister.js +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/index.js.map +3 -3
  26. package/dist/esm/sns_wasm.canister.js +1 -1
  27. package/dist/types/canisters/governance/request.converters.d.ts +9 -2
  28. package/dist/types/canisters/governance/response.converters.d.ts +8 -1
  29. package/dist/types/enums/governance.enums.d.ts +18 -1
  30. package/dist/types/governance.canister.d.ts +11 -2
  31. package/dist/types/governance_test.canister.d.ts +2 -1
  32. package/dist/types/types/governance.options.d.ts +2 -0
  33. package/dist/types/types/governance_converters.d.ts +43 -1
  34. package/package.json +7 -7
  35. package/dist/esm/chunk-AN6DZS5M.js +0 -19
  36. package/dist/esm/chunk-AN6DZS5M.js.map +0 -7
  37. package/dist/esm/chunk-RRSEQTKA.js +0 -2
  38. package/dist/esm/chunk-RRSEQTKA.js.map +0 -7
@@ -1,8 +1,11 @@
1
- // Generated from IC repo commit d19fa44 (2024-06-05 tags: release-2024-06-05_23-01-base) 'rs/nns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit 2b109fb9ba (2024-07-25) 'rs/nns/governance/canister/governance.did' by import-candid
2
2
  type AccountIdentifier = record { hash : blob };
3
3
  type Action = variant {
4
4
  RegisterKnownNeuron : KnownNeuron;
5
5
  ManageNeuron : ManageNeuron;
6
+ UpdateCanisterSettings : UpdateCanisterSettings;
7
+ InstallCode : InstallCode;
8
+ StopOrStartCanister : StopOrStartCanister;
6
9
  CreateServiceNervousSystem : CreateServiceNervousSystem;
7
10
  ExecuteNnsFunction : ExecuteNnsFunction;
8
11
  RewardNodeProvider : RewardNodeProvider;
@@ -11,7 +14,7 @@ type Action = variant {
11
14
  SetDefaultFollowees : SetDefaultFollowees;
12
15
  RewardNodeProviders : RewardNodeProviders;
13
16
  ManageNetworkEconomics : NetworkEconomics;
14
- ApproveGenesisKyc : ApproveGenesisKyc;
17
+ ApproveGenesisKyc : Principals;
15
18
  AddOrRemoveNodeProvider : AddOrRemoveNodeProvider;
16
19
  Motion : Motion;
17
20
  };
@@ -27,6 +30,14 @@ type By = variant {
27
30
  Memo : nat64;
28
31
  };
29
32
  type Canister = record { id : opt principal };
33
+ type CanisterSettings = record {
34
+ freezing_threshold : opt nat64;
35
+ controllers : opt Controllers;
36
+ log_visibility : opt int32;
37
+ wasm_memory_limit : opt nat64;
38
+ memory_allocation : opt nat64;
39
+ compute_allocation : opt nat64;
40
+ };
30
41
  type CanisterStatusResultV2 = record {
31
42
  status : opt int32;
32
43
  freezing_threshold : opt nat64;
@@ -42,10 +53,12 @@ type CanisterSummary = record {
42
53
  };
43
54
  type CfNeuron = record {
44
55
  has_created_neuron_recipes : opt bool;
56
+ hotkeys : opt Principals;
45
57
  nns_neuron_id : nat64;
46
58
  amount_icp_e8s : nat64;
47
59
  };
48
60
  type CfParticipant = record {
61
+ controller : opt principal;
49
62
  hotkey_principal : text;
50
63
  cf_neurons : vec CfNeuron;
51
64
  };
@@ -111,6 +124,7 @@ type Committed_1 = record {
111
124
  sns_governance_canister_id : opt principal;
112
125
  };
113
126
  type Configure = record { operation : opt Operation };
127
+ type Controllers = record { controllers : vec principal };
114
128
  type Countries = record { iso_codes : vec text };
115
129
  type CreateServiceNervousSystem = record {
116
130
  url : opt text;
@@ -159,7 +173,7 @@ type GlobalTimeOfDay = record { seconds_after_utc_midnight : opt nat64 };
159
173
  type Governance = record {
160
174
  default_followees : vec record { int32; Followees };
161
175
  making_sns_proposal : opt MakingSnsProposal;
162
- most_recent_monthly_node_provider_rewards : opt MostRecentMonthlyNodeProviderRewards;
176
+ most_recent_monthly_node_provider_rewards : opt MonthlyNodeProviderRewards;
163
177
  maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
164
178
  wait_for_quiet_threshold_seconds : nat64;
165
179
  metrics : opt GovernanceCachedMetrics;
@@ -202,11 +216,13 @@ type GovernanceCachedMetrics = record {
202
216
  not_dissolving_neurons_count : nat64;
203
217
  total_locked_e8s : nat64;
204
218
  neurons_fund_total_active_neurons : nat64;
219
+ total_voting_power_non_self_authenticating_controller : opt nat64;
205
220
  total_staked_maturity_e8s_equivalent : nat64;
206
221
  not_dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
207
222
  total_staked_e8s_ect : nat64;
208
223
  not_dissolving_neurons_staked_maturity_e8s_equivalent_sum : nat64;
209
224
  dissolved_neurons_e8s : nat64;
225
+ total_staked_e8s_non_self_authenticating_controller : opt nat64;
210
226
  dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
211
227
  neurons_with_less_than_6_months_dissolve_delay_e8s : nat64;
212
228
  not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets : vec record {
@@ -215,6 +231,7 @@ type GovernanceCachedMetrics = record {
215
231
  };
216
232
  dissolving_neurons_count_buckets : vec record { nat64; nat64 };
217
233
  dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
234
+ non_self_authenticating_controller_neuron_subset_metrics : opt NeuronSubsetMetrics;
218
235
  dissolving_neurons_count : nat64;
219
236
  dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
220
237
  total_staked_maturity_e8s_equivalent_seed : nat64;
@@ -248,6 +265,13 @@ type InitialTokenDistribution = record {
248
265
  developer_distribution : opt DeveloperDistribution;
249
266
  swap_distribution : opt SwapDistribution;
250
267
  };
268
+ type InstallCode = record {
269
+ arg : opt blob;
270
+ wasm_module : opt blob;
271
+ skip_stopping_before_installing : opt bool;
272
+ canister_id : opt principal;
273
+ install_mode : opt int32;
274
+ };
251
275
  type KnownNeuron = record {
252
276
  id : opt NeuronId;
253
277
  known_neuron_data : opt KnownNeuronData;
@@ -262,6 +286,7 @@ type LedgerParameters = record {
262
286
  type ListKnownNeuronsResponse = record { known_neurons : vec KnownNeuron };
263
287
  type ListNeurons = record {
264
288
  neuron_ids : vec nat64;
289
+ include_empty_neurons_readable_by_caller : opt bool;
265
290
  include_neurons_readable_by_caller : bool;
266
291
  };
267
292
  type ListNeuronsResponse = record {
@@ -315,9 +340,14 @@ type Migrations = record {
315
340
  neuron_indexes_migration : opt Migration;
316
341
  copy_inactive_neurons_to_stable_memory_migration : opt Migration;
317
342
  };
318
- type MostRecentMonthlyNodeProviderRewards = record {
343
+ type MonthlyNodeProviderRewards = record {
344
+ minimum_xdr_permyriad_per_icp : opt nat64;
345
+ registry_version : opt nat64;
346
+ node_providers : vec NodeProvider;
319
347
  timestamp : nat64;
320
348
  rewards : vec RewardNodeProvider;
349
+ xdr_conversion_rate : opt XdrConversionRate;
350
+ maximum_node_provider_rewards_e8s : opt nat64;
321
351
  };
322
352
  type Motion = record { motion_text : text };
323
353
  type NetworkEconomics = record {
@@ -350,6 +380,7 @@ type Neuron = record {
350
380
  dissolve_state : opt DissolveState;
351
381
  followees : vec record { int32; Followees };
352
382
  neuron_fees_e8s : nat64;
383
+ visibility : opt int32;
353
384
  transfer : opt NeuronStakeTransfer;
354
385
  known_neuron_data : opt KnownNeuronData;
355
386
  spawn_at_timestamp_seconds : opt nat64;
@@ -384,6 +415,7 @@ type NeuronInfo = record {
384
415
  stake_e8s : nat64;
385
416
  joined_community_fund_timestamp_seconds : opt nat64;
386
417
  retrieved_at_timestamp_seconds : nat64;
418
+ visibility : opt int32;
387
419
  known_neuron_data : opt KnownNeuronData;
388
420
  voting_power : nat64;
389
421
  age_seconds : nat64;
@@ -397,6 +429,18 @@ type NeuronStakeTransfer = record {
397
429
  transfer_timestamp : nat64;
398
430
  block_height : nat64;
399
431
  };
432
+ type NeuronSubsetMetrics = record {
433
+ total_maturity_e8s_equivalent : opt nat64;
434
+ maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
435
+ voting_power_buckets : vec record { nat64; nat64 };
436
+ total_staked_e8s : opt nat64;
437
+ count : opt nat64;
438
+ total_staked_maturity_e8s_equivalent : opt nat64;
439
+ staked_maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
440
+ staked_e8s_buckets : vec record { nat64; nat64 };
441
+ total_voting_power : opt nat64;
442
+ count_buckets : vec record { nat64; nat64 };
443
+ };
400
444
  type NeuronsFundAuditInfo = record {
401
445
  final_neurons_fund_participation : opt NeuronsFundParticipation;
402
446
  initial_neurons_fund_participation : opt NeuronsFundParticipation;
@@ -419,13 +463,17 @@ type NeuronsFundMatchedFundingCurveCoefficients = record {
419
463
  full_participation_milestone_xdr : opt Decimal;
420
464
  };
421
465
  type NeuronsFundNeuron = record {
466
+ controller : opt principal;
422
467
  hotkey_principal : opt text;
468
+ hotkeys : opt Principals;
423
469
  is_capped : opt bool;
424
470
  nns_neuron_id : opt nat64;
425
471
  amount_icp_e8s : opt nat64;
426
472
  };
427
473
  type NeuronsFundNeuronPortion = record {
474
+ controller : opt principal;
428
475
  hotkey_principal : opt principal;
476
+ hotkeys : vec principal;
429
477
  is_capped : opt bool;
430
478
  maturity_equivalent_icp_e8s : opt nat64;
431
479
  nns_neuron_id : opt NeuronId;
@@ -462,6 +510,7 @@ type Operation = variant {
462
510
  StopDissolving : record {};
463
511
  StartDissolving : record {};
464
512
  IncreaseDissolveDelay : IncreaseDissolveDelay;
513
+ SetVisibility : SetVisibility;
465
514
  JoinCommunityFund : record {};
466
515
  LeaveCommunityFund : record {};
467
516
  SetDissolveTimestamp : SetDissolveTimestamp;
@@ -480,6 +529,7 @@ type Params = record {
480
529
  max_direct_participation_icp_e8s : opt nat64;
481
530
  };
482
531
  type Percentage = record { basis_points : opt nat64 };
532
+ type Principals = record { principals : vec principal };
483
533
  type Progress = variant { LastNeuronId : NeuronId };
484
534
  type Proposal = record {
485
535
  url : text;
@@ -582,6 +632,7 @@ type SetSnsTokenSwapOpenTimeWindow = record {
582
632
  request : opt SetOpenTimeWindowRequest;
583
633
  swap_canister_id : opt principal;
584
634
  };
635
+ type SetVisibility = record { visibility : opt int32 };
585
636
  type SettleCommunityFundParticipation = record {
586
637
  result : opt Result_8;
587
638
  open_sns_token_swap_proposal_id : opt nat64;
@@ -603,6 +654,10 @@ type StakeMaturityResponse = record {
603
654
  maturity_e8s : nat64;
604
655
  staked_maturity_e8s : nat64;
605
656
  };
657
+ type StopOrStartCanister = record {
658
+ action : opt int32;
659
+ canister_id : opt principal;
660
+ };
606
661
  type SwapBackgroundInformation = record {
607
662
  ledger_index_canister_summary : opt CanisterSummary;
608
663
  fallback_controller_principal_ids : vec principal;
@@ -647,6 +702,10 @@ type TimeWindow = record {
647
702
  end_timestamp_seconds : nat64;
648
703
  };
649
704
  type Tokens = record { e8s : opt nat64 };
705
+ type UpdateCanisterSettings = record {
706
+ canister_id : opt principal;
707
+ settings : opt CanisterSettings;
708
+ };
650
709
  type UpdateNodeProvider = record { reward_account : opt AccountIdentifier };
651
710
  type VotingRewardParameters = record {
652
711
  reward_rate_transition_duration : opt Duration;
@@ -672,7 +731,7 @@ service : (Governance) -> {
672
731
  get_metrics : () -> (Result_3) query;
673
732
  get_monthly_node_provider_rewards : () -> (Result_4);
674
733
  get_most_recent_monthly_node_provider_rewards : () -> (
675
- opt MostRecentMonthlyNodeProviderRewards,
734
+ opt MonthlyNodeProviderRewards,
676
735
  ) query;
677
736
  get_network_economics_parameters : () -> (NetworkEconomics) query;
678
737
  get_neuron_ids : () -> (vec nat64) query;
@@ -41,6 +41,7 @@ export const idlFactory = ({ IDL }) => {
41
41
  const IncreaseDissolveDelay = IDL.Record({
42
42
  'additional_dissolve_delay_seconds' : IDL.Nat32,
43
43
  });
44
+ const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
44
45
  const SetDissolveTimestamp = IDL.Record({
45
46
  'dissolve_timestamp_seconds' : IDL.Nat64,
46
47
  });
@@ -51,6 +52,7 @@ export const idlFactory = ({ IDL }) => {
51
52
  'StopDissolving' : IDL.Record({}),
52
53
  'StartDissolving' : IDL.Record({}),
53
54
  'IncreaseDissolveDelay' : IncreaseDissolveDelay,
55
+ 'SetVisibility' : SetVisibility,
54
56
  'JoinCommunityFund' : IDL.Record({}),
55
57
  'LeaveCommunityFund' : IDL.Record({}),
56
58
  'SetDissolveTimestamp' : SetDissolveTimestamp,
@@ -101,6 +103,30 @@ export const idlFactory = ({ IDL }) => {
101
103
  'command' : IDL.Opt(Command),
102
104
  'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
103
105
  });
106
+ const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
107
+ const CanisterSettings = IDL.Record({
108
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
109
+ 'controllers' : IDL.Opt(Controllers),
110
+ 'log_visibility' : IDL.Opt(IDL.Int32),
111
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
112
+ 'memory_allocation' : IDL.Opt(IDL.Nat64),
113
+ 'compute_allocation' : IDL.Opt(IDL.Nat64),
114
+ });
115
+ const UpdateCanisterSettings = IDL.Record({
116
+ 'canister_id' : IDL.Opt(IDL.Principal),
117
+ 'settings' : IDL.Opt(CanisterSettings),
118
+ });
119
+ const InstallCode = IDL.Record({
120
+ 'arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
121
+ 'wasm_module' : IDL.Opt(IDL.Vec(IDL.Nat8)),
122
+ 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
123
+ 'canister_id' : IDL.Opt(IDL.Principal),
124
+ 'install_mode' : IDL.Opt(IDL.Int32),
125
+ });
126
+ const StopOrStartCanister = IDL.Record({
127
+ 'action' : IDL.Opt(IDL.Int32),
128
+ 'canister_id' : IDL.Opt(IDL.Principal),
129
+ });
104
130
  const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
105
131
  const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
106
132
  const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
@@ -271,9 +297,7 @@ export const idlFactory = ({ IDL }) => {
271
297
  'maximum_node_provider_rewards_e8s' : IDL.Nat64,
272
298
  'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
273
299
  });
274
- const ApproveGenesisKyc = IDL.Record({
275
- 'principals' : IDL.Vec(IDL.Principal),
276
- });
300
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
277
301
  const Change = IDL.Variant({
278
302
  'ToRemove' : NodeProvider,
279
303
  'ToAdd' : NodeProvider,
@@ -283,6 +307,9 @@ export const idlFactory = ({ IDL }) => {
283
307
  const Action = IDL.Variant({
284
308
  'RegisterKnownNeuron' : KnownNeuron,
285
309
  'ManageNeuron' : ManageNeuron,
310
+ 'UpdateCanisterSettings' : UpdateCanisterSettings,
311
+ 'InstallCode' : InstallCode,
312
+ 'StopOrStartCanister' : StopOrStartCanister,
286
313
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
287
314
  'ExecuteNnsFunction' : ExecuteNnsFunction,
288
315
  'RewardNodeProvider' : RewardNodeProvider,
@@ -291,7 +318,7 @@ export const idlFactory = ({ IDL }) => {
291
318
  'SetDefaultFollowees' : SetDefaultFollowees,
292
319
  'RewardNodeProviders' : RewardNodeProviders,
293
320
  'ManageNetworkEconomics' : NetworkEconomics,
294
- 'ApproveGenesisKyc' : ApproveGenesisKyc,
321
+ 'ApproveGenesisKyc' : Principals,
295
322
  'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
296
323
  'Motion' : Motion,
297
324
  });
@@ -308,9 +335,34 @@ export const idlFactory = ({ IDL }) => {
308
335
  'caller' : IDL.Opt(IDL.Principal),
309
336
  'proposer_id' : IDL.Opt(NeuronId),
310
337
  });
311
- const MostRecentMonthlyNodeProviderRewards = IDL.Record({
338
+ const XdrConversionRate = IDL.Record({
339
+ 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
340
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
341
+ });
342
+ const MonthlyNodeProviderRewards = IDL.Record({
343
+ 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
344
+ 'registry_version' : IDL.Opt(IDL.Nat64),
345
+ 'node_providers' : IDL.Vec(NodeProvider),
312
346
  'timestamp' : IDL.Nat64,
313
347
  'rewards' : IDL.Vec(RewardNodeProvider),
348
+ 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
349
+ 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
350
+ });
351
+ const NeuronSubsetMetrics = IDL.Record({
352
+ 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
353
+ 'maturity_e8s_equivalent_buckets' : IDL.Vec(
354
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
355
+ ),
356
+ 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
357
+ 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
358
+ 'count' : IDL.Opt(IDL.Nat64),
359
+ 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
360
+ 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
361
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
362
+ ),
363
+ 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
364
+ 'total_voting_power' : IDL.Opt(IDL.Nat64),
365
+ 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
314
366
  });
315
367
  const GovernanceCachedMetrics = IDL.Record({
316
368
  'total_maturity_e8s_equivalent' : IDL.Nat64,
@@ -337,6 +389,9 @@ export const idlFactory = ({ IDL }) => {
337
389
  'not_dissolving_neurons_count' : IDL.Nat64,
338
390
  'total_locked_e8s' : IDL.Nat64,
339
391
  'neurons_fund_total_active_neurons' : IDL.Nat64,
392
+ 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
393
+ IDL.Nat64
394
+ ),
340
395
  'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
341
396
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
342
397
  IDL.Tuple(IDL.Nat64, IDL.Float64)
@@ -344,6 +399,7 @@ export const idlFactory = ({ IDL }) => {
344
399
  'total_staked_e8s_ect' : IDL.Nat64,
345
400
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
346
401
  'dissolved_neurons_e8s' : IDL.Nat64,
402
+ 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
347
403
  'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
348
404
  IDL.Tuple(IDL.Nat64, IDL.Float64)
349
405
  ),
@@ -357,6 +413,9 @@ export const idlFactory = ({ IDL }) => {
357
413
  'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
358
414
  IDL.Tuple(IDL.Nat64, IDL.Float64)
359
415
  ),
416
+ 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
417
+ NeuronSubsetMetrics
418
+ ),
360
419
  'dissolving_neurons_count' : IDL.Nat64,
361
420
  'dissolving_neurons_e8s_buckets' : IDL.Vec(
362
421
  IDL.Tuple(IDL.Nat64, IDL.Float64)
@@ -417,10 +476,12 @@ export const idlFactory = ({ IDL }) => {
417
476
  });
418
477
  const CfNeuron = IDL.Record({
419
478
  'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
479
+ 'hotkeys' : IDL.Opt(Principals),
420
480
  'nns_neuron_id' : IDL.Nat64,
421
481
  'amount_icp_e8s' : IDL.Nat64,
422
482
  });
423
483
  const CfParticipant = IDL.Record({
484
+ 'controller' : IDL.Opt(IDL.Principal),
424
485
  'hotkey_principal' : IDL.Text,
425
486
  'cf_neurons' : IDL.Vec(CfNeuron),
426
487
  });
@@ -432,7 +493,9 @@ export const idlFactory = ({ IDL }) => {
432
493
  'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
433
494
  });
434
495
  const NeuronsFundNeuronPortion = IDL.Record({
496
+ 'controller' : IDL.Opt(IDL.Principal),
435
497
  'hotkey_principal' : IDL.Opt(IDL.Principal),
498
+ 'hotkeys' : IDL.Vec(IDL.Principal),
436
499
  'is_capped' : IDL.Opt(IDL.Bool),
437
500
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
438
501
  'nns_neuron_id' : IDL.Opt(NeuronId),
@@ -518,10 +581,6 @@ export const idlFactory = ({ IDL }) => {
518
581
  IDL.Nat64
519
582
  ),
520
583
  });
521
- const XdrConversionRate = IDL.Record({
522
- 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
523
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
524
- });
525
584
  const Command_2 = IDL.Variant({
526
585
  'Spawn' : NeuronId,
527
586
  'Split' : Split,
@@ -564,6 +623,7 @@ export const idlFactory = ({ IDL }) => {
564
623
  'dissolve_state' : IDL.Opt(DissolveState),
565
624
  'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
566
625
  'neuron_fees_e8s' : IDL.Nat64,
626
+ 'visibility' : IDL.Opt(IDL.Int32),
567
627
  'transfer' : IDL.Opt(NeuronStakeTransfer),
568
628
  'known_neuron_data' : IDL.Opt(KnownNeuronData),
569
629
  'spawn_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),
@@ -572,7 +632,7 @@ export const idlFactory = ({ IDL }) => {
572
632
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
573
633
  'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
574
634
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
575
- MostRecentMonthlyNodeProviderRewards
635
+ MonthlyNodeProviderRewards
576
636
  ),
577
637
  'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
578
638
  IDL.Nat64
@@ -622,6 +682,7 @@ export const idlFactory = ({ IDL }) => {
622
682
  'stake_e8s' : IDL.Nat64,
623
683
  'joined_community_fund_timestamp_seconds' : IDL.Opt(IDL.Nat64),
624
684
  'retrieved_at_timestamp_seconds' : IDL.Nat64,
685
+ 'visibility' : IDL.Opt(IDL.Int32),
625
686
  'known_neuron_data' : IDL.Opt(KnownNeuronData),
626
687
  'voting_power' : IDL.Nat64,
627
688
  'age_seconds' : IDL.Nat64,
@@ -670,6 +731,7 @@ export const idlFactory = ({ IDL }) => {
670
731
  });
671
732
  const ListNeurons = IDL.Record({
672
733
  'neuron_ids' : IDL.Vec(IDL.Nat64),
734
+ 'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
673
735
  'include_neurons_readable_by_caller' : IDL.Bool,
674
736
  });
675
737
  const ListNeuronsResponse = IDL.Record({
@@ -757,7 +819,9 @@ export const idlFactory = ({ IDL }) => {
757
819
  'nns_proposal_id' : IDL.Opt(IDL.Nat64),
758
820
  });
759
821
  const NeuronsFundNeuron = IDL.Record({
822
+ 'controller' : IDL.Opt(IDL.Principal),
760
823
  'hotkey_principal' : IDL.Opt(IDL.Text),
824
+ 'hotkeys' : IDL.Opt(Principals),
761
825
  'is_capped' : IDL.Opt(IDL.Bool),
762
826
  'nns_neuron_id' : IDL.Opt(IDL.Nat64),
763
827
  'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -795,7 +859,7 @@ export const idlFactory = ({ IDL }) => {
795
859
  'get_monthly_node_provider_rewards' : IDL.Func([], [Result_4], []),
796
860
  'get_most_recent_monthly_node_provider_rewards' : IDL.Func(
797
861
  [],
798
- [IDL.Opt(MostRecentMonthlyNodeProviderRewards)],
862
+ [IDL.Opt(MonthlyNodeProviderRewards)],
799
863
  ['query'],
800
864
  ),
801
865
  'get_network_economics_parameters' : IDL.Func(
@@ -901,6 +965,7 @@ export const init = ({ IDL }) => {
901
965
  const IncreaseDissolveDelay = IDL.Record({
902
966
  'additional_dissolve_delay_seconds' : IDL.Nat32,
903
967
  });
968
+ const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
904
969
  const SetDissolveTimestamp = IDL.Record({
905
970
  'dissolve_timestamp_seconds' : IDL.Nat64,
906
971
  });
@@ -911,6 +976,7 @@ export const init = ({ IDL }) => {
911
976
  'StopDissolving' : IDL.Record({}),
912
977
  'StartDissolving' : IDL.Record({}),
913
978
  'IncreaseDissolveDelay' : IncreaseDissolveDelay,
979
+ 'SetVisibility' : SetVisibility,
914
980
  'JoinCommunityFund' : IDL.Record({}),
915
981
  'LeaveCommunityFund' : IDL.Record({}),
916
982
  'SetDissolveTimestamp' : SetDissolveTimestamp,
@@ -961,6 +1027,30 @@ export const init = ({ IDL }) => {
961
1027
  'command' : IDL.Opt(Command),
962
1028
  'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
963
1029
  });
1030
+ const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1031
+ const CanisterSettings = IDL.Record({
1032
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1033
+ 'controllers' : IDL.Opt(Controllers),
1034
+ 'log_visibility' : IDL.Opt(IDL.Int32),
1035
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
1036
+ 'memory_allocation' : IDL.Opt(IDL.Nat64),
1037
+ 'compute_allocation' : IDL.Opt(IDL.Nat64),
1038
+ });
1039
+ const UpdateCanisterSettings = IDL.Record({
1040
+ 'canister_id' : IDL.Opt(IDL.Principal),
1041
+ 'settings' : IDL.Opt(CanisterSettings),
1042
+ });
1043
+ const InstallCode = IDL.Record({
1044
+ 'arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1045
+ 'wasm_module' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1046
+ 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
1047
+ 'canister_id' : IDL.Opt(IDL.Principal),
1048
+ 'install_mode' : IDL.Opt(IDL.Int32),
1049
+ });
1050
+ const StopOrStartCanister = IDL.Record({
1051
+ 'action' : IDL.Opt(IDL.Int32),
1052
+ 'canister_id' : IDL.Opt(IDL.Principal),
1053
+ });
964
1054
  const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
965
1055
  const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
966
1056
  const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
@@ -1131,9 +1221,7 @@ export const init = ({ IDL }) => {
1131
1221
  'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1132
1222
  'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
1133
1223
  });
1134
- const ApproveGenesisKyc = IDL.Record({
1135
- 'principals' : IDL.Vec(IDL.Principal),
1136
- });
1224
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
1137
1225
  const Change = IDL.Variant({
1138
1226
  'ToRemove' : NodeProvider,
1139
1227
  'ToAdd' : NodeProvider,
@@ -1143,6 +1231,9 @@ export const init = ({ IDL }) => {
1143
1231
  const Action = IDL.Variant({
1144
1232
  'RegisterKnownNeuron' : KnownNeuron,
1145
1233
  'ManageNeuron' : ManageNeuron,
1234
+ 'UpdateCanisterSettings' : UpdateCanisterSettings,
1235
+ 'InstallCode' : InstallCode,
1236
+ 'StopOrStartCanister' : StopOrStartCanister,
1146
1237
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
1147
1238
  'ExecuteNnsFunction' : ExecuteNnsFunction,
1148
1239
  'RewardNodeProvider' : RewardNodeProvider,
@@ -1151,7 +1242,7 @@ export const init = ({ IDL }) => {
1151
1242
  'SetDefaultFollowees' : SetDefaultFollowees,
1152
1243
  'RewardNodeProviders' : RewardNodeProviders,
1153
1244
  'ManageNetworkEconomics' : NetworkEconomics,
1154
- 'ApproveGenesisKyc' : ApproveGenesisKyc,
1245
+ 'ApproveGenesisKyc' : Principals,
1155
1246
  'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
1156
1247
  'Motion' : Motion,
1157
1248
  });
@@ -1168,9 +1259,34 @@ export const init = ({ IDL }) => {
1168
1259
  'caller' : IDL.Opt(IDL.Principal),
1169
1260
  'proposer_id' : IDL.Opt(NeuronId),
1170
1261
  });
1171
- const MostRecentMonthlyNodeProviderRewards = IDL.Record({
1262
+ const XdrConversionRate = IDL.Record({
1263
+ 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1264
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1265
+ });
1266
+ const MonthlyNodeProviderRewards = IDL.Record({
1267
+ 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1268
+ 'registry_version' : IDL.Opt(IDL.Nat64),
1269
+ 'node_providers' : IDL.Vec(NodeProvider),
1172
1270
  'timestamp' : IDL.Nat64,
1173
1271
  'rewards' : IDL.Vec(RewardNodeProvider),
1272
+ 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
1273
+ 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
1274
+ });
1275
+ const NeuronSubsetMetrics = IDL.Record({
1276
+ 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1277
+ 'maturity_e8s_equivalent_buckets' : IDL.Vec(
1278
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1279
+ ),
1280
+ 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1281
+ 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1282
+ 'count' : IDL.Opt(IDL.Nat64),
1283
+ 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1284
+ 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1285
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1286
+ ),
1287
+ 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1288
+ 'total_voting_power' : IDL.Opt(IDL.Nat64),
1289
+ 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1174
1290
  });
1175
1291
  const GovernanceCachedMetrics = IDL.Record({
1176
1292
  'total_maturity_e8s_equivalent' : IDL.Nat64,
@@ -1197,6 +1313,9 @@ export const init = ({ IDL }) => {
1197
1313
  'not_dissolving_neurons_count' : IDL.Nat64,
1198
1314
  'total_locked_e8s' : IDL.Nat64,
1199
1315
  'neurons_fund_total_active_neurons' : IDL.Nat64,
1316
+ 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
1317
+ IDL.Nat64
1318
+ ),
1200
1319
  'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1201
1320
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1202
1321
  IDL.Tuple(IDL.Nat64, IDL.Float64)
@@ -1204,6 +1323,7 @@ export const init = ({ IDL }) => {
1204
1323
  'total_staked_e8s_ect' : IDL.Nat64,
1205
1324
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1206
1325
  'dissolved_neurons_e8s' : IDL.Nat64,
1326
+ 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
1207
1327
  'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1208
1328
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1209
1329
  ),
@@ -1217,6 +1337,9 @@ export const init = ({ IDL }) => {
1217
1337
  'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1218
1338
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1219
1339
  ),
1340
+ 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
1341
+ NeuronSubsetMetrics
1342
+ ),
1220
1343
  'dissolving_neurons_count' : IDL.Nat64,
1221
1344
  'dissolving_neurons_e8s_buckets' : IDL.Vec(
1222
1345
  IDL.Tuple(IDL.Nat64, IDL.Float64)
@@ -1277,10 +1400,12 @@ export const init = ({ IDL }) => {
1277
1400
  });
1278
1401
  const CfNeuron = IDL.Record({
1279
1402
  'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
1403
+ 'hotkeys' : IDL.Opt(Principals),
1280
1404
  'nns_neuron_id' : IDL.Nat64,
1281
1405
  'amount_icp_e8s' : IDL.Nat64,
1282
1406
  });
1283
1407
  const CfParticipant = IDL.Record({
1408
+ 'controller' : IDL.Opt(IDL.Principal),
1284
1409
  'hotkey_principal' : IDL.Text,
1285
1410
  'cf_neurons' : IDL.Vec(CfNeuron),
1286
1411
  });
@@ -1292,7 +1417,9 @@ export const init = ({ IDL }) => {
1292
1417
  'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1293
1418
  });
1294
1419
  const NeuronsFundNeuronPortion = IDL.Record({
1420
+ 'controller' : IDL.Opt(IDL.Principal),
1295
1421
  'hotkey_principal' : IDL.Opt(IDL.Principal),
1422
+ 'hotkeys' : IDL.Vec(IDL.Principal),
1296
1423
  'is_capped' : IDL.Opt(IDL.Bool),
1297
1424
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1298
1425
  'nns_neuron_id' : IDL.Opt(NeuronId),
@@ -1378,10 +1505,6 @@ export const init = ({ IDL }) => {
1378
1505
  IDL.Nat64
1379
1506
  ),
1380
1507
  });
1381
- const XdrConversionRate = IDL.Record({
1382
- 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1383
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1384
- });
1385
1508
  const Command_2 = IDL.Variant({
1386
1509
  'Spawn' : NeuronId,
1387
1510
  'Split' : Split,
@@ -1424,6 +1547,7 @@ export const init = ({ IDL }) => {
1424
1547
  'dissolve_state' : IDL.Opt(DissolveState),
1425
1548
  'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1426
1549
  'neuron_fees_e8s' : IDL.Nat64,
1550
+ 'visibility' : IDL.Opt(IDL.Int32),
1427
1551
  'transfer' : IDL.Opt(NeuronStakeTransfer),
1428
1552
  'known_neuron_data' : IDL.Opt(KnownNeuronData),
1429
1553
  'spawn_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),
@@ -1432,7 +1556,7 @@ export const init = ({ IDL }) => {
1432
1556
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1433
1557
  'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
1434
1558
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
1435
- MostRecentMonthlyNodeProviderRewards
1559
+ MonthlyNodeProviderRewards
1436
1560
  ),
1437
1561
  'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
1438
1562
  IDL.Nat64