@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
@@ -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
  [],
800
864
  ),
801
865
  'get_network_economics_parameters' : IDL.Func([], [NetworkEconomics], []),
@@ -886,6 +950,7 @@ export const init = ({ IDL }) => {
886
950
  const IncreaseDissolveDelay = IDL.Record({
887
951
  'additional_dissolve_delay_seconds' : IDL.Nat32,
888
952
  });
953
+ const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
889
954
  const SetDissolveTimestamp = IDL.Record({
890
955
  'dissolve_timestamp_seconds' : IDL.Nat64,
891
956
  });
@@ -896,6 +961,7 @@ export const init = ({ IDL }) => {
896
961
  'StopDissolving' : IDL.Record({}),
897
962
  'StartDissolving' : IDL.Record({}),
898
963
  'IncreaseDissolveDelay' : IncreaseDissolveDelay,
964
+ 'SetVisibility' : SetVisibility,
899
965
  'JoinCommunityFund' : IDL.Record({}),
900
966
  'LeaveCommunityFund' : IDL.Record({}),
901
967
  'SetDissolveTimestamp' : SetDissolveTimestamp,
@@ -946,6 +1012,30 @@ export const init = ({ IDL }) => {
946
1012
  'command' : IDL.Opt(Command),
947
1013
  'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
948
1014
  });
1015
+ const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1016
+ const CanisterSettings = IDL.Record({
1017
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1018
+ 'controllers' : IDL.Opt(Controllers),
1019
+ 'log_visibility' : IDL.Opt(IDL.Int32),
1020
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
1021
+ 'memory_allocation' : IDL.Opt(IDL.Nat64),
1022
+ 'compute_allocation' : IDL.Opt(IDL.Nat64),
1023
+ });
1024
+ const UpdateCanisterSettings = IDL.Record({
1025
+ 'canister_id' : IDL.Opt(IDL.Principal),
1026
+ 'settings' : IDL.Opt(CanisterSettings),
1027
+ });
1028
+ const InstallCode = IDL.Record({
1029
+ 'arg' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1030
+ 'wasm_module' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1031
+ 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
1032
+ 'canister_id' : IDL.Opt(IDL.Principal),
1033
+ 'install_mode' : IDL.Opt(IDL.Int32),
1034
+ });
1035
+ const StopOrStartCanister = IDL.Record({
1036
+ 'action' : IDL.Opt(IDL.Int32),
1037
+ 'canister_id' : IDL.Opt(IDL.Principal),
1038
+ });
949
1039
  const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
950
1040
  const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
951
1041
  const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
@@ -1116,9 +1206,7 @@ export const init = ({ IDL }) => {
1116
1206
  'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1117
1207
  'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
1118
1208
  });
