@dfinity/sns
Version: 
A library for interfacing with a Service Nervous System (SNS) project.
17 lines (16 loc) • 870 B
TypeScript
import { Canister } from "@dfinity/utils";
import type { _SERVICE as SnsGovernanceTestService } from "../candid/sns_governance_test";
import type { SnsCanisterOptions } from "./types/canister.options";
import type { SnsAddMaturityParams } from "./types/governance_test.params";
export declare class SnsGovernanceTestCanister extends Canister<SnsGovernanceTestService> {
    /**
     * Instantiate a canister to interact with the governance of a Sns project.
     *
     * @param {SnsCanisterOptions} options Miscellaneous options to initialize the canister. Its ID being the only mandatory parammeter.
     */
    static create(options: SnsCanisterOptions<SnsGovernanceTestService>): SnsGovernanceTestCanister;
    /**
     * Add maturity to a neuron (only for testing purposes. Testnet only.)
     */
    addMaturity: (params: SnsAddMaturityParams) => Promise<void>;
}