2023-05-19 23:39:50 +00:00
|
|
|
import { HardhatUserConfig } from "hardhat/config";
|
|
|
|
import "@nomicfoundation/hardhat-toolbox";
|
|
|
|
|
|
|
|
const config: HardhatUserConfig = {
|
|
|
|
solidity: {
|
|
|
|
version: "0.8.18",
|
|
|
|
settings: {
|
2024-08-02 11:32:08 +00:00
|
|
|
// istanbul upgrade occurred before the london hardfork, so is compatible with 0g-chain's evm
|
2023-05-19 23:39:50 +00:00
|
|
|
evmVersion: "istanbul",
|
|
|
|
// optimize build for deployment to mainnet!
|
|
|
|
optimizer: {
|
|
|
|
enabled: true,
|
|
|
|
runs: 1000,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
networks: {
|
|
|
|
// kvtool's local network
|
2024-08-02 11:32:08 +00:00
|
|
|
chain: {
|
2023-05-19 23:39:50 +00:00
|
|
|
url: "http://127.0.0.1:8545",
|
|
|
|
accounts: [
|
2024-08-02 11:32:08 +00:00
|
|
|
// 0g-chain keys unsafe-export-eth-key whale2
|
2023-05-19 23:39:50 +00:00
|
|
|
"AA50F4C6C15190D9E18BF8B14FC09BFBA0E7306331A4F232D10A77C2879E7966",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
protonet: {
|
2024-08-02 11:32:08 +00:00
|
|
|
url: "https://evm.app.protonet.us-east.production.0g-chain.io:443",
|
2023-05-19 23:39:50 +00:00
|
|
|
accounts: [
|
|
|
|
"247069F0BC3A5914CB2FD41E4133BBDAA6DBED9F47A01B9F110B5602C6E4CDD9",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
internal_testnet: {
|
2024-08-02 11:32:08 +00:00
|
|
|
url: "https://evm.data.internal.testnet.us-east.production.0g-chain.io:443",
|
2023-05-19 23:39:50 +00:00
|
|
|
accounts: [
|
|
|
|
"247069F0BC3A5914CB2FD41E4133BBDAA6DBED9F47A01B9F110B5602C6E4CDD9",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|