import { ethers } from 'ethers' import { execute, QueryOption } from '../utils/execute' export type CreateAllowanceCaller = ( contract: ethers.Contract, ) => (from: string, to: string) => Promise export const createAllowanceCaller: CreateAllowanceCaller = (contract: ethers.Contract) => async (from: string, to: string) => execute({ contract, method: 'allowance', args: [from, to], mutation: false, })