@dfinity/nns 3.0.0 → 3.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.
@@ -293,6 +293,14 @@ export const idlFactory = ({ IDL }) => {
293
293
  'caller' : IDL.Opt(IDL.Principal),
294
294
  'proposer_id' : IDL.Opt(NeuronId),
295
295
  });
296
+ const SeedAccount = IDL.Record({
297
+ 'error_count' : IDL.Nat64,
298
+ 'account_id' : IDL.Text,
299
+ 'neuron_type' : IDL.Int32,
300
+ 'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
301
+ 'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
302
+ });
303
+ const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
296
304
  const MostRecentMonthlyNodeProviderRewards = IDL.Record({
297
305
  'timestamp' : IDL.Nat64,
298
306
  'rewards' : IDL.Vec(RewardNodeProvider),
@@ -311,17 +319,27 @@ export const idlFactory = ({ IDL }) => {
311
319
  'not_dissolving_neurons_count_buckets' : IDL.Vec(
312
320
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
313
321
  ),
322
+ 'ect_neuron_count' : IDL.Nat64,
314
323
  'total_supply_icp' : IDL.Nat64,
315
324
  'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
316
325
  'dissolved_neurons_count' : IDL.Nat64,
317
326
  'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
327
+ 'total_staked_e8s_seed' : IDL.Nat64,
328
+ 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
318
329
  'total_staked_e8s' : IDL.Nat64,
319
330
  'not_dissolving_neurons_count' : IDL.Nat64,
320
331
  'total_locked_e8s' : IDL.Nat64,
321
332
  'neurons_fund_total_active_neurons' : IDL.Nat64,
322
333
  'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
334
+ 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
335
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
336
+ ),
337
+ 'total_staked_e8s_ect' : IDL.Nat64,
323
338
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
324
339
  'dissolved_neurons_e8s' : IDL.Nat64,
340
+ 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
341
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
342
+ ),
325
343
  'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
326
344
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
327
345
  IDL.Tuple(IDL.Nat64, IDL.Float64)
@@ -329,12 +347,20 @@ export const idlFactory = ({ IDL }) => {
329
347
  'dissolving_neurons_count_buckets' : IDL.Vec(
330
348
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
331
349
  ),
350
+ 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
351
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
352
+ ),
332
353
  'dissolving_neurons_count' : IDL.Nat64,
333
354
  'dissolving_neurons_e8s_buckets' : IDL.Vec(
334
355
  IDL.Tuple(IDL.Nat64, IDL.Float64)
335
356
  ),
357
+ 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
336
358
  'community_fund_total_staked_e8s' : IDL.Nat64,
359
+ 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
360
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
361
+ ),
337
362
  'timestamp_seconds' : IDL.Nat64,
363
+ 'seed_neuron_count' : IDL.Nat64,
338
364
  });
