@dfinity/nns 2.0.0 → 2.1.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 (35) hide show
  1. package/README.md +12 -24
  2. package/dist/candid/genesis_token.did +1 -1
  3. package/dist/candid/governance.certified.idl.js +488 -312
  4. package/dist/candid/governance.d.ts +101 -0
  5. package/dist/candid/governance.did +104 -3
  6. package/dist/candid/governance.idl.js +496 -320
  7. package/dist/candid/governance_test.certified.idl.js +115 -0
  8. package/dist/candid/governance_test.d.ts +69 -0
  9. package/dist/candid/governance_test.did +67 -2
  10. package/dist/candid/governance_test.idl.js +115 -0
  11. package/dist/candid/sns_wasm.certified.idl.js +2 -0
  12. package/dist/candid/sns_wasm.d.ts +2 -0
  13. package/dist/candid/sns_wasm.did +3 -1
  14. package/dist/candid/sns_wasm.idl.js +2 -0
  15. package/dist/cjs/index.cjs.js +2 -2
  16. package/dist/cjs/index.cjs.js.map +4 -4
  17. package/dist/esm/chunk-2MR4JA3T.js +20 -0
  18. package/dist/esm/chunk-2MR4JA3T.js.map +7 -0
  19. package/dist/esm/chunk-YGDWD6VV.js +2 -0
  20. package/dist/esm/chunk-YGDWD6VV.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 +4 -4
  24. package/dist/esm/sns_wasm.canister.js +1 -1
  25. package/dist/types/canisters/governance/request.converters.d.ts +1 -1
  26. package/dist/types/canisters/governance/response.converters.d.ts +2 -1
  27. package/dist/types/enums/governance.enums.d.ts +3 -1
  28. package/dist/types/governance_test.canister.d.ts +14 -0
  29. package/dist/types/index.d.ts +1 -0
  30. package/dist/types/types/governance_converters.d.ts +17 -11
  31. package/package.json +1 -1
  32. package/dist/esm/chunk-IJWQXUQ5.js +0 -2
  33. package/dist/esm/chunk-IJWQXUQ5.js.map +0 -7
  34. package/dist/esm/chunk-LARRGLCK.js +0 -20
  35. package/dist/esm/chunk-LARRGLCK.js.map +0 -7
@@ -59,6 +59,7 @@ export interface CanisterSummary {
59
59
  canister_id: [] | [Principal];
60
60
  }
61
61
  export interface CfNeuron {
62
+ has_created_neuron_recipes: [] | [boolean];
62
63
  nns_neuron_id: bigint;
63
64
  amount_icp_e8s: bigint;
64
65
  }
@@ -121,6 +122,13 @@ export type Command_2 =
121
122
  | { MergeMaturity: MergeMaturity }
122
123
  | { Disburse: Disburse };
123
124
  export interface Committed {
125
+ total_direct_contribution_icp_e8s: [] | [bigint];
126
+ total_neurons_fund_contribution_icp_e8s: [] | [bigint];
127
+ sns_governance_canister_id: [] | [Principal];
128
+ }
129
+ export interface Committed_1 {
130
+ total_direct_participation_icp_e8s: [] | [bigint];
131
+ total_neurons_fund_participation_icp_e8s: [] | [bigint];
124
132
  sns_governance_canister_id: [] | [Principal];
125
133
  }
