-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redefine environment variables for hardhat config (#380)
To simplify running the hardhat node for integration tests we defined hardhat network in the hardhat config file and a command to run the node with `pnpm run node:forking`. We also separated environment variables and used `dotenv-safer` to handle them. The `.env` file will be automatically created based on the `.env.example` if it is not available. To run the integration tests we need to define `MAINNET_RPC_URL` in the `.env` file.
- Loading branch information
Showing
10 changed files
with
73 additions
and
25 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
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 |
---|---|---|
|
@@ -13,5 +13,7 @@ tmp/ | |
|
||
# Environment configuration files | ||
.envrc | ||
.env | ||
.env.* | ||
!.env.example | ||
!.env.ci.example |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
CHAIN_API_URL= | ||
ACCOUNTS_PRIVATE_KEYS= | ||
MAINNET_RPC_URL= | ||
MAINNET_PRIVATE_KEY= | ||
|
||
SEPOLIA_RPC_URL= | ||
SEPOLIA_PRIVATE_KEY= | ||
|
||
ETHERSCAN_API_KEY= | ||
|
||
COINMARKETCAP_API_KEY= |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module "dotenv-safer" { | ||
// eslint-disable-next-line import/prefer-default-export | ||
export function config(options = {}) | ||
} |