@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),
@@ -737,7 +787,12 @@ export const idlFactory = ({ IDL }) => {
737
787
  [Result_5],
738
788
  ['query'],
739
789
  ),
740
- 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_6], ['query']),
790
+ 'get_neurons_fund_audit_info' : IDL.Func(
791
+ [GetNeuronsFundAuditInfoRequest],
792
+ [GetNeuronsFundAuditInfoResponse],
793
+ ['query'],
794
+ ),
795
+ 'get_node_provider_by_caller' : IDL.Func([IDL.Null], [Result_7], ['query']),
741
796
  'get_pending_proposals' : IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
742
797
  'get_proposal_info' : IDL.Func(
743
798
  [IDL.Nat64],
@@ -1071,6 +1126,14 @@ export const init = ({ IDL }) => {
1071
1126
  'caller' : IDL.Opt(IDL.Principal),
1072
1127
  'proposer_id' : IDL.Opt(NeuronId),
1073
1128
  });
1129
+ const SeedAccount = IDL.Record({
1130
+ 'error_count' : IDL.Nat64,
1131
+ 'account_id' : IDL.Text,
1132
+ 'neuron_type' : IDL.Int32,
1133
+ 'tag_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1134
+ 'tag_start_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1135
+ });
1136
+ const SeedAccounts = IDL.Record({ 'accounts' : IDL.Vec(SeedAccount) });
1074
1137
  const MostRecentMonthlyNodeProviderRewards = IDL.Record({
1075
1138
  'timestamp' : IDL.Nat64,
1076
1139
  'rewards' : IDL.Vec(RewardNodeProvider),
@@ -1089,17 +1152,27 @@ export const init = ({ IDL }) => {
1089
1152
  'not_dissolving_neurons_count_buckets' : IDL.Vec(
1090
1153
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1091
1154
  ),
1155
+ 'ect_neuron_count' : IDL.Nat64,
1092
1156
  'total_supply_icp' : IDL.Nat64,
1093
1157
  'neurons_with_less_than_6_months_dissolve_delay_count' : IDL.Nat64,
1094
1158
  'dissolved_neurons_count' : IDL.Nat64,
1095
1159
  'community_fund_total_maturity_e8s_equivalent' : IDL.Nat64,
1160
+ 'total_staked_e8s_seed' : IDL.Nat64,
1161
+ 'total_staked_maturity_e8s_equivalent_ect' : IDL.Nat64,
1096
1162
  'total_staked_e8s' : IDL.Nat64,
1097
1163
  'not_dissolving_neurons_count' : IDL.Nat64,
1098
1164
  'total_locked_e8s' : IDL.Nat64,
1099
1165
  'neurons_fund_total_active_neurons' : IDL.Nat64,
1100
1166
  'total_staked_maturity_e8s_equivalent' : IDL.Nat64,
1167
+ 'not_dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1168
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1169
+ ),
1170
+ 'total_staked_e8s_ect' : IDL.Nat64,
1101
1171
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_sum' : IDL.Nat64,
1102
1172
  'dissolved_neurons_e8s' : IDL.Nat64,
1173
+ 'dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1174
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1175
+ ),
1103
1176
  'neurons_with_less_than_6_months_dissolve_delay_e8s' : IDL.Nat64,
1104
1177
  'not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets' : IDL.Vec(
1105
1178
  IDL.Tuple(IDL.Nat64, IDL.Float64)
@@ -1107,12 +1180,20 @@ export const init = ({ IDL }) => {
1107
1180
  'dissolving_neurons_count_buckets' : IDL.Vec(
1108
1181
  IDL.Tuple(IDL.Nat64, IDL.Nat64)
1109
1182
  ),
1183
+ 'dissolving_neurons_e8s_buckets_ect' : IDL.Vec(
1184
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1185
+ ),
1110
1186
  'dissolving_neurons_count' : IDL.Nat64,
1111
1187
  'dissolving_neurons_e8s_buckets' : IDL.Vec(
1112
1188
  IDL.Tuple(IDL.Nat64, IDL.Float64)
1113
1189
  ),
1190
+ 'total_staked_maturity_e8s_equivalent_seed' : IDL.Nat64,
1114
1191
  'community_fund_total_staked_e8s' : IDL.Nat64,
1192
+ 'not_dissolving_neurons_e8s_buckets_seed' : IDL.Vec(
1193
+ IDL.Tuple(IDL.Nat64, IDL.Float64)
1194
+ ),
1115
1195
  'timestamp_seconds' : IDL.Nat64,
1196
+ 'seed_neuron_count' : IDL.Nat64,
1116
1197
  });
1117
1198
  const RewardEvent = IDL.Record({
1118
1199
  'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
@@ -1132,6 +1213,10 @@ export const init = ({ IDL }) => {
1132
1213
  'transfer_timestamp' : IDL.Nat64,
1133
1214
  'block_height' : IDL.Nat64,
1134
1215
  });
1216
+ const Followers = IDL.Record({ 'followers' : IDL.Vec(NeuronId) });
1217
+ const FollowersMap = IDL.Record({
1218
+ 'followers_map' : IDL.Vec(IDL.Tuple(IDL.Nat64, Followers)),
1219
+ });
1135
1220
  const Progress = IDL.Variant({ 'LastNeuronId' : NeuronId });
1136
1221
  const Migration = IDL.Record({
1137
1222
  'status' : IDL.Opt(IDL.Int32),
@@ -1185,6 +1270,7 @@ export const init = ({ IDL }) => {
1185
1270
  'ideal_matched_participation_function' : IDL.Opt(
1186
1271
  IdealMatchedParticipationFunction
1187
1272
  ),
1273
+ 'allocated_neurons_fund_participation_icp_e8s' : IDL.Opt(IDL.Nat64),
1188
1274
  });
1189
1275
  const NeuronsFundData = IDL.Record({
1190
1276
  'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
@@ -1277,6 +1363,7 @@ export const init = ({ IDL }) => {
1277
1363
  'controller' : IDL.Opt(IDL.Principal),
1278
1364
  'recent_ballots' : IDL.Vec(BallotInfo),
1279
1365
  'kyc_verified' : IDL.Bool,
1366
+ 'neuron_type' : IDL.Opt(IDL.Int32),
1280
1367
  'not_for_profit' : IDL.Bool,
1281
1368
  'maturity_e8s_equivalent' : IDL.Nat64,
1282
1369
  'cached_neuron_stake_e8s' : IDL.Nat64,
@@ -1296,6 +1383,7 @@ export const init = ({ IDL }) => {
1296
1383
  const Governance = IDL.Record({
1297
1384
  'default_followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
1298
1385
  'making_sns_proposal' : IDL.Opt(MakingSnsProposal),
1386
+ 'seed_accounts' : IDL.Opt(SeedAccounts),
1299
1387
  'most_recent_monthly_node_provider_rewards' : IDL.Opt(
1300
1388
  MostRecentMonthlyNodeProviderRewards
1301
1389
  ),
@@ -1312,6 +1400,7 @@ export const init = ({ IDL }) => {
1312
1400
  'latest_reward_event' : IDL.Opt(RewardEvent),
1313
1401
  'to_claim_transfers' : IDL.Vec(NeuronStakeTransfer),
1314
1402
  'short_voting_period_seconds' : IDL.Nat64,
1403
+ 'topic_followee_index' : IDL.Vec(IDL.Tuple(IDL.Int32, FollowersMap)),
1315
1404
  'migrations' : IDL.Opt(Migrations),
1316
1405
  'proposals' : IDL.Vec(IDL.Tuple(IDL.Nat64, ProposalData)),
1317
1406
  'in_flight_commands' : IDL.Vec(IDL.Tuple(IDL.Nat64, NeuronInFlightCommand)),