@dfinity/nns 11.1.4 → 12.0.0-beta-2025-12-11

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 (50) hide show
  1. package/README.md +4 -4
  2. package/dist/index.d.ts +10 -15
  3. package/dist/index.js +1 -7
  4. package/dist/index.js.map +4 -4
  5. package/dist/index.mjs +1 -7
  6. package/dist/index.mjs.map +4 -4
  7. package/package.json +4 -9
  8. package/dist/candid/genesis_token.certified.idl.d.ts +0 -2
  9. package/dist/candid/genesis_token.certified.idl.js +0 -49
  10. package/dist/candid/genesis_token.d.ts +0 -46
  11. package/dist/candid/genesis_token.did +0 -49
  12. package/dist/candid/genesis_token.idl.d.ts +0 -2
  13. package/dist/candid/genesis_token.idl.js +0 -49
  14. package/dist/candid/governance.certified.idl.d.ts +0 -2
  15. package/dist/candid/governance.certified.idl.js +0 -1788
  16. package/dist/candid/governance.d.ts +0 -1339
  17. package/dist/candid/governance.did +0 -1478
  18. package/dist/candid/governance.idl.d.ts +0 -2
  19. package/dist/candid/governance.idl.js +0 -1796
  20. package/dist/candid/governance_test.certified.idl.d.ts +0 -2
  21. package/dist/candid/governance_test.certified.idl.js +0 -1789
  22. package/dist/candid/governance_test.d.ts +0 -1343
  23. package/dist/candid/governance_test.did +0 -1481
  24. package/dist/candid/governance_test.idl.d.ts +0 -2
  25. package/dist/candid/governance_test.idl.js +0 -1797
  26. package/dist/candid/old_list_neurons_service.certified.idl.d.ts +0 -2
  27. package/dist/candid/old_list_neurons_service.certified.idl.js +0 -87
  28. package/dist/candid/sns_wasm.certified.idl.d.ts +0 -2
  29. package/dist/candid/sns_wasm.certified.idl.js +0 -331
  30. package/dist/candid/sns_wasm.d.ts +0 -315
  31. package/dist/candid/sns_wasm.did +0 -350
  32. package/dist/candid/sns_wasm.idl.d.ts +0 -2
  33. package/dist/candid/sns_wasm.idl.js +0 -331
  34. package/dist/canisters/governance/request.converters.d.ts +0 -108
  35. package/dist/canisters/governance/response.converters.d.ts +0 -26
  36. package/dist/canisters/governance/services.d.ts +0 -21
  37. package/dist/constants/canister_ids.d.ts +0 -5
  38. package/dist/constants/constants.d.ts +0 -1
  39. package/dist/enums/governance.enums.d.ts +0 -138
  40. package/dist/errors/governance.errors.d.ts +0 -21
  41. package/dist/genesis_token.canister.d.ts +0 -11
  42. package/dist/governance.canister.d.ts +0 -361
  43. package/dist/governance_test.canister.d.ts +0 -15
  44. package/dist/sns_wasm.canister.d.ts +0 -11
  45. package/dist/types/common.d.ts +0 -6
  46. package/dist/types/governance.options.d.ts +0 -7
  47. package/dist/types/governance_converters.d.ts +0 -821
  48. package/dist/types/sns_wasm.options.d.ts +0 -3
  49. package/dist/utils/account_identifier.utils.d.ts +0 -5
  50. package/dist/utils/neurons.utils.d.ts +0 -50
@@ -1,3 +0,0 @@
1
- import type { CanisterOptions } from "@dfinity/utils";
2
- import type { _SERVICE as SnsWasmService } from "../candid/sns_wasm";
3
- export type SnsWasmCanisterOptions = CanisterOptions<SnsWasmService>;
@@ -1,5 +0,0 @@
1
- import type { AccountIdentifierHex } from "@dfinity/ledger-icp";
2
- import type { Principal } from "@icp-sdk/core/principal";
3
- export declare const accountIdentifierToBytes: (accountIdentifier: AccountIdentifierHex) => Uint8Array;
4
- export declare const accountIdentifierFromBytes: (accountIdentifier: Uint8Array) => AccountIdentifierHex;
5
- export declare const principalToAccountIdentifier: (principal: Principal, subAccount?: Uint8Array) => string;
@@ -1,50 +0,0 @@
1
- import { AccountIdentifier, SubAccount } from "@dfinity/ledger-icp";
2
- import type { Principal } from "@icp-sdk/core/principal";
3
- import type { NeuronInfo, ProposalInfo } from "../types/governance_converters";
4
- /**
5
- * Filter the neurons that are ineligible to vote to a proposal.
6
- *
7
- * This feature needs the ballots of the proposal to contains accurate data.
8
- * If the proposal has settled, as the ballots of the proposal are emptied for archive purpose, the function might return a list of ineligible neurons that are actually neurons that have not voted but would have been eligible.
9
- *
10
- * Long story short, check the status of the proposal before using this function.
11
- *
12
- * @param {neurons; proposal;} params
13
- * @param params.neurons The neurons to filter.
14
- * @param params.proposal The proposal to match against the selected neurons.
15
- */
16
- export declare const ineligibleNeurons: ({ neurons, proposal, }: {
17
- neurons: NeuronInfo[];
18
- proposal: ProposalInfo;
19
- }) => NeuronInfo[];
20
- /**
21
- * Filter the neurons that can vote for a proposal - i.e. the neurons that have not voted yet and are eligible
22
- *
23
- * @param {neurons; proposal;} params
24
- * @param params.neurons The neurons to filter.
25
- * @param params.proposal The proposal to match against the selected neurons.
26
- */
27
- export declare const votableNeurons: ({ neurons, proposal, }: {
28
- neurons: NeuronInfo[];
29
- proposal: ProposalInfo;
30
- }) => NeuronInfo[];
31
- /**
32
- * Filter the neurons that have voted for a proposal.
33
- *
34
- * @param {neurons; proposal;} params
35
- * @param params.neurons The neurons to filter.
36
- * @param params.proposal The proposal for which some neurons might have already voted.
37
- */
38
- export declare const votedNeurons: ({ neurons, proposal, }: {
39
- neurons: NeuronInfo[];
40
- proposal: ProposalInfo;
41
- }) => NeuronInfo[];
42
- export declare const memoToNeuronSubaccount: ({ controller, memo, }: {
43
- controller: Principal;
44
- memo: bigint;
45
- }) => SubAccount;
46
- export declare const memoToNeuronAccountIdentifier: ({ controller, memo, governanceCanisterId, }: {
47
- controller: Principal;
48
- memo: bigint;
49
- governanceCanisterId: Principal;
50
- }) => AccountIdentifier;