@dfinity/nns 8.4.1 → 8.5.0-beta-2025-06-28
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/README.md +60 -38
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +45 -2
- package/dist/candid/governance.d.ts +21 -0
- package/dist/candid/governance.did +30 -1
- package/dist/candid/governance.idl.js +45 -2
- package/dist/candid/governance_test.certified.idl.js +45 -2
- package/dist/candid/governance_test.d.ts +21 -0
- package/dist/candid/governance_test.did +27 -1
- package/dist/candid/governance_test.idl.js +45 -2
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/index.cjs.js.map +4 -4
- package/dist/esm/chunk-C3QZH6Y3.js +8 -0
- package/dist/esm/chunk-C3QZH6Y3.js.map +7 -0
- package/dist/esm/{chunk-UZGLNEQP.js → chunk-GJ7FSPCW.js} +2 -2
- package/dist/esm/{chunk-UZGLNEQP.js.map → chunk-GJ7FSPCW.js.map} +2 -2
- package/dist/esm/{chunk-GQ6HQ3NJ.js → chunk-LT33VVWB.js} +2 -2
- package/dist/esm/{chunk-GQ6HQ3NJ.js.map → chunk-LT33VVWB.js.map} +2 -2
- package/dist/esm/chunk-W6BBRGPQ.js +2 -0
- package/dist/esm/{chunk-IIFH2XLR.js.map → chunk-W6BBRGPQ.js.map} +1 -1
- package/dist/esm/genesis_token.canister.js +1 -1
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/sns_wasm.canister.js +1 -1
- package/dist/types/canisters/governance/request.converters.d.ts +10 -4
- package/dist/types/governance.canister.d.ts +20 -3
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/governance_converters.d.ts +20 -0
- package/dist/types/utils/account_identifier.utils.d.ts +5 -0
- package/package.json +8 -7
- package/dist/esm/chunk-IIFH2XLR.js +0 -2
- package/dist/esm/chunk-ZA4DZTQU.js +0 -19
- package/dist/esm/chunk-ZA4DZTQU.js.map +0 -7
|
@@ -22,11 +22,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
22
22
|
'topic' : IDL.Int32,
|
|
23
23
|
'followees' : IDL.Vec(NeuronId),
|
|
24
24
|
});
|
|
25
|
+
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
25
26
|
const Account = IDL.Record({
|
|
26
27
|
'owner' : IDL.Opt(IDL.Principal),
|
|
27
28
|
'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
28
29
|
});
|
|
29
30
|
const DisburseMaturity = IDL.Record({
|
|
31
|
+
'to_account_identifier' : IDL.Opt(AccountIdentifier),
|
|
30
32
|
'to_account' : IDL.Opt(Account),
|
|
31
33
|
'percentage_to_disburse' : IDL.Nat32,
|
|
32
34
|
});
|
|
@@ -81,11 +83,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
81
83
|
'new_controller' : IDL.Opt(IDL.Principal),
|
|
82
84
|
'nonce' : IDL.Nat64,
|
|
83
85
|
});
|
|
86
|
+
const FolloweesForTopic = IDL.Record({
|
|
87
|
+
'topic' : IDL.Opt(IDL.Int32),
|
|
88
|
+
'followees' : IDL.Opt(IDL.Vec(NeuronId)),
|
|
89
|
+
});
|
|
90
|
+
const SetFollowing = IDL.Record({
|
|
91
|
+
'topic_following' : IDL.Opt(IDL.Vec(FolloweesForTopic)),
|
|
92
|
+
});
|
|
84
93
|
const StakeMaturity = IDL.Record({
|
|
85
94
|
'percentage_to_stake' : IDL.Opt(IDL.Nat32),
|
|
86
95
|
});
|
|
87
96
|
const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
|
|
88
|
-
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
89
97
|
const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
|
|
90
98
|
const Disburse = IDL.Record({
|
|
91
99
|
'to_account' : IDL.Opt(AccountIdentifier),
|
|
@@ -102,6 +110,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
102
110
|
'RegisterVote' : RegisterVote,
|
|
103
111
|
'Merge' : Merge,
|
|
104
112
|
'DisburseToNeuron' : DisburseToNeuron,
|
|
113
|
+
'SetFollowing' : SetFollowing,
|
|
105
114
|
'MakeProposal' : Proposal,
|
|
106
115
|
'StakeMaturity' : StakeMaturity,
|
|
107
116
|
'MergeMaturity' : MergeMaturity,
|
|
@@ -566,6 +575,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
566
575
|
});
|
|
567
576
|
const ProposalData = IDL.Record({
|
|
568
577
|
'id' : IDL.Opt(ProposalId),
|
|
578
|
+
'topic' : IDL.Opt(IDL.Int32),
|
|
569
579
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
570
580
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
571
581
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
@@ -605,6 +615,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
605
615
|
'vote' : IDL.Int32,
|
|
606
616
|
'proposal_id' : IDL.Opt(ProposalId),
|
|
607
617
|
});
|
|
618
|
+
const MaturityDisbursement = IDL.Record({
|
|
619
|
+
'account_identifier_to_disburse_to' : IDL.Opt(AccountIdentifier),
|
|
620
|
+
'timestamp_of_disbursement_seconds' : IDL.Opt(IDL.Nat64),
|
|
621
|
+
'amount_e8s' : IDL.Opt(IDL.Nat64),
|
|
622
|
+
'account_to_disburse_to' : IDL.Opt(Account),
|
|
623
|
+
'finalize_disbursement_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
624
|
+
});
|
|
608
625
|
const DissolveState = IDL.Variant({
|
|
609
626
|
'DissolveDelaySeconds' : IDL.Nat64,
|
|
610
627
|
'WhenDissolvedTimestampSeconds' : IDL.Nat64,
|
|
@@ -628,6 +645,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
628
645
|
'hot_keys' : IDL.Vec(IDL.Principal),
|
|
629
646
|
'account' : IDL.Vec(IDL.Nat8),
|
|
630
647
|
'joined_community_fund_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
648
|
+
'maturity_disbursements_in_progress' : IDL.Opt(
|
|
649
|
+
IDL.Vec(MaturityDisbursement)
|
|
650
|
+
),
|
|
631
651
|
'dissolve_state' : IDL.Opt(DissolveState),
|
|
632
652
|
'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
633
653
|
'neuron_fees_e8s' : IDL.Nat64,
|
|
@@ -818,6 +838,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
818
838
|
'RegisterVote' : RegisterVote,
|
|
819
839
|
'Merge' : Merge,
|
|
820
840
|
'DisburseToNeuron' : DisburseToNeuron,
|
|
841
|
+
'SetFollowing' : SetFollowing,
|
|
821
842
|
'MakeProposal' : MakeProposalRequest,
|
|
822
843
|
'StakeMaturity' : StakeMaturity,
|
|
823
844
|
'MergeMaturity' : MergeMaturity,
|
|
@@ -844,6 +865,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
844
865
|
'target_neuron_info' : IDL.Opt(NeuronInfo),
|
|
845
866
|
'source_neuron_info' : IDL.Opt(NeuronInfo),
|
|
846
867
|
});
|
|
868
|
+
const SetFollowingResponse = IDL.Record({});
|
|
847
869
|
const MakeProposalResponse = IDL.Record({
|
|
848
870
|
'message' : IDL.Opt(IDL.Text),
|
|
849
871
|
'proposal_id' : IDL.Opt(ProposalId),
|
|
@@ -869,6 +891,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
869
891
|
'RegisterVote' : IDL.Record({}),
|
|
870
892
|
'Merge' : MergeResponse,
|
|
871
893
|
'DisburseToNeuron' : SpawnResponse,
|
|
894
|
+
'SetFollowing' : SetFollowingResponse,
|
|
872
895
|
'MakeProposal' : MakeProposalResponse,
|
|
873
896
|
'StakeMaturity' : StakeMaturityResponse,
|
|
874
897
|
'MergeMaturity' : MergeMaturityResponse,
|
|
@@ -1037,11 +1060,13 @@ export const init = ({ IDL }) => {
|
|
|
1037
1060
|
'topic' : IDL.Int32,
|
|
1038
1061
|
'followees' : IDL.Vec(NeuronId),
|
|
1039
1062
|
});
|
|
1063
|
+
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
1040
1064
|
const Account = IDL.Record({
|
|
1041
1065
|
'owner' : IDL.Opt(IDL.Principal),
|
|
1042
1066
|
'subaccount' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
1043
1067
|
});
|
|
1044
1068
|
const DisburseMaturity = IDL.Record({
|
|
1069
|
+
'to_account_identifier' : IDL.Opt(AccountIdentifier),
|
|
1045
1070
|
'to_account' : IDL.Opt(Account),
|
|
1046
1071
|
'percentage_to_disburse' : IDL.Nat32,
|
|
1047
1072
|
});
|
|
@@ -1096,11 +1121,17 @@ export const init = ({ IDL }) => {
|
|
|
1096
1121
|
'new_controller' : IDL.Opt(IDL.Principal),
|
|
1097
1122
|
'nonce' : IDL.Nat64,
|
|
1098
1123
|
});
|
|
1124
|
+
const FolloweesForTopic = IDL.Record({
|
|
1125
|
+
'topic' : IDL.Opt(IDL.Int32),
|
|
1126
|
+
'followees' : IDL.Opt(IDL.Vec(NeuronId)),
|
|
1127
|
+
});
|
|
1128
|
+
const SetFollowing = IDL.Record({
|
|
1129
|
+
'topic_following' : IDL.Opt(IDL.Vec(FolloweesForTopic)),
|
|
1130
|
+
});
|
|
1099
1131
|
const StakeMaturity = IDL.Record({
|
|
1100
1132
|
'percentage_to_stake' : IDL.Opt(IDL.Nat32),
|
|
1101
1133
|
});
|
|
1102
1134
|
const MergeMaturity = IDL.Record({ 'percentage_to_merge' : IDL.Nat32 });
|
|
1103
|
-
const AccountIdentifier = IDL.Record({ 'hash' : IDL.Vec(IDL.Nat8) });
|
|
1104
1135
|
const Amount = IDL.Record({ 'e8s' : IDL.Nat64 });
|
|
1105
1136
|
const Disburse = IDL.Record({
|
|
1106
1137
|
'to_account' : IDL.Opt(AccountIdentifier),
|
|
@@ -1117,6 +1148,7 @@ export const init = ({ IDL }) => {
|
|
|
1117
1148
|
'RegisterVote' : RegisterVote,
|
|
1118
1149
|
'Merge' : Merge,
|
|
1119
1150
|
'DisburseToNeuron' : DisburseToNeuron,
|
|
1151
|
+
'SetFollowing' : SetFollowing,
|
|
1120
1152
|
'MakeProposal' : Proposal,
|
|
1121
1153
|
'StakeMaturity' : StakeMaturity,
|
|
1122
1154
|
'MergeMaturity' : MergeMaturity,
|
|
@@ -1581,6 +1613,7 @@ export const init = ({ IDL }) => {
|
|
|
1581
1613
|
});
|
|
1582
1614
|
const ProposalData = IDL.Record({
|
|
1583
1615
|
'id' : IDL.Opt(ProposalId),
|
|
1616
|
+
'topic' : IDL.Opt(IDL.Int32),
|
|
1584
1617
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
1585
1618
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Nat64, Ballot)),
|
|
1586
1619
|
'proposal_timestamp_seconds' : IDL.Nat64,
|
|
@@ -1620,6 +1653,13 @@ export const init = ({ IDL }) => {
|
|
|
1620
1653
|
'vote' : IDL.Int32,
|
|
1621
1654
|
'proposal_id' : IDL.Opt(ProposalId),
|
|
1622
1655
|
});
|
|
1656
|
+
const MaturityDisbursement = IDL.Record({
|
|
1657
|
+
'account_identifier_to_disburse_to' : IDL.Opt(AccountIdentifier),
|
|
1658
|
+
'timestamp_of_disbursement_seconds' : IDL.Opt(IDL.Nat64),
|
|
1659
|
+
'amount_e8s' : IDL.Opt(IDL.Nat64),
|
|
1660
|
+
'account_to_disburse_to' : IDL.Opt(Account),
|
|
1661
|
+
'finalize_disbursement_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1662
|
+
});
|
|
1623
1663
|
const DissolveState = IDL.Variant({
|
|
1624
1664
|
'DissolveDelaySeconds' : IDL.Nat64,
|
|
1625
1665
|
'WhenDissolvedTimestampSeconds' : IDL.Nat64,
|
|
@@ -1643,6 +1683,9 @@ export const init = ({ IDL }) => {
|
|
|
1643
1683
|
'hot_keys' : IDL.Vec(IDL.Principal),
|
|
1644
1684
|
'account' : IDL.Vec(IDL.Nat8),
|
|
1645
1685
|
'joined_community_fund_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1686
|
+
'maturity_disbursements_in_progress' : IDL.Opt(
|
|
1687
|
+
IDL.Vec(MaturityDisbursement)
|
|
1688
|
+
),
|
|
1646
1689
|
'dissolve_state' : IDL.Opt(DissolveState),
|
|
1647
1690
|
'followees' : IDL.Vec(IDL.Tuple(IDL.Int32, Followees)),
|
|
1648
1691
|
'neuron_fees_e8s' : IDL.Nat64,
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 9bdaa01adf (2025-06-25) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
|
|
2
2
|
type AddWasmRequest = record {
|
|
3
3
|
hash : blob;
|
|
4
4
|
wasm : opt SnsWasm;
|