@dfinity/nns 8.0.1 → 8.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.
- package/README.md +45 -32
- package/dist/candid/genesis_token.did +1 -1
- package/dist/candid/governance.certified.idl.js +23 -0
- package/dist/candid/governance.d.ts +14 -0
- package/dist/candid/governance.did +126 -2
- package/dist/candid/governance.idl.js +23 -0
- package/dist/candid/governance_test.certified.idl.js +23 -0
- package/dist/candid/governance_test.d.ts +14 -0
- package/dist/candid/governance_test.did +50 -2
- package/dist/candid/governance_test.idl.js +23 -0
- package/dist/candid/sns_wasm.did +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-2ADVJRZS.js +19 -0
- package/dist/esm/chunk-2ADVJRZS.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 +3 -3
- package/dist/types/canisters/governance/request.converters.d.ts +3 -0
- package/dist/types/governance.canister.d.ts +10 -0
- package/dist/types/types/governance_converters.d.ts +14 -0
- package/package.json +3 -3
- package/dist/esm/chunk-XGNDCDDQ.js +0 -19
- package/dist/esm/chunk-XGNDCDDQ.js.map +0 -7
|
@@ -22,6 +22,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
22
22
|
'topic' : IDL.Int32,
|
|
23
23
|
'followees' : IDL.Vec(NeuronId),
|
|
24
24
|
});
|
|
25
|
+
const RefreshVotingPower = IDL.Record({});
|
|
25
26
|
const ClaimOrRefreshNeuronFromAccount = IDL.Record({
|
|
26
27
|
'controller' : IDL.Opt(IDL.Principal),
|
|
27
28
|
'memo' : IDL.Nat64,
|
|
@@ -86,6 +87,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
86
87
|
'Spawn' : Spawn,
|
|
87
88
|
'Split' : Split,
|
|
88
89
|
'Follow' : Follow,
|
|
90
|
+
'RefreshVotingPower' : RefreshVotingPower,
|
|
89
91
|
'ClaimOrRefresh' : ClaimOrRefresh,
|
|
90
92
|
'Configure' : Configure,
|
|
91
93
|
'RegisterVote' : RegisterVote,
|
|
@@ -274,6 +276,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
274
276
|
'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
|
|
275
277
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
276
278
|
});
|
|
279
|
+
const VotingPowerEconomics = IDL.Record({
|
|
280
|
+
'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
281
|
+
'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
282
|
+
});
|
|
277
283
|
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
278
284
|
const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
|
|
279
285
|
'contribution_threshold_xdr' : IDL.Opt(Decimal),
|
|
@@ -290,6 +296,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
290
296
|
});
|
|
291
297
|
const NetworkEconomics = IDL.Record({
|
|
292
298
|
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
299
|
+
'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
|
|
293
300
|
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
294
301
|
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
295
302
|
'reject_cost_e8s' : IDL.Nat64,
|
|
@@ -602,9 +609,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
602
609
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
603
610
|
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
604
611
|
'kyc_verified' : IDL.Bool,
|
|
612
|
+
'potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
605
613
|
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
606
614
|
'not_for_profit' : IDL.Bool,
|
|
607
615
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
616
|
+
'deciding_voting_power' : IDL.Opt(IDL.Nat64),
|
|
608
617
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
609
618
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
610
619
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
|
@@ -669,7 +678,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
669
678
|
'dissolve_delay_seconds' : IDL.Nat64,
|
|
670
679
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
671
680
|
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
681
|
+
'potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
672
682
|
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
683
|
+
'deciding_voting_power' : IDL.Opt(IDL.Nat64),
|
|
673
684
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
674
685
|
'state' : IDL.Int32,
|
|
675
686
|
'stake_e8s' : IDL.Nat64,
|
|
@@ -790,6 +801,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
790
801
|
'Spawn' : Spawn,
|
|
791
802
|
'Split' : Split,
|
|
792
803
|
'Follow' : Follow,
|
|
804
|
+
'RefreshVotingPower' : RefreshVotingPower,
|
|
793
805
|
'ClaimOrRefresh' : ClaimOrRefresh,
|
|
794
806
|
'Configure' : Configure,
|
|
795
807
|
'RegisterVote' : RegisterVote,
|
|
@@ -808,6 +820,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
808
820
|
})
|
|
809
821
|
);
|
|
810
822
|
const SpawnResponse = IDL.Record({ 'created_neuron_id' : IDL.Opt(NeuronId) });
|
|
823
|
+
const RefreshVotingPowerResponse = IDL.Record({});
|
|
811
824
|
const ClaimOrRefreshResponse = IDL.Record({
|
|
812
825
|
'refreshed_neuron_id' : IDL.Opt(NeuronId),
|
|
813
826
|
});
|
|
@@ -835,6 +848,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
835
848
|
'Spawn' : SpawnResponse,
|
|
836
849
|
'Split' : SpawnResponse,
|
|
837
850
|
'Follow' : IDL.Record({}),
|
|
851
|
+
'RefreshVotingPower' : RefreshVotingPowerResponse,
|
|
838
852
|
'ClaimOrRefresh' : ClaimOrRefreshResponse,
|
|
839
853
|
'Configure' : IDL.Record({}),
|
|
840
854
|
'RegisterVote' : IDL.Record({}),
|
|
@@ -1008,6 +1022,7 @@ export const init = ({ IDL }) => {
|
|
|
1008
1022
|
'topic' : IDL.Int32,
|
|
1009
1023
|
'followees' : IDL.Vec(NeuronId),
|
|
1010
1024
|
});
|
|
1025
|
+
const RefreshVotingPower = IDL.Record({});
|
|
1011
1026
|
const ClaimOrRefreshNeuronFromAccount = IDL.Record({
|
|
1012
1027
|
'controller' : IDL.Opt(IDL.Principal),
|
|
1013
1028
|
'memo' : IDL.Nat64,
|
|
@@ -1072,6 +1087,7 @@ export const init = ({ IDL }) => {
|
|
|
1072
1087
|
'Spawn' : Spawn,
|
|
1073
1088
|
'Split' : Split,
|
|
1074
1089
|
'Follow' : Follow,
|
|
1090
|
+
'RefreshVotingPower' : RefreshVotingPower,
|
|
1075
1091
|
'ClaimOrRefresh' : ClaimOrRefresh,
|
|
1076
1092
|
'Configure' : Configure,
|
|
1077
1093
|
'RegisterVote' : RegisterVote,
|
|
@@ -1260,6 +1276,10 @@ export const init = ({ IDL }) => {
|
|
|
1260
1276
|
'use_registry_derived_rewards' : IDL.Opt(IDL.Bool),
|
|
1261
1277
|
'rewards' : IDL.Vec(RewardNodeProvider),
|
|
1262
1278
|
});
|
|
1279
|
+
const VotingPowerEconomics = IDL.Record({
|
|
1280
|
+
'start_reducing_voting_power_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
1281
|
+
'clear_following_after_seconds' : IDL.Opt(IDL.Nat64),
|
|
1282
|
+
});
|
|
1263
1283
|
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
1264
1284
|
const NeuronsFundMatchedFundingCurveCoefficients = IDL.Record({
|
|
1265
1285
|
'contribution_threshold_xdr' : IDL.Opt(Decimal),
|
|
@@ -1276,6 +1296,7 @@ export const init = ({ IDL }) => {
|
|
|
1276
1296
|
});
|
|
1277
1297
|
const NetworkEconomics = IDL.Record({
|
|
1278
1298
|
'neuron_minimum_stake_e8s' : IDL.Nat64,
|
|
1299
|
+
'voting_power_economics' : IDL.Opt(VotingPowerEconomics),
|
|
1279
1300
|
'max_proposals_to_keep_per_topic' : IDL.Nat32,
|
|
1280
1301
|
'neuron_management_fee_per_proposal_e8s' : IDL.Nat64,
|
|
1281
1302
|
'reject_cost_e8s' : IDL.Nat64,
|
|
@@ -1588,9 +1609,11 @@ export const init = ({ IDL }) => {
|
|
|
1588
1609
|
'recent_ballots' : IDL.Vec(BallotInfo),
|
|
1589
1610
|
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
1590
1611
|
'kyc_verified' : IDL.Bool,
|
|
1612
|
+
'potential_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1591
1613
|
'neuron_type' : IDL.Opt(IDL.Int32),
|
|
1592
1614
|
'not_for_profit' : IDL.Bool,
|
|
1593
1615
|
'maturity_e8s_equivalent' : IDL.Nat64,
|
|
1616
|
+
'deciding_voting_power' : IDL.Opt(IDL.Nat64),
|
|
1594
1617
|
'cached_neuron_stake_e8s' : IDL.Nat64,
|
|
1595
1618
|
'created_timestamp_seconds' : IDL.Nat64,
|
|
1596
1619
|
'auto_stake_maturity' : IDL.Opt(IDL.Bool),
|
package/dist/candid/sns_wasm.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit 0f35ac817b (2024-12-06) '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;
|