From a2e13aa149ed58f829bd54a4ac1ba52a7aed0683 Mon Sep 17 00:00:00 2001 From: Tim Schwarz <4171783+tmjssz@users.noreply.github.com> Date: Thu, 25 Jan 2024 15:54:16 +0100 Subject: [PATCH] Remove contracts v1.1.1 from typechain generation script --- .../scripts/generateTypechainFiles.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/protocol-kit/scripts/generateTypechainFiles.ts b/packages/protocol-kit/scripts/generateTypechainFiles.ts index 304a2b617..174870030 100644 --- a/packages/protocol-kit/scripts/generateTypechainFiles.ts +++ b/packages/protocol-kit/scripts/generateTypechainFiles.ts @@ -29,10 +29,6 @@ const safeContracts_V1_3_0 = [ `${safeContractsPath}/v1.3.0/create_call.json`, `${safeContractsPath}/v1.3.0/simulate_tx_accessor.json` ].join(' ') -const safeContracts_V1_1_1 = [ - // `${safeContractsPath}/v1.1.1/gnosis_safe.json`, // Remove contract 1.1.1 from typechain as it's migrated to Abitype, - // `${safeContractsPath}/v1.1.1/proxy_factory.json`, // Remove contract 1.1.1 from typechain as it's migrated to Abitype, -].join(' ') const safeContracts_V1_0_0 = [ `${safeContractsPath}/v1.0.0/gnosis_safe.json` // `${safeContractsPath}/v1.0.0/proxy_factory.json` // Remove contract 1.0.0 from typechain as it's migrated to Abitype @@ -90,7 +86,7 @@ function moveTypechainFiles(inDir: string, outDir: string): void { }) } -// Contract 1.2.0 is migrated to Abitype already, so it's not included in here +// Contracts v1.1.1 + v1.2.0 are migrated to Abitype already, so they're not included in here function generateTypes(typechainTarget: string) { // Src generateTypechainFiles( @@ -103,11 +99,6 @@ function generateTypes(typechainTarget: string) { `${outDirSrc}${typechainTarget}/v1.3.0`, safeContracts_V1_3_0 ) - generateTypechainFiles( - typechainTarget, - `${outDirSrc}${typechainTarget}/v1.1.1`, - safeContracts_V1_1_1 - ) generateTypechainFiles( typechainTarget, `${outDirSrc}${typechainTarget}/v1.0.0`, @@ -121,10 +112,6 @@ function generateTypes(typechainTarget: string) { `${typeChainDirectorySrcPath}${typechainTarget}/v1.3.0`, `${typeChainDirectoryBuildPath}${typechainTarget}/v1.3.0` ) - moveTypechainFiles( - `${typeChainDirectorySrcPath}${typechainTarget}/v1.1.1`, - `${typeChainDirectoryBuildPath}${typechainTarget}/v1.1.1` - ) moveTypechainFiles( `${typeChainDirectorySrcPath}${typechainTarget}/v1.0.0`, `${typeChainDirectoryBuildPath}${typechainTarget}/v1.0.0`