@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.
- package/README.md +4 -4
- package/dist/index.d.ts +10 -15
- package/dist/index.js +1 -7
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +1 -7
- package/dist/index.mjs.map +4 -4
- package/package.json +4 -9
- package/dist/candid/genesis_token.certified.idl.d.ts +0 -2
- package/dist/candid/genesis_token.certified.idl.js +0 -49
- package/dist/candid/genesis_token.d.ts +0 -46
- package/dist/candid/genesis_token.did +0 -49
- package/dist/candid/genesis_token.idl.d.ts +0 -2
- package/dist/candid/genesis_token.idl.js +0 -49
- package/dist/candid/governance.certified.idl.d.ts +0 -2
- package/dist/candid/governance.certified.idl.js +0 -1788
- package/dist/candid/governance.d.ts +0 -1339
- package/dist/candid/governance.did +0 -1478
- package/dist/candid/governance.idl.d.ts +0 -2
- package/dist/candid/governance.idl.js +0 -1796
- package/dist/candid/governance_test.certified.idl.d.ts +0 -2
- package/dist/candid/governance_test.certified.idl.js +0 -1789
- package/dist/candid/governance_test.d.ts +0 -1343
- package/dist/candid/governance_test.did +0 -1481
- package/dist/candid/governance_test.idl.d.ts +0 -2
- package/dist/candid/governance_test.idl.js +0 -1797
- package/dist/candid/old_list_neurons_service.certified.idl.d.ts +0 -2
- package/dist/candid/old_list_neurons_service.certified.idl.js +0 -87
- package/dist/candid/sns_wasm.certified.idl.d.ts +0 -2
- package/dist/candid/sns_wasm.certified.idl.js +0 -331
- package/dist/candid/sns_wasm.d.ts +0 -315
- package/dist/candid/sns_wasm.did +0 -350
- package/dist/candid/sns_wasm.idl.d.ts +0 -2
- package/dist/candid/sns_wasm.idl.js +0 -331
- package/dist/canisters/governance/request.converters.d.ts +0 -108
- package/dist/canisters/governance/response.converters.d.ts +0 -26
- package/dist/canisters/governance/services.d.ts +0 -21
- package/dist/constants/canister_ids.d.ts +0 -5
- package/dist/constants/constants.d.ts +0 -1
- package/dist/enums/governance.enums.d.ts +0 -138
- package/dist/errors/governance.errors.d.ts +0 -21
- package/dist/genesis_token.canister.d.ts +0 -11
- package/dist/governance.canister.d.ts +0 -361
- package/dist/governance_test.canister.d.ts +0 -15
- package/dist/sns_wasm.canister.d.ts +0 -11
- package/dist/types/common.d.ts +0 -6
- package/dist/types/governance.options.d.ts +0 -7
- package/dist/types/governance_converters.d.ts +0 -821
- package/dist/types/sns_wasm.options.d.ts +0 -3
- package/dist/utils/account_identifier.utils.d.ts +0 -5
- package/dist/utils/neurons.utils.d.ts +0 -50
|
@@ -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;
|