UNPKG

decent-sdk

Version:

SDK for the Decent API

22 lines (21 loc) 985 B
import { Proposal } from '../types/Proposal'; import { GetAllProposalsParams, ProposalParams } from './common/params'; /** * Fetches all proposals for a specific DAO. * @param params - The parameters for fetching proposals. * @param params.chainId - The ID of the chain. * @param params.address - The address of the DAO. * @param params.apiUrl - Optional API URL override. * @returns A promise that resolves to an array of proposals. */ export declare const getAllProposals: (params: GetAllProposalsParams) => Promise<Proposal[]>; /** * Fetches a specific proposal by its slug. * @param params - The parameters for fetching a proposal. * @param params.chainId - The ID of the chain. * @param params.address - The address of the DAO. * @param params.slug - The slug of the proposal. * @param params.apiUrl - Optional API URL override. * @returns A promise that resolves to the proposal. */ export declare const getProposal: (params: ProposalParams) => Promise<Proposal>;