@dfinity/nns 7.0.1 → 7.0.2-next-2024-11-14
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.
- package/LICENSE +1 -1
- package/README.md +53 -44
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +20 -12
- package/dist/candid/governance.d.ts +15 -8
- package/dist/candid/governance.did +17 -9
- package/dist/candid/governance.idl.js +20 -12
- package/dist/candid/governance_test.certified.idl.js +20 -12
- package/dist/candid/governance_test.d.ts +15 -8
- package/dist/candid/governance_test.did +17 -9
- package/dist/candid/governance_test.idl.js +20 -12
- package/dist/candid/old_list_neurons_service.certified.idl.js +59 -56
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +4 -4
- package/dist/esm/chunk-226TICS2.js +19 -0
- package/dist/esm/chunk-226TICS2.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +4 -4
- package/dist/types/governance.canister.d.ts +0 -16
- package/dist/types/types/governance_converters.d.ts +1 -0
- package/dist/types/utils/neurons.utils.d.ts +11 -0
- package/package.json +7 -7
- package/dist/esm/chunk-QAGO7B5R.js +0 -19
- package/dist/esm/chunk-QAGO7B5R.js.map +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/nns/governance/canister/governance.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
};
|
|
@@ -45,7 +45,7 @@ type Ballot = record {
|
|
|
45
45
|
|
|
46
46
|
type BallotInfo = record {
|
|
47
47
|
vote : int32;
|
|
48
|
-
proposal_id : opt
|
|
48
|
+
proposal_id : opt ProposalId;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
type By = variant {
|
|
@@ -254,7 +254,7 @@ type FollowersMap = record {
|
|
|
254
254
|
};
|
|
255
255
|
|
|
256
256
|
type GetNeuronsFundAuditInfoRequest = record {
|
|
257
|
-
nns_proposal_id : opt
|
|
257
|
+
nns_proposal_id : opt ProposalId;
|
|
258
258
|
};
|
|
259
259
|
|
|
260
260
|
type GetNeuronsFundAuditInfoResponse = record {
|
|
@@ -438,7 +438,7 @@ type ListNodeProvidersResponse = record {
|
|
|
438
438
|
type ListProposalInfo = record {
|
|
439
439
|
include_reward_status : vec int32;
|
|
440
440
|
omit_large_fields : opt bool;
|
|
441
|
-
before_proposal : opt
|
|
441
|
+
before_proposal : opt ProposalId;
|
|
442
442
|
limit : nat32;
|
|
443
443
|
exclude_topic : vec int32;
|
|
444
444
|
include_all_manage_neuron_proposals : opt bool;
|
|
@@ -458,7 +458,7 @@ type MakeProposalRequest = record {
|
|
|
458
458
|
|
|
459
459
|
type MakeProposalResponse = record {
|
|
460
460
|
message : opt text;
|
|
461
|
-
proposal_id : opt
|
|
461
|
+
proposal_id : opt ProposalId;
|
|
462
462
|
};
|
|
463
463
|
|
|
464
464
|
type MakingSnsProposal = record {
|
|
@@ -578,6 +578,7 @@ type Neuron = record {
|
|
|
578
578
|
transfer : opt NeuronStakeTransfer;
|
|
579
579
|
known_neuron_data : opt KnownNeuronData;
|
|
580
580
|
spawn_at_timestamp_seconds : opt nat64;
|
|
581
|
+
voting_power_refreshed_timestamp_seconds : opt nat64;
|
|
581
582
|
};
|
|
582
583
|
|
|
583
584
|
type NeuronBasketConstructionParameters = record {
|
|
@@ -602,6 +603,10 @@ type NeuronId = record {
|
|
|
602
603
|
id : nat64;
|
|
603
604
|
};
|
|
604
605
|
|
|
606
|
+
type ProposalId = record {
|
|
607
|
+
id : nat64;
|
|
608
|
+
};
|
|
609
|
+
|
|
605
610
|
type NeuronIdOrSubaccount = variant {
|
|
606
611
|
Subaccount : blob;
|
|
607
612
|
NeuronId : NeuronId;
|
|
@@ -625,6 +630,7 @@ type NeuronInfo = record {
|
|
|
625
630
|
known_neuron_data : opt KnownNeuronData;
|
|
626
631
|
voting_power : nat64;
|
|
627
632
|
age_seconds : nat64;
|
|
633
|
+
voting_power_refreshed_timestamp_seconds : opt nat64;
|
|
628
634
|
};
|
|
629
635
|
|
|
630
636
|
type NeuronStakeTransfer = record {
|
|
@@ -789,7 +795,7 @@ type ProposalActionRequest = variant {
|
|
|
789
795
|
};
|
|
790
796
|
|
|
791
797
|
type ProposalData = record {
|
|
792
|
-
id : opt
|
|
798
|
+
id : opt ProposalId;
|
|
793
799
|
failure_reason : opt GovernanceError;
|
|
794
800
|
ballots : vec record { nat64; Ballot };
|
|
795
801
|
proposal_timestamp_seconds : nat64;
|
|
@@ -806,10 +812,11 @@ type ProposalData = record {
|
|
|
806
812
|
wait_for_quiet_state : opt WaitForQuietState;
|
|
807
813
|
executed_timestamp_seconds : nat64;
|
|
808
814
|
original_total_community_fund_maturity_e8s_equivalent : opt nat64;
|
|
815
|
+
total_potential_voting_power : opt nat64;
|
|
809
816
|
};
|
|
810
817
|
|
|
811
818
|
type ProposalInfo = record {
|
|
812
|
-
id : opt
|
|
819
|
+
id : opt ProposalId;
|
|
813
820
|
status : int32;
|
|
814
821
|
topic : int32;
|
|
815
822
|
failure_reason : opt GovernanceError;
|
|
@@ -826,11 +833,12 @@ type ProposalInfo = record {
|
|
|
826
833
|
proposal : opt Proposal;
|
|
827
834
|
proposer : opt NeuronId;
|
|
828
835
|
executed_timestamp_seconds : nat64;
|
|
836
|
+
total_potential_voting_power : opt nat64;
|
|
829
837
|
};
|
|
830
838
|
|
|
831
839
|
type RegisterVote = record {
|
|
832
840
|
vote : int32;
|
|
833
|
-
proposal : opt
|
|
841
|
+
proposal : opt ProposalId;
|
|
834
842
|
};
|
|
835
843
|
|
|
836
844
|
type RemoveHotKey = record {
|
|
@@ -909,7 +917,7 @@ type RewardEvent = record {
|
|
|
909
917
|
total_available_e8s_equivalent : nat64;
|
|
910
918
|
latest_round_available_e8s_equivalent : opt nat64;
|
|
911
919
|
distributed_e8s_equivalent : nat64;
|
|
912
|
-
settled_proposals : vec
|
|
920
|
+
settled_proposals : vec ProposalId;
|
|
913
921
|
};
|
|
914
922
|
|
|
915
923
|
type RewardMode = variant {
|
|
@@ -59,9 +59,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
59
59
|
'SetDissolveTimestamp' : SetDissolveTimestamp,
|
|
60
60
|
});
|
|
61
61
|
const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
|
|
62
|
+
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
62
63
|
const RegisterVote = IDL.Record({
|
|
63
64
|
'vote' : IDL.Int32,
|
|
64
|
-
'proposal' : IDL.Opt(
|
|
65
|
+
'proposal' : IDL.Opt(ProposalId),
|
|
65
66
|
});
|
|
66
67
|
const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
|
|
67
68
|
const DisburseToNeuron = IDL.Record({
|
|
@@ -447,7 +448,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
447
448
|
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
448
449
|
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
449
450
|
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
450
|
-
'settled_proposals' : IDL.Vec(
|
|
451
|
+
'settled_proposals' : IDL.Vec(ProposalId),
|
|
451
452
|
});
|
|
452
453
|
const NeuronStakeTransfer = IDL.Record({
|
|
453
454
|
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
@@ -550,7 +551,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
550
551
|
'current_deadline_timestamp_seconds' : IDL.Nat64,
|
|
551
552
|
});
|
|
552
553
|
const ProposalData = IDL.Record({
|
|
553
|
-
'id' : IDL.Opt(
|
|
554
|
+
'id' : IDL.Opt(ProposalId),
|
|
554
555
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
555
556
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
556
557
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
@@ -560,6 +561,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
560
561
|
'reject_cost_e8s' : IDL.Nat64,
|
|
561
562
|
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
562
563
|
'latest_tally' : IDL.Opt(Tally),
|
|
564
|
+
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
563
565
|
'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
|
|
564
566
|
'decided_timestamp_seconds' : IDL.Nat64,
|
|
565
567
|
'proposal' : IDL.Opt(Proposal),
|
|
@@ -587,7 +589,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
587
589
|
});
|
|
588
590
|
const BallotInfo = IDL.Record({
|
|
589
591
|
'vote' : IDL.Int32,
|
|
590
|
-
'proposal_id' : IDL.Opt(
|
|
592
|
+
'proposal_id' : IDL.Opt(ProposalId),
|
|
591
593
|
});
|
|
592
594
|
const DissolveState = IDL.Variant({
|
|
593
595
|
'DissolveDelaySeconds' : IDL.Nat64,
|
|
@@ -598,6 +600,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
598
600
|
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
599
601
|
'controller' : IDL.Opt(IDL.Principal),
|
|
600
602
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
603
|
+
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
601
604
|
'kyc_verified' : IDL.Bool,
|
|
602
605
|
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
603
606
|
'not_for_profit' : IDL.Bool,
|
|
@@ -665,6 +668,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
665
668
|
const NeuronInfo = IDL.Record({
|
|
666
669
|
'dissolve_delay_seconds' : IDL.Nat64,
|
|
667
670
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
671
|
+
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
668
672
|
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
669
673
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
670
674
|
'state' : IDL.Int32,
|
|
@@ -678,7 +682,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
678
682
|
});
|
|
679
683
|
const Result_5 = IDL.Variant({ 'Ok' : NeuronInfo, 'Err' : GovernanceError });
|
|
680
684
|
const GetNeuronsFundAuditInfoRequest = IDL.Record({
|
|
681
|
-
'nns_proposal_id' : IDL.Opt(
|
|
685
|
+
'nns_proposal_id' : IDL.Opt(ProposalId),
|
|
682
686
|
});
|
|
683
687
|
const NeuronsFundAuditInfo = IDL.Record({
|
|
684
688
|
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
@@ -697,7 +701,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
697
701
|
'Err' : GovernanceError,
|
|
698
702
|
});
|
|
699
703
|
const ProposalInfo = IDL.Record({
|
|
700
|
-
'id' : IDL.Opt(
|
|
704
|
+
'id' : IDL.Opt(ProposalId),
|
|
701
705
|
'status' : IDL.Int32,
|
|
702
706
|
'topic' : IDL.Int32,
|
|
703
707
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
@@ -709,6 +713,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
709
713
|
'reject_cost_e8s' : IDL.Nat64,
|
|
710
714
|
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
711
715
|
'latest_tally' : IDL.Opt(Tally),
|
|
716
|
+
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
712
717
|
'reward_status' : IDL.Int32,
|
|
713
718
|
'decided_timestamp_seconds' : IDL.Nat64,
|
|
714
719
|
'proposal' : IDL.Opt(Proposal),
|
|
@@ -744,7 +749,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
744
749
|
const ListProposalInfo = IDL.Record({
|
|
745
750
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
746
751
|
'omit_large_fields' : IDL.Opt(IDL.Bool),
|
|
747
|
-
'before_proposal' : IDL.Opt(
|
|
752
|
+
'before_proposal' : IDL.Opt(ProposalId),
|
|
748
753
|
'limit' : IDL.Nat32,
|
|
749
754
|
'exclude_topic' : IDL.Vec(IDL.Int32),
|
|
750
755
|
'include_all_manage_neuron_proposals' : IDL.Opt(IDL.Bool),
|
|
@@ -814,7 +819,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
814
819
|
});
|
|
815
820
|
const MakeProposalResponse = IDL.Record({
|
|
816
821
|
'message' : IDL.Opt(IDL.Text),
|
|
817
|
-
'proposal_id' : IDL.Opt(
|
|
822
|
+
'proposal_id' : IDL.Opt(ProposalId),
|
|
818
823
|
});
|
|
819
824
|
const StakeMaturityResponse = IDL.Record({
|
|
820
825
|
'maturity_e8s' : IDL.Nat64,
|
|
@@ -1039,9 +1044,10 @@ export const init = ({ IDL }) => {
|
|
|
1039
1044
|
'SetDissolveTimestamp' : SetDissolveTimestamp,
|
|
1040
1045
|
});
|
|
1041
1046
|
const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
|
|
1047
|
+
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
1042
1048
|
const RegisterVote = IDL.Record({
|
|
1043
1049
|
'vote' : IDL.Int32,
|
|
1044
|
-
'proposal' : IDL.Opt(
|
|
1050
|
+
'proposal' : IDL.Opt(ProposalId),
|
|
1045
1051
|
});
|
|
1046
1052
|
const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
|
|
1047
1053
|
const DisburseToNeuron = IDL.Record({
|
|
@@ -1427,7 +1433,7 @@ export const init = ({ IDL }) => {
|
|
|
1427
1433
|
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
1428
1434
|
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1429
1435
|
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
1430
|
-
'settled_proposals' : IDL.Vec(
|
|
1436
|
+
'settled_proposals' : IDL.Vec(ProposalId),
|
|
1431
1437
|
});
|
|
1432
1438
|
const NeuronStakeTransfer = IDL.Record({
|
|
1433
1439
|
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
@@ -1530,7 +1536,7 @@ export const init = ({ IDL }) => {
|
|
|
1530
1536
|
'current_deadline_timestamp_seconds' : IDL.Nat64,
|
|
1531
1537
|
});
|
|
1532
1538
|
const ProposalData = IDL.Record({
|
|
1533
|
-
'id' : IDL.Opt(
|
|
1539
|
+
'id' : IDL.Opt(ProposalId),
|
|
1534
1540
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1535
1541
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
1536
1542
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
@@ -1540,6 +1546,7 @@ export const init = ({ IDL }) => {
|
|
|
1540
1546
|
'reject_cost_e8s' : IDL.Nat64,
|
|
1541
1547
|
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
1542
1548
|
'latest_tally' : IDL.Opt(Tally),
|
|
1549
|
+
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1543
1550
|
'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
|
|
1544
1551
|
'decided_timestamp_seconds' : IDL.Nat64,
|
|
1545
1552
|
'proposal' : IDL.Opt(Proposal),
|
|
@@ -1567,7 +1574,7 @@ export const init = ({ IDL }) => {
|
|
|
1567
1574
|
});
|
|
1568
1575
|
const BallotInfo = IDL.Record({
|
|
1569
1576
|
'vote' : IDL.Int32,
|
|
1570
|
-
'proposal_id' : IDL.Opt(
|
|
1577
|
+
'proposal_id' : IDL.Opt(ProposalId),
|
|
1571
1578
|
});
|
|
1572
1579
|
const DissolveState = IDL.Variant({
|
|
1573
1580
|
'DissolveDelaySeconds' : IDL.Nat64,
|
|
@@ -1578,6 +1585,7 @@ export const init = ({ IDL }) => {
|
|
|
1578
1585
|
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1579
1586
|
'controller' : IDL.Opt(IDL.Principal),
|
|
1580
1587
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
1588
|
+
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1581
1589
|
'kyc_verified' : IDL.Bool,
|
|
1582
1590
|
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
1583
1591
|
'not_for_profit' : IDL.Bool,
|
|
@@ -59,9 +59,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
59
59
|
'SetDissolveTimestamp' : SetDissolveTimestamp,
|
|
60
60
|
});
|
|
61
61
|
const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
|
|
62
|
+
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
62
63
|
const RegisterVote = IDL.Record({
|
|
63
64
|
'vote' : IDL.Int32,
|
|
64
|
-
'proposal' : IDL.Opt(
|
|
65
|
+
'proposal' : IDL.Opt(ProposalId),
|
|
65
66
|
});
|
|
66
67
|
const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
|
|
67
68
|
const DisburseToNeuron = IDL.Record({
|
|
@@ -447,7 +448,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
447
448
|
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
448
449
|
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
449
450
|
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
450
|
-
'settled_proposals' : IDL.Vec(
|
|
451
|
+
'settled_proposals' : IDL.Vec(ProposalId),
|
|
451
452
|
});
|
|
452
453
|
const NeuronStakeTransfer = IDL.Record({
|
|
453
454
|
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
@@ -550,7 +551,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
550
551
|
'current_deadline_timestamp_seconds' : IDL.Nat64,
|
|
551
552
|
});
|
|
552
553
|
const ProposalData = IDL.Record({
|
|
553
|
-
'id' : IDL.Opt(
|
|
554
|
+
'id' : IDL.Opt(ProposalId),
|
|
554
555
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
555
556
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
556
557
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
@@ -560,6 +561,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
560
561
|
'reject_cost_e8s' : IDL.Nat64,
|
|
561
562
|
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
562
563
|
'latest_tally' : IDL.Opt(Tally),
|
|
564
|
+
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
563
565
|
'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
|
|
564
566
|
'decided_timestamp_seconds' : IDL.Nat64,
|
|
565
567
|
'proposal' : IDL.Opt(Proposal),
|
|
@@ -587,7 +589,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
587
589
|
});
|
|
588
590
|
const BallotInfo = IDL.Record({
|
|
589
591
|
'vote' : IDL.Int32,
|
|
590
|
-
'proposal_id' : IDL.Opt(
|
|
592
|
+
'proposal_id' : IDL.Opt(ProposalId),
|
|
591
593
|
});
|
|
592
594
|
const DissolveState = IDL.Variant({
|
|
593
595
|
'DissolveDelaySeconds' : IDL.Nat64,
|
|
@@ -598,6 +600,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
598
600
|
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
599
601
|
'controller' : IDL.Opt(IDL.Principal),
|
|
600
602
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
603
|
+
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
601
604
|
'kyc_verified' : IDL.Bool,
|
|
602
605
|
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
603
606
|
'not_for_profit' : IDL.Bool,
|
|
@@ -665,6 +668,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
665
668
|
const NeuronInfo = IDL.Record({
|
|
666
669
|
'dissolve_delay_seconds' : IDL.Nat64,
|
|
667
670
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
671
|
+
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
668
672
|
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
669
673
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
670
674
|
'state' : IDL.Int32,
|
|
@@ -678,7 +682,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
678
682
|
});
|
|
679
683
|
const Result_5 = IDL.Variant({ 'Ok' : NeuronInfo, 'Err' : GovernanceError });
|
|
680
684
|
const GetNeuronsFundAuditInfoRequest = IDL.Record({
|
|
681
|
-
'nns_proposal_id' : IDL.Opt(
|
|
685
|
+
'nns_proposal_id' : IDL.Opt(ProposalId),
|
|
682
686
|
});
|
|
683
687
|
const NeuronsFundAuditInfo = IDL.Record({
|
|
684
688
|
'final_neurons_fund_participation' : IDL.Opt(NeuronsFundParticipation),
|
|
@@ -697,7 +701,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
697
701
|
'Err' : GovernanceError,
|
|
698
702
|
});
|
|
699
703
|
const ProposalInfo = IDL.Record({
|
|
700
|
-
'id' : IDL.Opt(
|
|
704
|
+
'id' : IDL.Opt(ProposalId),
|
|
701
705
|
'status' : IDL.Int32,
|
|
702
706
|
'topic' : IDL.Int32,
|
|
703
707
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
@@ -709,6 +713,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
709
713
|
'reject_cost_e8s' : IDL.Nat64,
|
|
710
714
|
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
711
715
|
'latest_tally' : IDL.Opt(Tally),
|
|
716
|
+
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
712
717
|
'reward_status' : IDL.Int32,
|
|
713
718
|
'decided_timestamp_seconds' : IDL.Nat64,
|
|
714
719
|
'proposal' : IDL.Opt(Proposal),
|
|
@@ -744,7 +749,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
744
749
|
const ListProposalInfo = IDL.Record({
|
|
745
750
|
'include_reward_status' : IDL.Vec(IDL.Int32),
|
|
746
751
|
'omit_large_fields' : IDL.Opt(IDL.Bool),
|
|
747
|
-
'before_proposal' : IDL.Opt(
|
|
752
|
+
'before_proposal' : IDL.Opt(ProposalId),
|
|
748
753
|
'limit' : IDL.Nat32,
|
|
749
754
|
'exclude_topic' : IDL.Vec(IDL.Int32),
|
|
750
755
|
'include_all_manage_neuron_proposals' : IDL.Opt(IDL.Bool),
|
|
@@ -814,7 +819,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
814
819
|
});
|
|
815
820
|
const MakeProposalResponse = IDL.Record({
|
|
816
821
|
'message' : IDL.Opt(IDL.Text),
|
|
817
|
-
'proposal_id' : IDL.Opt(
|
|
822
|
+
'proposal_id' : IDL.Opt(ProposalId),
|
|
818
823
|
});
|
|
819
824
|
const StakeMaturityResponse = IDL.Record({
|
|
820
825
|
'maturity_e8s' : IDL.Nat64,
|
|
@@ -1024,9 +1029,10 @@ export const init = ({ IDL }) => {
|
|
|
1024
1029
|
'SetDissolveTimestamp' : SetDissolveTimestamp,
|
|
1025
1030
|
});
|
|
1026
1031
|
const Configure = IDL.Record({ 'operation' : IDL.Opt(Operation) });
|
|
1032
|
+
const ProposalId = IDL.Record({ 'id' : IDL.Nat64 });
|
|
1027
1033
|
const RegisterVote = IDL.Record({
|
|
1028
1034
|
'vote' : IDL.Int32,
|
|
1029
|
-
'proposal' : IDL.Opt(
|
|
1035
|
+
'proposal' : IDL.Opt(ProposalId),
|
|
1030
1036
|
});
|
|
1031
1037
|
const Merge = IDL.Record({ 'source_neuron_id' : IDL.Opt(NeuronId) });
|
|
1032
1038
|
const DisburseToNeuron = IDL.Record({
|
|
@@ -1412,7 +1418,7 @@ export const init = ({ IDL }) => {
|
|
|
1412
1418
|
'total_available_e8s_equivalent' : IDL.Nat64,
|
|
1413
1419
|
'latest_round_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1414
1420
|
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
1415
|
-
'settled_proposals' : IDL.Vec(
|
|
1421
|
+
'settled_proposals' : IDL.Vec(ProposalId),
|
|
1416
1422
|
});
|
|
1417
1423
|
const NeuronStakeTransfer = IDL.Record({
|
|
1418
1424
|
'to_subaccount' : IDL.Vec(IDL.Nat8),
|
|
@@ -1515,7 +1521,7 @@ export const init = ({ IDL }) => {
|
|
|
1515
1521
|
'current_deadline_timestamp_seconds' : IDL.Nat64,
|
|
1516
1522
|
});
|
|
1517
1523
|
const ProposalData = IDL.Record({
|
|
1518
|
-
'id' : IDL.Opt(
|
|
1524
|
+
'id' : IDL.Opt(ProposalId),
|
|
1519
1525
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1520
1526
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
1521
1527
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
@@ -1525,6 +1531,7 @@ export const init = ({ IDL }) => {
|
|
|
1525
1531
|
'reject_cost_e8s' : IDL.Nat64,
|
|
1526
1532
|
'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
|
|
1527
1533
|
'latest_tally' : IDL.Opt(Tally),
|
|
1534
|
+
'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1528
1535
|
'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
|
|
1529
1536
|
'decided_timestamp_seconds' : IDL.Nat64,
|
|
1530
1537
|
'proposal' : IDL.Opt(Proposal),
|
|
@@ -1552,7 +1559,7 @@ export const init = ({ IDL }) => {
|
|
|
1552
1559
|
});
|
|
1553
1560
|
const BallotInfo = IDL.Record({
|
|
1554
1561
|
'vote' : IDL.Int32,
|
|
1555
|
-
'proposal_id' : IDL.Opt(
|
|
1562
|
+
'proposal_id' : IDL.Opt(ProposalId),
|
|
1556
1563
|
});
|
|
1557
1564
|
const DissolveState = IDL.Variant({
|
|
1558
1565
|
'DissolveDelaySeconds' : IDL.Nat64,
|
|
@@ -1563,6 +1570,7 @@ export const init = ({ IDL }) => {
|
|
|
1563
1570
|
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
1564
1571
|
'controller' : IDL.Opt(IDL.Principal),
|
|
1565
1572
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
1573
|
+
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1566
1574
|
'kyc_verified' : IDL.Bool,
|
|
1567
1575
|
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
1568
1576
|
'not_for_profit' : IDL.Bool,
|
|
@@ -40,7 +40,7 @@ export interface Ballot {
|
|
|
40
40
|
}
|
|
41
41
|
export interface BallotInfo {
|
|
42
42
|
vote: number;
|
|
43
|
-
proposal_id: [] | [
|
|
43
|
+
proposal_id: [] | [ProposalId];
|
|
44
44
|
}
|
|
45
45
|
export type By =
|
|
46
46
|
| { NeuronIdOrSubaccount: {} }
|
|
@@ -206,7 +206,7 @@ export interface FollowersMap {
|
|
|
206
206
|
followers_map: Array<[bigint, Followers]>;
|
|
207
207
|
}
|
|
208
208
|
export interface GetNeuronsFundAuditInfoRequest {
|
|
209
|
-
nns_proposal_id: [] | [
|
|
209
|
+
nns_proposal_id: [] | [ProposalId];
|
|
210
210
|
}
|
|
211
211
|
export interface GetNeuronsFundAuditInfoResponse {
|
|
212
212
|
result: [] | [Result_6];
|
|
@@ -368,7 +368,7 @@ export interface ListNodeProvidersResponse {
|
|
|
368
368
|
export interface ListProposalInfo {
|
|
369
369
|
include_reward_status: Int32Array | number[];
|
|
370
370
|
omit_large_fields: [] | [boolean];
|
|
371
|
-
before_proposal: [] | [
|
|
371
|
+
before_proposal: [] | [ProposalId];
|
|
372
372
|
limit: number;
|
|
373
373
|
exclude_topic: Int32Array | number[];
|
|
374
374
|
include_all_manage_neuron_proposals: [] | [boolean];
|
|
@@ -385,7 +385,7 @@ export interface MakeProposalRequest {
|
|
|
385
385
|
}
|
|
386
386
|
export interface MakeProposalResponse {
|
|
387
387
|
message: [] | [string];
|
|
388
|
-
proposal_id: [] | [
|
|
388
|
+
proposal_id: [] | [ProposalId];
|
|
389
389
|
}
|
|
390
390
|
export interface MakingSnsProposal {
|
|
391
391
|
proposal: [] | [Proposal];
|
|
@@ -471,6 +471,7 @@ export interface Neuron {
|
|
|
471
471
|
staked_maturity_e8s_equivalent: [] | [bigint];
|
|
472
472
|
controller: [] | [Principal];
|
|
473
473
|
recent_ballots: Array<BallotInfo>;
|
|
474
|
+
voting_power_refreshed_timestamp_seconds: [] | [bigint];
|
|
474
475
|
kyc_verified: boolean;
|
|
475
476
|
neuron_type: [] | [number];
|
|
476
477
|
not_for_profit: boolean;
|
|
@@ -518,6 +519,7 @@ export interface NeuronInFlightCommand {
|
|
|
518
519
|
export interface NeuronInfo {
|
|
519
520
|
dissolve_delay_seconds: bigint;
|
|
520
521
|
recent_ballots: Array<BallotInfo>;
|
|
522
|
+
voting_power_refreshed_timestamp_seconds: [] | [bigint];
|
|
521
523
|
neuron_type: [] | [number];
|
|
522
524
|
created_timestamp_seconds: bigint;
|
|
523
525
|
state: number;
|
|
@@ -672,7 +674,7 @@ export type ProposalActionRequest =
|
|
|
672
674
|
| { AddOrRemoveNodeProvider: AddOrRemoveNodeProvider }
|
|
673
675
|
| { Motion: Motion };
|
|
674
676
|
export interface ProposalData {
|
|
675
|
-
id: [] | [
|
|
677
|
+
id: [] | [ProposalId];
|
|
676
678
|
failure_reason: [] | [GovernanceError];
|
|
677
679
|
ballots: Array<[bigint, Ballot]>;
|
|
678
680
|
proposal_timestamp_seconds: bigint;
|
|
@@ -682,6 +684,7 @@ export interface ProposalData {
|
|
|
682
684
|
reject_cost_e8s: bigint;
|
|
683
685
|
derived_proposal_information: [] | [DerivedProposalInformation];
|
|
684
686
|
latest_tally: [] | [Tally];
|
|
687
|
+
total_potential_voting_power: [] | [bigint];
|
|
685
688
|
sns_token_swap_lifecycle: [] | [number];
|
|
686
689
|
decided_timestamp_seconds: bigint;
|
|
687
690
|
proposal: [] | [Proposal];
|
|
@@ -690,8 +693,11 @@ export interface ProposalData {
|
|
|
690
693
|
executed_timestamp_seconds: bigint;
|
|
691
694
|
original_total_community_fund_maturity_e8s_equivalent: [] | [bigint];
|
|
692
695
|
}
|
|
696
|
+
export interface ProposalId {
|
|
697
|
+
id: bigint;
|
|
698
|
+
}
|
|
693
699
|
export interface ProposalInfo {
|
|
694
|
-
id: [] | [
|
|
700
|
+
id: [] | [ProposalId];
|
|
695
701
|
status: number;
|
|
696
702
|
topic: number;
|
|
697
703
|
failure_reason: [] | [GovernanceError];
|
|
@@ -703,6 +709,7 @@ export interface ProposalInfo {
|
|
|
703
709
|
reject_cost_e8s: bigint;
|
|
704
710
|
derived_proposal_information: [] | [DerivedProposalInformation];
|
|
705
711
|
latest_tally: [] | [Tally];
|
|
712
|
+
total_potential_voting_power: [] | [bigint];
|
|
706
713
|
reward_status: number;
|
|
707
714
|
decided_timestamp_seconds: bigint;
|
|
708
715
|
proposal: [] | [Proposal];
|
|
@@ -711,7 +718,7 @@ export interface ProposalInfo {
|
|
|
711
718
|
}
|
|
712
719
|
export interface RegisterVote {
|
|
713
720
|
vote: number;
|
|
714
|
-
proposal: [] | [
|
|
721
|
+
proposal: [] | [ProposalId];
|
|
715
722
|
}
|
|
716
723
|
export interface RemoveHotKey {
|
|
717
724
|
hot_key_to_remove: [] | [Principal];
|
|
@@ -748,7 +755,7 @@ export interface RewardEvent {
|
|
|
748
755
|
total_available_e8s_equivalent: bigint;
|
|
749
756
|
latest_round_available_e8s_equivalent: [] | [bigint];
|
|
750
757
|
distributed_e8s_equivalent: bigint;
|
|
751
|
-
settled_proposals: Array<
|
|
758
|
+
settled_proposals: Array<ProposalId>;
|
|
752
759
|
}
|
|
753
760
|
export type RewardMode =
|
|
754
761
|
| { RewardToNeuron: RewardToNeuron }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit c47e172 (2024-10-25 tags: release-2024-11-07_03-07-6.11-kernel) 'rs/nns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type AccountIdentifier = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
};
|
|
@@ -45,7 +45,7 @@ type Ballot = record {
|
|
|
45
45
|
|
|
46
46
|
type BallotInfo = record {
|
|
47
47
|
vote : int32;
|
|
48
|
-
proposal_id : opt
|
|
48
|
+
proposal_id : opt ProposalId;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
type By = variant {
|
|
@@ -256,7 +256,7 @@ type FollowersMap = record {
|
|
|
256
256
|
} };
|
|
257
257
|
|
|
258
258
|
type GetNeuronsFundAuditInfoRequest = record {
|
|
259
|
-
nns_proposal_id : opt
|
|
259
|
+
nns_proposal_id : opt ProposalId;
|
|
260
260
|
};
|
|
261
261
|
|
|
262
262
|
type GetNeuronsFundAuditInfoResponse = record {
|
|
@@ -440,7 +440,7 @@ type ListNodeProvidersResponse = record {
|
|
|
440
440
|
type ListProposalInfo = record {
|
|
441
441
|
include_reward_status : vec int32;
|
|
442
442
|
omit_large_fields : opt bool;
|
|
443
|
-
before_proposal : opt
|
|
443
|
+
before_proposal : opt ProposalId;
|
|
444
444
|
limit : nat32;
|
|
445
445
|
exclude_topic : vec int32;
|
|
446
446
|
include_all_manage_neuron_proposals : opt bool;
|
|
@@ -460,7 +460,7 @@ type MakeProposalRequest = record {
|
|
|
460
460
|
|
|
461
461
|
type MakeProposalResponse = record {
|
|
462
462
|
message : opt text;
|
|
463
|
-
proposal_id : opt
|
|
463
|
+
proposal_id : opt ProposalId;
|
|
464
464
|
};
|
|
465
465
|
|
|
466
466
|
type MakingSnsProposal = record {
|
|
@@ -580,6 +580,7 @@ type Neuron = record {
|
|
|
580
580
|
transfer : opt NeuronStakeTransfer;
|
|
581
581
|
known_neuron_data : opt KnownNeuronData;
|
|
582
582
|
spawn_at_timestamp_seconds : opt nat64;
|
|
583
|
+
voting_power_refreshed_timestamp_seconds : opt nat64;
|
|
583
584
|
};
|
|
584
585
|
|
|
585
586
|
type NeuronBasketConstructionParameters = record {
|
|
@@ -604,6 +605,10 @@ type NeuronId = record {
|
|
|
604
605
|
id : nat64;
|
|
605
606
|
};
|
|
606
607
|
|
|
608
|
+
type ProposalId = record {
|
|
609
|
+
id : nat64;
|
|
610
|
+
};
|
|
611
|
+
|
|
607
612
|
type NeuronIdOrSubaccount = variant {
|
|
608
613
|
Subaccount : blob;
|
|
609
614
|
NeuronId : NeuronId;
|
|
@@ -627,6 +632,7 @@ type NeuronInfo = record {
|
|
|
627
632
|
known_neuron_data : opt KnownNeuronData;
|
|
628
633
|
voting_power : nat64;
|
|
629
634
|
age_seconds : nat64;
|
|
635
|
+
voting_power_refreshed_timestamp_seconds : opt nat64;
|
|
630
636
|
};
|
|
631
637
|
|
|
632
638
|
type NeuronStakeTransfer = record {
|
|
@@ -791,7 +797,7 @@ type ProposalActionRequest = variant {
|
|
|
791
797
|
};
|
|
792
798
|
|
|
793
799
|
type ProposalData = record {
|
|
794
|
-
id : opt
|
|
800
|
+
id : opt ProposalId;
|
|
795
801
|
failure_reason : opt GovernanceError;
|
|
796
802
|
ballots : vec record { nat64; Ballot };
|
|
797
803
|
proposal_timestamp_seconds : nat64;
|
|
@@ -808,10 +814,11 @@ type ProposalData = record {
|
|
|
808
814
|
wait_for_quiet_state : opt WaitForQuietState;
|
|
809
815
|
executed_timestamp_seconds : nat64;
|
|
810
816
|
original_total_community_fund_maturity_e8s_equivalent : opt nat64;
|
|
817
|
+
total_potential_voting_power : opt nat64;
|
|
811
818
|
};
|
|
812
819
|
|
|
813
820
|
type ProposalInfo = record {
|
|
814
|
-
id : opt
|
|
821
|
+
id : opt ProposalId;
|
|
815
822
|
status : int32;
|
|
816
823
|
topic : int32;
|
|
817
824
|
failure_reason : opt GovernanceError;
|
|
@@ -828,11 +835,12 @@ type ProposalInfo = record {
|
|
|
828
835
|
proposal : opt Proposal;
|
|
829
836
|
proposer : opt NeuronId;
|
|
830
837
|
executed_timestamp_seconds : nat64;
|
|
838
|
+
total_potential_voting_power : opt nat64;
|
|
831
839
|
};
|
|
832
840
|
|
|
833
841
|
type RegisterVote = record {
|
|
834
842
|
vote : int32;
|
|
835
|
-
proposal : opt
|
|
843
|
+
proposal : opt ProposalId;
|
|
836
844
|
};
|
|
837
845
|
|
|
838
846
|
type RemoveHotKey = record {
|
|
@@ -911,7 +919,7 @@ type RewardEvent = record {
|
|
|
911
919
|
total_available_e8s_equivalent : nat64;
|
|
912
920
|
latest_round_available_e8s_equivalent : opt nat64;
|
|
913
921
|
distributed_e8s_equivalent : nat64;
|
|
914
|
-
settled_proposals : vec
|
|
922
|
+
settled_proposals : vec ProposalId;
|
|
915
923
|
};
|
|
916
924
|
|
|
917
925
|
type RewardMode = variant {
|