@dfinity/nns 5.2.0 → 6.0.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.
Files changed (34) hide show
  1. package/README.md +46 -35
  2. package/dist/candid/genesis_token.did +1 -1
  3. package/dist/candid/governance.certified.idl.js +152 -10
  4. package/dist/candid/governance.d.ts +114 -3
  5. package/dist/candid/governance.did +107 -4
  6. package/dist/candid/governance.idl.js +152 -10
  7. package/dist/candid/governance_test.certified.idl.js +152 -10
  8. package/dist/candid/governance_test.d.ts +114 -3
  9. package/dist/candid/governance_test.did +107 -4
  10. package/dist/candid/governance_test.idl.js +152 -10
  11. package/dist/candid/sns_wasm.certified.idl.js +0 -13
  12. package/dist/candid/sns_wasm.d.ts +0 -13
  13. package/dist/candid/sns_wasm.did +1 -12
  14. package/dist/candid/sns_wasm.idl.js +0 -13
  15. package/dist/cjs/index.cjs.js +1 -1
  16. package/dist/cjs/index.cjs.js.map +3 -3
  17. package/dist/esm/chunk-3GMJYFVP.js +2 -0
  18. package/dist/esm/chunk-3GMJYFVP.js.map +7 -0
  19. package/dist/esm/chunk-L6YE6E7N.js +19 -0
  20. package/dist/esm/chunk-L6YE6E7N.js.map +7 -0
  21. package/dist/esm/governance.canister.js +1 -1
  22. package/dist/esm/index.js +1 -1
  23. package/dist/esm/index.js.map +3 -3
  24. package/dist/esm/sns_wasm.canister.js +1 -1
  25. package/dist/types/canisters/governance/request.converters.d.ts +10 -5
  26. package/dist/types/canisters/governance/services.d.ts +3 -3
  27. package/dist/types/enums/governance.enums.d.ts +32 -6
  28. package/dist/types/governance.canister.d.ts +9 -2
  29. package/dist/types/types/governance_converters.d.ts +108 -2
  30. package/package.json +6 -6
  31. package/dist/esm/chunk-RRSEQTKA.js +0 -2
  32. package/dist/esm/chunk-RRSEQTKA.js.map +0 -7
  33. package/dist/esm/chunk-ZSTGGZGS.js +0 -19
  34. package/dist/esm/chunk-ZSTGGZGS.js.map +0 -7
@@ -1,8 +1,11 @@
1
- // Generated from IC repo commit a3831c8 (2024-07-11 tags: release-2024-07-10_23-01-base) 'rs/nns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit 3d6a76e (2024-08-14 tags: release-2024-08-21_15-36-canister-snapshots) '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;
@@ -124,6 +138,10 @@ type CreateServiceNervousSystem = record {
124
138
  swap_parameters : opt SwapParameters;
125
139
  initial_token_distribution : opt InitialTokenDistribution;
126
140
  };
141
+ type DateRangeFilter = record {
142
+ start_timestamp_seconds : opt nat64;
143
+ end_timestamp_seconds : opt nat64;
144
+ };
127
145
  type Decimal = record { human_readable : opt text };
