import { ethers } from 'ethers' import { execute, QueryOption } from '../../common/utils/execute' import { T } from 'ramda' export type CreateIsGroupCaller = ( contract: ethers.Contract, ) => (policyAddress: string) => Promise export const createIsGroupCaller: CreateIsGroupCaller = (contract: ethers.Contract) => async (policyAddress: string): Promise => execute({ contract, method: 'isGroup', args: [policyAddress], mutation: false, }).then(T)