You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
985 B

7 months ago
  1. import { HardhatUserConfig } from "hardhat/config";
  2. import "@nomicfoundation/hardhat-toolbox";
  3. import 'dotenv/config';
  4. import "@openzeppelin/hardhat-upgrades";
  5. const config: HardhatUserConfig = {
  6. solidity: {
  7. version:"0.8.24",
  8. settings:{
  9. optimizer: {
  10. enabled: true,
  11. runs: 1000,
  12. },
  13. }
  14. },
  15. networks:{
  16. bscTest: {
  17. url: "https://data-seed-prebsc-1-s1.bnbchain.org:8545",
  18. accounts: [
  19. process.env.ACCOUNT_PRIVATE as string,
  20. ],
  21. gasPrice:10000000000
  22. },
  23. bscMain: {
  24. url:'https://binance.llamarpc.com',
  25. accounts:[
  26. process.env.ACCOUNT_PRIVATE as string,
  27. ]
  28. },
  29. local: {
  30. url: "http://127.0.0.1:8545/",
  31. accounts: ["0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"],
  32. },
  33. },
  34. etherscan:{
  35. apiKey:process.env.ETHERSCAN_API_KEY
  36. }
  37. };
  38. // npx hardhat verify --network bscTest 0x8F7d8242d1A60f177e7389Bad8A7680FA50f2B89
  39. export default config;