50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
import "dotenv/config";
|
|
|
|
import hardhatToolboxViemPlugin from "@nomicfoundation/hardhat-toolbox-viem";
|
|
import { configVariable, defineConfig } from "hardhat/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [hardhatToolboxViemPlugin],
|
|
solidity: {
|
|
profiles: {
|
|
default: {
|
|
version: "0.8.28",
|
|
},
|
|
production: {
|
|
version: "0.8.28",
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
networks: {
|
|
hardhatMainnet: {
|
|
type: "edr-simulated",
|
|
chainType: "l1",
|
|
},
|
|
hardhatOp: {
|
|
type: "edr-simulated",
|
|
chainType: "op",
|
|
},
|
|
sepolia: {
|
|
type: "http",
|
|
chainType: "l1",
|
|
url: configVariable("SEPOLIA_RPC_URL"),
|
|
accounts: [configVariable("SEPOLIA_PRIVATE_KEY")],
|
|
},
|
|
next: {
|
|
type: "http",
|
|
chainId: 1337,
|
|
chainType: "l1",
|
|
url: "https://eth.code-camp.org",
|
|
accounts: {
|
|
mnemonic: configVariable("MNEMONICS"),
|
|
},
|
|
},
|
|
},
|
|
});
|