128
146
  type DerivedProposalInformation = record {
129
147
  swap_background_information : opt SwapBackgroundInformation;
@@ -223,6 +241,7 @@ type GovernanceCachedMetrics = record {
223
241
  total_staked_maturity_e8s_equivalent_seed : nat64;
224
242
  community_fund_total_staked_e8s : nat64;
225
243
  not_dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
244
+ public_neuron_subset_metrics : opt NeuronSubsetMetrics;
226
245
  timestamp_seconds : nat64;
227
246
  seed_neuron_count : nat64;
228
247
  };
@@ -251,6 +270,20 @@ type InitialTokenDistribution = record {
251
270
  developer_distribution : opt DeveloperDistribution;
252
271
  swap_distribution : opt SwapDistribution;
253
272
  };
273
+ type InstallCode = record {
274
+ skip_stopping_before_installing : opt bool;
275
+ wasm_module_hash : opt blob;
276
+ canister_id : opt principal;
277
+ arg_hash : opt blob;
278
+ install_mode : opt int32;
279
+ };
280
+ type InstallCodeRequest = record {
281
+ arg : opt blob;
282
+ wasm_module : opt blob;
283
+ skip_stopping_before_installing : opt bool;
284
+ canister_id : opt principal;
285
+ install_mode : opt int32;
286
+ };
254
287
  type KnownNeuron = record {
255
288
  id : opt NeuronId;
256
289
  known_neuron_data : opt KnownNeuronData;
@@ -264,6 +297,7 @@ type LedgerParameters = record {
264
297
  };
265
298
  type ListKnownNeuronsResponse = record { known_neurons : vec KnownNeuron };
266
299
  type ListNeurons = record {
300
+ include_public_neurons_in_full_neurons : opt bool;
267
301
  neuron_ids : vec nat64;
268
302
  include_empty_neurons_readable_by_caller : opt bool;
269
303
  include_neurons_readable_by_caller : bool;
@@ -272,6 +306,12 @@ type ListNeuronsResponse = record {
272
306
  neuron_infos : vec record { nat64; NeuronInfo };
273
307
  full_neurons : vec Neuron;
274
308
  };
309
+ type ListNodeProviderRewardsRequest = record {
310
+ date_filter : opt DateRangeFilter;
311
+ };
312
+ type ListNodeProviderRewardsResponse = record {
313
+ rewards : vec MonthlyNodeProviderRewards;
314
+ };
275
315
  type ListNodeProvidersResponse = record { node_providers : vec NodeProvider };
276
316
  type ListProposalInfo = record {
277
317
  include_reward_status : vec int32;
@@ -283,6 +323,12 @@ type ListProposalInfo = record {
283
323
  include_status : vec int32;
284
324
  };
285
325
  type ListProposalInfoResponse = record { proposal_info : vec ProposalInfo };
326
+ type MakeProposalRequest = record {
327
+ url : text;
328
+ title : opt text;
329
+ action : opt ProposalActionRequest;
330
+ summary : text;
331
+ };
286
332
  type MakeProposalResponse = record {
287
333
  message : opt text;
288
334
  proposal_id : opt NeuronId;
@@ -297,6 +343,25 @@ type ManageNeuron = record {
297
343
  command : opt Command;
298
344
  neuron_id_or_subaccount : opt NeuronIdOrSubaccount;
299
345
  };
346
+ type ManageNeuronCommandRequest = variant {
347
+ Spawn : Spawn;
348
+ Split : Split;
349
+ Follow : Follow;
350
+ ClaimOrRefresh : ClaimOrRefresh;
351
+ Configure : Configure;
352
+ RegisterVote : RegisterVote;
353
+ Merge : Merge;
354
+ DisburseToNeuron : DisburseToNeuron;
355
+ MakeProposal : MakeProposalRequest;
356
+ StakeMaturity : StakeMaturity;
357
+ MergeMaturity : MergeMaturity;
358
+ Disburse : Disburse;
359
+ };
360
+ type ManageNeuronRequest = record {
361
+ id : opt NeuronId;
362
+ command : opt ManageNeuronCommandRequest;
363
+ neuron_id_or_subaccount : opt NeuronIdOrSubaccount;
364
+ };
300
365
  type ManageNeuronResponse = record { command : opt Command_1 };
301
366
  type Merge = record { source_neuron_id : opt NeuronId };
302
367
  type MergeMaturity = record { percentage_to_merge : nat32 };
@@ -359,6 +424,7 @@ type Neuron = record {
359
424
  dissolve_state : opt DissolveState;
360
425
  followees : vec record { int32; Followees };
361
426
  neuron_fees_e8s : nat64;
427
+ visibility : opt int32;
362
428
  transfer : opt NeuronStakeTransfer;
363
429
  known_neuron_data : opt KnownNeuronData;
364
430
  spawn_at_timestamp_seconds : opt nat64;
@@ -393,6 +459,7 @@ type NeuronInfo = record {
393
459
  stake_e8s : nat64;
394
460
  joined_community_fund_timestamp_seconds : opt nat64;
395
461
  retrieved_at_timestamp_seconds : nat64;
462
+ visibility : opt int32;
396
463
  known_neuron_data : opt KnownNeuronData;
397
464
  voting_power : nat64;
398
465
  age_seconds : nat64;
@@ -440,13 +507,17 @@ type NeuronsFundMatchedFundingCurveCoefficients = record {
440
507
  full_participation_milestone_xdr : opt Decimal;
441
508
  };
442
509
  type NeuronsFundNeuron = record {
510
+ controller : opt principal;
443
511
  hotkey_principal : opt text;
512
+ hotkeys : opt Principals;
444
513
  is_capped : opt bool;
445
514
  nns_neuron_id : opt nat64;
446
515
  amount_icp_e8s : opt nat64;
447
516
  };
448
517
  type NeuronsFundNeuronPortion = record {
518
+ controller : opt principal;
449
519
  hotkey_principal : opt principal;
520
+ hotkeys : vec principal;
450
521
  is_capped : opt bool;
451
522
  maturity_equivalent_icp_e8s : opt nat64;
452
523
  nns_neuron_id : opt NeuronId;
@@ -483,6 +554,7 @@ type Operation = variant {
483
554
  StopDissolving : record {};
484
555
  StartDissolving : record {};
485
556
  IncreaseDissolveDelay : IncreaseDissolveDelay;
557
+ SetVisibility : SetVisibility;
486
558
  JoinCommunityFund : record {};
487
559
  LeaveCommunityFund : record {};
488
560
  SetDissolveTimestamp : SetDissolveTimestamp;
@@ -501,6 +573,7 @@ type Params = record {
501
573
  max_direct_participation_icp_e8s : opt nat64;
502
574
  };
503
575
  type Percentage = record { basis_points : opt nat64 };
576
+ type Principals = record { principals : vec principal };
504
577
  type Progress = variant { LastNeuronId : NeuronId };
505
578
  type Proposal = record {
506
579
  url : text;
@@ -508,6 +581,24 @@ type Proposal = record {
508
581
  action : opt Action;
509
582
  summary : text;
510
583
  };
584
+ type ProposalActionRequest = variant {
585
+ RegisterKnownNeuron : KnownNeuron;
586
+ ManageNeuron : ManageNeuronRequest;
587
+ UpdateCanisterSettings : UpdateCanisterSettings;
588
+ InstallCode : InstallCodeRequest;
589
+ StopOrStartCanister : StopOrStartCanister;
590
+ CreateServiceNervousSystem : CreateServiceNervousSystem;
591
+ ExecuteNnsFunction : ExecuteNnsFunction;
592
+ RewardNodeProvider : RewardNodeProvider;
593
+ OpenSnsTokenSwap : OpenSnsTokenSwap;
594
+ SetSnsTokenSwapOpenTimeWindow : SetSnsTokenSwapOpenTimeWindow;
595
+ SetDefaultFollowees : SetDefaultFollowees;
596
+ RewardNodeProviders : RewardNodeProviders;
597
+ ManageNetworkEconomics : NetworkEconomics;
598
+ ApproveGenesisKyc : Principals;
599
+ AddOrRemoveNodeProvider : AddOrRemoveNodeProvider;
600
+ Motion : Motion;
601
+ };
511
602
  type ProposalData = record {
512
603
  id : opt NeuronId;
513
604
  failure_reason : opt GovernanceError;
@@ -603,6 +694,7 @@ type SetSnsTokenSwapOpenTimeWindow = record {
603
694
  request : opt SetOpenTimeWindowRequest;
604
695
  swap_canister_id : opt principal;
605
696
  };
697
+ type SetVisibility = record { visibility : opt int32 };
606
698
  type SettleCommunityFundParticipation = record {
607
699
  result : opt Result_8;
608
700
  open_sns_token_swap_proposal_id : opt nat64;
@@ -624,6 +716,10 @@ type StakeMaturityResponse = record {
624
716
  maturity_e8s : nat64;
625
717
  staked_maturity_e8s : nat64;
626
718
  };
719
+ type StopOrStartCanister = record {
720
+ action : opt int32;
721
+ canister_id : opt principal;
722
+ };
627
723
  type SwapBackgroundInformation = record {
628
724
  ledger_index_canister_summary : opt CanisterSummary;
629
725
  fallback_controller_principal_ids : vec principal;
@@ -668,6 +764,10 @@ type TimeWindow = record {
668
764
  end_timestamp_seconds : nat64;
669
765
  };
670
766
  type Tokens = record { e8s : opt nat64 };
767
+ type UpdateCanisterSettings = record {
768
+ canister_id : opt principal;
769
+ settings : opt CanisterSettings;
770
+ };
671
771
  type UpdateNodeProvider = record { reward_account : opt AccountIdentifier };
672
772
  type VotingRewardParameters = record {
673
773
  reward_rate_transition_duration : opt Duration;
@@ -710,16 +810,19 @@ service : (Governance) -> {
710
810
  get_restore_aging_summary : () -> (RestoreAgingSummary) query;
711
811
  list_known_neurons : () -> (ListKnownNeuronsResponse) query;
712
812
  list_neurons : (ListNeurons) -> (ListNeuronsResponse) query;
813
+ list_node_provider_rewards : (ListNodeProviderRewardsRequest) -> (
814
+ ListNodeProviderRewardsResponse,
815
+ ) query;
713
816
  list_node_providers : () -> (ListNodeProvidersResponse) query;
714
817
  list_proposals : (ListProposalInfo) -> (ListProposalInfoResponse) query;
715
- manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
818
+ manage_neuron : (ManageNeuronRequest) -> (ManageNeuronResponse);
716
819
  settle_community_fund_participation : (SettleCommunityFundParticipation) -> (
717
820
  Result,
718
821
  );
719
822
  settle_neurons_fund_participation : (
720
823
  SettleNeuronsFundParticipationRequest,
721
824
  ) -> (SettleNeuronsFundParticipationResponse);
722
- simulate_manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
825
+ simulate_manage_neuron : (ManageNeuronRequest) -> (ManageNeuronResponse);
723
826
  transfer_gtc_neuron : (NeuronId, NeuronId) -> (Result);
724
827
  update_node_provider : (UpdateNodeProvider) -> (Result);
725
828
  }
@@ -1,5 +1,6 @@
1
1
  /* Do not edit. Compiled with ./scripts/compile-idl-js from packages/nns/candid/governance.did */
2
2
  export const idlFactory = ({ IDL }) => {
3
+ const ManageNeuronRequest = IDL.Rec();
3
4
  const Proposal = IDL.Rec();
4
5
  const NeuronId = IDL.Record({ 'id' : IDL.Nat64 });
5
6
  const Followees = IDL.Record({ 'followees' : IDL.Vec(NeuronId) });
@@ -41,6 +42,7 @@ export const idlFactory = ({ IDL }) => {
41
42
  const IncreaseDissolveDelay = IDL.Record({
42
43
  'additional_dissolve_delay_seconds' : IDL.Nat32,
43
44
  });
45
+ const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
44
46
  const SetDissolveTimestamp = IDL.Record({
45
47
  'dissolve_timestamp_seconds' : IDL.Nat64,
46
48
  });
@@ -51,6 +53,7 @@ export const idlFactory = ({ IDL }) => {
51
53
  'StopDissolving' : IDL.Record({}),
52
54
  'StartDissolving' : IDL.Record({}),
53
55
  'IncreaseDissolveDelay' : IncreaseDissolveDelay,
56
+ 'SetVisibility' : SetVisibility,
54
57
  'JoinCommunityFund' : IDL.Record({}),
55
58
  'LeaveCommunityFund' : IDL.Record({}),
56
59
  'SetDissolveTimestamp' : SetDissolveTimestamp,
@@ -101,6 +104,30 @@ export const idlFactory = ({ IDL }) => {
101
104
  'command' : IDL.Opt(Command),
102
105
  'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
103
106
  });
107
+ const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
108
+ const CanisterSettings = IDL.Record({
109
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
110
+ 'controllers' : IDL.Opt(Controllers),
111
+ 'log_visibility' : IDL.Opt(IDL.Int32),
112
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
113
+ 'memory_allocation' : IDL.Opt(IDL.Nat64),
114
+ 'compute_allocation' : IDL.Opt(IDL.Nat64),
115
+ });
116
+ const UpdateCanisterSettings = IDL.Record({
117
+ 'canister_id' : IDL.Opt(IDL.Principal),
118
+ 'settings' : IDL.Opt(CanisterSettings),
119
+ });
120
+ const InstallCode = IDL.Record({
121
+ 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
122
+ 'wasm_module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
123
+ 'canister_id' : IDL.Opt(IDL.Principal),
124
+ 'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
125
+ 'install_mode' : IDL.Opt(IDL.Int32),
126
+ });
127
+ const StopOrStartCanister = IDL.Record({
128
+ 'action' : IDL.Opt(IDL.Int32),
129
+ 'canister_id' : IDL.Opt(IDL.Principal),
130
+ });
104
131
  const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
105
132
  const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
106
133
  const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
@@ -271,9 +298,7 @@ export const idlFactory = ({ IDL }) => {
271
298
  'maximum_node_provider_rewards_e8s' : IDL.Nat64,
272
299
  'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
273
300
  });
274
- const ApproveGenesisKyc = IDL.Record({
275
- 'principals' : IDL.Vec(IDL.Principal),
276
- });
301
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
277
302
  const Change = IDL.Variant({
278
303
  'ToRemove' : NodeProvider,
279
304
  'ToAdd' : NodeProvider,
@@ -283,6 +308,9 @@ export const idlFactory = ({ IDL }) => {
283
308
  const Action = IDL.Variant({
284
309
  'RegisterKnownNeuron' : KnownNeuron,
285
310
  'ManageNeuron' : ManageNeuron,
311
+ 'UpdateCanisterSettings' : UpdateCanisterSettings,
312
+ 'InstallCode' : InstallCode,
313
+ 'StopOrStartCanister' : StopOrStartCanister,
286
314
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
287
315
  'ExecuteNnsFunction' : ExecuteNnsFunction,
288
316
  'RewardNodeProvider' : RewardNodeProvider,
@@ -291,7 +319,7 @@ export const idlFactory = ({ IDL }) => {
291
319
  'SetDefaultFollowees' : SetDefaultFollowees,
292
320
  'RewardNodeProviders' : RewardNodeProviders,
293
321
  'ManageNetworkEconomics' : NetworkEconomics,
294
- 'ApproveGenesisKyc' : ApproveGenesisKyc,
322
+ 'ApproveGenesisKyc' : Principals,
295
323
  'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
296
324
  'Motion' : Motion,
297
325
  });
@@ -398,6 +426,7 @@ export const idlFactory = ({ IDL }) => {
398
426
  'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
399
427
  IDL.Tuple(IDL.Nat64, IDL.Float64)
400
428
  ),
429
+ 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
401
430
  'timestamp_seconds' : IDL.Nat64,
402
431
  'seed_neuron_count' : IDL.Nat64,
403
432
  });
@@ -449,10 +478,12 @@ export const idlFactory = ({ IDL }) => {
449
478
  });
450
479
  const CfNeuron = IDL.Record({
451
480
  'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
481
+ 'hotkeys' : IDL.Opt(Principals),
452
482
  'nns_neuron_id' : IDL.Nat64,
453
483
  'amount_icp_e8s' : IDL.Nat64,
454
484
  });
455
485
  const CfParticipant = IDL.Record({
486
+ 'controller' : IDL.Opt(IDL.Principal),
456
487
  'hotkey_principal' : IDL.Text,
457
488
  'cf_neurons' : IDL.Vec(CfNeuron),
458
489
  });
@@ -464,7 +495,9 @@ export const idlFactory = ({ IDL }) => {
464
495
  'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
465
496
  });
466
497
  const NeuronsFundNeuronPortion = IDL.Record({
498
+ 'controller' : IDL.Opt(IDL.Principal),
467
499
  'hotkey_principal' : IDL.Opt(IDL.Principal),
500
+ 'hotkeys' : IDL.Vec(IDL.Principal),
468
501
  'is_capped' : IDL.Opt(IDL.Bool),
469
502
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
470
503
  'nns_neuron_id' : IDL.Opt(NeuronId),
@@ -592,6 +625,7 @@ export const idlFactory = ({ IDL }) => {
592
625
  'dissolve_state' : IDL.Opt(DissolveState),
593
626
  'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
594
627
  'neuron_fees_e8s' : IDL.Nat64,
628
+ 'visibility' : IDL.Opt(IDL.Int32),
595
629
  'transfer' : IDL.Opt(NeuronStakeTransfer),
596
630
  'known_neuron_data' : IDL.Opt(KnownNeuronData),
597
631
  'spawn_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),
@@ -650,6 +684,7 @@ export const idlFactory = ({ IDL }) => {
650
684
  'stake_e8s' : IDL.Nat64,
651
685
  'joined_community_fund_timestamp_seconds' : IDL.Opt(IDL.Nat64),
652
686
  'retrieved_at_timestamp_seconds' : IDL.Nat64,
687
+ 'visibility' : IDL.Opt(IDL.Int32),
653
688
  'known_neuron_data' : IDL.Opt(KnownNeuronData),
654
689
  'voting_power' : IDL.Nat64,
655
690
  'age_seconds' : IDL.Nat64,
@@ -697,6 +732,7 @@ export const idlFactory = ({ IDL }) => {
697
732
  'known_neurons' : IDL.Vec(KnownNeuron),
698
733
  });
699
734
  const ListNeurons = IDL.Record({
735
+ 'include_public_neurons_in_full_neurons' : IDL.Opt(IDL.Bool),
700
736
  'neuron_ids' : IDL.Vec(IDL.Nat64),
701
737
  'include_empty_neurons_readable_by_caller' : IDL.Opt(IDL.Bool),
702
738
  'include_neurons_readable_by_caller' : IDL.Bool,
@@ -705,6 +741,16 @@ export const idlFactory = ({ IDL }) => {
705
741
  'neuron_infos' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInfo)),
706
742
  'full_neurons' : IDL.Vec(Neuron),
707
743
  });
744
+ const DateRangeFilter = IDL.Record({
745
+ 'start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
746
+ 'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
747
+ });
748
+ const ListNodeProviderRewardsRequest = IDL.Record({
749
+ 'date_filter' : IDL.Opt(DateRangeFilter),
750
+ });
751
+ const ListNodeProviderRewardsResponse = IDL.Record({
752
+ 'rewards' : IDL.Vec(MonthlyNodeProviderRewards),
753
+ });
708
754
  const ListNodeProvidersResponse = IDL.Record({
709
755
  'node_providers' : IDL.Vec(NodeProvider),
710
756
  });
@@ -720,6 +766,58 @@ export const idlFactory = ({ IDL }) => {
720
766
  const ListProposalInfoResponse = IDL.Record({
721
767
  'proposal_info' : IDL.Vec(ProposalInfo),
722
768
  });
769
+ const InstallCodeRequest = IDL.Record({
770
+ 'arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
771
+ 'wasm_module' : IDL.Opt(IDL.Vec(IDL.Nat8)),
772
+ 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
773
+ 'canister_id' : IDL.Opt(IDL.Principal),
774
+ 'install_mode' : IDL.Opt(IDL.Int32),
775
+ });
776
+ const ProposalActionRequest = IDL.Variant({
777
+ 'RegisterKnownNeuron' : KnownNeuron,
778
+ 'ManageNeuron' : ManageNeuronRequest,
779
+ 'UpdateCanisterSettings' : UpdateCanisterSettings,
780
+ 'InstallCode' : InstallCodeRequest,
781
+ 'StopOrStartCanister' : StopOrStartCanister,
782
+ 'CreateServiceNervousSystem' : CreateServiceNervousSystem,
783
+ 'ExecuteNnsFunction' : ExecuteNnsFunction,
784
+ 'RewardNodeProvider' : RewardNodeProvider,
785
+ 'OpenSnsTokenSwap' : OpenSnsTokenSwap,
786
+ 'SetSnsTokenSwapOpenTimeWindow' : SetSnsTokenSwapOpenTimeWindow,
787
+ 'SetDefaultFollowees' : SetDefaultFollowees,
788
+ 'RewardNodeProviders' : RewardNodeProviders,
789
+ 'ManageNetworkEconomics' : NetworkEconomics,
790
+ 'ApproveGenesisKyc' : Principals,
791
+ 'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
792
+ 'Motion' : Motion,
793
+ });
794
+ const MakeProposalRequest = IDL.Record({
795
+ 'url' : IDL.Text,
796
+ 'title' : IDL.Opt(IDL.Text),
797
+ 'action' : IDL.Opt(ProposalActionRequest),
798
+ 'summary' : IDL.Text,
799
+ });
800
+ const ManageNeuronCommandRequest = IDL.Variant({
801
+ 'Spawn' : Spawn,
802
+ 'Split' : Split,
803
+ 'Follow' : Follow,
804
+ 'ClaimOrRefresh' : ClaimOrRefresh,
805
+ 'Configure' : Configure,
806
+ 'RegisterVote' : RegisterVote,
807
+ 'Merge' : Merge,
808
+ 'DisburseToNeuron' : DisburseToNeuron,
809
+ 'MakeProposal' : MakeProposalRequest,
810
+ 'StakeMaturity' : StakeMaturity,
811
+ 'MergeMaturity' : MergeMaturity,
812
+ 'Disburse' : Disburse,
813
+ });
814
+ ManageNeuronRequest.fill(
815
+ IDL.Record({
816
+ 'id' : IDL.Opt(NeuronId),
817
+ 'command' : IDL.Opt(ManageNeuronCommandRequest),
818
+ 'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
819
+ })
820
+ );
723
821
  const SpawnResponse = IDL.Record({ 'created_neuron_id' : IDL.Opt(NeuronId) });
724
822
  const ClaimOrRefreshResponse = IDL.Record({
725
823
  'refreshed_neuron_id' : IDL.Opt(NeuronId),
@@ -786,7 +884,9 @@ export const idlFactory = ({ IDL }) => {
786
884
  'nns_proposal_id' : IDL.Opt(IDL.Nat64),
787
885
  });
788
886
  const NeuronsFundNeuron = IDL.Record({
887
+ 'controller' : IDL.Opt(IDL.Principal),
789
888
  'hotkey_principal' : IDL.Opt(IDL.Text),
889
+ 'hotkeys' : IDL.Opt(Principals),
790
890
  'is_capped' : IDL.Opt(IDL.Bool),
791
891
  'nns_neuron_id' : IDL.Opt(IDL.Nat64),
792
892
  'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -858,6 +958,11 @@ export const idlFactory = ({ IDL }) => {
858
958
  ),
859
959
  'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], ['query']),
860
960
  'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], ['query']),
961
+ 'list_node_provider_rewards' : IDL.Func(
962
+ [ListNodeProviderRewardsRequest],
963
+ [ListNodeProviderRewardsResponse],
964
+ ['query'],
965
+ ),
861
966
  'list_node_providers' : IDL.Func(
862
967
  [],
863
968
  [ListNodeProvidersResponse],
@@ -868,7 +973,11 @@ export const idlFactory = ({ IDL }) => {
868
973
  [ListProposalInfoResponse],
869
974
  ['query'],
870
975
  ),
871
- 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
976
+ 'manage_neuron' : IDL.Func(
977
+ [ManageNeuronRequest],
978
+ [ManageNeuronResponse],
979
+ [],
980
+ ),
872
981
  'settle_community_fund_participation' : IDL.Func(
873
982
  [SettleCommunityFundParticipation],
874
983
  [Result],
@@ -880,7 +989,7 @@ export const idlFactory = ({ IDL }) => {
880
989
  [],
881
990
  ),
882
991
  'simulate_manage_neuron' : IDL.Func(
883
- [ManageNeuron],
992
+ [ManageNeuronRequest],
884
993
  [ManageNeuronResponse],
885
994
  [],
886
995
  ),
@@ -930,6 +1039,7 @@ export const init = ({ IDL }) => {
930
1039
  const IncreaseDissolveDelay = IDL.Record({
931
1040
  'additional_dissolve_delay_seconds' : IDL.Nat32,
932
1041
  });
1042
+ const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
933
1043
  const SetDissolveTimestamp = IDL.Record({
934
1044
  'dissolve_timestamp_seconds' : IDL.Nat64,
935
1045
  });
@@ -940,6 +1050,7 @@ export const init = ({ IDL }) => {
940
1050
  'StopDissolving' : IDL.Record({}),
941
1051
  'StartDissolving' : IDL.Record({}),
942
1052
  'IncreaseDissolveDelay' : IncreaseDissolveDelay,
1053
+ 'SetVisibility' : SetVisibility,
943
1054
  'JoinCommunityFund' : IDL.Record({}),
944
1055
  'LeaveCommunityFund' : IDL.Record({}),
945
1056
  'SetDissolveTimestamp' : SetDissolveTimestamp,
@@ -990,6 +1101,30 @@ export const init = ({ IDL }) => {
990
1101
  'command' : IDL.Opt(Command),
991
1102
  'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
992
1103
  });
1104
+ const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1105
+ const CanisterSettings = IDL.Record({
1106
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1107
+ 'controllers' : IDL.Opt(Controllers),
1108
+ 'log_visibility' : IDL.Opt(IDL.Int32),
1109
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
1110
+ 'memory_allocation' : IDL.Opt(IDL.Nat64),
1111
+ 'compute_allocation' : IDL.Opt(IDL.Nat64),
1112
+ });
1113
+ const UpdateCanisterSettings = IDL.Record({
1114
+ 'canister_id' : IDL.Opt(IDL.Principal),
1115
+ 'settings' : IDL.Opt(CanisterSettings),
1116
+ });
1117
+ const InstallCode = IDL.Record({
1118
+ 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
1119
+ 'wasm_module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1120
+ 'canister_id' : IDL.Opt(IDL.Principal),
1121
+ 'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1122
+ 'install_mode' : IDL.Opt(IDL.Int32),
1123
+ });
1124
+ const StopOrStartCanister = IDL.Record({
1125
+ 'action' : IDL.Opt(IDL.Int32),
1126
+ 'canister_id' : IDL.Opt(IDL.Principal),
1127
+ });
993
1128
  const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
994
1129
  const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
995
1130
  const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
@@ -1160,9 +1295,7 @@ export const init = ({ IDL }) => {
1160
1295
  'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1161
1296
  'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
1162
1297
  });
1163
- const ApproveGenesisKyc = IDL.Record({
1164
- 'principals' : IDL.Vec(IDL.Principal),
1165
- });
1298
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
1166
1299
  const Change = IDL.Variant({
1167
1300
  'ToRemove' : NodeProvider,
1168
1301
  'ToAdd' : NodeProvider,
@@ -1172,6 +1305,9 @@ export const init = ({ IDL }) => {
1172
1305
  const Action = IDL.Variant({
1173
1306
  'RegisterKnownNeuron' : KnownNeuron,
1174
1307
  'ManageNeuron' : ManageNeuron,
1308
+ 'UpdateCanisterSettings' : UpdateCanisterSettings,
1309
+ 'InstallCode' : InstallCode,
1310
+ 'StopOrStartCanister' : StopOrStartCanister,
1175
1311
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
1176
1312
  'ExecuteNnsFunction' : ExecuteNnsFunction,
1177
1313
  'RewardNodeProvider' : RewardNodeProvider,
@@ -1180,7 +1316,7 @@ export const init = ({ IDL }) => {
1180
1316
  'SetDefaultFollowees' : SetDefaultFollowees,
1181
1317
  'RewardNodeProviders' : RewardNodeProviders,
1182
1318
  'ManageNetworkEconomics' : NetworkEconomics,
1183
- 'ApproveGenesisKyc' : ApproveGenesisKyc,
1319
+ 'ApproveGenesisKyc' : Principals,
1184
1320
  'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
1185
1321
  'Motion' : Motion,
1186
1322
  });
@@ -1287,6 +1423,7 @@ export const init = ({ IDL }) => {
1287
1423
  'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1288
1424
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1289
1425
  ),
1426
+ 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
1290
1427
  'timestamp_seconds' : IDL.Nat64,
1291
1428
  'seed_neuron_count' : IDL.Nat64,
1292
1429
  });
@@ -1338,10 +1475,12 @@ export const init = ({ IDL }) => {
1338
1475
  });
1339
1476
  const CfNeuron = IDL.Record({
1340
1477
  'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
1478
+ 'hotkeys' : IDL.Opt(Principals),
1341
1479
  'nns_neuron_id' : IDL.Nat64,
1342
1480
  'amount_icp_e8s' : IDL.Nat64,
1343
1481
  });
1344
1482
  const CfParticipant = IDL.Record({
1483
+ 'controller' : IDL.Opt(IDL.Principal),
1345
1484
  'hotkey_principal' : IDL.Text,
1346
1485
  'cf_neurons' : IDL.Vec(CfNeuron),
1347
1486
  });
@@ -1353,7 +1492,9 @@ export const init = ({ IDL }) => {
1353
1492
  'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1354
1493
  });
1355
1494
  const NeuronsFundNeuronPortion = IDL.Record({
1495
+ 'controller' : IDL.Opt(IDL.Principal),
1356
1496
  'hotkey_principal' : IDL.Opt(IDL.Principal),
1497
+ 'hotkeys' : IDL.Vec(IDL.Principal),
1357
1498
  'is_capped' : IDL.Opt(IDL.Bool),
1358
1499
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1359
1500
  'nns_neuron_id' : IDL.Opt(NeuronId),
@@ -1481,6 +1622,7 @@ export const init = ({ IDL }) => {
1481
1622
  'dissolve_state' : IDL.Opt(DissolveState),
1482
1623
  'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1483
1624
  'neuron_fees_e8s' : IDL.Nat64,
1625
+ 'visibility' : IDL.Opt(IDL.Int32),
1484
1626
  'transfer' : IDL.Opt(NeuronStakeTransfer),
1485
1627
  'known_neuron_data' : IDL.Opt(KnownNeuronData),
1486
1628
  'spawn_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),