1119
- const ApproveGenesisKyc = IDL.Record({
1120
- 'principals' : IDL.Vec(IDL.Principal),
1121
- });
1209
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
1122
1210
  const Change = IDL.Variant({
1123
1211
  'ToRemove' : NodeProvider,
1124
1212
  'ToAdd' : NodeProvider,
@@ -1128,6 +1216,9 @@ export const init = ({ IDL }) => {
1128
1216
  const Action = IDL.Variant({
1129
1217
  'RegisterKnownNeuron' : KnownNeuron,
1130
1218
  'ManageNeuron' : ManageNeuron,
1219
+ 'UpdateCanisterSettings' : UpdateCanisterSettings,
1220
+ 'InstallCode' : InstallCode,
1221
+ 'StopOrStartCanister' : StopOrStartCanister,
1131
1222
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
1132
1223
  'ExecuteNnsFunction' : ExecuteNnsFunction,
1133
1224
  'RewardNodeProvider' : RewardNodeProvider,
@@ -1136,7 +1227,7 @@ export const init = ({ IDL }) => {
1136
1227
  'SetDefaultFollowees' : SetDefaultFollowees,
1137
1228
  'RewardNodeProviders' : RewardNodeProviders,
1138
1229
  'ManageNetworkEconomics' : NetworkEconomics,
1139
- 'ApproveGenesisKyc' : ApproveGenesisKyc,
1230
+ 'ApproveGenesisKyc' : Principals,
1140
1231
  'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
1141
1232
  'Motion' : Motion,
1142
1233
  });
@@ -1153,9 +1244,34 @@ export const init = ({ IDL }) => {
1153
1244
  'caller' : IDL.Opt(IDL.Principal),
1154
1245
  'proposer_id' : IDL.Opt(NeuronId),
1155
1246
  });
1156
- const MostRecentMonthlyNodeProviderRewards = IDL.Record({
1247
+ const XdrConversionRate = IDL.Record({
1248
+ 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1249
+ 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1250
+ });
1251
+ const MonthlyNodeProviderRewards = IDL.Record({
1252
+ 'minimum_xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1253
+ 'registry_version' : IDL.Opt(IDL.Nat64),
1254
+ 'node_providers' : IDL.Vec(NodeProvider),
1157
1255
  'timestamp' : IDL.Nat64,
1158
1256
  'rewards' : IDL.Vec(RewardNodeProvider),
1257
+ 'xdr_conversion_rate' : IDL.Opt(XdrConversionRate),
1258
+ 'maximum_node_provider_rewards_e8s' : IDL.Opt(IDL.Nat64),
1259
+ });
1260
+ const NeuronSubsetMetrics = IDL.Record({
1261
+ 'total_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1262
+ 'maturity_e8s_equivalent_buckets' : IDL.Vec(
1263
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1264
+ ),
1265
+ 'voting_power_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1266
+ 'total_staked_e8s' : IDL.Opt(IDL.Nat64),
1267
+ 'count' : IDL.Opt(IDL.Nat64),
1268
+ 'total_staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1269
+ 'staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1270
+ IDL.Tuple(IDL.Nat64, IDL.Nat64)
1271
+ ),
1272
+ 'staked_e8s_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1273
+ 'total_voting_power' : IDL.Opt(IDL.Nat64),
1274
+ 'count_buckets' : IDL.Vec(IDL.Tuple(IDL.Nat64, IDL.Nat64)),
1159
1275
  });
1160
1276
  const GovernanceCachedMetrics = IDL.Record({
1161
1277
  'total_maturity_e8s_equivalent' : IDL.Nat64,
@@ -1182,6 +1298,9 @@ export const init = ({ IDL }) => {
1182
1298
  'not_dissolving_neurons_count' : IDL.Nat64,
1183
1299
  'total_locked_e8s' : IDL.Nat64,
1184
1300
  'neurons_fund_total_active_neurons' : IDL.Nat64,
1301
+ 'total_voting_power_non_self_authenticating_controller' : IDL.Opt(
1302
+ IDL.Nat64
1303
+ ),
1185
1304
  'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1186
1305
  'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1187
1306
  IDL.Tuple(IDL.Nat64, IDL.Float64)
@@ -1189,6 +1308,7 @@ export const init = ({ IDL }) => {
1189
1308
  'total_staked_e8s_ect' : IDL.Nat64,
1190
1309
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1191
1310
  'dissolved_neurons_e8s' : IDL.Nat64,
1311
+ 'total_staked_e8s_non_self_authenticating_controller' : IDL.Opt(IDL.Nat64),
1192
1312
  'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1193
1313
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1194
1314
  ),
@@ -1202,6 +1322,9 @@ export const init = ({ IDL }) => {
1202
1322
  'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1203
1323
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1204
1324
  ),
1325
+ 'non_self_authenticating_controller_neuron_subset_metrics' : IDL.Opt(
1326
+ NeuronSubsetMetrics
1327
+ ),
1205
1328
  'dissolving_neurons_count' : IDL.Nat64,
1206
1329
  'dissolving_neurons_e8s_buckets' : IDL.Vec(
1207
1330
  IDL.Tuple(IDL.Nat64, IDL.Float64)
@@ -1262,10 +1385,12 @@ export const init = ({ IDL }) => {
1262
1385
  });
1263
1386
  const CfNeuron = IDL.Record({
1264
1387
  'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
1388
+ 'hotkeys' : IDL.Opt(Principals),
1265
1389
  'nns_neuron_id' : IDL.Nat64,
1266
1390
  'amount_icp_e8s' : IDL.Nat64,
1267
1391
  });
1268
1392
  const CfParticipant = IDL.Record({
1393
+ 'controller' : IDL.Opt(IDL.Principal),
1269
1394
  'hotkey_principal' : IDL.Text,
1270
1395
  'cf_neurons' : IDL.Vec(CfNeuron),
1271
1396
  });
@@ -1277,7 +1402,9 @@ export const init = ({ IDL }) => {
1277
1402
  'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1278
1403
  });
1279
1404
  const NeuronsFundNeuronPortion = IDL.Record({
1405
+ 'controller' : IDL.Opt(IDL.Principal),
1280
1406
  'hotkey_principal' : IDL.Opt(IDL.Principal),
1407
+ 'hotkeys' : IDL.Vec(IDL.Principal),
1281
1408
  'is_capped' : IDL.Opt(IDL.Bool),
1282
1409
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1283
1410
  'nns_neuron_id' : IDL.Opt(NeuronId),
@@ -1363,10 +1490,6 @@ export const init = ({ IDL }) => {
1363
1490
  IDL.Nat64
1364
1491
  ),
1365
1492
  });
1366
- const XdrConversionRate = IDL.Record({
1367
- 'xdr_permyriad_per_icp' : IDL.Opt(IDL.Nat64),
1368
- 'timestamp_seconds' : IDL.Opt(IDL.Nat64),
1369
- });
1370
1493
  const Command_2 = IDL.Variant({
1371
1494
  'Spawn' : NeuronId,
1372
1495
  'Split' : Split,
@@ -1409,6 +1532,7 @@ export const init = ({ IDL }) => {
1409
1532
  'dissolve_state' : IDL.Opt(DissolveState),
1410
1533
  'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1411
1534
  'neuron_fees_e8s' : IDL.Nat64,
1535
+ 'visibility' : IDL.Opt(IDL.Int32),
1412
1536
  'transfer' : IDL.Opt(NeuronStakeTransfer),
1413
1537
  'known_neuron_data' : IDL.Opt(KnownNeuronData),
1414
1538
  'spawn_at_timestamp_seconds' : IDL.Opt(IDL.Nat64),
@@ -1417,7 +1541,7 @@ export const init = ({ IDL }) => {
1417
1541
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1418
1542
  'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
1419
1543
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
1420
- MostRecentMonthlyNodeProviderRewards
1544
+ MonthlyNodeProviderRewards
1421
1545
  ),
1422
1546
  'maturity_modulation_last_updated_at_timestamp_seconds' : IDL.Opt(
1423
1547
  IDL.Nat64
@@ -8,6 +8,9 @@ export interface AccountIdentifier {
8
8
  export type Action =
9
9
  | { RegisterKnownNeuron: KnownNeuron }
10
10
  | { ManageNeuron: ManageNeuron }
11
+ | { UpdateCanisterSettings: UpdateCanisterSettings }
12
+ | { InstallCode: InstallCode }
13
+ | { StopOrStartCanister: StopOrStartCanister }
11
14
  | { CreateServiceNervousSystem: CreateServiceNervousSystem }
12
15
  | { ExecuteNnsFunction: ExecuteNnsFunction }
13
16
  | { RewardNodeProvider: RewardNodeProvider }
@@ -16,7 +19,7 @@ export type Action =
16
19
  | { SetDefaultFollowees: SetDefaultFollowees }
17
20
  | { RewardNodeProviders: RewardNodeProviders }
18
21
  | { ManageNetworkEconomics: NetworkEconomics }
19
- | { ApproveGenesisKyc: ApproveGenesisKyc }
22
+ | { ApproveGenesisKyc: Principals }
20
23
  | { AddOrRemoveNodeProvider: AddOrRemoveNodeProvider }
21
24
  | { Motion: Motion };
22
25
  export interface AddHotKey {
@@ -46,6 +49,14 @@ export type By =
46
49
  export interface Canister {
47
50
  id: [] | [Principal];
48
51
  }
52
+ export interface CanisterSettings {
53
+ freezing_threshold: [] | [bigint];
54
+ controllers: [] | [Controllers];
55
+ log_visibility: [] | [number];
56
+ wasm_memory_limit: [] | [bigint];
57
+ memory_allocation: [] | [bigint];
58
+ compute_allocation: [] | [bigint];
59
+ }
49
60
  export interface CanisterStatusResultV2 {
50
61
  status: [] | [number];
51
62
  freezing_threshold: [] | [bigint];
@@ -61,10 +72,12 @@ export interface CanisterSummary {
61
72
  }
62
73
  export interface CfNeuron {
63
74
  has_created_neuron_recipes: [] | [boolean];
75
+ hotkeys: [] | [Principals];
64
76
  nns_neuron_id: bigint;
65
77
  amount_icp_e8s: bigint;
66
78
  }
67
79
  export interface CfParticipant {
80
+ controller: [] | [Principal];
68
81
  hotkey_principal: string;
69
82
  cf_neurons: Array<CfNeuron>;
70
83
  }
@@ -135,6 +148,9 @@ export interface Committed_1 {
135
148
  export interface Configure {
136
149
  operation: [] | [Operation];
137
150
  }
151
+ export interface Controllers {
152
+ controllers: Array<Principal>;
153
+ }
138
154
  export interface Countries {
139
155
  iso_codes: Array<string>;
140
156
  }
@@ -208,9 +224,7 @@ export interface GlobalTimeOfDay {
208
224
  export interface Governance {
209
225
  default_followees: Array<[number, Followees]>;
210
226
  making_sns_proposal: [] | [MakingSnsProposal];
211
- most_recent_monthly_node_provider_rewards:
212
- | []
213
- | [MostRecentMonthlyNodeProviderRewards];
227
+ most_recent_monthly_node_provider_rewards: [] | [MonthlyNodeProviderRewards];
214
228
  maturity_modulation_last_updated_at_timestamp_seconds: [] | [bigint];
215
229
  wait_for_quiet_threshold_seconds: bigint;
216
230
  metrics: [] | [GovernanceCachedMetrics];
@@ -252,11 +266,13 @@ export interface GovernanceCachedMetrics {
252
266
  not_dissolving_neurons_count: bigint;
253
267
  total_locked_e8s: bigint;
254
268
  neurons_fund_total_active_neurons: bigint;
269
+ total_voting_power_non_self_authenticating_controller: [] | [bigint];
255
270
  total_staked_maturity_e8s_equivalent: bigint;
256
271
  not_dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
257
272
  total_staked_e8s_ect: bigint;
258
273
  not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
259
274
  dissolved_neurons_e8s: bigint;
275
+ total_staked_e8s_non_self_authenticating_controller: [] | [bigint];
260
276
  dissolving_neurons_e8s_buckets_seed: Array<[bigint, number]>;
261
277
  neurons_with_less_than_6_months_dissolve_delay_e8s: bigint;
262
278
  not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: Array<
@@ -264,6 +280,9 @@ export interface GovernanceCachedMetrics {
264
280
  >;
265
281
  dissolving_neurons_count_buckets: Array<[bigint, bigint]>;
266
282
  dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
283
+ non_self_authenticating_controller_neuron_subset_metrics:
284
+ | []
285
+ | [NeuronSubsetMetrics];
267
286
  dissolving_neurons_count: bigint;
268
287
  dissolving_neurons_e8s_buckets: Array<[bigint, number]>;
269
288
  total_staked_maturity_e8s_equivalent_seed: bigint;
@@ -302,6 +321,13 @@ export interface InitialTokenDistribution {
302
321
  developer_distribution: [] | [DeveloperDistribution];
303
322
  swap_distribution: [] | [SwapDistribution];
304
323
  }
324
+ export interface InstallCode {
325
+ arg: [] | [Uint8Array | number[]];
326
+ wasm_module: [] | [Uint8Array | number[]];
327
+ skip_stopping_before_installing: [] | [boolean];
328
+ canister_id: [] | [Principal];
329
+ install_mode: [] | [number];
330
+ }
305
331
  export interface KnownNeuron {
306
332
  id: [] | [NeuronId];
307
333
  known_neuron_data: [] | [KnownNeuronData];
@@ -321,6 +347,7 @@ export interface ListKnownNeuronsResponse {
321
347
  }
322
348
  export interface ListNeurons {
323
349
  neuron_ids: BigUint64Array | bigint[];
350
+ include_empty_neurons_readable_by_caller: [] | [boolean];
324
351
  include_neurons_readable_by_caller: boolean;
325
352
  }
326
353
  export interface ListNeuronsResponse {
@@ -384,9 +411,14 @@ export interface Migrations {
384
411
  neuron_indexes_migration: [] | [Migration];
385
412
  copy_inactive_neurons_to_stable_memory_migration: [] | [Migration];
386
413
  }
387
- export interface MostRecentMonthlyNodeProviderRewards {
414
+ export interface MonthlyNodeProviderRewards {
415
+ minimum_xdr_permyriad_per_icp: [] | [bigint];
416
+ registry_version: [] | [bigint];
417
+ node_providers: Array<NodeProvider>;
388
418
  timestamp: bigint;
389
419
  rewards: Array<RewardNodeProvider>;
420
+ xdr_conversion_rate: [] | [XdrConversionRate];
421
+ maximum_node_provider_rewards_e8s: [] | [bigint];
390
422
  }
391
423
  export interface Motion {
392
424
  motion_text: string;
@@ -421,6 +453,7 @@ export interface Neuron {
421
453
  dissolve_state: [] | [DissolveState];
422
454
  followees: Array<[number, Followees]>;
423
455
  neuron_fees_e8s: bigint;
456
+ visibility: [] | [number];
424
457
  transfer: [] | [NeuronStakeTransfer];
425
458
  known_neuron_data: [] | [KnownNeuronData];
426
459
  spawn_at_timestamp_seconds: [] | [bigint];
@@ -459,6 +492,7 @@ export interface NeuronInfo {
459
492
  stake_e8s: bigint;
460
493
  joined_community_fund_timestamp_seconds: [] | [bigint];
461
494
  retrieved_at_timestamp_seconds: bigint;
495
+ visibility: [] | [number];
462
496
  known_neuron_data: [] | [KnownNeuronData];
463
497
  voting_power: bigint;
464
498
  age_seconds: bigint;
@@ -472,6 +506,18 @@ export interface NeuronStakeTransfer {
472
506
  transfer_timestamp: bigint;
473
507
  block_height: bigint;
474
508
  }
509
+ export interface NeuronSubsetMetrics {
510
+ total_maturity_e8s_equivalent: [] | [bigint];
511
+ maturity_e8s_equivalent_buckets: Array<[bigint, bigint]>;
512
+ voting_power_buckets: Array<[bigint, bigint]>;
513
+ total_staked_e8s: [] | [bigint];
514
+ count: [] | [bigint];
515
+ total_staked_maturity_e8s_equivalent: [] | [bigint];
516
+ staked_maturity_e8s_equivalent_buckets: Array<[bigint, bigint]>;
517
+ staked_e8s_buckets: Array<[bigint, bigint]>;
518
+ total_voting_power: [] | [bigint];
519
+ count_buckets: Array<[bigint, bigint]>;
520
+ }
475
521
  export interface NeuronsFundAuditInfo {
476
522
  final_neurons_fund_participation: [] | [NeuronsFundParticipation];
477
523
  initial_neurons_fund_participation: [] | [NeuronsFundParticipation];
@@ -496,13 +542,17 @@ export interface NeuronsFundMatchedFundingCurveCoefficients {
496
542
  full_participation_milestone_xdr: [] | [Decimal];
497
543
  }
498
544
  export interface NeuronsFundNeuron {
545
+ controller: [] | [Principal];
499
546
  hotkey_principal: [] | [string];
547
+ hotkeys: [] | [Principals];
500
548
  is_capped: [] | [boolean];
501
549
  nns_neuron_id: [] | [bigint];
502
550
  amount_icp_e8s: [] | [bigint];
503
551
  }
504
552
  export interface NeuronsFundNeuronPortion {
553
+ controller: [] | [Principal];
505
554
  hotkey_principal: [] | [Principal];
555
+ hotkeys: Array<Principal>;
506
556
  is_capped: [] | [boolean];
507
557
  maturity_equivalent_icp_e8s: [] | [bigint];
508
558
  nns_neuron_id: [] | [NeuronId];
@@ -545,6 +595,7 @@ export type Operation =
545
595
  | { StopDissolving: {} }
546
596
  | { StartDissolving: {} }
547
597
  | { IncreaseDissolveDelay: IncreaseDissolveDelay }
598
+ | { SetVisibility: SetVisibility }
548
599
  | { JoinCommunityFund: {} }
549
600
  | { LeaveCommunityFund: {} }
550
601
  | { SetDissolveTimestamp: SetDissolveTimestamp };
@@ -566,6 +617,9 @@ export interface Params {
566
617
  export interface Percentage {
567
618
  basis_points: [] | [bigint];
568
619
  }
620
+ export interface Principals {
621
+ principals: Array<Principal>;
622
+ }
569
623
  export type Progress = { LastNeuronId: NeuronId };
570
624
  export interface Proposal {
571
625
  url: string;
@@ -682,6 +736,9 @@ export interface SetSnsTokenSwapOpenTimeWindow {
682
736
  request: [] | [SetOpenTimeWindowRequest];
683
737
  swap_canister_id: [] | [Principal];
684
738
  }
739
+ export interface SetVisibility {
740
+ visibility: [] | [number];
741
+ }
685
742
  export interface SettleCommunityFundParticipation {
686
743
  result: [] | [Result_8];
687
744
  open_sns_token_swap_proposal_id: [] | [bigint];
@@ -711,6 +768,10 @@ export interface StakeMaturityResponse {
711
768
  maturity_e8s: bigint;
712
769
  staked_maturity_e8s: bigint;
713
770
  }
771
+ export interface StopOrStartCanister {
772
+ action: [] | [number];
773
+ canister_id: [] | [Principal];
774
+ }
714
775
  export interface SwapBackgroundInformation {
715
776
  ledger_index_canister_summary: [] | [CanisterSummary];
716
777
  fallback_controller_principal_ids: Array<Principal>;
@@ -761,6 +822,10 @@ export interface TimeWindow {
761
822
  export interface Tokens {
762
823
  e8s: [] | [bigint];
763
824
  }
825
+ export interface UpdateCanisterSettings {
826
+ canister_id: [] | [Principal];
827
+ settings: [] | [CanisterSettings];
828
+ }
764
829
  export interface UpdateNodeProvider {
765
830
  reward_account: [] | [AccountIdentifier];
766
831
  }
@@ -793,7 +858,7 @@ export interface _SERVICE {
793
858
  get_monthly_node_provider_rewards: ActorMethod<[], Result_4>;
794
859
  get_most_recent_monthly_node_provider_rewards: ActorMethod<
795
860
  [],
796
- [] | [MostRecentMonthlyNodeProviderRewards]
861
+ [] | [MonthlyNodeProviderRewards]
797
862
  >;
798
863
  get_network_economics_parameters: ActorMethod<[], NetworkEconomics>;
799
864
  get_neuron_ids: ActorMethod<[], BigUint64Array | bigint[]>;