| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { HardhatUserConfig, extendEnvironment } from "hardhat/config";
- import "@nomicfoundation/hardhat-toolbox";
- import deployer from './.secret'
- import {HardhatRuntimeEnvironment} from "hardhat/types";
- const BSC = 'https://bsc.meowrpc.com'
- const BSC_TESTNET = 'https://data-seed-prebsc-1-s1.binance.org:8545/'
- const config: HardhatUserConfig = {
- defaultNetwork: 'bsc_testnet',
- solidity: "0.7.6",
- networks: {
- bsc: {
- url: BSC,
- chainId: 56,
- accounts: [deployer.private]
- },
- bsc_testnet: {
- url: BSC_TESTNET,
- chainId: 97,
- accounts: [deployer.private]
- }
- },
- paths: {
- sources: "./contracts",
- tests: "./test",
- cache: "./cache",
- artifacts: "./artifacts"
- },
- mocha: {
- timeout: 40000
- }
- };
- extendEnvironment((hre: HardhatRuntimeEnvironment) => {
- const Web3 = require("web3");
- hre.Web3 = Web3;
- hre.web3 = new Web3(hre.network.provider);
- })
- export default config;
|