UNPKG

decent-sdk

Version:

SDK for the Decent API

42 lines (41 loc) 934 B
import { Address, Hex } from '../../types/Common'; import { SupportedChainId } from '../../types/Chains'; export type BaseParams = { apiUrl?: string; }; export type VerifySiweParams = { message: string; signature: Hex; apiUrl?: string; }; export type GetAllCommentsParams = { chainId: SupportedChainId; address: Address; slug: string; apiUrl?: string; }; export type GetDaoParams = { chainId: SupportedChainId; address: Address; apiUrl?: string; }; export type GetAllDaosFilterParams = { chainId?: SupportedChainId; apiUrl?: string; }; export type GenericFetchParams = { route: string; options?: RequestInit; apiUrl?: string; }; export type GetAllProposalsParams = { chainId: SupportedChainId; address: Address; apiUrl?: string; }; export type ProposalParams = { chainId: SupportedChainId; address: Address; slug: string; apiUrl?: string; };