Merge pull request #2 from tornadocash/fork-deploy-utils

Fork deploy utils
This commit is contained in:
Alexander Drygin 2022-04-08 19:49:35 +03:00 committed by GitHub
commit 0321d448e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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: {