- Change SQLite database path from `/home/oib/windsurf/aitbc/data/` to `/opt/data/` - Fix foreign key references to use correct table names (users, wallets, gpu_registry) - Replace governance router with new governance and community routers - Add multi-modal RL router to main application - Simplify DEPLOYMENT_READINESS_REPORT.md to focus on production deployment status - Update governance router with decentralized DAO voting
56 lines
1.2 KiB
JavaScript
56 lines
1.2 KiB
JavaScript
require("@nomicfoundation/hardhat-toolbox");
|
|
|
|
/** @type import('hardhat/config/types').HardhatUserConfig */
|
|
module.exports = {
|
|
solidity: {
|
|
version: "0.8.19",
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200
|
|
},
|
|
viaIR: true
|
|
}
|
|
},
|
|
networks: {
|
|
hardhat: {
|
|
forking: {
|
|
url: process.env.MAINNET_RPC_URL || "http://localhost:8545",
|
|
blockNumber: parseInt(process.env.FORK_BLOCK_NUMBER) || undefined
|
|
}
|
|
},
|
|
localhost: {
|
|
url: "http://127.0.0.1:8545"
|
|
},
|
|
testnet: {
|
|
url: process.env.TESTNET_RPC_URL || "http://localhost:8545",
|
|
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
|
|
chainId: 31337
|
|
},
|
|
mainnet: {
|
|
url: process.env.MAINNET_RPC_URL,
|
|
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
|
|
chainId: 1
|
|
}
|
|
},
|
|
etherscan: {
|
|
apiKey: process.env.ETHERSCAN_API_KEY
|
|
},
|
|
gasReporter: {
|
|
enabled: process.env.REPORT_GAS !== undefined,
|
|
currency: "USD",
|
|
gasPrice: 20,
|
|
showTimeSpent: true,
|
|
showMethodSig: true
|
|
},
|
|
paths: {
|
|
sources: "./contracts",
|
|
tests: "./test/contracts",
|
|
cache: "./cache",
|
|
artifacts: "./artifacts"
|
|
},
|
|
mocha: {
|
|
timeout: 300000
|
|
}
|
|
};
|