@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,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),
@@ -846,13 +946,22 @@ export const idlFactory = ({ IDL }) => {
846
946
  'get_restore_aging_summary' : IDL.Func([], [RestoreAgingSummary], []),
847
947
  'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
848
948
  'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
949
+ 'list_node_provider_rewards' : IDL.Func(
950
+ [ListNodeProviderRewardsRequest],
951
+ [ListNodeProviderRewardsResponse],
952
+ [],
953
+ ),
849
954
  'list_node_providers' : IDL.Func([], [ListNodeProvidersResponse], []),
850
955
  'list_proposals' : IDL.Func(
851
956
  [ListProposalInfo],
852
957
  [ListProposalInfoResponse],
853
958
  [],
854
959
  ),
855
- 'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
960
+ 'manage_neuron' : IDL.Func(
961
+ [ManageNeuronRequest],
962
+ [ManageNeuronResponse],
963
+ [],
964
+ ),
856
965
  'settle_community_fund_participation' : IDL.Func(
857
966
  [SettleCommunityFundParticipation],
858
967
  [Result],
@@ -864,7 +973,7 @@ export const idlFactory = ({ IDL }) => {
864
973
  [],
865
974
  ),
866
975
  'simulate_manage_neuron' : IDL.Func(
867
- [ManageNeuron],
976
+ [ManageNeuronRequest],
868
977
  [ManageNeuronResponse],
869
978
  [],
870
979
  ),
@@ -914,6 +1023,7 @@ export const init = ({ IDL }) => {
914
1023
  const IncreaseDissolveDelay = IDL.Record({
915
1024
  'additional_dissolve_delay_seconds' : IDL.Nat32,
916
1025
  });
1026
+ const SetVisibility = IDL.Record({ 'visibility' : IDL.Opt(IDL.Int32) });
917
1027
  const SetDissolveTimestamp = IDL.Record({
918
1028
  'dissolve_timestamp_seconds' : IDL.Nat64,
919
1029
  });
@@ -924,6 +1034,7 @@ export const init = ({ IDL }) => {
924
1034
  'StopDissolving' : IDL.Record({}),
925
1035
  'StartDissolving' : IDL.Record({}),
926
1036
  'IncreaseDissolveDelay' : IncreaseDissolveDelay,
1037
+ 'SetVisibility' : SetVisibility,
927
1038
  'JoinCommunityFund' : IDL.Record({}),
928
1039
  'LeaveCommunityFund' : IDL.Record({}),
929
1040
  'SetDissolveTimestamp' : SetDissolveTimestamp,
@@ -974,6 +1085,30 @@ export const init = ({ IDL }) => {
974
1085
  'command' : IDL.Opt(Command),
975
1086
  'neuron_id_or_subaccount' : IDL.Opt(NeuronIdOrSubaccount),
976
1087
  });
1088
+ const Controllers = IDL.Record({ 'controllers' : IDL.Vec(IDL.Principal) });
1089
+ const CanisterSettings = IDL.Record({
1090
+ 'freezing_threshold' : IDL.Opt(IDL.Nat64),
1091
+ 'controllers' : IDL.Opt(Controllers),
1092
+ 'log_visibility' : IDL.Opt(IDL.Int32),
1093
+ 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
1094
+ 'memory_allocation' : IDL.Opt(IDL.Nat64),
1095
+ 'compute_allocation' : IDL.Opt(IDL.Nat64),
1096
+ });
1097
+ const UpdateCanisterSettings = IDL.Record({
1098
+ 'canister_id' : IDL.Opt(IDL.Principal),
1099
+ 'settings' : IDL.Opt(CanisterSettings),
1100
+ });
1101
+ const InstallCode = IDL.Record({
1102
+ 'skip_stopping_before_installing' : IDL.Opt(IDL.Bool),
1103
+ 'wasm_module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1104
+ 'canister_id' : IDL.Opt(IDL.Principal),
1105
+ 'arg_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
1106
+ 'install_mode' : IDL.Opt(IDL.Int32),
1107
+ });
1108
+ const StopOrStartCanister = IDL.Record({
1109
+ 'action' : IDL.Opt(IDL.Int32),
1110
+ 'canister_id' : IDL.Opt(IDL.Principal),
1111
+ });
977
1112
  const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
978
1113
  const Duration = IDL.Record({ 'seconds' : IDL.Opt(IDL.Nat64) });
979
1114
  const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
@@ -1144,9 +1279,7 @@ export const init = ({ IDL }) => {
1144
1279
  'maximum_node_provider_rewards_e8s' : IDL.Nat64,
1145
1280
  'neurons_fund_economics' : IDL.Opt(NeuronsFundEconomics),
1146
1281
  });
1147
- const ApproveGenesisKyc = IDL.Record({
1148
- 'principals' : IDL.Vec(IDL.Principal),
1149
- });
1282
+ const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
1150
1283
  const Change = IDL.Variant({
1151
1284
  'ToRemove' : NodeProvider,
1152
1285
  'ToAdd' : NodeProvider,
@@ -1156,6 +1289,9 @@ export const init = ({ IDL }) => {
1156
1289
  const Action = IDL.Variant({
1157
1290
  'RegisterKnownNeuron' : KnownNeuron,
1158
1291
  'ManageNeuron' : ManageNeuron,
1292
+ 'UpdateCanisterSettings' : UpdateCanisterSettings,
1293
+ 'InstallCode' : InstallCode,
1294
+ 'StopOrStartCanister' : StopOrStartCanister,
1159
1295
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
1160
1296
  'ExecuteNnsFunction' : ExecuteNnsFunction,
1161
1297
  'RewardNodeProvider' : RewardNodeProvider,
@@ -1164,7 +1300,7 @@ export const init = ({ IDL }) => {
1164
1300
  'SetDefaultFollowees' : SetDefaultFollowees,
1165
1301
  'RewardNodeProviders' : RewardNodeProviders,
1166
1302
  'ManageNetworkEconomics' : NetworkEconomics,
1167
- 'ApproveGenesisKyc' : ApproveGenesisKyc,
1303
+ 'ApproveGenesisKyc' : Principals,
1168
1304
  'AddOrRemoveNodeProvider' : AddOrRemoveNodeProvider,
1169
1305
  'Motion' : Motion,
1170
1306
  });
@@ -1271,6 +1407,7 @@ export const init = ({ IDL }) => {
1271
1407
  'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1272
1408
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1273
1409
  ),
1410
+ 'public_neuron_subset_metrics' : IDL.Opt(NeuronSubsetMetrics),
1274
1411
  'timestamp_seconds' : IDL.Nat64,
1275
1412
  'seed_neuron_count' : IDL.Nat64,
1276
1413
  });
@@ -1322,10 +1459,12 @@ export const init = ({ IDL }) => {
1322
1459
  });
1323
1460
  const CfNeuron = IDL.Record({
1324
1461
  'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
1462
+ 'hotkeys' : IDL.Opt(Principals),
1325
1463
  'nns_neuron_id' : IDL.Nat64,
1326
1464
  'amount_icp_e8s' : IDL.Nat64,
1327
1465
  });
1328
1466
  const CfParticipant = IDL.Record({
1467
+ 'controller' : IDL.Opt(IDL.Principal),
1329
1468
  'hotkey_principal' : IDL.Text,
1330
1469
  'cf_neurons' : IDL.Vec(CfNeuron),
1331
1470
  });
@@ -1337,7 +1476,9 @@ export const init = ({ IDL }) => {
1337
1476
  'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1338
1477
  });
1339
1478
  const NeuronsFundNeuronPortion = IDL.Record({
1479
+ 'controller' : IDL.Opt(IDL.Principal),
1340
1480
  'hotkey_principal' : IDL.Opt(IDL.Principal),
1481
+ 'hotkeys' : IDL.Vec(IDL.Principal),
1341
1482
  'is_capped' : IDL.Opt(IDL.Bool),
1342
1483
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1343
1484
  'nns_neuron_id' : IDL.Opt(NeuronId),
@@ -1465,6 +1606,7 @@ export const init = ({ IDL }) => {
1465
1606
  'dissolve_state' : IDL.Opt(DissolveState),
1466
1607
  'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1467
1608
  'neuron_fees_e8s' : IDL.Nat64,
1609
+ 'visibility' : IDL.Opt(IDL.Int32),
1468
1610
  'transfer' : IDL.Opt(NeuronStakeTransfer),
1469
1611
  'known_neuron_data' : IDL.Opt(KnownNeuronData),
1470
1612
  'spawn_at_timestamp_seconds' : IDL.Opt(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
  }
@@ -150,6 +166,10 @@ export interface CreateServiceNervousSystem {
150
166
  swap_parameters: [] | [SwapParameters];
151
167
  initial_token_distribution: [] | [InitialTokenDistribution];
152
168
  }
169
+ export interface DateRangeFilter {
170
+ start_timestamp_seconds: [] | [bigint];
171
+ end_timestamp_seconds: [] | [bigint];
172
+ }
153
173
  export interface Decimal {
154
174
  human_readable: [] | [string];
155
175
  }
@@ -272,6 +292,7 @@ export interface GovernanceCachedMetrics {
272
292
  total_staked_maturity_e8s_equivalent_seed: bigint;
273
293
  community_fund_total_staked_e8s: bigint;
274
294
  not_dissolving_neurons_e8s_buckets_seed: Array<[bigint, number]>;
295
+ public_neuron_subset_metrics: [] | [NeuronSubsetMetrics];
275
296
  timestamp_seconds: bigint;
276
297
  seed_neuron_count: bigint;
277
298
  }
@@ -305,6 +326,20 @@ export interface InitialTokenDistribution {
305
326
  developer_distribution: [] | [DeveloperDistribution];
306
327
  swap_distribution: [] | [SwapDistribution];
307
328
  }
329
+ export interface InstallCode {
330
+ skip_stopping_before_installing: [] | [boolean];
331
+ wasm_module_hash: [] | [Uint8Array | number[]];
332
+ canister_id: [] | [Principal];
333
+ arg_hash: [] | [Uint8Array | number[]];
334
+ install_mode: [] | [number];
335
+ }
336
+ export interface InstallCodeRequest {
337
+ arg: [] | [Uint8Array | number[]];
338
+ wasm_module: [] | [Uint8Array | number[]];
339
+ skip_stopping_before_installing: [] | [boolean];
340
+ canister_id: [] | [Principal];
341
+ install_mode: [] | [number];
342
+ }
308
343
  export interface KnownNeuron {
309
344
  id: [] | [NeuronId];
310
345
  known_neuron_data: [] | [KnownNeuronData];
@@ -323,6 +358,7 @@ export interface ListKnownNeuronsResponse {
323
358
  known_neurons: Array<KnownNeuron>;
324
359
  }
325
360
  export interface ListNeurons {
361
+ include_public_neurons_in_full_neurons: [] | [boolean];
326
362
  neuron_ids: BigUint64Array | bigint[];
327
363
  include_empty_neurons_readable_by_caller: [] | [boolean];
328
364
  include_neurons_readable_by_caller: boolean;
@@ -331,6 +367,12 @@ export interface ListNeuronsResponse {
331
367
  neuron_infos: Array<[bigint, NeuronInfo]>;
332
368
  full_neurons: Array<Neuron>;
333
369
  }
370
+ export interface ListNodeProviderRewardsRequest {
371
+ date_filter: [] | [DateRangeFilter];
372
+ }
373
+ export interface ListNodeProviderRewardsResponse {
374
+ rewards: Array<MonthlyNodeProviderRewards>;
375
+ }
334
376
  export interface ListNodeProvidersResponse {
335
377
  node_providers: Array<NodeProvider>;
336
378
  }
@@ -346,6 +388,12 @@ export interface ListProposalInfo {
346
388
  export interface ListProposalInfoResponse {
347
389
  proposal_info: Array<ProposalInfo>;
348
390
  }
391
+ export interface MakeProposalRequest {
392
+ url: string;
393
+ title: [] | [string];
394
+ action: [] | [ProposalActionRequest];
395
+ summary: string;
396
+ }
349
397
  export interface MakeProposalResponse {
350
398
  message: [] | [string];
351
399
  proposal_id: [] | [NeuronId];
@@ -360,6 +408,24 @@ export interface ManageNeuron {
360
408
  command: [] | [Command];
361
409
  neuron_id_or_subaccount: [] | [NeuronIdOrSubaccount];
362
410
  }
411
+ export type ManageNeuronCommandRequest =
412
+ | { Spawn: Spawn }
413
+ | { Split: Split }
414
+ | { Follow: Follow }
415
+ | { ClaimOrRefresh: ClaimOrRefresh }
416
+ | { Configure: Configure }
417
+ | { RegisterVote: RegisterVote }
418
+ | { Merge: Merge }
419
+ | { DisburseToNeuron: DisburseToNeuron }
420
+ | { MakeProposal: MakeProposalRequest }
421
+ | { StakeMaturity: StakeMaturity }
422
+ | { MergeMaturity: MergeMaturity }
423
+ | { Disburse: Disburse };
424
+ export interface ManageNeuronRequest {
425
+ id: [] | [NeuronId];
426
+ command: [] | [ManageNeuronCommandRequest];
427
+ neuron_id_or_subaccount: [] | [NeuronIdOrSubaccount];
428
+ }
363
429
  export interface ManageNeuronResponse {
364
430
  command: [] | [Command_1];
365
431
  }
@@ -430,6 +496,7 @@ export interface Neuron {
430
496
  dissolve_state: [] | [DissolveState];
431
497
  followees: Array<[number, Followees]>;
432
498
  neuron_fees_e8s: bigint;
499
+ visibility: [] | [number];
433
500
  transfer: [] | [NeuronStakeTransfer];
434
501
  known_neuron_data: [] | [KnownNeuronData];
435
502
  spawn_at_timestamp_seconds: [] | [bigint];
@@ -468,6 +535,7 @@ export interface NeuronInfo {
468
535
  stake_e8s: bigint;
469
536
  joined_community_fund_timestamp_seconds: [] | [bigint];
470
537
  retrieved_at_timestamp_seconds: bigint;
538
+ visibility: [] | [number];
471
539
  known_neuron_data: [] | [KnownNeuronData];
472
540
  voting_power: bigint;
473
541
  age_seconds: bigint;
@@ -517,13 +585,17 @@ export interface NeuronsFundMatchedFundingCurveCoefficients {
517
585
  full_participation_milestone_xdr: [] | [Decimal];
518
586
  }
519
587
  export interface NeuronsFundNeuron {
588
+ controller: [] | [Principal];
520
589
  hotkey_principal: [] | [string];
590
+ hotkeys: [] | [Principals];
521
591
  is_capped: [] | [boolean];
522
592
  nns_neuron_id: [] | [bigint];
523
593
  amount_icp_e8s: [] | [bigint];
524
594
  }
525
595
  export interface NeuronsFundNeuronPortion {
596
+ controller: [] | [Principal];
526
597
  hotkey_principal: [] | [Principal];
598
+ hotkeys: Array<Principal>;
527
599
  is_capped: [] | [boolean];
528
600
  maturity_equivalent_icp_e8s: [] | [bigint];
529
601
  nns_neuron_id: [] | [NeuronId];
@@ -566,6 +638,7 @@ export type Operation =
566
638
  | { StopDissolving: {} }
567
639
  | { StartDissolving: {} }
568
640
  | { IncreaseDissolveDelay: IncreaseDissolveDelay }
641
+ | { SetVisibility: SetVisibility }
569
642
  | { JoinCommunityFund: {} }
570
643
  | { LeaveCommunityFund: {} }
571
644
  | { SetDissolveTimestamp: SetDissolveTimestamp };
@@ -587,6 +660,9 @@ export interface Params {
587
660
  export interface Percentage {
588
661
  basis_points: [] | [bigint];
589
662
  }
663
+ export interface Principals {
664
+ principals: Array<Principal>;
665
+ }
590
666
  export type Progress = { LastNeuronId: NeuronId };
591
667
  export interface Proposal {
592
668
  url: string;
@@ -594,6 +670,23 @@ export interface Proposal {
594
670
  action: [] | [Action];
595
671
  summary: string;
596
672
  }
673
+ export type ProposalActionRequest =
674
+ | { RegisterKnownNeuron: KnownNeuron }
675
+ | { ManageNeuron: ManageNeuronRequest }
676
+ | { UpdateCanisterSettings: UpdateCanisterSettings }
677
+ | { InstallCode: InstallCodeRequest }
678
+ | { StopOrStartCanister: StopOrStartCanister }
679
+ | { CreateServiceNervousSystem: CreateServiceNervousSystem }
680
+ | { ExecuteNnsFunction: ExecuteNnsFunction }
681
+ | { RewardNodeProvider: RewardNodeProvider }
682
+ | { OpenSnsTokenSwap: OpenSnsTokenSwap }
683
+ | { SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow }
684
+ | { SetDefaultFollowees: SetDefaultFollowees }
685
+ | { RewardNodeProviders: RewardNodeProviders }
686
+ | { ManageNetworkEconomics: NetworkEconomics }
687
+ | { ApproveGenesisKyc: Principals }
688
+ | { AddOrRemoveNodeProvider: AddOrRemoveNodeProvider }
689
+ | { Motion: Motion };
597
690
  export interface ProposalData {
598
691
  id: [] | [NeuronId];
599
692
  failure_reason: [] | [GovernanceError];
@@ -703,6 +796,9 @@ export interface SetSnsTokenSwapOpenTimeWindow {
703
796
  request: [] | [SetOpenTimeWindowRequest];
704
797
  swap_canister_id: [] | [Principal];
705
798
  }
799
+ export interface SetVisibility {
800
+ visibility: [] | [number];
801
+ }
706
802
  export interface SettleCommunityFundParticipation {
707
803
  result: [] | [Result_8];
708
804
  open_sns_token_swap_proposal_id: [] | [bigint];
@@ -732,6 +828,10 @@ export interface StakeMaturityResponse {
732
828
  maturity_e8s: bigint;
733
829
  staked_maturity_e8s: bigint;
734
830
  }
831
+ export interface StopOrStartCanister {
832
+ action: [] | [number];
833
+ canister_id: [] | [Principal];
834
+ }
735
835
  export interface SwapBackgroundInformation {
736
836
  ledger_index_canister_summary: [] | [CanisterSummary];
737
837
  fallback_controller_principal_ids: Array<Principal>;
@@ -782,6 +882,10 @@ export interface TimeWindow {
782
882
  export interface Tokens {
783
883
  e8s: [] | [bigint];
784
884
  }
885
+ export interface UpdateCanisterSettings {
886
+ canister_id: [] | [Principal];
887
+ settings: [] | [CanisterSettings];
888
+ }
785
889
  export interface UpdateNodeProvider {
786
890
  reward_account: [] | [AccountIdentifier];
787
891
  }
@@ -833,9 +937,13 @@ export interface _SERVICE {
833
937
  get_restore_aging_summary: ActorMethod<[], RestoreAgingSummary>;
834
938
  list_known_neurons: ActorMethod<[], ListKnownNeuronsResponse>;
835
939
  list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>;
940
+ list_node_provider_rewards: ActorMethod<
941
+ [ListNodeProviderRewardsRequest],
942
+ ListNodeProviderRewardsResponse
943
+ >;
836
944
  list_node_providers: ActorMethod<[], ListNodeProvidersResponse>;
837
945
  list_proposals: ActorMethod<[ListProposalInfo], ListProposalInfoResponse>;
838
- manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
946
+ manage_neuron: ActorMethod<[ManageNeuronRequest], ManageNeuronResponse>;
839
947
  settle_community_fund_participation: ActorMethod<
840
948
  [SettleCommunityFundParticipation],
841
949
  Result
@@ -844,7 +952,10 @@ export interface _SERVICE {
844
952
  [SettleNeuronsFundParticipationRequest],
845
953
  SettleNeuronsFundParticipationResponse
846
954
  >;
847
- simulate_manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
955
+ simulate_manage_neuron: ActorMethod<
956
+ [ManageNeuronRequest],
957
+ ManageNeuronResponse
958
+ >;
848
959
  transfer_gtc_neuron: ActorMethod<[NeuronId, NeuronId], Result>;
849
960
  update_node_provider: ActorMethod<[UpdateNodeProvider], Result>;
850
961
  }