-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change deploy script output file format (#295)
* refactor: change deploy script output file format * chore: remove contract addresses * build: remove contracts.json files from core package * fix: use correct `ProdExecutor` when deploying to production env * fix: pass correct --env argument to verify script
- Loading branch information
Showing
11 changed files
with
66 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,4 @@ node_modules | |
# Test Coverage | ||
coverage* | ||
|
||
/addresses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export const addressesDirPath = __dirname + `/../addresses`; | ||
|
||
const availableEnvironments = [ | ||
'testing', | ||
'staging', | ||
'production', | ||
'hardhat', | ||
'', | ||
]; | ||
|
||
export function isValidEnv(env: string): boolean { | ||
return availableEnvironments.some((e) => e == env); | ||
} | ||
|
||
export function getAddressesFilePath(chainId: number, env?: string): string { | ||
return `${addressesDirPath}/${chainId}${ | ||
env ? `-${env.toLowerCase()}` : '' | ||
}.json`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters