UNPKG

@dfinity/sns

Version:

A library for interfacing with a Service Nervous System (SNS) project.

15 lines (14 loc) 453 B
import type { IcrcSubaccount } from "@dfinity/ledger-icrc"; import type { Principal } from "@dfinity/principal"; /** * Neuron subaccount is calculated as "sha256(0x0c . “neuron-stake” . controller . i)" * * @param params * @param {Principal} params.newController * @param {number} params.index * @returns */ export declare const neuronSubaccount: ({ index, controller, }: { index: number; controller: Principal; }) => IcrcSubaccount;