* chore: e2e test (un/)wrap transactions * wrap button should not be disabled (wait for enabled state) * use automine * pr feedback * configure automine * make tests stop relying on reset
31 lines
705 B
JavaScript
31 lines
705 B
JavaScript
/* eslint-env node */
|
|
require('dotenv').config()
|
|
|
|
// Block selection is arbitrary, as e2e tests will build up their own state.
|
|
// The only requirement is that all infrastructure under test (eg Permit2 contracts) are already deployed.
|
|
const BLOCK_NUMBER = 17023328
|
|
|
|
const mainnetFork = {
|
|
url: `https://mainnet.infura.io/v3/${process.env.REACT_APP_INFURA_KEY}`,
|
|
blockNumber: BLOCK_NUMBER,
|
|
httpHeaders: {
|
|
Origin: 'localhost:3000', // infura allowlists requests by origin
|
|
},
|
|
}
|
|
|
|
module.exports = {
|
|
networks: {
|
|
hardhat: {
|
|
chainId: 1,
|
|
forking: mainnetFork,
|
|
accounts: {
|
|
count: 1,
|
|
},
|
|
mining: {
|
|
auto: true,
|
|
interval: 0,
|
|
},
|
|
},
|
|
},
|
|
}
|