@dfinity/nns 11.1.4-next-2025-12-08.1 → 11.1.4-next-2025-12-10

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 (49) hide show
  1. package/dist/index.d.ts +5 -15
  2. package/dist/index.js +1 -7
  3. package/dist/index.js.map +4 -4
  4. package/dist/index.mjs +1 -7
  5. package/dist/index.mjs.map +4 -4
  6. package/package.json +3 -5
  7. package/dist/candid/genesis_token.certified.idl.d.ts +0 -2
  8. package/dist/candid/genesis_token.certified.idl.js +0 -49
  9. package/dist/candid/genesis_token.d.ts +0 -46
  10. package/dist/candid/genesis_token.did +0 -49
  11. package/dist/candid/genesis_token.idl.d.ts +0 -2
  12. package/dist/candid/genesis_token.idl.js +0 -49
  13. package/dist/candid/governance.certified.idl.d.ts +0 -2
  14. package/dist/candid/governance.certified.idl.js +0 -1832
  15. package/dist/candid/governance.d.ts +0 -1360
  16. package/dist/candid/governance.did +0 -1500
  17. package/dist/candid/governance.idl.d.ts +0 -2
  18. package/dist/candid/governance.idl.js +0 -1840
  19. package/dist/candid/governance_test.certified.idl.d.ts +0 -2
  20. package/dist/candid/governance_test.certified.idl.js +0 -1833
  21. package/dist/candid/governance_test.d.ts +0 -1364
  22. package/dist/candid/governance_test.did +0 -1503
  23. package/dist/candid/governance_test.idl.d.ts +0 -2
  24. package/dist/candid/governance_test.idl.js +0 -1841
  25. package/dist/candid/old_list_neurons_service.certified.idl.d.ts +0 -2
  26. package/dist/candid/old_list_neurons_service.certified.idl.js +0 -87
  27. package/dist/candid/sns_wasm.certified.idl.d.ts +0 -2
  28. package/dist/candid/sns_wasm.certified.idl.js +0 -331
  29. package/dist/candid/sns_wasm.d.ts +0 -315
  30. package/dist/candid/sns_wasm.did +0 -350
  31. package/dist/candid/sns_wasm.idl.d.ts +0 -2
  32. package/dist/candid/sns_wasm.idl.js +0 -331
  33. package/dist/canisters/governance/request.converters.d.ts +0 -108
  34. package/dist/canisters/governance/response.converters.d.ts +0 -26
  35. package/dist/canisters/governance/services.d.ts +0 -21
  36. package/dist/constants/canister_ids.d.ts +0 -5
  37. package/dist/constants/constants.d.ts +0 -1
  38. package/dist/enums/governance.enums.d.ts +0 -138
  39. package/dist/errors/governance.errors.d.ts +0 -21
  40. package/dist/genesis_token.canister.d.ts +0 -11
  41. package/dist/governance.canister.d.ts +0 -361
  42. package/dist/governance_test.canister.d.ts +0 -15
  43. package/dist/sns_wasm.canister.d.ts +0 -11
  44. package/dist/types/common.d.ts +0 -6
  45. package/dist/types/governance.options.d.ts +0 -7
  46. package/dist/types/governance_converters.d.ts +0 -822
  47. package/dist/types/sns_wasm.options.d.ts +0 -3
  48. package/dist/utils/account_identifier.utils.d.ts +0 -5
  49. 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;