import { ethers } from 'ethers' import { execute, QueryOption } from '../../common/utils/execute' export type CreateRegistriesCaller = ( contract: ethers.Contract, ) => (key: string) => Promise export const createRegistriesCaller: CreateRegistriesCaller = (contract: ethers.Contract) => (key: string) => execute({ contract, method: 'registries', args: [key], mutation: false, })