Skip to content

Commit

Permalink
Remove contracts v1.1.1 from typechain generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
tmjssz committed Jan 26, 2024
1 parent 915bd42 commit a2e13aa
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions packages/protocol-kit/scripts/generateTypechainFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand All @@ -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`,
Expand All @@ -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`
Expand Down

0 comments on commit a2e13aa

Please sign in to comment.