import 'dotenv/config'; import { HardhatUserConfig } from 'hardhat/types'; // import '@nomicfoundation/hardhat-chai-matchers'; import '@nomicfoundation/hardhat-ethers'; import '@nomicfoundation/hardhat-network-helpers'; import '@nomicfoundation/hardhat-verify'; import '@openzeppelin/hardhat-upgrades'; import '@typechain/hardhat'; import 'hardhat-deploy'; import 'hardhat-contract-sizer'; import 'hardhat-gas-reporter'; import 'solidity-coverage'; const config: HardhatUserConfig = { solidity: { compilers: [ { version: '0.8.20', settings: { optimizer: { enabled: true, runs: 50 }, viaIR: true, }, }, ], }, typechain: { outDir: 'typechain', target: 'ethers-v6', }, paths: { sources: './contracts', tests: './test', cache: './cache', artifacts: './artifacts', }, defaultNetwork: 'hardhat', networks: { hardhat: { allowUnlimitedContractSize: true, accounts: { mnemonic: 'test test test test test test test test test test test junk', initialIndex: 0, accountsBalance: '10000000000000000000000000', // 10,000,000 ETH }, }, besu_on_premise_dev: { chainId: 1337, gas: 'auto', url: 'http://172.25.1.104/', accounts: [ '0xccb3131e009c579f16e6088f89218744f670e9b09c28514c671d5ae239f0c532', // admin 0xf1114837ed4a1fA9C03e8CC9F1D74Eb853D69456 '0x633942d3d1a3e26d00b45c3141534ce70201ef45a7f770464a51b4843d1fded6', // issuer '0x55d1000aa2057a878b5f7902158615f889cb1e9b811f7e1e9c0b4518399ba84a', // controller '0x60c092d6bdcd9c9ea1afcab4febd2f344b7cde3cdebc99f279b35deaa40b87b7', // controller '0xefb3c2ae169b7521c82fff0f9cf26acae190f11de0532ce3691159e695274b0b', '0xbd426a98e7c9fd367b0a77eb73f5c93df95f24304facfe3f8083ceda371975d2', '0xddc3bd701644512b63fae4934bc0359d346af7f64404786b1ebf6b16fef6dc70', // nonce-manager test accounts (do not use if possible) '0xc87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3', // admin 0x627306090abaB3A6e1400e9345bC60c78a8BEf57 '0x8f2a55949038a9610f50fb23b5883af3b4ecb3c3bb792cbcefbd1542c692be63', // issuer '0xae6ae8e5ccbfb04590405997ee2d52d2b330726137b875053c36d94e974d162f', // controller '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80', // controller ], }, besu_local: { chainId: 1337, gas: 'auto', url: 'http://localhost:8545' , accounts: [ '0xc87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3', '0x8f2a55949038a9610f50fb23b5883af3b4ecb3c3bb792cbcefbd1542c692be63', '0xae6ae8e5ccbfb04590405997ee2d52d2b330726137b875053c36d94e974d162f', '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80', ] }, besu_oci: { chainId: 1337, gas: 'auto', url: 'http://193.123.252.127' , accounts: [ '0xc87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3', '0x8f2a55949038a9610f50fb23b5883af3b4ecb3c3bb792cbcefbd1542c692be63', '0xae6ae8e5ccbfb04590405997ee2d52d2b330726137b875053c36d94e974d162f', '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80', ] }, }, gasReporter: { currency: 'USD', coinmarketcap: process.env.COINMARKETCAP_API_KEY || '', enabled: true, }, mocha: { timeout: 60000, }, }; export default config;