Compare commits
No commits in common. "2b480a63f2ca06b6b39d296c65b35267f8f4f1d0" and "8eff5e13a5a54a1b2137a2e0855f7a7766c6ae00" have entirely different histories.
2b480a63f2
...
8eff5e13a5
|
@ -107,12 +107,6 @@ 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,9 +1,7 @@
|
|||
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,23 +7,19 @@ module.exports = {
|
|||
solidity: '0.8.24',
|
||||
networks: {
|
||||
hardhat: {
|
||||
accounts: process.env.SEED_PHRASE
|
||||
? { mnemonic: process.env.SEED_PHRASE }
|
||||
: [process.env.LOCAL_PRIVATE_KEY],
|
||||
accounts: {
|
||||
mnemonic: process.env.SEED_PHRASE,
|
||||
},
|
||||
chainId: 1337,
|
||||
},
|
||||
...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],
|
||||
},
|
||||
} : {},
|
||||
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],
|
||||
},
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: {
|
||||
|
|
Loading…
Reference in New Issue