UNPKG

@dfinity/nns

Version:

A library for interfacing with the Internet Computer's Network Nervous System.

22 lines (21 loc) 766 B
import type { Command_1, _SERVICE as GovernanceService, ManageNeuronRequest, ManageNeuronResponse } from "../../../candid/governance"; /** * Checks a Manage Neuron Response for error and returns successful response data. * * @throws {@link GovernanceError} */ export declare const getSuccessfulCommandFromResponse: (response: ManageNeuronResponse) => Command_1; /** * @throws {@link GovernanceError} */ export declare const manageNeuron: ({ request, service, }: { request: ManageNeuronRequest; service: GovernanceService; }) => Promise<Command_1>; /** * @throws {@link GovernanceError} */ export declare const simulateManageNeuron: ({ request, service, }: { request: ManageNeuronRequest; service: GovernanceService; }) => Promise<Command_1>;