339
365
  const RewardEvent = IDL.Record({
340
366
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
@@ -354,6 +380,10 @@ export const idlFactory = ({ IDL }) => {
354
380
  'transfer_timestamp' : IDL.Nat64,
355
381
  'block_height' : IDL.Nat64,
356
382
  });
383
+ const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
384
+ const FollowersMap = IDL.Record({
385
+ 'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
386
+ });
357
387
  const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
358
388
  const Migration = IDL.Record({
359
389
  'status' : IDL.Opt(IDL.Int32),
@@ -407,6 +437,7 @@ export const idlFactory = ({ IDL }) => {
407
437
  'ideal_matched_participation_function' : IDL.Opt(
408
438
  IdealMatchedParticipationFunction
409
439
  ),
440
+ 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
410
441
  });
411
442
  const NeuronsFundData = IDL.Record({
412
443
  'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
@@ -499,6 +530,7 @@ export const idlFactory = ({ IDL }) => {
499
530
  'controller' : IDL.Opt(IDL.Principal),
500
531
  'recent_ballots' : IDL.Vec(BallotInfo),
501
532
  'kyc_verified' : IDL.Bool,
533
+ 'neuron_type' : IDL.Opt(IDL.Int32),
502
534
  'not_for_profit' : IDL.Bool,
503
535
  'maturity_e8s_equivalent' : IDL.Nat64,
504
536
  'cached_neuron_stake_e8s' : IDL.Nat64,
@@ -518,6 +550,7 @@ export const idlFactory = ({ IDL }) => {
518
550
  const Governance = IDL.Record({
519
551
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
520
552
  'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
553
+ 'seed_accounts' : IDL.Opt(SeedAccounts),
521
554
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
522
555
  MostRecentMonthlyNodeProviderRewards
523
556
  ),
@@ -534,6 +567,7 @@ export const idlFactory = ({ IDL }) => {
534
567
  'latest_reward_event' : IDL.Opt(RewardEvent),
535
568
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
536
569
  'short_voting_period_seconds' : IDL.Nat64,
570
+ 'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
537
571
  'migrations' : IDL.Opt(Migrations),
538
572
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
539
573
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
@@ -560,6 +594,7 @@ export const idlFactory = ({ IDL }) => {
560
594
  const NeuronInfo = IDL.Record({
561
595
  'dissolve_delay_seconds' : IDL.Nat64,
562
596
  'recent_ballots' : IDL.Vec(BallotInfo),
597
+ 'neuron_type' : IDL.Opt(IDL.Int32),
563
598
  'created_timestamp_seconds' : IDL.Nat64,
564
599
  'state' : IDL.Int32,
565
600
  'stake_e8s' : IDL.Nat64,
@@ -570,7 +605,22 @@ export const idlFactory = ({ IDL }) => {
570
605
  'age_seconds' : IDL.Nat64,
571
606
  });
572
607
  const Result_5 = IDL.Variant({ 'Ok' : NeuronInfo, 'Err' : GovernanceError });
573
- const Result_6 = IDL.Variant({
608
+ const GetNeuronsFundAuditInfoRequest = IDL.Record({
609
+ 'nns_proposal_id' : IDL.Opt(NeuronId),
610
+ });
611
+ const NeuronsFundAuditInfo = IDL.Record({
612
+ 'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
613
+ 'initial_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
614
+ 'neurons_fund_refunds' : IDL.Opt(NeuronsFundSnapshot),
615
+ });
616
+ const Ok = IDL.Record({
617
+ 'neurons_fund_audit_info' : IDL.Opt(NeuronsFundAuditInfo),
618
+ });
619
+ const Result_6 = IDL.Variant({ 'Ok' : Ok, 'Err' : GovernanceError });
620
+ const GetNeuronsFundAuditInfoResponse = IDL.Record({
621
+ 'result' : IDL.Opt(Result_6),
622
+ });
623
+ const Result_7 = IDL.Variant({
574
624
  'Ok' : NodeProvider,
575
625
  'Err' : GovernanceError,
576
626
  });
@@ -662,12 +712,12 @@ export const idlFactory = ({ IDL }) => {
662
712
  'total_neurons_fund_contribution_icp_e8s' : IDL.Opt(IDL.Nat64),
663
713
  'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
664
714
  });
665
- const Result_7 = IDL.Variant({
715
+ const Result_8 = IDL.Variant({
666
716
  'Committed' : Committed,
667
717
  'Aborted' : IDL.Record({}),
668
718
  });
669
719
  const SettleCommunityFundParticipation = IDL.Record({
670
- 'result' : IDL.Opt(Result_7),
720
+ 'result' : IDL.Opt(Result_8),
671
721
  'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64),
672
722
  });
673
723
  const Committed_1 = IDL.Record({
@@ -675,12 +725,12 @@ export const idlFactory = ({ IDL }) => {
675
725
  'total_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
676
726
  'sns_governance_canister_id' : IDL.Opt(IDL.Principal),
677
727
  });
678
- const Result_8 = IDL.Variant({
728
+ const Result_9 = IDL.Variant({
679
729
  'Committed' : Committed_1,
680
730
  'Aborted' : IDL.Record({}),
681
731
  });
682
732
  const SettleNeuronsFundParticipationRequest = IDL.Record({
683
- 'result' : IDL.Opt(Result_8),
733
+ 'result' : IDL.Opt(Result_9),
684
734
  'nns_proposal_id' : IDL.Opt(IDL.Nat64),
685
735
  });
686
736
  const NeuronsFundNeuron = IDL.Record({
@@ -689,12 +739,12 @@ export const idlFactory = ({ IDL }) => {
689
739
  'nns_neuron_id' : IDL.Opt(IDL.Nat64),
690
740
  'amount_icp_e8s' : IDL.Opt(IDL.Nat64),
691
741
  });
692
- const Ok = IDL.Record({
742
+ const Ok_1 = IDL.Record({
693
743
  'neurons_fund_neuron_portions' : IDL.Vec(NeuronsFundNeuron),
694
744
  });
695
- const Result_9 = IDL.Variant({ 'Ok' : Ok, 'Err' : GovernanceError });
745
+ const Result_10 = IDL.Variant({ 'Ok' : Ok_1, 'Err' : GovernanceError });
696
746
  const SettleNeuronsFundParticipationResponse = IDL.Record({
697
- 'result' : IDL.Opt(Result_9),
747
+ 'result' : IDL.Opt(Result_10),
698
748
  });
699
749
  const UpdateNodeProvider = IDL.Record({
700
750
  'reward_account' : IDL.Opt(AccountIdentifier),
@@ -733,7 +783,12 @@ export const idlFactory = ({ IDL }) => {
733
783
  [Result_5],
734
784
  [],
735
785
  ),
736
- 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_6], []),
786
+ 'get_neurons_fund_audit_info' : IDL.Func(
787
+ [GetNeuronsFundAuditInfoRequest],
788
+ [GetNeuronsFundAuditInfoResponse],
789
+ [],
790
+ ),
791
+ 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], []),
737
792
  'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], []),
738
793
  'get_proposal_info' : IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], []),
739
794
  'list_known_neurons' : IDL.Func([], [ListKnownNeuronsResponse], []),
@@ -1059,6 +1114,14 @@ export const init = ({ IDL }) => {
1059
1114
  'caller' : IDL.Opt(IDL.Principal),
1060
1115
  'proposer_id' : IDL.Opt(NeuronId),
1061
1116
  });
1117
+ const SeedAccount = IDL.Record({
1118
+ 'error_count' : IDL.Nat64,
1119
+ 'account_id' : IDL.Text,
1120
+ 'neuron_type' : IDL.Int32,
1121
+ 'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1122
+ 'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1123
+ });
1124
+ const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
1062
1125
  const MostRecentMonthlyNodeProviderRewards = IDL.Record({
1063
1126
  'timestamp' : IDL.Nat64,
1064
1127
  'rewards' : IDL.Vec(RewardNodeProvider),
@@ -1077,17 +1140,27 @@ export const init = ({ IDL }) => {
1077
1140
  'not_dissolving_neurons_count_buckets' : IDL.Vec(
1078
1141
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1079
1142
  ),
1143
+ 'ect_neuron_count' : IDL.Nat64,
1080
1144
  'total_supply_icp' : IDL.Nat64,
1081
1145
  'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
1082
1146
  'dissolved_neurons_count' : IDL.Nat64,
1083
1147
  'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
1148
+ 'total_staked_e8s_seed' : IDL.Nat64,
1149
+ 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1084
1150
  'total_staked_e8s' : IDL.Nat64,
1085
1151
  'not_dissolving_neurons_count' : IDL.Nat64,
1086
1152
  'total_locked_e8s' : IDL.Nat64,
1087
1153
  'neurons_fund_total_active_neurons' : IDL.Nat64,
1088
1154
  'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1155
+ 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1156
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1157
+ ),
1158
+ 'total_staked_e8s_ect' : IDL.Nat64,
1089
1159
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1090
1160
  'dissolved_neurons_e8s' : IDL.Nat64,
1161
+ 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1162
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1163
+ ),
1091
1164
  'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
1092
1165
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1093
1166
  IDL.Tuple(IDL.Nat64, IDL.Float64)
@@ -1095,12 +1168,20 @@ export const init = ({ IDL }) => {
1095
1168
  'dissolving_neurons_count_buckets' : IDL.Vec(
1096
1169
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1097
1170
  ),
1171
+ 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1172
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1173
+ ),
1098
1174
  'dissolving_neurons_count' : IDL.Nat64,
1099
1175
  'dissolving_neurons_e8s_buckets' : IDL.Vec(
1100
1176
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1101
1177
  ),
1178
+ 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
1102
1179
  'community_fund_total_staked_e8s' : IDL.Nat64,
1180
+ 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1181
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1182
+ ),
1103
1183
  'timestamp_seconds' : IDL.Nat64,
1184
+ 'seed_neuron_count' : IDL.Nat64,
1104
1185
  });
1105
1186
  const RewardEvent = IDL.Record({
1106
1187
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
@@ -1120,6 +1201,10 @@ export const init = ({ IDL }) => {
1120
1201
  'transfer_timestamp' : IDL.Nat64,
1121
1202
  'block_height' : IDL.Nat64,
1122
1203
  });
1204
+ const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
1205
+ const FollowersMap = IDL.Record({
1206
+ 'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
1207
+ });
1123
1208
  const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
1124
1209
  const Migration = IDL.Record({
1125
1210
  'status' : IDL.Opt(IDL.Int32),
@@ -1173,6 +1258,7 @@ export const init = ({ IDL }) => {
1173
1258
  'ideal_matched_participation_function' : IDL.Opt(
1174
1259
  IdealMatchedParticipationFunction
1175
1260
  ),
1261
+ 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1176
1262
  });
1177
1263
  const NeuronsFundData = IDL.Record({
1178
1264
  'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
@@ -1265,6 +1351,7 @@ export const init = ({ IDL }) => {
1265
1351
  'controller' : IDL.Opt(IDL.Principal),
1266
1352
  'recent_ballots' : IDL.Vec(BallotInfo),
1267
1353
  'kyc_verified' : IDL.Bool,
1354
+ 'neuron_type' : IDL.Opt(IDL.Int32),
1268
1355
  'not_for_profit' : IDL.Bool,
1269
1356
  'maturity_e8s_equivalent' : IDL.Nat64,
1270
1357
  'cached_neuron_stake_e8s' : IDL.Nat64,
@@ -1284,6 +1371,7 @@ export const init = ({ IDL }) => {
1284
1371
  const Governance = IDL.Record({
1285
1372
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1286
1373
  'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
1374
+ 'seed_accounts' : IDL.Opt(SeedAccounts),
1287
1375
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
1288
1376
  MostRecentMonthlyNodeProviderRewards
1289
1377
  ),
@@ -1300,6 +1388,7 @@ export const init = ({ IDL }) => {
1300
1388
  'latest_reward_event' : IDL.Opt(RewardEvent),
1301
1389
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
1302
1390
  'short_voting_period_seconds' : IDL.Nat64,
1391
+ 'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
1303
1392
  'migrations' : IDL.Opt(Migrations),
1304
1393
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1305
1394
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),
@@ -186,12 +186,25 @@ export interface Follow {
186
186
  export interface Followees {
187
187
  followees: Array<NeuronId>;
188
188
  }
189
+ export interface Followers {
190
+ followers: Array<NeuronId>;
191
+ }
192
+ export interface FollowersMap {
193
+ followers_map: Array<[bigint, Followers]>;
194
+ }
195
+ export interface GetNeuronsFundAuditInfoRequest {
196
+ nns_proposal_id: [] | [NeuronId];
197
+ }
198
+ export interface GetNeuronsFundAuditInfoResponse {
199
+ result: [] | [Result_6];
200
+ }
189
201
  export interface GlobalTimeOfDay {
190
202
  seconds_after_utc_midnight: [] | [bigint];
191
203
  }
192
204
  export interface Governance {
193
205
  default_followees: Array<[number, Followees]>;
194
206
  making_sns_proposal: [] | [MakingSnsProposal];
207
+ seed_accounts: [] | [SeedAccounts];
195
208
  most_recent_monthly_node_provider_rewards:
196
209
  | []
197
210
  | [MostRecentMonthlyNodeProviderRewards];
@@ -206,6 +219,7 @@ export interface Governance {
206
219
  latest_reward_event: [] | [RewardEvent];
207
220
  to_claim_transfers: Array<NeuronStakeTransfer>;
208
221
  short_voting_period_seconds: bigint;
222
+ topic_followee_index: Array<[number, FollowersMap]>;
209
223
  migrations: [] | [Migrations];
210
224
  proposals: Array<[bigint, ProposalData]>;
211
225
  in_flight_commands: Array<[bigint, NeuronInFlightCommand]>;
@@ -222,26 +236,36 @@ export interface GovernanceCachedMetrics {
222
236
  >;
223
237
  neurons_with_invalid_stake_count: bigint;
224
238
  not_dissolving_neurons_count_buckets: Array<[bigint, bigint]>;
239
+ ect_neuron_count: bigint;
225
240
  total_supply_icp: bigint;
226
241
  neurons_with_less_than_6_months_dissolve_delay_count: bigint;
227
242
  dissolved_neurons_count: bigint;
228
243
  community_fund_total_maturity_e8s_equivalent: bigint;
244
+ total_staked_e8s_seed: bigint;
245
+ total_staked_maturity_e8s_equivalent_ect: bigint;
229
246
  total_staked_e8s: bigint;
230
247
  not_dissolving_neurons_count: bigint;
231
248
  total_locked_e8s: bigint;
232
249
  neurons_fund_total_active_neurons: bigint;
233
250
  total_staked_maturity_e8s_equivalent: bigint;
251
+ not_dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
252
+ total_staked_e8s_ect: bigint;
234
253
  not_dissolving_neurons_staked_maturity_e8s_equivalent_sum: bigint;
235
254
  dissolved_neurons_e8s: bigint;
255
+ dissolving_neurons_e8s_buckets_seed: Array<[bigint, number]>;
236
256
  neurons_with_less_than_6_months_dissolve_delay_e8s: bigint;
237
257
  not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets: Array<
238
258
  [bigint, number]
239
259
  >;
240
260
  dissolving_neurons_count_buckets: Array<[bigint, bigint]>;
261
+ dissolving_neurons_e8s_buckets_ect: Array<[bigint, number]>;
241
262
  dissolving_neurons_count: bigint;
242
263
  dissolving_neurons_e8s_buckets: Array<[bigint, number]>;
264
+ total_staked_maturity_e8s_equivalent_seed: bigint;
243
265
  community_fund_total_staked_e8s: bigint;
266
+ not_dissolving_neurons_e8s_buckets_seed: Array<[bigint, number]>;
244
267
  timestamp_seconds: bigint;
268
+ seed_neuron_count: bigint;
245
269
  }
246
270
  export interface GovernanceError {
247
271
  error_message: string;
@@ -377,6 +401,7 @@ export interface Neuron {
377
401
  controller: [] | [Principal];
378
402
  recent_ballots: Array<BallotInfo>;
379
403
  kyc_verified: boolean;
404
+ neuron_type: [] | [number];
380
405
  not_for_profit: boolean;
381
406
  maturity_e8s_equivalent: bigint;
382
407
  cached_neuron_stake_e8s: bigint;
@@ -421,6 +446,7 @@ export interface NeuronInFlightCommand {
421
446
  export interface NeuronInfo {
422
447
  dissolve_delay_seconds: bigint;
423
448
  recent_ballots: Array<BallotInfo>;
449
+ neuron_type: [] | [number];
424
450
  created_timestamp_seconds: bigint;
425
451
  state: number;
426
452
  stake_e8s: bigint;
@@ -439,6 +465,11 @@ export interface NeuronStakeTransfer {
439
465
  transfer_timestamp: bigint;
440
466
  block_height: bigint;
441
467
  }
468
+ export interface NeuronsFundAuditInfo {
469
+ final_neurons_fund_participation: [] | [NeuronsFundParticipation];
470
+ initial_neurons_fund_participation: [] | [NeuronsFundParticipation];
471
+ neurons_fund_refunds: [] | [NeuronsFundSnapshot];
472
+ }
442
473
  export interface NeuronsFundData {
443
474
  final_neurons_fund_participation: [] | [NeuronsFundParticipation];
444
475
  initial_neurons_fund_participation: [] | [NeuronsFundParticipation];
@@ -467,6 +498,7 @@ export interface NeuronsFundParticipation {
467
498
  ideal_matched_participation_function:
468
499
  | []
469
500
  | [IdealMatchedParticipationFunction];
501
+ allocated_neurons_fund_participation_icp_e8s: [] | [bigint];
470
502
  }
471
503
  export interface NeuronsFundSnapshot {
472
504
  neurons_fund_neuron_portions: Array<NeuronsFundNeuronPortion>;
@@ -476,6 +508,9 @@ export interface NodeProvider {
476
508
  reward_account: [] | [AccountIdentifier];
477
509
  }
478
510
  export interface Ok {
511
+ neurons_fund_audit_info: [] | [NeuronsFundAuditInfo];
512
+ }
513
+ export interface Ok_1 {
479
514
  neurons_fund_neuron_portions: Array<NeuronsFundNeuron>;
480
515
  }
481
516
  export interface OpenSnsTokenSwap {
@@ -566,16 +601,17 @@ export interface RemoveHotKey {
566
601
  }
567
602
  export type Result = { Ok: null } | { Err: GovernanceError };
568
603
  export type Result_1 = { Error: GovernanceError } | { NeuronId: NeuronId };
604
+ export type Result_10 = { Ok: Ok_1 } | { Err: GovernanceError };
569
605
  export type Result_2 = { Ok: Neuron } | { Err: GovernanceError };
570
606
  export type Result_3 =
571
607
  | { Ok: GovernanceCachedMetrics }
572
608
  | { Err: GovernanceError };
573
609
  export type Result_4 = { Ok: RewardNodeProviders } | { Err: GovernanceError };
574
610
  export type Result_5 = { Ok: NeuronInfo } | { Err: GovernanceError };
575
- export type Result_6 = { Ok: NodeProvider } | { Err: GovernanceError };
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 };
611
+ export type Result_6 = { Ok: Ok } | { Err: GovernanceError };
612
+ export type Result_7 = { Ok: NodeProvider } | { Err: GovernanceError };
613
+ export type Result_8 = { Committed: Committed } | { Aborted: {} };
614
+ export type Result_9 = { Committed: Committed_1 } | { Aborted: {} };
579
615
  export interface RewardEvent {
580
616
  rounds_since_last_distribution: [] | [bigint];
581
617
  day_after_genesis: bigint;
@@ -603,6 +639,16 @@ export interface RewardToAccount {
603
639
  export interface RewardToNeuron {
604
640
  dissolve_delay_seconds: bigint;
605
641
  }
642
+ export interface SeedAccount {
643
+ error_count: bigint;
644
+ account_id: string;
645
+ neuron_type: number;
646
+ tag_end_timestamp_seconds: [] | [bigint];
647
+ tag_start_timestamp_seconds: [] | [bigint];
648
+ }
649
+ export interface SeedAccounts {
650
+ accounts: Array<SeedAccount>;
651
+ }
606
652
  export interface SetDefaultFollowees {
607
653
  default_followees: Array<[number, Followees]>;
608
654
  }
@@ -617,15 +663,15 @@ export interface SetSnsTokenSwapOpenTimeWindow {
617
663
  swap_canister_id: [] | [Principal];
618
664
  }
619
665
  export interface SettleCommunityFundParticipation {
620
- result: [] | [Result_7];
666
+ result: [] | [Result_8];
621
667
  open_sns_token_swap_proposal_id: [] | [bigint];
622
668
  }
623
669
  export interface SettleNeuronsFundParticipationRequest {
624
- result: [] | [Result_8];
670
+ result: [] | [Result_9];
625
671
  nns_proposal_id: [] | [bigint];
626
672
  }
627
673
  export interface SettleNeuronsFundParticipationResponse {
628
- result: [] | [Result_9];
674
+ result: [] | [Result_10];
629
675
  }
630
676
  export interface Spawn {
631
677
  percentage_to_spawn: [] | [number];
@@ -732,7 +778,11 @@ export interface _SERVICE {
732
778
  [NeuronIdOrSubaccount],
733
779
  Result_5
734
780
  >;
735
- get_node_provider_by_caller: ActorMethod<[null], Result_6>;
781
+ get_neurons_fund_audit_info: ActorMethod<
782
+ [GetNeuronsFundAuditInfoRequest],
783
+ GetNeuronsFundAuditInfoResponse
784
+ >;
785
+ get_node_provider_by_caller: ActorMethod<[null], Result_7>;
736
786
  get_pending_proposals: ActorMethod<[], Array<ProposalInfo>>;
737
787
  get_proposal_info: ActorMethod<[bigint], [] | [ProposalInfo]>;
738
788
  list_known_neurons: ActorMethod<[], ListKnownNeuronsResponse>;
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit 1a01f85fc1994e69dd5ba72b4d87fe9f9c4093ee 'rs/nns/governance/canister/governance_test.did' by import-candid
1
+ // Generated from IC repo commit 0ee9960d6 (2023-12-06) '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;
@@ -150,10 +150,15 @@ type Duration = record { seconds : opt nat64 };
150
150
  type ExecuteNnsFunction = record { nns_function : int32; payload : vec nat8 };
151
151
  type Follow = record { topic : int32; followees : vec NeuronId };
152
152
  type Followees = record { followees : vec NeuronId };
153
+ type Followers = record { followers : vec NeuronId };
154
+ type FollowersMap = record { followers_map : vec record { nat64; Followers } };
155
+ type GetNeuronsFundAuditInfoRequest = record { nns_proposal_id : opt NeuronId };
156
+ type GetNeuronsFundAuditInfoResponse = record { result : opt Result_6 };
153
157
  type GlobalTimeOfDay = record { seconds_after_utc_midnight : opt nat64 };
154
158
  type Governance = record {
155
159
  default_followees : vec record { int32; Followees };
156
160
  making_sns_proposal : opt MakingSnsProposal;
161
+ seed_accounts : opt SeedAccounts;
157
162
  most_recent_monthly_node_provider_rewards : opt MostRecentMonthlyNodeProviderRewards;
158
163
  maturity_modulation_last_updated_at_timestamp_seconds : opt nat64;
159
164
  wait_for_quiet_threshold_seconds : nat64;
@@ -166,6 +171,7 @@ type Governance = record {
166
171
  latest_reward_event : opt RewardEvent;
167
172
  to_claim_transfers : vec NeuronStakeTransfer;
168
173
  short_voting_period_seconds : nat64;
174
+ topic_followee_index : vec record { int32; FollowersMap };
169
175
  migrations : opt Migrations;
170
176
  proposals : vec record { nat64; ProposalData };
171
177
  in_flight_commands : vec record { nat64; NeuronInFlightCommand };
@@ -183,27 +189,37 @@ type GovernanceCachedMetrics = record {
183
189
  };
184
190
  neurons_with_invalid_stake_count : nat64;
185
191
  not_dissolving_neurons_count_buckets : vec record { nat64; nat64 };
192
+ ect_neuron_count : nat64;
186
193
  total_supply_icp : nat64;
187
194
  neurons_with_less_than_6_months_dissolve_delay_count : nat64;
188
195
  dissolved_neurons_count : nat64;
189
196
  community_fund_total_maturity_e8s_equivalent : nat64;
197
+ total_staked_e8s_seed : nat64;
198
+ total_staked_maturity_e8s_equivalent_ect : nat64;
190
199
  total_staked_e8s : nat64;
191
200
  not_dissolving_neurons_count : nat64;
192
201
  total_locked_e8s : nat64;
193
202
  neurons_fund_total_active_neurons : nat64;
194
203
  total_staked_maturity_e8s_equivalent : nat64;
204
+ not_dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
205
+ total_staked_e8s_ect : nat64;
195
206
  not_dissolving_neurons_staked_maturity_e8s_equivalent_sum : nat64;
196
207
  dissolved_neurons_e8s : nat64;
208
+ dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
197
209
  neurons_with_less_than_6_months_dissolve_delay_e8s : nat64;
198
210
  not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets : vec record {
199
211
  nat64;
200
212
  float64;
201
213
  };
202
214
  dissolving_neurons_count_buckets : vec record { nat64; nat64 };
215
+ dissolving_neurons_e8s_buckets_ect : vec record { nat64; float64 };
203
216
  dissolving_neurons_count : nat64;
204
217
  dissolving_neurons_e8s_buckets : vec record { nat64; float64 };
218
+ total_staked_maturity_e8s_equivalent_seed : nat64;
205
219
  community_fund_total_staked_e8s : nat64;
220
+ not_dissolving_neurons_e8s_buckets_seed : vec record { nat64; float64 };
206
221
  timestamp_seconds : nat64;
222
+ seed_neuron_count : nat64;
207
223
  };
208
224
  type GovernanceError = record { error_message : text; error_type : int32 };
209
225
  type GovernanceParameters = record {
@@ -315,6 +331,7 @@ type Neuron = record {
315
331
  controller : opt principal;
316
332
  recent_ballots : vec BallotInfo;
317
333
  kyc_verified : bool;
334
+ neuron_type : opt int32;
318
335
  not_for_profit : bool;
319
336
  maturity_e8s_equivalent : nat64;
320
337
  cached_neuron_stake_e8s : nat64;
@@ -358,6 +375,7 @@ type NeuronInFlightCommand = record {
358
375
  type NeuronInfo = record {
359
376
  dissolve_delay_seconds : nat64;
360
377
  recent_ballots : vec BallotInfo;
378
+ neuron_type : opt int32;
361
379
  created_timestamp_seconds : nat64;
362
380
  state : int32;
363
381
  stake_e8s : nat64;
@@ -376,6 +394,11 @@ type NeuronStakeTransfer = record {
376
394
  transfer_timestamp : nat64;
377
395
  block_height : nat64;
378
396
  };
397
+ type NeuronsFundAuditInfo = record {
398
+ final_neurons_fund_participation : opt NeuronsFundParticipation;
399
+ initial_neurons_fund_participation : opt NeuronsFundParticipation;
400
+ neurons_fund_refunds : opt NeuronsFundSnapshot;
401
+ };
379
402
  type NeuronsFundData = record {
380
403
  final_neurons_fund_participation : opt NeuronsFundParticipation;
381
404
  initial_neurons_fund_participation : opt NeuronsFundParticipation;
@@ -402,6 +425,7 @@ type NeuronsFundParticipation = record {
402
425
  max_neurons_fund_swap_participation_icp_e8s : opt nat64;
403
426
  neurons_fund_reserves : opt NeuronsFundSnapshot;
404
427
  ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
428
+ allocated_neurons_fund_participation_icp_e8s : opt nat64;
405
429
  };
406
430
  type NeuronsFundSnapshot = record {
407
431
  neurons_fund_neuron_portions : vec NeuronsFundNeuronPortion;
@@ -410,7 +434,8 @@ type NodeProvider = record {
410
434
  id : opt principal;
411
435
  reward_account : opt AccountIdentifier;
412
436
  };
413
- type Ok = record { neurons_fund_neuron_portions : vec NeuronsFundNeuron };
437
+ type Ok = record { neurons_fund_audit_info : opt NeuronsFundAuditInfo };
438
+ type Ok_1 = record { neurons_fund_neuron_portions : vec NeuronsFundNeuron };
414
439
  type OpenSnsTokenSwap = record {
415
440
  community_fund_investment_e8s : opt nat64;
416
441
  target_swap_canister_id : opt principal;
@@ -491,14 +516,15 @@ type RegisterVote = record { vote : int32; proposal : opt NeuronId };
491
516
  type RemoveHotKey = record { hot_key_to_remove : opt principal };
492
517
  type Result = variant { Ok; Err : GovernanceError };
493
518
  type Result_1 = variant { Error : GovernanceError; NeuronId : NeuronId };
519
+ type Result_10 = variant { Ok : Ok_1; Err : GovernanceError };
494
520
  type Result_2 = variant { Ok : Neuron; Err : GovernanceError };
495
521
  type Result_3 = variant { Ok : GovernanceCachedMetrics; Err : GovernanceError };
496
522
  type Result_4 = variant { Ok : RewardNodeProviders; Err : GovernanceError };
497
523
  type Result_5 = variant { Ok : NeuronInfo; Err : GovernanceError };
498
- type Result_6 = variant { Ok : NodeProvider; Err : GovernanceError };
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 };
524
+ type Result_6 = variant { Ok : Ok; Err : GovernanceError };
525
+ type Result_7 = variant { Ok : NodeProvider; Err : GovernanceError };
526
+ type Result_8 = variant { Committed : Committed; Aborted : record {} };
527
+ type Result_9 = variant { Committed : Committed_1; Aborted : record {} };
502
528
  type RewardEvent = record {
503
529
  rounds_since_last_distribution : opt nat64;
504
530
  day_after_genesis : nat64;
@@ -523,6 +549,14 @@ type RewardNodeProviders = record {
523
549
  };
524
550
  type RewardToAccount = record { to_account : opt AccountIdentifier };
525
551
  type RewardToNeuron = record { dissolve_delay_seconds : nat64 };
552
+ type SeedAccount = record {
553
+ error_count : nat64;
554
+ account_id : text;
555
+ neuron_type : int32;
556
+ tag_end_timestamp_seconds : opt nat64;
557
+ tag_start_timestamp_seconds : opt nat64;
558
+ };
559
+ type SeedAccounts = record { accounts : vec SeedAccount };
526
560
  type SetDefaultFollowees = record {
527
561
  default_followees : vec record { int32; Followees };
528
562
  };
@@ -533,14 +567,14 @@ type SetSnsTokenSwapOpenTimeWindow = record {
533
567
  swap_canister_id : opt principal;
534
568
  };
535
569
  type SettleCommunityFundParticipation = record {
536
- result : opt Result_7;
570
+ result : opt Result_8;
537
571
  open_sns_token_swap_proposal_id : opt nat64;
538
572
  };
539
573
  type SettleNeuronsFundParticipationRequest = record {
540
- result : opt Result_8;
574
+ result : opt Result_9;
541
575
  nns_proposal_id : opt nat64;
542
576
  };
543
- type SettleNeuronsFundParticipationResponse = record { result : opt Result_9 };
577
+ type SettleNeuronsFundParticipationResponse = record { result : opt Result_10 };
544
578
  type Spawn = record {
545
579
  percentage_to_spawn : opt nat32;
546
580
  new_controller : opt principal;
@@ -626,7 +660,10 @@ service : (Governance) -> {
626
660
  get_neuron_info_by_id_or_subaccount : (NeuronIdOrSubaccount) -> (
627
661
  Result_5,
628
662
  ) query;
629
- get_node_provider_by_caller : (null) -> (Result_6) query;
663
+ get_neurons_fund_audit_info : (GetNeuronsFundAuditInfoRequest) -> (
664
+ GetNeuronsFundAuditInfoResponse,
665
+ ) query;
666
+ get_node_provider_by_caller : (null) -> (Result_7) query;
630
667
  get_pending_proposals : () -> (vec ProposalInfo) query;
631
668
  get_proposal_info : (nat64) -> (opt ProposalInfo) query;
632
669
  list_known_neurons : () -> (ListKnownNeuronsResponse) query;