@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
@@ -139,6 +139,7 @@ export const idlFactory = ({ IDL }) => {
139
139
  const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
140
140
  const SwapParameters = IDL.Record({
141
141
  'minimum_participants' : IDL.Opt(IDL.Nat64),
142
+ 'neurons_fund_participation' : IDL.Opt(IDL.Bool),
142
143
  'duration' : IDL.Opt(Duration),
143
144
  'neuron_basket_construction_parameters' : IDL.Opt(
144
145
  NeuronBasketConstructionParameters
@@ -146,8 +147,10 @@ export const idlFactory = ({ IDL }) => {
146
147
  'confirmation_text' : IDL.Opt(IDL.Text),
147
148
  'maximum_participant_icp' : IDL.Opt(Tokens),
148
149
  'minimum_icp' : IDL.Opt(Tokens),
150
+ 'minimum_direct_participation_icp' : IDL.Opt(Tokens),
149
151
  'minimum_participant_icp' : IDL.Opt(Tokens),
150
152
  'start_time' : IDL.Opt(GlobalTimeOfDay),
153
+ 'maximum_direct_participation_icp' : IDL.Opt(Tokens),
151
154
  'maximum_icp' : IDL.Opt(Tokens),
152
155
  'neurons_fund_investment_icp' : IDL.Opt(Tokens),
153
156
  'restricted_countries' : IDL.Opt(Countries),
@@ -216,7 +219,9 @@ export const idlFactory = ({ IDL }) => {
216
219
  'sns_token_e8s' : IDL.Nat64,
217
220
  'sale_delay_seconds' : IDL.Opt(IDL.Nat64),
218
221
  'max_participant_icp_e8s' : IDL.Nat64,
222
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
219
223
  'min_icp_e8s' : IDL.Nat64,
224
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
220
225
  });
221
226
  const OpenSnsTokenSwap = IDL.Record({
222
227
  'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
@@ -364,6 +369,7 @@ export const idlFactory = ({ IDL }) => {
364
369
  'error_type' : IDL.Int32,
365
370
  });
366
371
  const CfNeuron = IDL.Record({
372
+ 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
367
373
  'nns_neuron_id' : IDL.Nat64,
368
374
  'amount_icp_e8s' : IDL.Nat64,
369
375
  });
@@ -372,6 +378,41 @@ export const idlFactory = ({ IDL }) => {
372
378
  'cf_neurons' : IDL.Vec(CfNeuron),
373
379
  });
374
380
  const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
381
+ const SwapParticipationLimits = IDL.Record({
382
+ 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
383
+ 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
384
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
385
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
386
+ });
387
+ const NeuronsFundNeuronPortion = IDL.Record({
388
+ 'hotkey_principal' : IDL.Opt(IDL.Principal),
389
+ 'is_capped' : IDL.Opt(IDL.Bool),
390
+ 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
391
+ 'nns_neuron_id' : IDL.Opt(NeuronId),
392
+ 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
393
+ });
394
+ const NeuronsFundSnapshot = IDL.Record({
395
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
396
+ });
397
+ const IdealMatchedParticipationFunction = IDL.Record({
398
+ 'serialized_representation' : IDL.Opt(IDL.Text),
399
+ });
400
+ const NeuronsFundParticipation = IDL.Record({
401
+ 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
402
+ 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
403
+ 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
404
+ 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
405
+ 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
406
+ 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
407
+ 'ideal_matched_participation_function' : IDL.Opt(
408
+ IdealMatchedParticipationFunction
409
+ ),
410
+ });
411
+ const NeuronsFundData = IDL.Record({
412
+ 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
413
+ 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
414
+ 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
415
+ });
375
416
  const CanisterStatusResultV2 = IDL.Record({
376
417
  'status' : IDL.Opt(IDL.Int32),
377
418
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
@@ -415,6 +456,7 @@ export const idlFactory = ({ IDL }) => {
415
456
  'proposal_timestamp_seconds' : IDL.Nat64,
416
457
  'reward_event_round' : IDL.Nat64,
417
458
  'failed_timestamp_seconds' : IDL.Nat64,
459
+ 'neurons_fund_data' : IDL.Opt(NeuronsFundData),
418
460
  'reject_cost_e8s' : IDL.Nat64,
419
461
  'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
420
462
  'latest_tally' : IDL.Opt(Tally),
@@ -628,6 +670,32 @@ export const idlFactory = ({ IDL }) => {
628
670
  'result' : IDL.Opt(Result_7),
629
671
  'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
630
672
  });
673
+ const Committed_1 = IDL.Record({
674
+ 'total_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
675
+ 'total_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
676
+ 'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
677
+ });
678
+ const Result_8 = IDL.Variant({
679
+ 'Committed' : Committed_1,
680
+ 'Aborted' : IDL.Record({}),
681
+ });
682
+ const SettleNeuronsFundParticipationRequest = IDL.Record({
683
+ 'result' : IDL.Opt(Result_8),
684
+ 'nns_proposal_id' : IDL.Opt(IDL.Nat64),
685
+ });
686
+ const NeuronsFundNeuron = IDL.Record({
687
+ 'hotkey_principal' : IDL.Opt(IDL.Text),
688
+ 'is_capped' : IDL.Opt(IDL.Bool),
689
+ 'nns_neuron_id' : IDL.Opt(IDL.Nat64),
690
+ 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
691
+ });
692
+ const Ok = IDL.Record({
693
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
694
+ });
695
+ const Result_9 = IDL.Variant({ 'Ok' : Ok, 'Err' : GovernanceError });
696
+ const SettleNeuronsFundParticipationResponse = IDL.Record({
697
+ 'result' : IDL.Opt(Result_9),
698
+ });
631
699
  const UpdateNodeProvider = IDL.Record({
632
700
  'reward_account' : IDL.Opt(AccountIdentifier),
633
701
  });
@@ -682,6 +750,11 @@ export const idlFactory = ({ IDL }) => {
682
750
  [Result],
683
751
  [],
684
752
  ),
753
+ 'settle_neurons_fund_participation' : IDL.Func(
754
+ [SettleNeuronsFundParticipationRequest],
755
+ [SettleNeuronsFundParticipationResponse],
756
+ [],
757
+ ),
685
758
  'simulate_manage_neuron' : IDL.Func(
686
759
  [ManageNeuron],
687
760
  [ManageNeuronResponse],
@@ -832,6 +905,7 @@ export const init = ({ IDL }) => {
832
905
  const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
833
906
  const SwapParameters = IDL.Record({
834
907
  'minimum_participants' : IDL.Opt(IDL.Nat64),
908
+ 'neurons_fund_participation' : IDL.Opt(IDL.Bool),
835
909
  'duration' : IDL.Opt(Duration),
836
910
  'neuron_basket_construction_parameters' : IDL.Opt(
837
911
  NeuronBasketConstructionParameters
@@ -839,8 +913,10 @@ export const init = ({ IDL }) => {
839
913
  'confirmation_text' : IDL.Opt(IDL.Text),
840
914
  'maximum_participant_icp' : IDL.Opt(Tokens),
841
915
  'minimum_icp' : IDL.Opt(Tokens),
916
+ 'minimum_direct_participation_icp' : IDL.Opt(Tokens),
842
917
  'minimum_participant_icp' : IDL.Opt(Tokens),
843
918
  'start_time' : IDL.Opt(GlobalTimeOfDay),
919
+ 'maximum_direct_participation_icp' : IDL.Opt(Tokens),
844
920
  'maximum_icp' : IDL.Opt(Tokens),
845
921
  'neurons_fund_investment_icp' : IDL.Opt(Tokens),
846
922
  'restricted_countries' : IDL.Opt(Countries),
@@ -909,7 +985,9 @@ export const init = ({ IDL }) => {
909
985
  'sns_token_e8s' : IDL.Nat64,
910
986
  'sale_delay_seconds' : IDL.Opt(IDL.Nat64),
911
987
  'max_participant_icp_e8s' : IDL.Nat64,
988
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
912
989
  'min_icp_e8s' : IDL.Nat64,
990
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
913
991
  });
914
992
  const OpenSnsTokenSwap = IDL.Record({
915
993
  'community_fund_investment_e8s' : IDL.Opt(IDL.Nat64),
@@ -1057,6 +1135,7 @@ export const init = ({ IDL }) => {
1057
1135
  'error_type' : IDL.Int32,
1058
1136
  });
1059
1137
  const CfNeuron = IDL.Record({
1138
+ 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
1060
1139
  'nns_neuron_id' : IDL.Nat64,
1061
1140
  'amount_icp_e8s' : IDL.Nat64,
1062
1141
  });
@@ -1065,6 +1144,41 @@ export const init = ({ IDL }) => {
1065
1144
  'cf_neurons' : IDL.Vec(CfNeuron),
1066
1145
  });
1067
1146
  const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
1147
+ const SwapParticipationLimits = IDL.Record({
1148
+ 'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1149
+ 'max_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
1150
+ 'min_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1151
+ 'max_direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1152
+ });
1153
+ const NeuronsFundNeuronPortion = IDL.Record({
1154
+ 'hotkey_principal' : IDL.Opt(IDL.Principal),
1155
+ 'is_capped' : IDL.Opt(IDL.Bool),
1156
+ 'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1157
+ 'nns_neuron_id' : IDL.Opt(NeuronId),
1158
+ 'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
1159
+ });
1160
+ const NeuronsFundSnapshot = IDL.Record({
1161
+ 'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuronPortion),
1162
+ });
1163
+ const IdealMatchedParticipationFunction = IDL.Record({
1164
+ 'serialized_representation' : IDL.Opt(IDL.Text),
1165
+ });
1166
+ const NeuronsFundParticipation = IDL.Record({
1167
+ 'total_maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
1168
+ 'intended_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1169
+ 'direct_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1170
+ 'swap_participation_limits' : IDL.Opt(SwapParticipationLimits),
1171
+ 'max_neurons_fund_swap_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1172
+ 'neurons_fund_reserves' : IDL.Opt(NeuronsFundSnapshot),
1173
+ 'ideal_matched_participation_function' : IDL.Opt(
1174
+ IdealMatchedParticipationFunction
1175
+ ),
1176
+ });
1177
+ const NeuronsFundData = IDL.Record({
1178
+ 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1179
+ 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
1180
+ 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
1181
+ });
1068
1182
  const CanisterStatusResultV2 = IDL.Record({
1069
1183
  'status' : IDL.Opt(IDL.Int32),
1070
1184
  'freezing_threshold' : IDL.Opt(IDL.Nat64),
@@ -1108,6 +1222,7 @@ export const init = ({ IDL }) => {
1108
1222
  'proposal_timestamp_seconds' : IDL.Nat64,
1109
1223
  'reward_event_round' : IDL.Nat64,
1110
1224
  'failed_timestamp_seconds' : IDL.Nat64,
1225
+ 'neurons_fund_data' : IDL.Opt(NeuronsFundData),
1111
1226
  'reject_cost_e8s' : IDL.Nat64,
1112
1227
  'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
1113
1228
  'latest_tally' : IDL.Opt(Tally),
@@ -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
  }
@@ -125,6 +126,11 @@ export interface Committed {
125
126
  total_neurons_fund_contribution_icp_e8s: [] | [bigint];
126
127
  sns_governance_canister_id: [] | [Principal];
127
128
  }
129
+ export interface Committed_1 {
130
+ total_direct_participation_icp_e8s: [] | [bigint];
131
+ total_neurons_fund_participation_icp_e8s: [] | [bigint];
132
+ sns_governance_canister_id: [] | [Principal];
133
+ }
128
134
  export interface Configure {
129
135
  operation: [] | [Operation];
130
136
  }
@@ -253,6 +259,9 @@ export interface GovernanceParameters {
253
259
  proposal_rejection_fee: [] | [Tokens];
254
260
  voting_reward_parameters: [] | [VotingRewardParameters];
255
261
  }
262
+ export interface IdealMatchedParticipationFunction {
263
+ serialized_representation: [] | [string];
264
+ }
256
265
  export interface Image {
257
266
  base64_encoding: [] | [string];
258
267
  }
@@ -430,10 +439,45 @@ export interface NeuronStakeTransfer {
430
439
  transfer_timestamp: bigint;
431
440
  block_height: bigint;
432
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
+ }
433
474
  export interface NodeProvider {
434
475
  id: [] | [Principal];
435
476
  reward_account: [] | [AccountIdentifier];
436
477
  }
478
+ export interface Ok {
479
+ neurons_fund_neuron_portions: Array<NeuronsFundNeuron>;
480
+ }
437
481
  export interface OpenSnsTokenSwap {
438
482
  community_fund_investment_e8s: [] | [bigint];
439
483
  target_swap_canister_id: [] | [Principal];
@@ -460,7 +504,9 @@ export interface Params {
460
504
  sns_token_e8s: bigint;
461
505
  sale_delay_seconds: [] | [bigint];
462
506
  max_participant_icp_e8s: bigint;
507
+ min_direct_participation_icp_e8s: [] | [bigint];
463
508
  min_icp_e8s: bigint;
509
+ max_direct_participation_icp_e8s: [] | [bigint];
464
510
  }
465
511
  export interface Percentage {
466
512
  basis_points: [] | [bigint];
@@ -480,6 +526,7 @@ export interface ProposalData {
480
526
  proposal_timestamp_seconds: bigint;
481
527
  reward_event_round: bigint;
482
528
  failed_timestamp_seconds: bigint;
529
+ neurons_fund_data: [] | [NeuronsFundData];
483
530
  reject_cost_e8s: bigint;
484
531
  derived_proposal_information: [] | [DerivedProposalInformation];
485
532
  latest_tally: [] | [Tally];
@@ -527,6 +574,8 @@ export type Result_4 = { Ok: RewardNodeProviders } | { Err: GovernanceError };
527
574
  export type Result_5 = { Ok: NeuronInfo } | { Err: GovernanceError };
528
575
  export type Result_6 = { Ok: NodeProvider } | { Err: GovernanceError };
529
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 };
530
579
  export interface RewardEvent {
531
580
  rounds_since_last_distribution: [] | [bigint];
532
581
  day_after_genesis: bigint;
@@ -571,6 +620,13 @@ export interface SettleCommunityFundParticipation {
571
620
  result: [] | [Result_7];
572
621
  open_sns_token_swap_proposal_id: [] | [bigint];
573
622
  }
623
+ export interface SettleNeuronsFundParticipationRequest {
624
+ result: [] | [Result_8];
625
+ nns_proposal_id: [] | [bigint];
626
+ }
627
+ export interface SettleNeuronsFundParticipationResponse {
628
+ result: [] | [Result_9];
629
+ }
574
630
  export interface Spawn {
575
631
  percentage_to_spawn: [] | [number];
576
632
  new_controller: [] | [Principal];
@@ -604,6 +660,7 @@ export interface SwapDistribution {
604
660
  }
605
661
  export interface SwapParameters {
606
662
  minimum_participants: [] | [bigint];
663
+ neurons_fund_participation: [] | [boolean];
607
664
  duration: [] | [Duration];
608
665
  neuron_basket_construction_parameters:
609
666
  | []
@@ -611,12 +668,20 @@ export interface SwapParameters {
611
668
  confirmation_text: [] | [string];
612
669
  maximum_participant_icp: [] | [Tokens];
613
670
  minimum_icp: [] | [Tokens];
671
+ minimum_direct_participation_icp: [] | [Tokens];
614
672
  minimum_participant_icp: [] | [Tokens];
615
673
  start_time: [] | [GlobalTimeOfDay];
674
+ maximum_direct_participation_icp: [] | [Tokens];
616
675
  maximum_icp: [] | [Tokens];
617
676
  neurons_fund_investment_icp: [] | [Tokens];
618
677
  restricted_countries: [] | [Countries];
619
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
+ }
620
685
  export interface Tally {
621
686
  no: bigint;
622
687
  yes: bigint;
@@ -679,6 +744,10 @@ export interface _SERVICE {
679
744
  [SettleCommunityFundParticipation],
680
745
  Result
681
746
  >;
747
+ settle_neurons_fund_participation: ActorMethod<
748
+ [SettleNeuronsFundParticipationRequest],
749
+ SettleNeuronsFundParticipationResponse
750
+ >;
682
751
  simulate_manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
683
752
  transfer_gtc_neuron: ActorMethod<[NeuronId, NeuronId], Result>;
684
753
  update_neuron: ActorMethod<[Neuron], [] | [GovernanceError]>;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 66dc5f7a0cccc572841c330656e1e358fb10484c 'rs/nns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit 1a01f85fc1994e69dd5ba72b4d87fe9f9c4093ee 'rs/nns/governance/canister/governance_test.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;
@@ -101,6 +105,11 @@ type Committed = record {
101
105
  total_neurons_fund_contribution_icp_e8s : opt nat64;
102
106
  sns_governance_canister_id : opt principal;
103
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
+ };
104
113
  type Configure = record { operation : opt Operation };
105
114
  type Countries = record { iso_codes : vec text };
106
115
  type CreateServiceNervousSystem = record {
@@ -209,6 +218,9 @@ type GovernanceParameters = record {
209
218
  proposal_rejection_fee : opt Tokens;
210
219
  voting_reward_parameters : opt VotingRewardParameters;
211
220
  };
221
+ type IdealMatchedParticipationFunction = record {
222
+ serialized_representation : opt text;
223
+ };
212
224
  type Image = record { base64_encoding : opt text };
213
225
  type IncreaseDissolveDelay = record {
214
226
  additional_dissolve_delay_seconds : nat32;
@@ -364,10 +376,41 @@ type NeuronStakeTransfer = record {
364
376
  transfer_timestamp : nat64;
365
377
  block_height : nat64;
366
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
+ };
367
409
  type NodeProvider = record {
368
410
  id : opt principal;
369
411
  reward_account : opt AccountIdentifier;
370
412
  };
413
+ type Ok = record { neurons_fund_neuron_portions : vec NeuronsFundNeuron };
371
414
  type OpenSnsTokenSwap = record {
372
415
  community_fund_investment_e8s : opt nat64;
373
416
  target_swap_canister_id : opt principal;
@@ -393,7 +436,9 @@ type Params = record {
393
436
  sns_token_e8s : nat64;
394
437
  sale_delay_seconds : opt nat64;
395
438
  max_participant_icp_e8s : nat64;
439
+ min_direct_participation_icp_e8s : opt nat64;
396
440
  min_icp_e8s : nat64;
441
+ max_direct_participation_icp_e8s : opt nat64;
397
442
  };
398
443
  type Percentage = record { basis_points : opt nat64 };
399
444
  type Progress = variant { LastNeuronId : NeuronId };
@@ -411,6 +456,7 @@ type ProposalData = record {
411
456
  proposal_timestamp_seconds : nat64;
412
457
  reward_event_round : nat64;
413
458
  failed_timestamp_seconds : nat64;
459
+ neurons_fund_data : opt NeuronsFundData;
414
460
  reject_cost_e8s : nat64;
415
461
  derived_proposal_information : opt DerivedProposalInformation;
416
462
  latest_tally : opt Tally;
@@ -451,6 +497,8 @@ type Result_4 = variant { Ok : RewardNodeProviders; Err : GovernanceError };
451
497
  type Result_5 = variant { Ok : NeuronInfo; Err : GovernanceError };
452
498
  type Result_6 = variant { Ok : NodeProvider; Err : GovernanceError };
453
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 };
454
502
  type RewardEvent = record {
455
503
  rounds_since_last_distribution : opt nat64;
456
504
  day_after_genesis : nat64;
@@ -488,6 +536,11 @@ type SettleCommunityFundParticipation = record {
488
536
  result : opt Result_7;
489
537
  open_sns_token_swap_proposal_id : opt nat64;
490
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 };
491
544
  type Spawn = record {
492
545
  percentage_to_spawn : opt nat32;
493
546
  new_controller : opt principal;
@@ -513,17 +566,26 @@ type SwapBackgroundInformation = record {
513
566
  type SwapDistribution = record { total : opt Tokens };
514
567
  type SwapParameters = record {
515
568
  minimum_participants : opt nat64;
569
+ neurons_fund_participation : opt bool;
516
570
  duration : opt Duration;
517
571
  neuron_basket_construction_parameters : opt NeuronBasketConstructionParameters;
518
572
  confirmation_text : opt text;
519
573
  maximum_participant_icp : opt Tokens;
520
574
  minimum_icp : opt Tokens;
575
+ minimum_direct_participation_icp : opt Tokens;
521
576
  minimum_participant_icp : opt Tokens;
522
577
  start_time : opt GlobalTimeOfDay;
578
+ maximum_direct_participation_icp : opt Tokens;
523
579
  maximum_icp : opt Tokens;
524
580
  neurons_fund_investment_icp : opt Tokens;
525
581
  restricted_countries : opt Countries;
526
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
+ };
527
589
  type Tally = record {
528
590
  no : nat64;
529
591
  yes : nat64;
@@ -575,6 +637,9 @@ service : (Governance) -> {
575
637
  settle_community_fund_participation : (SettleCommunityFundParticipation) -> (
576
638
  Result,
577
639
  );
640
+ settle_neurons_fund_participation : (
641
+ SettleNeuronsFundParticipationRequest,
642
+ ) -> (SettleNeuronsFundParticipationResponse);
578
643
  simulate_manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
579
644
  transfer_gtc_neuron : (NeuronId, NeuronId) -> (Result);
580
645
  update_neuron : (Neuron) -> (opt GovernanceError);