@dfinity/nns 6.0.0 → 7.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.
@@ -1,5 +1,8 @@
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
- type AccountIdentifier = record { hash : blob };
1
+ // Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/nns/governance/canister/governance.did' by import-candid
2
+ type AccountIdentifier = record {
3
+ hash : blob;
4
+ };
5
+
3
6
  type Action = variant {
4
7
  RegisterKnownNeuron : KnownNeuron;
5
8
  ManageNeuron : ManageNeuron;
@@ -18,18 +21,43 @@ type Action = variant {
18
21
  AddOrRemoveNodeProvider : AddOrRemoveNodeProvider;
19
22
  Motion : Motion;
20
23
  };
21
- type AddHotKey = record { new_hot_key : opt principal };
22
- type AddOrRemoveNodeProvider = record { change : opt Change };
23
- type Amount = record { e8s : nat64 };
24
- type ApproveGenesisKyc = record { principals : vec principal };
25
- type Ballot = record { vote : int32; voting_power : nat64 };
26
- type BallotInfo = record { vote : int32; proposal_id : opt NeuronId };
24
+
25
+ type AddHotKey = record {
26
+ new_hot_key : opt principal;
27
+ };
28
+
29
+ type AddOrRemoveNodeProvider = record {
30
+ change : opt Change;
31
+ };
32
+
33
+ type Amount = record {
34
+ e8s : nat64;
35
+ };
36
+
37
+ type ApproveGenesisKyc = record {
38
+ principals : vec principal;
39
+ };
40
+
41
+ type Ballot = record {
42
+ vote : int32;
43
+ voting_power : nat64;
44
+ };
45
+
46
+ type BallotInfo = record {
47
+ vote : int32;
48
+ proposal_id : opt NeuronId;
49
+ };
50
+
27
51
  type By = variant {
28
52
  NeuronIdOrSubaccount : record {};
29
53
  MemoAndController : ClaimOrRefreshNeuronFromAccount;
30
54
  Memo : nat64;
31
55
  };
32
- type Canister = record { id : opt principal };
56
+
57
+ type Canister = record {
58
+ id : opt principal;
59
+ };
60
+
33
61
  type CanisterSettings = record {
34
62
  freezing_threshold : opt nat64;
35
63
  controllers : opt Controllers;
@@ -38,6 +66,7 @@ type CanisterSettings = record {
38
66
  memory_allocation : opt nat64;
39
67
  compute_allocation : opt nat64;
40
68
  };
69
+
41
70
  type CanisterStatusResultV2 = record {
42
71
  status : opt int32;
43
72
  freezing_threshold : opt nat64;
@@ -47,32 +76,38 @@ type CanisterStatusResultV2 = record {
47
76
  idle_cycles_burned_per_day : opt nat64;
48
77
  module_hash : blob;
49
78
  };
79
+
50
80
  type CanisterSummary = record {
51
81
  status : opt CanisterStatusResultV2;
52
82
  canister_id : opt principal;
53
83
  };
54
- type CfNeuron = record {
55
- has_created_neuron_recipes : opt bool;
56
- hotkeys : opt Principals;
57
- nns_neuron_id : nat64;
58
- amount_icp_e8s : nat64;
84
+
85
+ type Change = variant {
86
+ ToRemove : NodeProvider;
87
+ ToAdd : NodeProvider;
59
88
  };
60
- type CfParticipant = record {
61
- controller : opt principal;
62
- hotkey_principal : text;
63
- cf_neurons : vec CfNeuron;
64
- };
65
- type Change = variant { ToRemove : NodeProvider; ToAdd : NodeProvider };
89
+
66
90
  type ChangeAutoStakeMaturity = record {
67
91
  requested_setting_for_auto_stake_maturity : bool;
68
92
  };
69
- type ClaimOrRefresh = record { by : opt By };
93
+
94
+ type ClaimOrRefresh = record {
95
+ by : opt By;
96
+ };
97
+
70
98
  type ClaimOrRefreshNeuronFromAccount = record {
71
99
  controller : opt principal;
72
100
  memo : nat64;
73
101
  };
74
- type ClaimOrRefreshNeuronFromAccountResponse = record { result : opt Result_1 };
75
- type ClaimOrRefreshResponse = record { refreshed_neuron_id : opt NeuronId };
102
+
103
+ type ClaimOrRefreshNeuronFromAccountResponse = record {
104
+ result : opt Result_1;
105
+ };
106
+
107
+ type ClaimOrRefreshResponse = record {
108
+ refreshed_neuron_id : opt NeuronId;
109
+ };
110
+
76
111
  type Command = variant {
77
112
  Spawn : Spawn;
78
113
  Split : Split;
@@ -87,6 +122,7 @@ type Command = variant {
87
122
  MergeMaturity : MergeMaturity;
88
123
  Disburse : Disburse;
89
124
  };
125
+
90
126
  type Command_1 = variant {
91
127
  Error : GovernanceError;
92
128
  Spawn : SpawnResponse;
@@ -102,6 +138,7 @@ type Command_1 = variant {
102
138
  MergeMaturity : MergeMaturityResponse;
103
139
  Disburse : DisburseResponse;
104
140
  };
141
+
105
142
  type Command_2 = variant {
106
143
  Spawn : NeuronId;
107
144
  Split : Split;
@@ -113,19 +150,31 @@ type Command_2 = variant {
113
150
  MergeMaturity : MergeMaturity;
114
151
  Disburse : Disburse;
115
152
  };
153
+
116
154
  type Committed = record {
117
155
  total_direct_contribution_icp_e8s : opt nat64;
118
156
  total_neurons_fund_contribution_icp_e8s : opt nat64;
119
157
  sns_governance_canister_id : opt principal;
120
158
  };
159
+
121
160
  type Committed_1 = record {
122
161
  total_direct_participation_icp_e8s : opt nat64;
123
162
  total_neurons_fund_participation_icp_e8s : opt nat64;
124
163
  sns_governance_canister_id : opt principal;
125
164
  };
126
- type Configure = record { operation : opt Operation };
127
- type Controllers = record { controllers : vec principal };
128
- type Countries = record { iso_codes : vec text };
165
+
166
+ type Configure = record {
167
+ operation : opt Operation;
168
+ };
169
+
170
+ type Controllers = record {
171
+ controllers : vec principal;
172
+ };
173
+
174
+ type Countries = record {
175
+ iso_codes : vec text;
176
+ };
177
+
129
178
  type CreateServiceNervousSystem = record {
130
179
  url : opt text;
131
180
  governance_parameters : opt GovernanceParameters;
@@ -138,22 +187,33 @@ type CreateServiceNervousSystem = record {
138
187
  swap_parameters : opt SwapParameters;
139
188
  initial_token_distribution : opt InitialTokenDistribution;
140
189
  };
190
+
141
191
  type DateRangeFilter = record {
142
192
  start_timestamp_seconds : opt nat64;
143
193
  end_timestamp_seconds : opt nat64;
144
194
  };
145
- type Decimal = record { human_readable : opt text };
195
+
196
+ type Decimal = record {
197
+ human_readable : opt text;
198
+ };
199
+
146
200
  type DerivedProposalInformation = record {
147
201
  swap_background_information : opt SwapBackgroundInformation;
148
202
  };
203
+
149
204
  type DeveloperDistribution = record {
150
205
  developer_neurons : vec NeuronDistribution;
151
206
  };
207
+
152
208
  type Disburse = record {
153
209
  to_account : opt AccountIdentifier;
154
210
  amount : opt Amount;
155
211
  };
156
- type DisburseResponse = record { transfer_block_height : nat64 };
212
+
213
+ type DisburseResponse = record {
214
+ transfer_block_height : nat64;
215
+ };
216
+
157
217
  type DisburseToNeuron = record {
158
218
  dissolve_delay_seconds : nat64;
159
219
  kyc_verified : bool;
@@ -161,19 +221,50 @@ type DisburseToNeuron = record {
161
221
  new_controller : opt principal;
162
222
  nonce : nat64;
163
223
  };
224
+
164
225
  type DissolveState = variant {
165
226
  DissolveDelaySeconds : nat64;
166
227
  WhenDissolvedTimestampSeconds : nat64;
167
228
  };
168
- type Duration = record { seconds : opt nat64 };
169
- type ExecuteNnsFunction = record { nns_function : int32; payload : blob };
170
- type Follow = record { topic : int32; followees : vec NeuronId };
171
- type Followees = record { followees : vec NeuronId };
172
- type Followers = record { followers : vec NeuronId };
173
- type FollowersMap = record { followers_map : vec record { nat64; Followers } };
174
- type GetNeuronsFundAuditInfoRequest = record { nns_proposal_id : opt NeuronId };
175
- type GetNeuronsFundAuditInfoResponse = record { result : opt Result_6 };
176
- type GlobalTimeOfDay = record { seconds_after_utc_midnight : opt nat64 };
229
+
230
+ type Duration = record {
231
+ seconds : opt nat64;
232
+ };
233
+
234
+ type ExecuteNnsFunction = record {
235
+ nns_function : int32;
236
+ payload : blob;
237
+ };
238
+
239
+ type Follow = record {
240
+ topic : int32;
241
+ followees : vec NeuronId;
242
+ };
243
+
244
+ type Followees = record {
245
+ followees : vec NeuronId;
246
+ };
247
+
248
+ type Followers = record {
249
+ followers : vec NeuronId;
250
+ };
251
+
252
+ type FollowersMap = record {
253
+ followers_map : vec record { nat64; Followers };
254
+ };
255
+
256
+ type GetNeuronsFundAuditInfoRequest = record {
257
+ nns_proposal_id : opt NeuronId;
258
+ };
259
+
260
+ type GetNeuronsFundAuditInfoResponse = record {
261
+ result : opt Result_6;
262
+ };
263
+
264
+ type GlobalTimeOfDay = record {
265
+ seconds_after_utc_midnight : opt nat64;
266
+ };
267
+
177
268
  type Governance = record {
178
269
  default_followees : vec record { int32; Followees };
179
270
  making_sns_proposal : opt MakingSnsProposal;
@@ -198,6 +289,7 @@ type Governance = record {
198
289
  neurons : vec record { nat64; Neuron };
199
290
  genesis_timestamp_seconds : nat64;
200
291
  };
292
+
201
293
  type GovernanceCachedMetrics = record {
202
294
  total_maturity_e8s_equivalent : nat64;
203
295
  not_dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
@@ -245,7 +337,12 @@ type GovernanceCachedMetrics = record {
245
337
  timestamp_seconds : nat64;
246
338
  seed_neuron_count : nat64;
247
339
  };
248
- type GovernanceError = record { error_message : text; error_type : int32 };
340
+
341
+ type GovernanceError = record {
342
+ error_message : text;
343
+ error_type : int32;
344
+ };
345
+
249
346
  type GovernanceParameters = record {
250
347
  neuron_maximum_dissolve_delay_bonus : opt Percentage;
251
348
  neuron_maximum_age_for_age_bonus : opt Duration;
@@ -258,18 +355,25 @@ type GovernanceParameters = record {
258
355
  proposal_rejection_fee : opt Tokens;
259
356
  voting_reward_parameters : opt VotingRewardParameters;
260
357
  };
358
+
261
359
  type IdealMatchedParticipationFunction = record {
262
360
  serialized_representation : opt text;
263
361
  };
264
- type Image = record { base64_encoding : opt text };
362
+
363
+ type Image = record {
364
+ base64_encoding : opt text;
365
+ };
366
+
265
367
  type IncreaseDissolveDelay = record {
266
368
  additional_dissolve_delay_seconds : nat32;
267
369
  };
370
+
268
371
  type InitialTokenDistribution = record {
269
372
  treasury_distribution : opt SwapDistribution;
270
373
  developer_distribution : opt DeveloperDistribution;
271
374
  swap_distribution : opt SwapDistribution;
272
375
  };
376
+
273
377
  type InstallCode = record {
274
378
  skip_stopping_before_installing : opt bool;
275
379
  wasm_module_hash : opt blob;
@@ -277,6 +381,7 @@ type InstallCode = record {
277
381
  arg_hash : opt blob;
278
382
  install_mode : opt int32;
279
383
  };
384
+
280
385
  type InstallCodeRequest = record {
281
386
  arg : opt blob;
282
387
  wasm_module : opt blob;
@@ -284,35 +389,52 @@ type InstallCodeRequest = record {
284
389
  canister_id : opt principal;
285
390
  install_mode : opt int32;
286
391
  };
392
+
287
393
  type KnownNeuron = record {
288
394
  id : opt NeuronId;
289
395
  known_neuron_data : opt KnownNeuronData;
290
396
  };
291
- type KnownNeuronData = record { name : text; description : opt text };
397
+
398
+ type KnownNeuronData = record {
399
+ name : text;
400
+ description : opt text;
401
+ };
402
+
292
403
  type LedgerParameters = record {
293
404
  transaction_fee : opt Tokens;
294
405
  token_symbol : opt text;
295
406
  token_logo : opt Image;
296
407
  token_name : opt text;
297
408
  };
298
- type ListKnownNeuronsResponse = record { known_neurons : vec KnownNeuron };
409
+
410
+ type ListKnownNeuronsResponse = record {
411
+ known_neurons : vec KnownNeuron;
412
+ };
413
+
299
414
  type ListNeurons = record {
300
415
  include_public_neurons_in_full_neurons : opt bool;
301
416
  neuron_ids : vec nat64;
302
417
  include_empty_neurons_readable_by_caller : opt bool;
303
418
  include_neurons_readable_by_caller : bool;
304
419
  };
420
+
305
421
  type ListNeuronsResponse = record {
306
422
  neuron_infos : vec record { nat64; NeuronInfo };
307
423
  full_neurons : vec Neuron;
308
424
  };
425
+
309
426
  type ListNodeProviderRewardsRequest = record {
310
427
  date_filter : opt DateRangeFilter;
311
428
  };
429
+
312
430
  type ListNodeProviderRewardsResponse = record {
313
431
  rewards : vec MonthlyNodeProviderRewards;
314
432
  };
315
- type ListNodeProvidersResponse = record { node_providers : vec NodeProvider };
433
+
434
+ type ListNodeProvidersResponse = record {
435
+ node_providers : vec NodeProvider;
436
+ };
437
+
316
438
  type ListProposalInfo = record {
317
439
  include_reward_status : vec int32;
318
440
  omit_large_fields : opt bool;
@@ -322,27 +444,35 @@ type ListProposalInfo = record {
322
444
  include_all_manage_neuron_proposals : opt bool;
323
445
  include_status : vec int32;
324
446
  };
325
- type ListProposalInfoResponse = record { proposal_info : vec ProposalInfo };
447
+
448
+ type ListProposalInfoResponse = record {
449
+ proposal_info : vec ProposalInfo;
450
+ };
451
+
326
452
  type MakeProposalRequest = record {
327
453
  url : text;
328
454
  title : opt text;
329
455
  action : opt ProposalActionRequest;
330
456
  summary : text;
331
457
  };
458
+
332
459
  type MakeProposalResponse = record {
333
460
  message : opt text;
334
461
  proposal_id : opt NeuronId;
335
462
  };
463
+
336
464
  type MakingSnsProposal = record {
337
465
  proposal : opt Proposal;
338
466
  caller : opt principal;
339
467
  proposer_id : opt NeuronId;
340
468
  };
469
+
341
470
  type ManageNeuron = record {
342
471
  id : opt NeuronId;
343
472
  command : opt Command;
344
473
  neuron_id_or_subaccount : opt NeuronIdOrSubaccount;
345
474
  };
475
+
346
476
  type ManageNeuronCommandRequest = variant {
347
477
  Spawn : Spawn;
348
478
  Split : Split;
@@ -357,33 +487,48 @@ type ManageNeuronCommandRequest = variant {
357
487
  MergeMaturity : MergeMaturity;
358
488
  Disburse : Disburse;
359
489
  };
490
+
360
491
  type ManageNeuronRequest = record {
361
492
  id : opt NeuronId;
362
493
  command : opt ManageNeuronCommandRequest;
363
494
  neuron_id_or_subaccount : opt NeuronIdOrSubaccount;
364
495
  };
365
- type ManageNeuronResponse = record { command : opt Command_1 };
366
- type Merge = record { source_neuron_id : opt NeuronId };
367
- type MergeMaturity = record { percentage_to_merge : nat32 };
496
+
497
+ type ManageNeuronResponse = record {
498
+ command : opt Command_1;
499
+ };
500
+
501
+ type Merge = record {
502
+ source_neuron_id : opt NeuronId;
503
+ };
504
+
505
+ type MergeMaturity = record {
506
+ percentage_to_merge : nat32;
507
+ };
508
+
368
509
  type MergeMaturityResponse = record {
369
510
  merged_maturity_e8s : nat64;
370
511
  new_stake_e8s : nat64;
371
512
  };
513
+
372
514
  type MergeResponse = record {
373
515
  target_neuron : opt Neuron;
374
516
  source_neuron : opt Neuron;
375
517
  target_neuron_info : opt NeuronInfo;
376
518
  source_neuron_info : opt NeuronInfo;
377
519
  };
520
+
378
521
  type Migration = record {
379
522
  status : opt int32;
380
523
  failure_reason : opt text;
381
524
  progress : opt Progress;
382
525
  };
526
+
383
527
  type Migrations = record {
384
528
  neuron_indexes_migration : opt Migration;
385
529
  copy_inactive_neurons_to_stable_memory_migration : opt Migration;
386
530
  };
531
+
387
532
  type MonthlyNodeProviderRewards = record {
388
533
  minimum_xdr_permyriad_per_icp : opt nat64;
389
534
  registry_version : opt nat64;
@@ -393,7 +538,11 @@ type MonthlyNodeProviderRewards = record {
393
538
  xdr_conversion_rate : opt XdrConversionRate;
394
539
  maximum_node_provider_rewards_e8s : opt nat64;
395
540
  };
396
- type Motion = record { motion_text : text };
541
+
542
+ type Motion = record {
543
+ motion_text : text;
544
+ };
545
+
397
546
  type NetworkEconomics = record {
398
547
  neuron_minimum_stake_e8s : nat64;
399
548
  max_proposals_to_keep_per_topic : nat32;
@@ -405,6 +554,7 @@ type NetworkEconomics = record {
405
554
  maximum_node_provider_rewards_e8s : nat64;
406
555
  neurons_fund_economics : opt NeuronsFundEconomics;
407
556
  };
557
+
408
558
  type Neuron = record {
409
559
  id : opt NeuronId;
410
560
  staked_maturity_e8s_equivalent : opt nat64;
@@ -429,14 +579,17 @@ type Neuron = record {
429
579
  known_neuron_data : opt KnownNeuronData;
430
580
  spawn_at_timestamp_seconds : opt nat64;
431
581
  };
582
+
432
583
  type NeuronBasketConstructionParameters = record {
433
584
  dissolve_delay_interval : opt Duration;
434
585
  count : opt nat64;
435
586
  };
587
+
436
588
  type NeuronBasketConstructionParameters_1 = record {
437
589
  dissolve_delay_interval_seconds : nat64;
438
590
  count : nat64;
439
591
  };
592
+
440
593
  type NeuronDistribution = record {
441
594
  controller : opt principal;
442
595
  dissolve_delay : opt Duration;
@@ -444,12 +597,21 @@ type NeuronDistribution = record {
444
597
  vesting_period : opt Duration;
445
598
  stake : opt Tokens;
446
599
  };
447
- type NeuronId = record { id : nat64 };
448
- type NeuronIdOrSubaccount = variant { Subaccount : blob; NeuronId : NeuronId };
600
+
601
+ type NeuronId = record {
602
+ id : nat64;
603
+ };
604
+
605
+ type NeuronIdOrSubaccount = variant {
606
+ Subaccount : blob;
607
+ NeuronId : NeuronId;
608
+ };
609
+
449
610
  type NeuronInFlightCommand = record {
450
611
  command : opt Command_2;
451
612
  timestamp : nat64;
452
613
  };
614
+
453
615
  type NeuronInfo = record {
454
616
  dissolve_delay_seconds : nat64;
455
617
  recent_ballots : vec BallotInfo;
@@ -464,6 +626,7 @@ type NeuronInfo = record {
464
626
  voting_power : nat64;
465
627
  age_seconds : nat64;
466
628
  };
629
+
467
630
  type NeuronStakeTransfer = record {
468
631
  to_subaccount : blob;
469
632
  neuron_stake_e8s : nat64;
@@ -473,6 +636,7 @@ type NeuronStakeTransfer = record {
473
636
  transfer_timestamp : nat64;
474
637
  block_height : nat64;
475
638
  };
639
+
476
640
  type NeuronSubsetMetrics = record {
477
641
  total_maturity_e8s_equivalent : opt nat64;
478
642
  maturity_e8s_equivalent_buckets : vec record { nat64; nat64 };
@@ -485,44 +649,49 @@ type NeuronSubsetMetrics = record {
485
649
  total_voting_power : opt nat64;
486
650
  count_buckets : vec record { nat64; nat64 };
487
651
  };
652
+
488
653
  type NeuronsFundAuditInfo = record {
489
654
  final_neurons_fund_participation : opt NeuronsFundParticipation;
490
655
  initial_neurons_fund_participation : opt NeuronsFundParticipation;
491
656
  neurons_fund_refunds : opt NeuronsFundSnapshot;
492
657
  };
658
+
493
659
  type NeuronsFundData = record {
494
660
  final_neurons_fund_participation : opt NeuronsFundParticipation;
495
661
  initial_neurons_fund_participation : opt NeuronsFundParticipation;
496
662
  neurons_fund_refunds : opt NeuronsFundSnapshot;
497
663
  };
664
+
498
665
  type NeuronsFundEconomics = record {
499
666
  maximum_icp_xdr_rate : opt Percentage;
500
667
  neurons_fund_matched_funding_curve_coefficients : opt NeuronsFundMatchedFundingCurveCoefficients;
501
668
  max_theoretical_neurons_fund_participation_amount_xdr : opt Decimal;
502
669
  minimum_icp_xdr_rate : opt Percentage;
503
670
  };
671
+
504
672
  type NeuronsFundMatchedFundingCurveCoefficients = record {
505
673
  contribution_threshold_xdr : opt Decimal;
506
674
  one_third_participation_milestone_xdr : opt Decimal;
507
675
  full_participation_milestone_xdr : opt Decimal;
508
676
  };
677
+
509
678
  type NeuronsFundNeuron = record {
510
679
  controller : opt principal;
511
- hotkey_principal : opt text;
512
680
  hotkeys : opt Principals;
513
681
  is_capped : opt bool;
514
682
  nns_neuron_id : opt nat64;
515
683
  amount_icp_e8s : opt nat64;
516
684
  };
685
+
517
686
  type NeuronsFundNeuronPortion = record {
518
687
  controller : opt principal;
519
- hotkey_principal : opt principal;
520
688
  hotkeys : vec principal;
521
689
  is_capped : opt bool;
522
690
  maturity_equivalent_icp_e8s : opt nat64;
523
691
  nns_neuron_id : opt NeuronId;
524
692
  amount_icp_e8s : opt nat64;
525
693
  };
694
+
526
695
  type NeuronsFundParticipation = record {
527
696
  total_maturity_equivalent_icp_e8s : opt nat64;
528
697
  intended_neurons_fund_participation_icp_e8s : opt nat64;
@@ -533,20 +702,30 @@ type NeuronsFundParticipation = record {
533
702
  ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
534
703
  allocated_neurons_fund_participation_icp_e8s : opt nat64;
535
704
  };
705
+
536
706
  type NeuronsFundSnapshot = record {
537
707
  neurons_fund_neuron_portions : vec NeuronsFundNeuronPortion;
538
708
  };
709
+
539
710
  type NodeProvider = record {
540
711
  id : opt principal;
541
712
  reward_account : opt AccountIdentifier;
542
713
  };
543
- type Ok = record { neurons_fund_audit_info : opt NeuronsFundAuditInfo };
544
- type Ok_1 = record { neurons_fund_neuron_portions : vec NeuronsFundNeuron };
714
+
715
+ type Ok = record {
716
+ neurons_fund_audit_info : opt NeuronsFundAuditInfo;
717
+ };
718
+
719
+ type Ok_1 = record {
720
+ neurons_fund_neuron_portions : vec NeuronsFundNeuron;
721
+ };
722
+
545
723
  type OpenSnsTokenSwap = record {
546
724
  community_fund_investment_e8s : opt nat64;
547
725
  target_swap_canister_id : opt principal;
548
726
  params : opt Params;
549
727
  };
728
+
550
729
  type Operation = variant {
551
730
  RemoveHotKey : RemoveHotKey;
552
731
  AddHotKey : AddHotKey;
@@ -559,6 +738,7 @@ type Operation = variant {
559
738
  LeaveCommunityFund : record {};
560
739
  SetDissolveTimestamp : SetDissolveTimestamp;
561
740
  };
741
+
562
742
  type Params = record {
563
743
  min_participant_icp_e8s : nat64;
564
744
  neuron_basket_construction_parameters : opt NeuronBasketConstructionParameters_1;
@@ -572,15 +752,26 @@ type Params = record {
572
752
  min_icp_e8s : nat64;
573
753
  max_direct_participation_icp_e8s : opt nat64;
574
754
  };
575
- type Percentage = record { basis_points : opt nat64 };
576
- type Principals = record { principals : vec principal };
577
- type Progress = variant { LastNeuronId : NeuronId };
755
+
756
+ type Percentage = record {
757
+ basis_points : opt nat64;
758
+ };
759
+
760
+ type Principals = record {
761
+ principals : vec principal;
762
+ };
763
+
764
+ type Progress = variant {
765
+ LastNeuronId : NeuronId;
766
+ };
767
+
578
768
  type Proposal = record {
579
769
  url : text;
580
770
  title : opt text;
581
771
  action : opt Action;
582
772
  summary : text;
583
773
  };
774
+
584
775
  type ProposalActionRequest = variant {
585
776
  RegisterKnownNeuron : KnownNeuron;
586
777
  ManageNeuron : ManageNeuronRequest;
@@ -590,19 +781,16 @@ type ProposalActionRequest = variant {
590
781
  CreateServiceNervousSystem : CreateServiceNervousSystem;
591
782
  ExecuteNnsFunction : ExecuteNnsFunction;
592
783
  RewardNodeProvider : RewardNodeProvider;
593
- OpenSnsTokenSwap : OpenSnsTokenSwap;
594
- SetSnsTokenSwapOpenTimeWindow : SetSnsTokenSwapOpenTimeWindow;
595
- SetDefaultFollowees : SetDefaultFollowees;
596
784
  RewardNodeProviders : RewardNodeProviders;
597
785
  ManageNetworkEconomics : NetworkEconomics;
598
786
  ApproveGenesisKyc : Principals;
599
787
  AddOrRemoveNodeProvider : AddOrRemoveNodeProvider;
600
788
  Motion : Motion;
601
789
  };
790
+
602
791
  type ProposalData = record {
603
792
  id : opt NeuronId;
604
793
  failure_reason : opt GovernanceError;
605
- cf_participants : vec CfParticipant;
606
794
  ballots : vec record { nat64; Ballot };
607
795
  proposal_timestamp_seconds : nat64;
608
796
  reward_event_round : nat64;
@@ -619,6 +807,7 @@ type ProposalData = record {
619
807
  executed_timestamp_seconds : nat64;
620
808
  original_total_community_fund_maturity_e8s_equivalent : opt nat64;
621
809
  };
810
+
622
811
  type ProposalInfo = record {
623
812
  id : opt NeuronId;
624
813
  status : int32;
@@ -638,29 +827,81 @@ type ProposalInfo = record {
638
827
  proposer : opt NeuronId;
639
828
  executed_timestamp_seconds : nat64;
640
829
  };
641
- type RegisterVote = record { vote : int32; proposal : opt NeuronId };
642
- type RemoveHotKey = record { hot_key_to_remove : opt principal };
830
+
831
+ type RegisterVote = record {
832
+ vote : int32;
833
+ proposal : opt NeuronId;
834
+ };
835
+
836
+ type RemoveHotKey = record {
837
+ hot_key_to_remove : opt principal;
838
+ };
839
+
643
840
  type RestoreAgingNeuronGroup = record {
644
841
  count : opt nat64;
645
842
  previous_total_stake_e8s : opt nat64;
646
843
  current_total_stake_e8s : opt nat64;
647
844
  group_type : int32;
648
845
  };
846
+
649
847
  type RestoreAgingSummary = record {
650
848
  groups : vec RestoreAgingNeuronGroup;
651
849
  timestamp_seconds : opt nat64;
652
850
  };
653
- type Result = variant { Ok; Err : GovernanceError };
654
- type Result_1 = variant { Error : GovernanceError; NeuronId : NeuronId };
655
- type Result_10 = variant { Ok : Ok_1; Err : GovernanceError };
656
- type Result_2 = variant { Ok : Neuron; Err : GovernanceError };
657
- type Result_3 = variant { Ok : GovernanceCachedMetrics; Err : GovernanceError };
658
- type Result_4 = variant { Ok : RewardNodeProviders; Err : GovernanceError };
659
- type Result_5 = variant { Ok : NeuronInfo; Err : GovernanceError };
660
- type Result_6 = variant { Ok : Ok; Err : GovernanceError };
661
- type Result_7 = variant { Ok : NodeProvider; Err : GovernanceError };
662
- type Result_8 = variant { Committed : Committed; Aborted : record {} };
663
- type Result_9 = variant { Committed : Committed_1; Aborted : record {} };
851
+
852
+ type Result = variant {
853
+ Ok;
854
+ Err : GovernanceError;
855
+ };
856
+
857
+ type Result_1 = variant {
858
+ Error : GovernanceError;
859
+ NeuronId : NeuronId;
860
+ };
861
+
862
+ type Result_10 = variant {
863
+ Ok : Ok_1;
864
+ Err : GovernanceError;
865
+ };
866
+
867
+ type Result_2 = variant {
868
+ Ok : Neuron;
869
+ Err : GovernanceError;
870
+ };
871
+
872
+ type Result_3 = variant {
873
+ Ok : GovernanceCachedMetrics;
874
+ Err : GovernanceError;
875
+ };
876
+
877
+ type Result_4 = variant {
878
+ Ok : MonthlyNodeProviderRewards;
879
+ Err : GovernanceError;
880
+ };
881
+
882
+ type Result_5 = variant {
883
+ Ok : NeuronInfo;
884
+ Err : GovernanceError;
885
+ };
886
+
887
+ type Result_6 = variant {
888
+ Ok : Ok;
889
+ Err : GovernanceError;
890
+ };
891
+
892
+ type Result_7 = variant {
893
+ Ok : NodeProvider;
894
+ Err : GovernanceError;
895
+ };
896
+
897
+ type Result_8 = variant {
898
+ Committed : Committed;
899
+ Aborted : record {} };
900
+
901
+ type Result_9 = variant {
902
+ Committed : Committed_1;
903
+ Aborted : record {} };
904
+
664
905
  type RewardEvent = record {
665
906
  rounds_since_last_distribution : opt nat64;
666
907
  day_after_genesis : nat64;
@@ -670,56 +911,94 @@ type RewardEvent = record {
670
911
  distributed_e8s_equivalent : nat64;
671
912
  settled_proposals : vec NeuronId;
672
913
  };
914
+
673
915
  type RewardMode = variant {
674
916
  RewardToNeuron : RewardToNeuron;
675
917
  RewardToAccount : RewardToAccount;
676
918
  };
919
+
677
920
  type RewardNodeProvider = record {
678
921
  node_provider : opt NodeProvider;
679
922
  reward_mode : opt RewardMode;
680
923
  amount_e8s : nat64;
681
924
  };
925
+
682
926
  type RewardNodeProviders = record {
683
927
  use_registry_derived_rewards : opt bool;
684
928
  rewards : vec RewardNodeProvider;
685
929
  };
686
- type RewardToAccount = record { to_account : opt AccountIdentifier };
687
- type RewardToNeuron = record { dissolve_delay_seconds : nat64 };
930
+
931
+ type RewardToAccount = record {
932
+ to_account : opt AccountIdentifier;
933
+ };
934
+
935
+ type RewardToNeuron = record {
936
+ dissolve_delay_seconds : nat64;
937
+ };
938
+
688
939
  type SetDefaultFollowees = record {
689
940
  default_followees : vec record { int32; Followees };
690
941
  };
691
- type SetDissolveTimestamp = record { dissolve_timestamp_seconds : nat64 };
692
- type SetOpenTimeWindowRequest = record { open_time_window : opt TimeWindow };
942
+
943
+ type SetDissolveTimestamp = record {
944
+ dissolve_timestamp_seconds : nat64;
945
+ };
946
+
947
+ type SetOpenTimeWindowRequest = record {
948
+ open_time_window : opt TimeWindow;
949
+ };
950
+
693
951
  type SetSnsTokenSwapOpenTimeWindow = record {
694
952
  request : opt SetOpenTimeWindowRequest;
695
953
  swap_canister_id : opt principal;
696
954
  };
697
- type SetVisibility = record { visibility : opt int32 };
955
+
956
+ type SetVisibility = record {
957
+ visibility : opt int32;
958
+ };
959
+
698
960
  type SettleCommunityFundParticipation = record {
699
961
  result : opt Result_8;
700
962
  open_sns_token_swap_proposal_id : opt nat64;
701
963
  };
964
+
702
965
  type SettleNeuronsFundParticipationRequest = record {
703
966
  result : opt Result_9;
704
967
  nns_proposal_id : opt nat64;
705
968
  };
706
- type SettleNeuronsFundParticipationResponse = record { result : opt Result_10 };
969
+
970
+ type SettleNeuronsFundParticipationResponse = record {
971
+ result : opt Result_10;
972
+ };
973
+
707
974
  type Spawn = record {
708
975
  percentage_to_spawn : opt nat32;
709
976
  new_controller : opt principal;
710
977
  nonce : opt nat64;
711
978
  };
712
- type SpawnResponse = record { created_neuron_id : opt NeuronId };
713
- type Split = record { amount_e8s : nat64 };
714
- type StakeMaturity = record { percentage_to_stake : opt nat32 };
979
+
980
+ type SpawnResponse = record {
981
+ created_neuron_id : opt NeuronId;
982
+ };
983
+
984
+ type Split = record {
985
+ amount_e8s : nat64;
986
+ };
987
+
988
+ type StakeMaturity = record {
989
+ percentage_to_stake : opt nat32;
990
+ };
991
+
715
992
  type StakeMaturityResponse = record {
716
993
  maturity_e8s : nat64;
717
994
  staked_maturity_e8s : nat64;
718
995
  };
996
+
719
997
  type StopOrStartCanister = record {
720
998
  action : opt int32;
721
999
  canister_id : opt principal;
722
1000
  };
1001
+
723
1002
  type SwapBackgroundInformation = record {
724
1003
  ledger_index_canister_summary : opt CanisterSummary;
725
1004
  fallback_controller_principal_ids : vec principal;
@@ -730,7 +1009,11 @@ type SwapBackgroundInformation = record {
730
1009
  root_canister_summary : opt CanisterSummary;
731
1010
  dapp_canister_summaries : vec CanisterSummary;
732
1011
  };
733
- type SwapDistribution = record { total : opt Tokens };
1012
+
1013
+ type SwapDistribution = record {
1014
+ total : opt Tokens;
1015
+ };
1016
+
734
1017
  type SwapParameters = record {
735
1018
  minimum_participants : opt nat64;
736
1019
  neurons_fund_participation : opt bool;
@@ -747,38 +1030,54 @@ type SwapParameters = record {
747
1030
  neurons_fund_investment_icp : opt Tokens;
748
1031
  restricted_countries : opt Countries;
749
1032
  };
1033
+
750
1034
  type SwapParticipationLimits = record {
751
1035
  min_participant_icp_e8s : opt nat64;
752
1036
  max_participant_icp_e8s : opt nat64;
753
1037
  min_direct_participation_icp_e8s : opt nat64;
754
1038
  max_direct_participation_icp_e8s : opt nat64;
755
1039
  };
1040
+
756
1041
  type Tally = record {
757
1042
  no : nat64;
758
1043
  yes : nat64;
759
1044
  total : nat64;
760
1045
  timestamp_seconds : nat64;
761
1046
  };
1047
+
762
1048
  type TimeWindow = record {
763
1049
  start_timestamp_seconds : nat64;
764
1050
  end_timestamp_seconds : nat64;
765
1051
  };
766
- type Tokens = record { e8s : opt nat64 };
1052
+
1053
+ type Tokens = record {
1054
+ e8s : opt nat64;
1055
+ };
1056
+
767
1057
  type UpdateCanisterSettings = record {
768
1058
  canister_id : opt principal;
769
1059
  settings : opt CanisterSettings;
770
1060
  };
771
- type UpdateNodeProvider = record { reward_account : opt AccountIdentifier };
1061
+
1062
+ type UpdateNodeProvider = record {
1063
+ reward_account : opt AccountIdentifier;
1064
+ };
1065
+
772
1066
  type VotingRewardParameters = record {
773
1067
  reward_rate_transition_duration : opt Duration;
774
1068
  initial_reward_rate : opt Percentage;
775
1069
  final_reward_rate : opt Percentage;
776
1070
  };
777
- type WaitForQuietState = record { current_deadline_timestamp_seconds : nat64 };
1071
+
1072
+ type WaitForQuietState = record {
1073
+ current_deadline_timestamp_seconds : nat64;
1074
+ };
1075
+
778
1076
  type XdrConversionRate = record {
779
1077
  xdr_permyriad_per_icp : opt nat64;
780
1078
  timestamp_seconds : opt nat64;
781
1079
  };
1080
+
782
1081
  service : (Governance) -> {
783
1082
  claim_gtc_neurons : (principal, vec NeuronId) -> (Result);
784
1083
  claim_or_refresh_neuron_from_account : (ClaimOrRefreshNeuronFromAccount) -> (
@@ -825,4 +1124,4 @@ service : (Governance) -> {
825
1124
  simulate_manage_neuron : (ManageNeuronRequest) -> (ManageNeuronResponse);
826
1125
  transfer_gtc_neuron : (NeuronId, NeuronId) -> (Result);
827
1126
  update_node_provider : (UpdateNodeProvider) -> (Result);
828
- }
1127
+ }