hardhat.config.ts 714 B

1234567891011121314151617181920212223242526272829303132
  1. require("@matterlabs/hardhat-zksync-deploy");
  2. require("@matterlabs/hardhat-zksync-solc");
  3. module.exports = {
  4. zksolc: {
  5. version: "1.2.0",
  6. compilerSource: "binary",
  7. settings: {
  8. optimizer: {
  9. enabled: true,
  10. },
  11. },
  12. },
  13. defaultNetwork: "zkTestnet",
  14. networks: {
  15. zkTestnet: {
  16. url: "https://zksync2-testnet.zksync.dev", // URL of the zkSync network RPC
  17. ethNetwork: "goerli", // Can also be the RPC URL of the Ethereum network (e.g. `https://goerli.infura.io/v3/<API_KEY>`)
  18. zksync: true,
  19. chainId: 280,
  20. },
  21. },
  22. solidity: {
  23. version: "0.8.4",
  24. settings: {
  25. optimizer: {
  26. enabled: true,
  27. runs: 10000,
  28. },
  29. },
  30. },
  31. };