04a0479236
* chore: ignore hardhat cache files * test: add forking hardhat config * test: install cypress-hardhat * build: add cypress-hardhat * fix: lint * build: add hardhat * build: add @sentry/types * fix: better origin
23 lines
420 B
JavaScript
23 lines
420 B
JavaScript
/* eslint-env node */
|
|
require('dotenv').config()
|
|
|
|
const mainnetFork = {
|
|
url: `https://mainnet.infura.io/v3/${process.env.REACT_APP_INFURA_KEY}`,
|
|
blockNumber: 17023328,
|
|
httpHeaders: {
|
|
Origin: 'localhost:3000', // infura allowlists requests by origin
|
|
},
|
|
}
|
|
|
|
module.exports = {
|
|
networks: {
|
|
hardhat: {
|
|
chainId: 1,
|
|
forking: mainnetFork,
|
|
accounts: {
|
|
count: 1,
|
|
},
|
|
},
|
|
},
|
|
}
|