/* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */ import { ethers } from 'ethers' import { execute, QueryOption } from '../../common/utils/execute' export type CreateMetricsOfPropertyCaller = ( contract: ethers.Contract, ) => (propertyAddress: string) => Promise export const createMetricsOfPropertyCaller: CreateMetricsOfPropertyCaller = (contract: ethers.Contract) => (propertyAddress: string) => execute({ contract, method: 'metricsOfProperty', args: [propertyAddress], mutation: false, })