diff --git a/.gitignore b/.gitignore index d6f98ab0f..bd6fd7c78 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,3 @@ yarn-error.log* # Snapshot blockchain/ - -# Ouputs -deployments/outputs.ts diff --git a/artifacts/index.ts b/artifacts/index.ts index a885ef9ef..773ebc2e6 100644 --- a/artifacts/index.ts +++ b/artifacts/index.ts @@ -37,7 +37,7 @@ import { WethMock } from "./ts/WethMock"; import { WhiteList } from "./ts/WhiteList"; import { ZeroExExchangeWrapper } from "./ts/ZeroExExchangeWrapper"; - +import { outputs } from "./outputs"; // Export abi-gen contract wrappers export { @@ -123,3 +123,7 @@ export { ZeroExExchangeWrapper, }; +// Export the contract addresses +export { + outputs as Deployments +}; \ No newline at end of file diff --git a/deployments/outputs.ts b/artifacts/outputs.ts similarity index 100% rename from deployments/outputs.ts rename to artifacts/outputs.ts diff --git a/scripts/generate_outputs.sh b/scripts/generate_outputs.sh index 2a5d202ac..fd5c809ee 100644 --- a/scripts/generate_outputs.sh +++ b/scripts/generate_outputs.sh @@ -1,12 +1,12 @@ # To make it really easy to work with the outputs file from the manager, # this script converts the JSON file into a typescript file -# Remove old transpiled outputs from the deployments/ directory -rm -f deployments/outputs.ts +# Remove old transpiled outputs from the artifacts/ directory +rm -f artifacts/outputs.ts # Output a TS file from the generated JSON file filename=outputs filename_base=$(basename $filename .json) -echo -e "export const $filename_base = " > "deployments/$filename_base.ts" -cat "deployments/$filename_base.json" >> "deployments/$filename_base.ts" \ No newline at end of file +echo -e "export const $filename_base = " > "artifacts/$filename_base.ts" +cat "deployments/$filename_base.json" >> "artifacts/$filename_base.ts" \ No newline at end of file