import { ethers } from 'ethers' import { execute, QueryOption } from '../utils/execute' export type CreateBalanceOfCaller = ( contract: ethers.Contract, ) => (address: string) => Promise export const createBalanceOfCaller: CreateBalanceOfCaller = (contract: ethers.Contract) => async (address: string) => execute({ contract, method: 'balanceOf', args: [address], mutation: false, })