/* eslint-disable @typescript-eslint/prefer-readonly-parameter-types */ import { ethers } from 'ethers' import { execute, FallbackableOverrides, MutationOption, } from '../../common/utils/execute' import type { TransactionResponse } from 'ethers' export type CreateMigrateToSTokensCaller = ( contract: ethers.Contract, ) => ( propertyAddress: string, overrides?: FallbackableOverrides, ) => Promise export const createMigrateToSTokensCaller: CreateMigrateToSTokensCaller = (contract: ethers.Contract) => async (propertyAddress: string, overrides?: FallbackableOverrides) => execute({ contract, method: 'migrateToSTokens', mutation: true, args: [propertyAddress], overrides, })