diff --git a/.env.example b/.env.example index 166127c..fdd1984 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ -ETHERSCAN_KEY= -ALCHEMY_KEY= -PRIVATE_KEY= -INFURA_API_KEY= +ETHERSCAN_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 +ALCHEMY_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 +PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 +INFURA_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 +FORKNET_RPC_URL=https://link-to.fork diff --git a/README.md b/README.md index a09bc7d..a7d718e 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ Check addresses with current config: node -e 'require("./src/generateAddresses").generateWithLog()' ``` -Deploy InstanceFactory: +Deploy MultipleInstanceFactory: ```shell yarn hardhat run scripts/deployMultipleInstanceFactory.js --network mainnet diff --git a/hardhat.config.js b/hardhat.config.js index f03f3e1..233dad7 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -69,6 +69,14 @@ module.exports = { ? [process.env.PRIVATE_KEY] : { mnemonic: 'test test test test test junk' }, }, + ...(typeof process.env.FORKNET_RPC_URL === 'string' && { + forknet: { + url: process.env.FORKNET_RPC_URL, + accounts: process.env.PRIVATE_KEY + ? [process.env.PRIVATE_KEY] + : { mnemonic: 'test test test test test junk' }, + }, + }), }, mocha: { timeout: 9999999999 }, spdxLicenseIdentifier: {