Compare commits
2 Commits
8eff5e13a5
...
2b480a63f2
Author | SHA1 | Date |
---|---|---|
Ladd Hoffman | 2b480a63f2 | |
Ladd Hoffman | 4e2ce3a261 |
|
@ -107,6 +107,12 @@ or
|
|||
|
||||
npm install
|
||||
|
||||
1. Copy the example configuration file
|
||||
|
||||
cp .env.example .env
|
||||
|
||||
1. In `.env`, set a value for `SEED_PHRASE` or `LOCAL_PRIVATE_KEY`
|
||||
|
||||
1. Run a hardhat node
|
||||
|
||||
npx hardhat node
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
API_URL="https://demo.dgov.io/api"
|
||||
CA_PATH=
|
||||
LOCAL_PRIVATE_KEY=
|
||||
SEPOLIA_PRIVATE_KEY=
|
||||
MAINNET_PRIVATE_KEY=
|
||||
SEED_PHRASE=
|
||||
ETHERSCAN_API_KEY=
|
||||
WORK1_PRICE="0.001"
|
||||
ONBOARDING_PRICE="0.001"
|
|
@ -7,19 +7,23 @@ module.exports = {
|
|||
solidity: '0.8.24',
|
||||
networks: {
|
||||
hardhat: {
|
||||
accounts: {
|
||||
mnemonic: process.env.SEED_PHRASE,
|
||||
},
|
||||
accounts: process.env.SEED_PHRASE
|
||||
? { mnemonic: process.env.SEED_PHRASE }
|
||||
: [process.env.LOCAL_PRIVATE_KEY],
|
||||
chainId: 1337,
|
||||
},
|
||||
sepolia: {
|
||||
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
|
||||
accounts: [process.env.SEPOLIA_PRIVATE_KEY],
|
||||
},
|
||||
mainnet: {
|
||||
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
|
||||
accounts: [process.env.MAINNET_PRIVATE_KEY],
|
||||
},
|
||||
...process.env.SEPOLIA_PRIVATE_KEY ? {
|
||||
sepolia: {
|
||||
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
|
||||
accounts: [process.env.SEPOLIA_PRIVATE_KEY],
|
||||
},
|
||||
} : {},
|
||||
...process.env.MAINNET_PRIVATE_KEY ? {
|
||||
mainnet: {
|
||||
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
|
||||
accounts: [process.env.MAINNET_PRIVATE_KEY],
|
||||
},
|
||||
} : {},
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: {
|
||||
|
|
Loading…
Reference in New Issue