@dfinity/nns 6.0.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -476,17 +476,6 @@ export const idlFactory = ({ IDL }) => {
476
476
  'error_message' : IDL.Text,
477
477
  'error_type' : IDL.Int32,
478
478
  });
479
- const CfNeuron = IDL.Record({
480
- 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
481
- 'hotkeys' : IDL.Opt(Principals),
482
- 'nns_neuron_id' : IDL.Nat64,
483
- 'amount_icp_e8s' : IDL.Nat64,
484
- });
485
- const CfParticipant = IDL.Record({
486
- 'controller' : IDL.Opt(IDL.Principal),
487
- 'hotkey_principal' : IDL.Text,
488
- 'cf_neurons' : IDL.Vec(CfNeuron),
489
- });
490
479
  const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
491
480
  const SwapParticipationLimits = IDL.Record({
492
481
  'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -496,7 +485,6 @@ export const idlFactory = ({ IDL }) => {
496
485
  });
497
486
  const NeuronsFundNeuronPortion = IDL.Record({
498
487
  'controller' : IDL.Opt(IDL.Principal),
499
- 'hotkey_principal' : IDL.Opt(IDL.Principal),
500
488
  'hotkeys' : IDL.Vec(IDL.Principal),
501
489
  'is_capped' : IDL.Opt(IDL.Bool),
502
490
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -564,7 +552,6 @@ export const idlFactory = ({ IDL }) => {
564
552
  const ProposalData = IDL.Record({
565
553
  'id' : IDL.Opt(NeuronId),
566
554
  'failure_reason' : IDL.Opt(GovernanceError),
567
- 'cf_participants' : IDL.Vec(CfParticipant),
568
555
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
569
556
  'proposal_timestamp_seconds' : IDL.Nat64,
570
557
  'reward_event_round' : IDL.Nat64,
@@ -672,7 +659,7 @@ export const idlFactory = ({ IDL }) => {
672
659
  'Err' : GovernanceError,
673
660
  });
674
661
  const Result_4 = IDL.Variant({
675
- 'Ok' : RewardNodeProviders,
662
+ 'Ok' : MonthlyNodeProviderRewards,
676
663
  'Err' : GovernanceError,
677
664
  });
678
665
  const NeuronInfo = IDL.Record({
@@ -782,9 +769,6 @@ export const idlFactory = ({ IDL }) => {
782
769
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
783
770
  'ExecuteNnsFunction' : ExecuteNnsFunction,
784
771
  'RewardNodeProvider' : RewardNodeProvider,
785
- 'OpenSnsTokenSwap' : OpenSnsTokenSwap,
786
- 'SetSnsTokenSwapOpenTimeWindow' : SetSnsTokenSwapOpenTimeWindow,
787
- 'SetDefaultFollowees' : SetDefaultFollowees,
788
772
  'RewardNodeProviders' : RewardNodeProviders,
789
773
  'ManageNetworkEconomics' : NetworkEconomics,
790
774
  'ApproveGenesisKyc' : Principals,
@@ -885,7 +869,6 @@ export const idlFactory = ({ IDL }) => {
885
869
  });
886
870
  const NeuronsFundNeuron = IDL.Record({
887
871
  'controller' : IDL.Opt(IDL.Principal),
888
- 'hotkey_principal' : IDL.Opt(IDL.Text),
889
872
  'hotkeys' : IDL.Opt(Principals),
890
873
  'is_capped' : IDL.Opt(IDL.Bool),
891
874
  'nns_neuron_id' : IDL.Opt(IDL.Nat64),
@@ -1473,17 +1456,6 @@ export const init = ({ IDL }) => {
1473
1456
  'error_message' : IDL.Text,
1474
1457
  'error_type' : IDL.Int32,
1475
1458
  });
1476
- const CfNeuron = IDL.Record({
1477
- 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
1478
- 'hotkeys' : IDL.Opt(Principals),
1479
- 'nns_neuron_id' : IDL.Nat64,
1480
- 'amount_icp_e8s' : IDL.Nat64,
1481
- });
1482
- const CfParticipant = IDL.Record({
1483
- 'controller' : IDL.Opt(IDL.Principal),
1484
- 'hotkey_principal' : IDL.Text,
1485
- 'cf_neurons' : IDL.Vec(CfNeuron),
1486
- });
1487
1459
  const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
1488
1460
  const SwapParticipationLimits = IDL.Record({
1489
1461
  'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -1493,7 +1465,6 @@ export const init = ({ IDL }) => {
1493
1465
  });
1494
1466
  const NeuronsFundNeuronPortion = IDL.Record({
1495
1467
  'controller' : IDL.Opt(IDL.Principal),
1496
- 'hotkey_principal' : IDL.Opt(IDL.Principal),
1497
1468
  'hotkeys' : IDL.Vec(IDL.Principal),
1498
1469
  'is_capped' : IDL.Opt(IDL.Bool),
1499
1470
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -1561,7 +1532,6 @@ export const init = ({ IDL }) => {
1561
1532
  const ProposalData = IDL.Record({
1562
1533
  'id' : IDL.Opt(NeuronId),
1563
1534
  'failure_reason' : IDL.Opt(GovernanceError),
1564
- 'cf_participants' : IDL.Vec(CfParticipant),
1565
1535
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1566
1536
  'proposal_timestamp_seconds' : IDL.Nat64,
1567
1537
  'reward_event_round' : IDL.Nat64,
@@ -476,17 +476,6 @@ export const idlFactory = ({ IDL }) => {
476
476
  'error_message' : IDL.Text,
477
477
  'error_type' : IDL.Int32,
478
478
  });
479
- const CfNeuron = IDL.Record({
480
- 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
481
- 'hotkeys' : IDL.Opt(Principals),
482
- 'nns_neuron_id' : IDL.Nat64,
483
- 'amount_icp_e8s' : IDL.Nat64,
484
- });
485
- const CfParticipant = IDL.Record({
486
- 'controller' : IDL.Opt(IDL.Principal),
487
- 'hotkey_principal' : IDL.Text,
488
- 'cf_neurons' : IDL.Vec(CfNeuron),
489
- });
490
479
  const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
491
480
  const SwapParticipationLimits = IDL.Record({
492
481
  'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -496,7 +485,6 @@ export const idlFactory = ({ IDL }) => {
496
485
  });
497
486
  const NeuronsFundNeuronPortion = IDL.Record({
498
487
  'controller' : IDL.Opt(IDL.Principal),
499
- 'hotkey_principal' : IDL.Opt(IDL.Principal),
500
488
  'hotkeys' : IDL.Vec(IDL.Principal),
501
489
  'is_capped' : IDL.Opt(IDL.Bool),
502
490
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -564,7 +552,6 @@ export const idlFactory = ({ IDL }) => {
564
552
  const ProposalData = IDL.Record({
565
553
  'id' : IDL.Opt(NeuronId),
566
554
  'failure_reason' : IDL.Opt(GovernanceError),
567
- 'cf_participants' : IDL.Vec(CfParticipant),
568
555
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
569
556
  'proposal_timestamp_seconds' : IDL.Nat64,
570
557
  'reward_event_round' : IDL.Nat64,
@@ -672,7 +659,7 @@ export const idlFactory = ({ IDL }) => {
672
659
  'Err' : GovernanceError,
673
660
  });
674
661
  const Result_4 = IDL.Variant({
675
- 'Ok' : RewardNodeProviders,
662
+ 'Ok' : MonthlyNodeProviderRewards,
676
663
  'Err' : GovernanceError,
677
664
  });
678
665
  const NeuronInfo = IDL.Record({
@@ -782,9 +769,6 @@ export const idlFactory = ({ IDL }) => {
782
769
  'CreateServiceNervousSystem' : CreateServiceNervousSystem,
783
770
  'ExecuteNnsFunction' : ExecuteNnsFunction,
784
771
  'RewardNodeProvider' : RewardNodeProvider,
785
- 'OpenSnsTokenSwap' : OpenSnsTokenSwap,
786
- 'SetSnsTokenSwapOpenTimeWindow' : SetSnsTokenSwapOpenTimeWindow,
787
- 'SetDefaultFollowees' : SetDefaultFollowees,
788
772
  'RewardNodeProviders' : RewardNodeProviders,
789
773
  'ManageNetworkEconomics' : NetworkEconomics,
790
774
  'ApproveGenesisKyc' : Principals,
@@ -885,7 +869,6 @@ export const idlFactory = ({ IDL }) => {
885
869
  });
886
870
  const NeuronsFundNeuron = IDL.Record({
887
871
  'controller' : IDL.Opt(IDL.Principal),
888
- 'hotkey_principal' : IDL.Opt(IDL.Text),
889
872
  'hotkeys' : IDL.Opt(Principals),
890
873
  'is_capped' : IDL.Opt(IDL.Bool),
891
874
  'nns_neuron_id' : IDL.Opt(IDL.Nat64),
@@ -1458,17 +1441,6 @@ export const init = ({ IDL }) => {
1458
1441
  'error_message' : IDL.Text,
1459
1442
  'error_type' : IDL.Int32,
1460
1443
  });
1461
- const CfNeuron = IDL.Record({
1462
- 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool),
1463
- 'hotkeys' : IDL.Opt(Principals),
1464
- 'nns_neuron_id' : IDL.Nat64,
1465
- 'amount_icp_e8s' : IDL.Nat64,
1466
- });
1467
- const CfParticipant = IDL.Record({
1468
- 'controller' : IDL.Opt(IDL.Principal),
1469
- 'hotkey_principal' : IDL.Text,
1470
- 'cf_neurons' : IDL.Vec(CfNeuron),
1471
- });
1472
1444
  const Ballot = IDL.Record({ 'vote' : IDL.Int32, 'voting_power' : IDL.Nat64 });
1473
1445
  const SwapParticipationLimits = IDL.Record({
1474
1446
  'min_participant_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -1478,7 +1450,6 @@ export const init = ({ IDL }) => {
1478
1450
  });
1479
1451
  const NeuronsFundNeuronPortion = IDL.Record({
1480
1452
  'controller' : IDL.Opt(IDL.Principal),
1481
- 'hotkey_principal' : IDL.Opt(IDL.Principal),
1482
1453
  'hotkeys' : IDL.Vec(IDL.Principal),
1483
1454
  'is_capped' : IDL.Opt(IDL.Bool),
1484
1455
  'maturity_equivalent_icp_e8s' : IDL.Opt(IDL.Nat64),
@@ -1546,7 +1517,6 @@ export const init = ({ IDL }) => {
1546
1517
  const ProposalData = IDL.Record({
1547
1518
  'id' : IDL.Opt(NeuronId),
1548
1519
  'failure_reason' : IDL.Opt(GovernanceError),
1549
- 'cf_participants' : IDL.Vec(CfParticipant),
1550
1520
  'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
1551
1521
  'proposal_timestamp_seconds' : IDL.Nat64,
1552
1522
  'reward_event_round' : IDL.Nat64,
@@ -70,17 +70,6 @@ export interface CanisterSummary {
70
70
  status: [] | [CanisterStatusResultV2];
71
71
  canister_id: [] | [Principal];
72
72
  }
73
- export interface CfNeuron {
74
- has_created_neuron_recipes: [] | [boolean];
75
- hotkeys: [] | [Principals];
76
- nns_neuron_id: bigint;
77
- amount_icp_e8s: bigint;
78
- }
79
- export interface CfParticipant {
80
- controller: [] | [Principal];
81
- hotkey_principal: string;
82
- cf_neurons: Array<CfNeuron>;
83
- }
84
73
  export type Change = { ToRemove: NodeProvider } | { ToAdd: NodeProvider };
85
74
  export interface ChangeAutoStakeMaturity {
86
75
  requested_setting_for_auto_stake_maturity: boolean;
@@ -586,7 +575,6 @@ export interface NeuronsFundMatchedFundingCurveCoefficients {
586
575
  }
587
576
  export interface NeuronsFundNeuron {
588
577
  controller: [] | [Principal];
589
- hotkey_principal: [] | [string];
590
578
  hotkeys: [] | [Principals];
591
579
  is_capped: [] | [boolean];
592
580
  nns_neuron_id: [] | [bigint];
@@ -594,7 +582,6 @@ export interface NeuronsFundNeuron {
594
582
  }
595
583
  export interface NeuronsFundNeuronPortion {
596
584
  controller: [] | [Principal];
597
- hotkey_principal: [] | [Principal];
598
585
  hotkeys: Array<Principal>;
599
586
  is_capped: [] | [boolean];
600
587
  maturity_equivalent_icp_e8s: [] | [bigint];
@@ -679,9 +666,6 @@ export type ProposalActionRequest =
679
666
  | { CreateServiceNervousSystem: CreateServiceNervousSystem }
680
667
  | { ExecuteNnsFunction: ExecuteNnsFunction }
681
668
  | { RewardNodeProvider: RewardNodeProvider }
682
- | { OpenSnsTokenSwap: OpenSnsTokenSwap }
683
- | { SetSnsTokenSwapOpenTimeWindow: SetSnsTokenSwapOpenTimeWindow }
684
- | { SetDefaultFollowees: SetDefaultFollowees }
685
669
  | { RewardNodeProviders: RewardNodeProviders }
686
670
  | { ManageNetworkEconomics: NetworkEconomics }
687
671
  | { ApproveGenesisKyc: Principals }
@@ -690,7 +674,6 @@ export type ProposalActionRequest =
690
674
  export interface ProposalData {
691
675
  id: [] | [NeuronId];
692
676
  failure_reason: [] | [GovernanceError];
693
- cf_participants: Array<CfParticipant>;
694
677
  ballots: Array<[bigint, Ballot]>;
695
678
  proposal_timestamp_seconds: bigint;
696
679
  reward_event_round: bigint;
@@ -750,7 +733,9 @@ export type Result_2 = { Ok: Neuron } | { Err: GovernanceError };
750
733
  export type Result_3 =
751
734
  | { Ok: GovernanceCachedMetrics }
752
735
  | { Err: GovernanceError };
753
- export type Result_4 = { Ok: RewardNodeProviders } | { Err: GovernanceError };
736
+ export type Result_4 =
737
+ | { Ok: MonthlyNodeProviderRewards }
738
+ | { Err: GovernanceError };
754
739
  export type Result_5 = { Ok: NeuronInfo } | { Err: GovernanceError };
755
740
  export type Result_6 = { Ok: Ok } | { Err: GovernanceError };
756
741
  export type Result_7 = { Ok: NodeProvider } | { Err: GovernanceError };