pyth-crosschain/target_chains/ethereum/contracts/hardhat.config.ts

46 lines
1.1 KiB
TypeScript

import "@matterlabs/hardhat-zksync-deploy";
import "@matterlabs/hardhat-zksync-solc";
import "@nomiclabs/hardhat-etherscan";
import "@openzeppelin/hardhat-upgrades";
import "@matterlabs/hardhat-zksync-verify";
module.exports = {
zksolc: {
version: "1.3.1",
compilerSource: "binary",
settings: {
optimizer: {
enabled: true,
},
},
},
defaultNetwork: "zkSyncTestnet",
networks: {
zkSyncTestnet: {
url: "https://zksync2-testnet.zksync.dev", // URL of the zkSync network RPC
ethNetwork: "goerli", // Can also be the RPC URL of the Ethereum network (e.g. `https://goerli.infura.io/v3/<API_KEY>`)
zksync: true,
chainId: 280,
verifyURL:
"https://zksync2-testnet-explorer.zksync.dev/contract_verification",
},
zkSyncMainnet: {
url: "https://zksync2-mainnet.zksync.io",
ethNetwork: "mainnet",
zksync: true,
chainId: 324,
verifyURL:
"https://zksync2-mainnet-explorer.zksync.io/contract_verification",
},
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 10000,
},
},
},
};