Skip to content

Commit

Permalink
feat: export localhost deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli committed Oct 18, 2024
1 parent a72a642 commit 0671b6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/dist
/docs
/export/artifacts
/export/abi/localhost.json
/node_modules
/out
/src/types
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0671b6b

Please sign in to comment.