UNPKG

@rep3/rep3-sdk

Version:

`rep3-sdk` is the ts package for projects to integrate rep3-protocol and services in their projects. This documentation will provide various ways and code snippets for the same. To know more about the protocol head over to our [docs](https://docs.rep3.gg/

22 lines (20 loc) 518 B
import { getApproversOfDao } from '../subgraphQuery'; import { subgraphGetterFunction } from './subgraphGetters'; export const getApproversForDao = async ( contractAddress: string, subgraphUrl: string ): Promise<[string]> => { try { const approvers = await subgraphGetterFunction( getApproversOfDao, { contractAddress, }, subgraphUrl ); console.log('approvers are', approvers); return approvers?.data?.daos?.[0]?.approver; } catch (err) { throw err; } };