From 0671b6b3144c195944ac0302f3945be7856222c6 Mon Sep 17 00:00:00 2001 From: Guilherme Dantas Date: Thu, 17 Oct 2024 13:19:10 -0300 Subject: [PATCH] feat: export localhost deployment --- .gitignore | 1 + README.md | 2 +- package.json | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 449382dc..c6a8b6f9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /dist /docs /export/artifacts +/export/abi/localhost.json /node_modules /out /src/types diff --git a/README.md b/README.md index 49f48c72..757ef025 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ pnpm start If, instead, you wish to deploy the contracts to an already running node (e.g. [Anvil](https://book.getfoundry.sh/anvil/)), you can do so by running the following command. ```sh -pnpm deploy:development +pnpm deploy:localhost ``` If the node is not listening to `http://localhost:8545/`, please set the `RPC_URL` environment variable accordingly. diff --git a/package.json b/package.json index 64c4a982..e9a9896b 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,11 @@ "clean:ignored": "rimraf artifacts cache coverage deployments/localhost dist generated-src src/types/*", "compile": "hardhat compile", "copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist/src", - "deploy": "run-s deploy:development", + "deploy": "run-s deploy:localhost", "deploy:arbitrum": "hardhat deploy --network arbitrum --export export/abi/arbitrum.json", "deploy:arbitrum_sepolia": "hardhat deploy --network arbitrum_sepolia --export export/abi/arbitrum_sepolia.json", - "deploy:development": "hardhat deploy --network localhost", + "deploy:development": "run-s deploy:localhost", + "deploy:localhost": "hardhat deploy --network localhost --export export/abi/localhost.json", "deploy:mainnet": "hardhat deploy --network mainnet --export export/abi/mainnet.json", "deploy:mainnets": "run-s deploy:arbitrum deploy:mainnet deploy:optimism", "deploy:optimism": "hardhat deploy --network optimism --export export/abi/optimism.json",