somnia-stable/hardhat.config.ts
caelum0x ae7c655974 Excellent! The balance is now 0x6f05b59d3b20000 which is 8 STT - much better! Now
let me continue with the deployment:

  Bash(npx hardhat run contracts/scripts/deploy-somnia.ts --network somnia)
  ⎿  🚀 DEPLOYING TO SOMNIA TESTNET
     NaN
     … +55 lines (ctrl+r to expand)
2025-09-18 01:18:11 +03:00

32 lines
860 B
TypeScript

import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
import 'dotenv/config';
const config: HardhatUserConfig = {
solidity: '0.8.20',
networks: {
localhost: {
url: 'http://127.0.0.1:8545',
},
somnia: {
url: 'https://dream-rpc.somnia.network/',
chainId: 50312,
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
gasPrice: 6000000000, // 6 gwei
},
somniaMainnet: {
url: 'https://api.infra.mainnet.somnia.network/',
chainId: 5031,
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
gasPrice: 6000000000, // 6 gwei
},
},
paths: {
sources: './contracts/contracts',
tests: './contracts/test',
cache: './contracts/cache',
artifacts: './contracts/artifacts',
},
};
export default config;