UNPKG

@dfinity/sns

Version:

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

20 lines (19 loc) 885 B
import { Canister } from "@dfinity/utils"; import type { ListSnsCanistersResponse, _SERVICE as SnsRootService } from "../candid/sns_root"; import type { SnsCanisterOptions } from "./types/canister.options"; export declare class SnsRootCanister extends Canister<SnsRootService> { static create(options: SnsCanisterOptions<SnsRootService>): SnsRootCanister; /** * List the canisters that are part of the Sns. * * Source code: https://github.com/dfinity/ic/blob/master/rs/sns/root/src/lib.rs * * @param {Object} params * @param {boolean} [params.certified=true] - Query or update calls * * @returns {ListSnsCanistersResponse} - A list of canisters ('root' | 'governance' | 'ledger' | 'dapps' | 'swap' | 'archives') */ listSnsCanisters: ({ certified, }: { certified?: boolean; }) => Promise<ListSnsCanistersResponse>; }