Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created October 30, 2022 02:15
Show Gist options
  • Save yuyasugano/c31ad5cbaa29850b8a386081c942748b to your computer and use it in GitHub Desktop.
Save yuyasugano/c31ad5cbaa29850b8a386081c942748b to your computer and use it in GitHub Desktop.
amm-arbitrageur hardhat.config.ts
import { task, HardhatUserConfig } from 'hardhat/config';
import '@typechain/hardhat';
import '@nomiclabs/hardhat-waffle';
import deployer from './.secret';
require("dotenv").config();
const BSC_ENDPOINT = process.env.BSC_ENDPOINT;
const config: HardhatUserConfig = {
solidity: { version: '0.7.6' },
networks: {
hardhat: {
// loggingEnabled: true,
forking: {
url: BSC_RPC,
enabled: true,
},
accounts: {
accountsBalance: '1000000000000000000000000', // 1 mil ether
},
},
bsc: {
url: BSC_ENDPOINT,
chainId: 0x38,
accounts: [deployer.private],
},
},
mocha: {
timeout: 40000,
},
};
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment