hardhat.config.ts 694 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { HardhatUserConfig } from "hardhat/config";
  2. import "@nomicfoundation/hardhat-toolbox";
  3. import deployer from './.secret'
  4. const ETH_RPC = '/ethereum/data/geth.ipc'
  5. const ETH_W_RPC = 'https://mainnet.ethereumpow.org'
  6. const config: HardhatUserConfig = {
  7. defaultNetwork: 'eth_w',
  8. solidity: "0.7.6",
  9. networks: {
  10. eth: {
  11. url: ETH_RPC,
  12. chainId: 1,
  13. accounts: [deployer.private]
  14. },
  15. eth_w: {
  16. url: ETH_W_RPC,
  17. chainId: 10001,
  18. accounts: [deployer.private]
  19. }
  20. },
  21. paths: {
  22. sources: "./contracts",
  23. tests: "./test",
  24. cache: "./cache",
  25. artifacts: "./artifacts"
  26. },
  27. mocha: {
  28. timeout: 40000
  29. }
  30. };
  31. export default config;