UNPKG

@q-dev/gdk-sdk

Version:

Typescript Library to interact with GDK Contracts

36 lines (35 loc) 2.3 kB
import { BigNumberish, ContractTransaction, providers, Signer } from "ethers"; import { DAOMemberStorageInstance, DAOParameterStorageInstance, DAORegistryInstance, DAOVotingInstance, DAOVaultInstance, PermissionManagerInstance, CreateVotingParameters } from "../index"; import { ParameterStructOutput } from "../ethers-contracts/DAOParameterStorage"; export declare class DAOInstance { signer: Signer | providers.Provider; DAORegistry: string; DAORegistryInstance: DAORegistryInstance; constructor(signer: Signer | providers.Provider, DAORegistry: string); getConstitutionHash(): Promise<string>; getPanelVotingTokenAddress(panelName: string): Promise<string>; getPermissionManagerInstance(): Promise<PermissionManagerInstance>; getVaultInstance(): Promise<DAOVaultInstance>; getDAOVotingInstance(panelName: string): Promise<DAOVotingInstance>; getExpertsVotingInstance(panelName: string): Promise<DAOVotingInstance>; getGeneralVotingInstance(panelName: string): Promise<DAOVotingInstance>; getMemberStorageInstance(panelName: string): Promise<DAOMemberStorageInstance>; getConfParameterStorageInstance(panelName: string): Promise<DAOParameterStorageInstance>; getRegParameterStorageInstance(panelName: string): Promise<DAOParameterStorageInstance>; createVoting(votingInstance: DAOVotingInstance, params: CreateVotingParameters): Promise<ContractTransaction>; getAggregatedParameters(panelName: string): Promise<ParameterStructOutput[]>; getProposalTotalParticipate(panelName: string, proposalId: BigNumberish): Promise<BigNumberish>; /** * Checks if the DAO supports external links in voting situations. * * This method verifies if the DAO's voting contract can handle external links associated with voting proposals. * It returns true if the DAO's contract has been updated to support this feature (or it was initially deployed * with support for external links). * * Note: Older contract versions, which were created before the introduction of external link support, will cause * this method to throw an error and return false. * * @returns {Promise<boolean>} True if external links are supported, false otherwise. */ doesDaoSupportExternalLinks(): Promise<boolean>; }