126
134
  export interface Configure {
@@ -183,12 +191,14 @@ export interface GlobalTimeOfDay {
183
191
  }
184
192
  export interface Governance {
185
193
  default_followees: Array<[number, Followees]>;
194
+ making_sns_proposal: [] | [MakingSnsProposal];
186
195
  most_recent_monthly_node_provider_rewards:
187
196
  | []
188
197
  | [MostRecentMonthlyNodeProviderRewards];
189
198
  maturity_modulation_last_updated_at_timestamp_seconds: [] | [bigint];
190
199
  wait_for_quiet_threshold_seconds: bigint;
191
200
  metrics: [] | [GovernanceCachedMetrics];
201
+ neuron_management_voting_period_seconds: [] | [bigint];
192
202
  node_providers: Array<NodeProvider>;
193
203
  cached_daily_maturity_modulation_basis_points: [] | [number];
194
204
  economics: [] | [NetworkEconomics];
@@ -196,14 +206,20 @@ export interface Governance {
196
206
  latest_reward_event: [] | [RewardEvent];
197
207
  to_claim_transfers: Array<NeuronStakeTransfer>;
198
208
  short_voting_period_seconds: bigint;
209
+ migrations: [] | [Migrations];
199
210
  proposals: Array<[bigint, ProposalData]>;
200
211
  in_flight_commands: Array<[bigint, NeuronInFlightCommand]>;
201
212
  neurons: Array<[bigint, Neuron]>;
202
213
  genesis_timestamp_seconds: bigint;
203
214
  }
204
215
  export interface GovernanceCachedMetrics {
216
+ total_maturity_e8s_equivalent: bigint;
205
217
  not_dissolving_neurons_e8s_buckets: Array<[bigint, number]>;
218
+ dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
206
219
  garbage_collectable_neurons_count: bigint;
220
+ dissolving_neurons_staked_maturity_e8s_equivalent_buckets: Array<
221
+ [bigint, number]
222
+ >;
207
223
  neurons_with_invalid_stake_count: bigint;
208
224
  not_dissolving_neurons_count_buckets: Array<[bigint, bigint]>;
209
225
  total_supply_icp: bigint;
@@ -213,8 +229,14 @@ export interface GovernanceCachedMetrics {
213
229
  total_staked_e8s: bigint;
214
230
  not_dissolving_neurons_count: bigint;
215
231
  total_locked_e8s: bigint;
232
+ neurons_fund_total_active_neurons: bigint;
233
+ total_staked_maturity_e8s_equivalent: bigint;
234
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
216
235
  dissolved_neurons_e8s: bigint;
217
236
  neurons_with_less_than_6_months_dissolve_delay_e8s: bigint;
237
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: Array<
238
+ [bigint, number]
239
+ >;
218
240
  dissolving_neurons_count_buckets: Array<[bigint, bigint]>;
219
241
  dissolving_neurons_count: bigint;
220
242
  dissolving_neurons_e8s_buckets: Array<[bigint, number]>;
@@ -237,6 +259,9 @@ export interface GovernanceParameters {
237
259
  proposal_rejection_fee: [] | [Tokens];
238
260
  voting_reward_parameters: [] | [VotingRewardParameters];
239
261
  }
262
+ export interface IdealMatchedParticipationFunction {
263
+ serialized_representation: [] | [string];
264
+ }
240
265
  export interface Image {
241
266
  base64_encoding: [] | [string];
242
267
  }
@@ -278,6 +303,7 @@ export interface ListNodeProvidersResponse {
278
303
  }
279
304
  export interface ListProposalInfo {
280
305
  include_reward_status: Int32Array;
306
+ omit_large_fields: [] | [boolean];
281
307
  before_proposal: [] | [NeuronId];
282
308
  limit: number;
283
309
  exclude_topic: Int32Array;
@@ -290,6 +316,11 @@ export interface ListProposalInfoResponse {
290
316
  export interface MakeProposalResponse {
291
317
  proposal_id: [] | [NeuronId];
292
318
  }
319
+ export interface MakingSnsProposal {
320
+ proposal: [] | [Proposal];
321
+ caller: [] | [Principal];
322
+ proposer_id: [] | [NeuronId];
323
+ }
293
324
  export interface ManageNeuron {
294
325
  id: [] | [NeuronId];
295
326
  command: [] | [Command];
@@ -314,6 +345,15 @@ export interface MergeResponse {
314
345
  target_neuron_info: [] | [NeuronInfo];
315
346
  source_neuron_info: [] | [NeuronInfo];
316
347
  }
348
+ export interface Migration {
349
+ status: [] | [number];
350
+ failure_reason: [] | [string];
351
+ progress: [] | [Progress];
352
+ }
353
+ export interface Migrations {
354
+ neuron_indexes_migration: [] | [Migration];
355
+ copy_inactive_neurons_to_stable_memory_migration: [] | [Migration];
356
+ }
317
357
  export interface MostRecentMonthlyNodeProviderRewards {
318
358
  timestamp: bigint;
319
359
  rewards: Array<RewardNodeProvider>;
@@ -399,10 +439,45 @@ export interface NeuronStakeTransfer {
399
439
  transfer_timestamp: bigint;
400
440
  block_height: bigint;
401
441
  }
442
+ export interface NeuronsFundData {
443
+ final_neurons_fund_participation: [] | [NeuronsFundParticipation];
444
+ initial_neurons_fund_participation: [] | [NeuronsFundParticipation];
445
+ neurons_fund_refunds: [] | [NeuronsFundSnapshot];
446
+ }
447
+ export interface NeuronsFundNeuron {
448
+ hotkey_principal: [] | [string];
449
+ is_capped: [] | [boolean];
450
+ nns_neuron_id: [] | [bigint];
451
+ amount_icp_e8s: [] | [bigint];
452
+ }
453
+ export interface NeuronsFundNeuronPortion {
454
+ hotkey_principal: [] | [Principal];
455
+ is_capped: [] | [boolean];
456
+ maturity_equivalent_icp_e8s: [] | [bigint];
457
+ nns_neuron_id: [] | [NeuronId];
458
+ amount_icp_e8s: [] | [bigint];
459
+ }
460
+ export interface NeuronsFundParticipation {
461
+ total_maturity_equivalent_icp_e8s: [] | [bigint];
462
+ intended_neurons_fund_participation_icp_e8s: [] | [bigint];
463
+ direct_participation_icp_e8s: [] | [bigint];
464
+ swap_participation_limits: [] | [SwapParticipationLimits];
465
+ max_neurons_fund_swap_participation_icp_e8s: [] | [bigint];
466
+ neurons_fund_reserves: [] | [NeuronsFundSnapshot];
467
+ ideal_matched_participation_function:
468
+ | []
469
+ | [IdealMatchedParticipationFunction];
470
+ }
471
+ export interface NeuronsFundSnapshot {
472
+ neurons_fund_neuron_portions: Array<NeuronsFundNeuronPortion>;
473
+ }
402
474
  export interface NodeProvider {
403
475
  id: [] | [Principal];
404
476
  reward_account: [] | [AccountIdentifier];
405
477
  }
478
+ export interface Ok {
479
+ neurons_fund_neuron_portions: Array<NeuronsFundNeuron>;
480
+ }
406
481
  export interface OpenSnsTokenSwap {
407
482
  community_fund_investment_e8s: [] | [bigint];
408
483
  target_swap_canister_id: [] | [Principal];
@@ -429,11 +504,14 @@ export interface Params {
429
504
  sns_token_e8s: bigint;
430
505
  sale_delay_seconds: [] | [bigint];
431
506
  max_participant_icp_e8s: bigint;
507
+ min_direct_participation_icp_e8s: [] | [bigint];
432
508
  min_icp_e8s: bigint;
509
+ max_direct_participation_icp_e8s: [] | [bigint];
433
510
  }
434
511
  export interface Percentage {
435
512
  basis_points: [] | [bigint];
436
513
  }
514
+ export type Progress = { LastNeuronId: NeuronId };
437
515
  export interface Proposal {
438
516
  url: string;
439
517
  title: [] | [string];
@@ -448,6 +526,7 @@ export interface ProposalData {
448
526
  proposal_timestamp_seconds: bigint;
449
527
  reward_event_round: bigint;
450
528
  failed_timestamp_seconds: bigint;
529
+ neurons_fund_data: [] | [NeuronsFundData];
451
530
  reject_cost_e8s: bigint;
452
531
  derived_proposal_information: [] | [DerivedProposalInformation];
453
532
  latest_tally: [] | [Tally];
@@ -495,6 +574,8 @@ export type Result_4 = { Ok: RewardNodeProviders } | { Err: GovernanceError };
495
574
  export type Result_5 = { Ok: NeuronInfo } | { Err: GovernanceError };
496
575
  export type Result_6 = { Ok: NodeProvider } | { Err: GovernanceError };
497
576
  export type Result_7 = { Committed: Committed } | { Aborted: {} };
577
+ export type Result_8 = { Committed: Committed_1 } | { Aborted: {} };
578
+ export type Result_9 = { Ok: Ok } | { Err: GovernanceError };
498
579
  export interface RewardEvent {
499
580
  rounds_since_last_distribution: [] | [bigint];
500
581
  day_after_genesis: bigint;
@@ -539,6 +620,13 @@ export interface SettleCommunityFundParticipation {
539
620
  result: [] | [Result_7];
540
621
  open_sns_token_swap_proposal_id: [] | [bigint];
541
622
  }
623
+ export interface SettleNeuronsFundParticipationRequest {
624
+ result: [] | [Result_8];
625
+ nns_proposal_id: [] | [bigint];
626
+ }
627
+ export interface SettleNeuronsFundParticipationResponse {
628
+ result: [] | [Result_9];
629
+ }
542
630
  export interface Spawn {
543
631
  percentage_to_spawn: [] | [number];
544
632
  new_controller: [] | [Principal];
@@ -572,6 +660,7 @@ export interface SwapDistribution {
572
660
  }
573
661
  export interface SwapParameters {
574
662
  minimum_participants: [] | [bigint];
663
+ neurons_fund_participation: [] | [boolean];
575
664
  duration: [] | [Duration];
576
665
  neuron_basket_construction_parameters:
577
666
  | []
@@ -579,12 +668,20 @@ export interface SwapParameters {
579
668
  confirmation_text: [] | [string];
580
669
  maximum_participant_icp: [] | [Tokens];
581
670
  minimum_icp: [] | [Tokens];
671
+ minimum_direct_participation_icp: [] | [Tokens];
582
672
  minimum_participant_icp: [] | [Tokens];
583
673
  start_time: [] | [GlobalTimeOfDay];
674
+ maximum_direct_participation_icp: [] | [Tokens];
584
675
  maximum_icp: [] | [Tokens];
585
676
  neurons_fund_investment_icp: [] | [Tokens];
586
677
  restricted_countries: [] | [Countries];
587
678
  }
679
+ export interface SwapParticipationLimits {
680
+ min_participant_icp_e8s: [] | [bigint];
681
+ max_participant_icp_e8s: [] | [bigint];
682
+ min_direct_participation_icp_e8s: [] | [bigint];
683
+ max_direct_participation_icp_e8s: [] | [bigint];
684
+ }
588
685
  export interface Tally {
589
686
  no: bigint;
590
687
  yes: bigint;
@@ -647,6 +744,10 @@ export interface _SERVICE {
647
744
  [SettleCommunityFundParticipation],
648
745
  Result
649
746
  >;
747
+ settle_neurons_fund_participation: ActorMethod<
748
+ [SettleNeuronsFundParticipationRequest],
749
+ SettleNeuronsFundParticipationResponse
750
+ >;
650
751
  simulate_manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
651
752
  transfer_gtc_neuron: ActorMethod<[NeuronId, NeuronId], Result>;
652
753
  update_node_provider: ActorMethod<[UpdateNodeProvider], Result>;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 72b42535224bc01c89266be2e9ec067cadf10515 'rs/nns/governance/canister/governance.did' by import-candid
1
+ // Generated from IC repo commit 1a01f85fc1994e69dd5ba72b4d87fe9f9c4093ee 'rs/nns/governance/canister/governance.did' by import-candid
2
2
  type AccountIdentifier = record { hash : vec nat8 };
3
3
  type Action = variant {
4
4
  RegisterKnownNeuron : KnownNeuron;
@@ -40,7 +40,11 @@ type CanisterSummary = record {
40
40
  status : opt CanisterStatusResultV2;
41
41
  canister_id : opt principal;
42
42
  };
43
- type CfNeuron = record { nns_neuron_id : nat64; amount_icp_e8s : nat64 };
43
+ type CfNeuron = record {
44
+ has_created_neuron_recipes : opt bool;
45
+ nns_neuron_id : nat64;
46
+ amount_icp_e8s : nat64;
47
+ };
44
48
  type CfParticipant = record {
45
49
  hotkey_principal : text;
46
50
  cf_neurons : vec CfNeuron;
@@ -96,7 +100,16 @@ type Command_2 = variant {
96
100
  MergeMaturity : MergeMaturity;
97
101
  Disburse : Disburse;
98
102
  };
99
- type Committed = record { sns_governance_canister_id : opt principal };
103
+ type Committed = record {
104
+ total_direct_contribution_icp_e8s : opt nat64;
105
+ total_neurons_fund_contribution_icp_e8s : opt nat64;
106
+ sns_governance_canister_id : opt principal;
107
+ };
108
+ type Committed_1 = record {
109
+ total_direct_participation_icp_e8s : opt nat64;
110
+ total_neurons_fund_participation_icp_e8s : opt nat64;
111
+ sns_governance_canister_id : opt principal;
112
+ };
100
113
  type Configure = record { operation : opt Operation };
101
114
  type Countries = record { iso_codes : vec text };
102
115
  type CreateServiceNervousSystem = record {
@@ -140,10 +153,12 @@ type Followees = record { followees : vec NeuronId };
140
153
  type GlobalTimeOfDay = record { seconds_after_utc_midnight : opt nat64 };
141
154
  type Governance = record {
142
155
  default_followees : vec record { int32; Followees };
156
+ making_sns_proposal : opt MakingSnsProposal;
143
157
  most_recent_monthly_node_provider_rewards : opt MostRecentMonthlyNodeProviderRewards;
144
158
  maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
145
159
  wait_for_quiet_threshold_seconds : nat64;
146
160
  metrics : opt GovernanceCachedMetrics;
161
+ neuron_management_voting_period_seconds : opt nat64;
147
162
  node_providers : vec NodeProvider;
148
163
  cached_daily_maturity_modulation_basis_points : opt int32;
149
164
  economics : opt NetworkEconomics;
@@ -151,14 +166,21 @@ type Governance = record {
151
166
  latest_reward_event : opt RewardEvent;
152
167
  to_claim_transfers : vec NeuronStakeTransfer;
153
168
  short_voting_period_seconds : nat64;
169
+ migrations : opt Migrations;
154
170
  proposals : vec record { nat64; ProposalData };
155
171
  in_flight_commands : vec record { nat64; NeuronInFlightCommand };
156
172
  neurons : vec record { nat64; Neuron };
157
173
  genesis_timestamp_seconds : nat64;
158
174
  };
159
175
  type GovernanceCachedMetrics = record {
176
+ total_maturity_e8s_equivalent : nat64;
160
177
  not_dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
178
+ dissolving_neurons_staked_maturity_e8s_equivalent_sum : nat64;
161
179
  garbage_collectable_neurons_count : nat64;
180
+ dissolving_neurons_staked_maturity_e8s_equivalent_buckets : vec record {
181
+ nat64;
182
+ float64;
183
+ };
162
184
  neurons_with_invalid_stake_count : nat64;
163
185
  not_dissolving_neurons_count_buckets : vec record { nat64; nat64 };
164
186
  total_supply_icp : nat64;
@@ -168,8 +190,15 @@ type GovernanceCachedMetrics = record {
168
190
  total_staked_e8s : nat64;
169
191
  not_dissolving_neurons_count : nat64;
170
192
  total_locked_e8s : nat64;
193
+ neurons_fund_total_active_neurons : nat64;
194
+ total_staked_maturity_e8s_equivalent : nat64;
195
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_sum : nat64;
171
196
  dissolved_neurons_e8s : nat64;
172
197
  neurons_with_less_than_6_months_dissolve_delay_e8s : nat64;
198
+ not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets : vec record {
199
+ nat64;
200
+ float64;
201
+ };
173
202
  dissolving_neurons_count_buckets : vec record { nat64; nat64 };
174
203
  dissolving_neurons_count : nat64;
175
204
  dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
@@ -189,6 +218,9 @@ type GovernanceParameters = record {
189
218
  proposal_rejection_fee : opt Tokens;
190
219
  voting_reward_parameters : opt VotingRewardParameters;
191
220
  };
221
+ type IdealMatchedParticipationFunction = record {
222
+ serialized_representation : opt text;
223
+ };
192
224
  type Image = record { base64_encoding : opt text };
193
225
  type IncreaseDissolveDelay = record {
194
226
  additional_dissolve_delay_seconds : nat32;
@@ -221,6 +253,7 @@ type ListNeuronsResponse = record {
221
253
  type ListNodeProvidersResponse = record { node_providers : vec NodeProvider };
222
254
  type ListProposalInfo = record {
223
255
  include_reward_status : vec int32;
256
+ omit_large_fields : opt bool;
224
257
  before_proposal : opt NeuronId;
225
258
  limit : nat32;
226
259
  exclude_topic : vec int32;
@@ -229,6 +262,11 @@ type ListProposalInfo = record {
229
262
  };
230
263
  type ListProposalInfoResponse = record { proposal_info : vec ProposalInfo };
231
264
  type MakeProposalResponse = record { proposal_id : opt NeuronId };
265
+ type MakingSnsProposal = record {
266
+ proposal : opt Proposal;
267
+ caller : opt principal;
268
+ proposer_id : opt NeuronId;
269
+ };
232
270
  type ManageNeuron = record {
233
271
  id : opt NeuronId;
234
272
  command : opt Command;
@@ -247,6 +285,15 @@ type MergeResponse = record {
247
285
  target_neuron_info : opt NeuronInfo;
248
286
  source_neuron_info : opt NeuronInfo;
249
287
  };
288
+ type Migration = record {
289
+ status : opt int32;
290
+ failure_reason : opt text;
291
+ progress : opt Progress;
292
+ };
293
+ type Migrations = record {
294
+ neuron_indexes_migration : opt Migration;
295
+ copy_inactive_neurons_to_stable_memory_migration : opt Migration;
296
+ };
250
297
  type MostRecentMonthlyNodeProviderRewards = record {
251
298
  timestamp : nat64;
252
299
  rewards : vec RewardNodeProvider;
@@ -329,10 +376,41 @@ type NeuronStakeTransfer = record {
329
376
  transfer_timestamp : nat64;
330
377
  block_height : nat64;
331
378
  };
379
+ type NeuronsFundData = record {
380
+ final_neurons_fund_participation : opt NeuronsFundParticipation;
381
+ initial_neurons_fund_participation : opt NeuronsFundParticipation;
382
+ neurons_fund_refunds : opt NeuronsFundSnapshot;
383
+ };
384
+ type NeuronsFundNeuron = record {
385
+ hotkey_principal : opt text;
386
+ is_capped : opt bool;
387
+ nns_neuron_id : opt nat64;
388
+ amount_icp_e8s : opt nat64;
389
+ };
390
+ type NeuronsFundNeuronPortion = record {
391
+ hotkey_principal : opt principal;
392
+ is_capped : opt bool;
393
+ maturity_equivalent_icp_e8s : opt nat64;
394
+ nns_neuron_id : opt NeuronId;
395
+ amount_icp_e8s : opt nat64;
396
+ };
397
+ type NeuronsFundParticipation = record {
398
+ total_maturity_equivalent_icp_e8s : opt nat64;
399
+ intended_neurons_fund_participation_icp_e8s : opt nat64;
400
+ direct_participation_icp_e8s : opt nat64;
401
+ swap_participation_limits : opt SwapParticipationLimits;
402
+ max_neurons_fund_swap_participation_icp_e8s : opt nat64;
403
+ neurons_fund_reserves : opt NeuronsFundSnapshot;
404
+ ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
405
+ };
406
+ type NeuronsFundSnapshot = record {
407
+ neurons_fund_neuron_portions : vec NeuronsFundNeuronPortion;
408
+ };
332
409
  type NodeProvider = record {
333
410
  id : opt principal;
334
411
  reward_account : opt AccountIdentifier;
335
412
  };
413
+ type Ok = record { neurons_fund_neuron_portions : vec NeuronsFundNeuron };
336
414
  type OpenSnsTokenSwap = record {
337
415
  community_fund_investment_e8s : opt nat64;
338
416
  target_swap_canister_id : opt principal;
@@ -358,9 +436,12 @@ type Params = record {
358
436
  sns_token_e8s : nat64;
359
437
  sale_delay_seconds : opt nat64;
360
438
  max_participant_icp_e8s : nat64;
439
+ min_direct_participation_icp_e8s : opt nat64;
361
440
  min_icp_e8s : nat64;
441
+ max_direct_participation_icp_e8s : opt nat64;
362
442
  };
363
443
  type Percentage = record { basis_points : opt nat64 };
444
+ type Progress = variant { LastNeuronId : NeuronId };
364
445
  type Proposal = record {
365
446
  url : text;
366
447
  title : opt text;
@@ -375,6 +456,7 @@ type ProposalData = record {
375
456
  proposal_timestamp_seconds : nat64;
376
457
  reward_event_round : nat64;
377
458
  failed_timestamp_seconds : nat64;
459
+ neurons_fund_data : opt NeuronsFundData;
378
460
  reject_cost_e8s : nat64;
379
461
  derived_proposal_information : opt DerivedProposalInformation;
380
462
  latest_tally : opt Tally;
@@ -415,6 +497,8 @@ type Result_4 = variant { Ok : RewardNodeProviders; Err : GovernanceError };
415
497
  type Result_5 = variant { Ok : NeuronInfo; Err : GovernanceError };
416
498
  type Result_6 = variant { Ok : NodeProvider; Err : GovernanceError };
417
499
  type Result_7 = variant { Committed : Committed; Aborted : record {} };
500
+ type Result_8 = variant { Committed : Committed_1; Aborted : record {} };
501
+ type Result_9 = variant { Ok : Ok; Err : GovernanceError };
418
502
  type RewardEvent = record {
419
503
  rounds_since_last_distribution : opt nat64;
420
504
  day_after_genesis : nat64;
@@ -452,6 +536,11 @@ type SettleCommunityFundParticipation = record {
452
536
  result : opt Result_7;
453
537
  open_sns_token_swap_proposal_id : opt nat64;
454
538
  };
539
+ type SettleNeuronsFundParticipationRequest = record {
540
+ result : opt Result_8;
541
+ nns_proposal_id : opt nat64;
542
+ };
543
+ type SettleNeuronsFundParticipationResponse = record { result : opt Result_9 };
455
544
  type Spawn = record {
456
545
  percentage_to_spawn : opt nat32;
457
546
  new_controller : opt principal;
@@ -477,17 +566,26 @@ type SwapBackgroundInformation = record {
477
566
  type SwapDistribution = record { total : opt Tokens };
478
567
  type SwapParameters = record {
479
568
  minimum_participants : opt nat64;
569
+ neurons_fund_participation : opt bool;
480
570
  duration : opt Duration;
481
571
  neuron_basket_construction_parameters : opt NeuronBasketConstructionParameters;
482
572
  confirmation_text : opt text;
483
573
  maximum_participant_icp : opt Tokens;
484
574
  minimum_icp : opt Tokens;
575
+ minimum_direct_participation_icp : opt Tokens;
485
576
  minimum_participant_icp : opt Tokens;
486
577
  start_time : opt GlobalTimeOfDay;
578
+ maximum_direct_participation_icp : opt Tokens;
487
579
  maximum_icp : opt Tokens;
488
580
  neurons_fund_investment_icp : opt Tokens;
489
581
  restricted_countries : opt Countries;
490
582
  };
583
+ type SwapParticipationLimits = record {
584
+ min_participant_icp_e8s : opt nat64;
585
+ max_participant_icp_e8s : opt nat64;
586
+ min_direct_participation_icp_e8s : opt nat64;
587
+ max_direct_participation_icp_e8s : opt nat64;
588
+ };
491
589
  type Tally = record {
492
590
  no : nat64;
493
591
  yes : nat64;
@@ -539,6 +637,9 @@ service : (Governance) -> {
539
637
  settle_community_fund_participation : (SettleCommunityFundParticipation) -> (
540
638
  Result,
541
639
  );
640
+ settle_neurons_fund_participation : (
641
+ SettleNeuronsFundParticipationRequest,
642
+ ) -> (SettleNeuronsFundParticipationResponse);
542
643
  simulate_manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
543
644
  transfer_gtc_neuron : (NeuronId, NeuronId) -> (Result);
544
645
  update_node_provider : (UpdateNodeProvider) -> (Result);