@dfinity/nns 7.0.2 → 8.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.
Files changed (32) hide show
  1. package/README.md +53 -44
  2. package/dist/candid/genesis_token.did +1 -1
  3. package/dist/candid/governance.certified.idl.js +6 -0
  4. package/dist/candid/governance.d.ts +4 -0
  5. package/dist/candid/governance.did +5 -1
  6. package/dist/candid/governance.idl.js +6 -0
  7. package/dist/candid/governance_test.certified.idl.js +6 -0
  8. package/dist/candid/governance_test.d.ts +4 -0
  9. package/dist/candid/governance_test.did +5 -1
  10. package/dist/candid/governance_test.idl.js +6 -0
  11. package/dist/candid/sns_wasm.did +1 -1
  12. package/dist/cjs/index.cjs.js +1 -1
  13. package/dist/cjs/index.cjs.js.map +4 -4
  14. package/dist/esm/{chunk-3GMJYFVP.js → chunk-4KESFT3P.js} +2 -2
  15. package/dist/esm/{chunk-KCY3PAEP.js → chunk-IIFH2XLR.js} +1 -1
  16. package/dist/esm/{chunk-YKKQOXDQ.js → chunk-UZGLNEQP.js} +2 -2
  17. package/dist/esm/chunk-XGNDCDDQ.js +19 -0
  18. package/dist/esm/chunk-XGNDCDDQ.js.map +7 -0
  19. package/dist/esm/genesis_token.canister.js +1 -1
  20. package/dist/esm/governance.canister.js +1 -1
  21. package/dist/esm/index.js +1 -1
  22. package/dist/esm/index.js.map +4 -4
  23. package/dist/esm/sns_wasm.canister.js +1 -1
  24. package/dist/types/governance.canister.d.ts +0 -16
  25. package/dist/types/types/governance_converters.d.ts +1 -0
  26. package/dist/types/utils/neurons.utils.d.ts +11 -0
  27. package/package.json +3 -3
  28. package/dist/esm/chunk-BL4SIQCO.js +0 -19
  29. package/dist/esm/chunk-BL4SIQCO.js.map +0 -7
  30. /package/dist/esm/{chunk-3GMJYFVP.js.map → chunk-4KESFT3P.js.map} +0 -0
  31. /package/dist/esm/{chunk-KCY3PAEP.js.map → chunk-IIFH2XLR.js.map} +0 -0
  32. /package/dist/esm/{chunk-YKKQOXDQ.js.map → chunk-UZGLNEQP.js.map} +0 -0
@@ -561,6 +561,7 @@ export const idlFactory = ({ IDL }) => {
561
561
  'reject_cost_e8s' : IDL.Nat64,
562
562
  'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
563
563
  'latest_tally' : IDL.Opt(Tally),
564
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
564
565
  'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
565
566
  'decided_timestamp_seconds' : IDL.Nat64,
566
567
  'proposal' : IDL.Opt(Proposal),
@@ -599,6 +600,7 @@ export const idlFactory = ({ IDL }) => {
599
600
  'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
600
601
  'controller' : IDL.Opt(IDL.Principal),
601
602
  'recent_ballots' : IDL.Vec(BallotInfo),
603
+ 'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
602
604
  'kyc_verified' : IDL.Bool,
603
605
  'neuron_type' : IDL.Opt(IDL.Int32),
604
606
  'not_for_profit' : IDL.Bool,
@@ -666,6 +668,7 @@ export const idlFactory = ({ IDL }) => {
666
668
  const NeuronInfo = IDL.Record({
667
669
  'dissolve_delay_seconds' : IDL.Nat64,
668
670
  'recent_ballots' : IDL.Vec(BallotInfo),
671
+ 'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
669
672
  'neuron_type' : IDL.Opt(IDL.Int32),
670
673
  'created_timestamp_seconds' : IDL.Nat64,
671
674
  'state' : IDL.Int32,
@@ -710,6 +713,7 @@ export const idlFactory = ({ IDL }) => {
710
713
  'reject_cost_e8s' : IDL.Nat64,
711
714
  'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
712
715
  'latest_tally' : IDL.Opt(Tally),
716
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
713
717
  'reward_status' : IDL.Int32,
714
718
  'decided_timestamp_seconds' : IDL.Nat64,
715
719
  'proposal' : IDL.Opt(Proposal),
@@ -1543,6 +1547,7 @@ export const init = ({ IDL }) => {
1543
1547
  'reject_cost_e8s' : IDL.Nat64,
1544
1548
  'derived_proposal_information' : IDL.Opt(DerivedProposalInformation),
1545
1549
  'latest_tally' : IDL.Opt(Tally),
1550
+ 'total_potential_voting_power' : IDL.Opt(IDL.Nat64),
1546
1551
  'sns_token_swap_lifecycle' : IDL.Opt(IDL.Int32),
1547
1552
  'decided_timestamp_seconds' : IDL.Nat64,
1548
1553
  'proposal' : IDL.Opt(Proposal),
@@ -1581,6 +1586,7 @@ export const init = ({ IDL }) => {
1581
1586
  'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
1582
1587
  'controller' : IDL.Opt(IDL.Principal),
1583
1588
  'recent_ballots' : IDL.Vec(BallotInfo),
1589
+ 'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
1584
1590
  'kyc_verified' : IDL.Bool,
1585
1591
  'neuron_type' : IDL.Opt(IDL.Int32),
1586
1592
  'not_for_profit' : IDL.Bool,
@@ -1,4 +1,4 @@
1
- // Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
1
+ // Generated from IC repo commit cb3cb61 (2024-11-14 tags: release-2024-11-14_03-07-base) '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;