diff --git a/src/clients/Colony/ColonyClientV12.ts b/src/clients/Colony/ColonyClientV12.ts index 51da9c21f..b92f53954 100644 --- a/src/clients/Colony/ColonyClientV12.ts +++ b/src/clients/Colony/ColonyClientV12.ts @@ -57,6 +57,8 @@ type ColonyExtensions = Omit< ColonyExtensionsV11 & ColonyExtensionsV12; +// eslint-disable-next-line @typescript-eslint/ban-ts-ignore +// @ts-ignore export type ColonyClientV12 = ColonyExtensions & { clientVersion: ColonyVersion.GreenLightweightSpaceshipThree; estimate: ExtendedIColony['estimate'] & ExtendedEstimateV12; diff --git a/src/clients/Colony/ColonyClientV13.ts b/src/clients/Colony/ColonyClientV13.ts index 6d9419d2e..cc113a622 100644 --- a/src/clients/Colony/ColonyClientV13.ts +++ b/src/clients/Colony/ColonyClientV13.ts @@ -117,6 +117,7 @@ export default function getColonyClient( * when creating new Colony version clients */ const colonyClientV13 = { + // eslint-disable-next-line @typescript-eslint/ban-ts-ignore // @ts-ignore ...customEthersContractInstace, interface: { diff --git a/src/clients/Colony/extensions/extensionsV13.ts b/src/clients/Colony/extensions/extensionsV13.ts index e41e15bf7..882f59f25 100644 --- a/src/clients/Colony/extensions/extensionsV13.ts +++ b/src/clients/Colony/extensions/extensionsV13.ts @@ -17,15 +17,15 @@ import { ColonyExtensionsV8 } from './extensionsV8'; import { ColonyExtensionsV9 } from './extensionsV9'; import { ColonyExtensionsV10 } from './extensionsV10'; import { ColonyExtensionsV11 } from './extensionsV11'; -import { ColonyExtensionsV12 } from './extensionsV12'; import { - addExtensions as addExtensionsV13, - ColonyExtensionsV13, - ExtendedEstimateV13, -} from './extensionsV13'; + addExtensions as addExtensionsV12, + ColonyExtensionsV12, + ExtendedEstimateV12, +} from './extensionsV12'; type ValidColony = IColonyV13; +// eslint-disable-next-line @typescript-eslint/ban-ts-ignore // @ts-ignore type PreviousVersionsExtensions = ExtendedIColony & ColonyExtensionsV3 & @@ -49,6 +49,8 @@ export type ExtendedEstimateV13 = ExtendedEstimateV12; */ export type ColonyExtensionsV13< T extends ValidColony + // eslint-disable-next-line @typescript-eslint/ban-ts-ignore + // @ts-ignore > = {} & PreviousVersionsExtensions; /* @@ -59,7 +61,9 @@ export const addExtensions = ( networkClient: ColonyNetworkClient, ): ColonyExtensionsV12 => { // Add all extensions from v7, because these are also still valid - const extendedInstance = addExtensionsV13( + const extendedInstance = addExtensionsV12( + // eslint-disable-next-line @typescript-eslint/ban-ts-ignore + // @ts-ignore instance as PreviousVersionsExtensions, networkClient, ) as ColonyExtensionsV13; diff --git a/src/helpers.ts b/src/helpers.ts index 8b730cd6b..38c802649 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -71,6 +71,8 @@ export const getBlockTime = async ( * @returns ethers Log array */ export const getLogs = async ( + // eslint-disable-next-line @typescript-eslint/ban-ts-ignore + // @ts-ignore client: ContractClient | AwkwardRecoveryRoleEventClient, filter: Filter, options: LogOptions = {