refactor: simplify deployment automation and convert to ES modules
Some checks failed
Contract Performance Benchmarks / benchmark-gas-usage (push) Has been cancelled
Contract Performance Benchmarks / benchmark-execution-time (push) Has been cancelled
Contract Performance Benchmarks / benchmark-throughput (push) Has been cancelled
Contract Performance Benchmarks / compare-benchmarks (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been cancelled
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Has been cancelled
Cross-Chain Functionality Tests / aggregate-results (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Deploy to Testnet / notify-deployment (push) Has been cancelled

- Remove deployment of RewardDistributor, PerformanceAggregator, StakingPoolFactory, and DAOGovernanceEnhanced contracts
- Reorder initialization to register contracts before initializing TreasuryManager
- Add error handling for duplicate contract registration
- Convert require() to ES module imports in deploy-automation.js, monitor-contracts.js, and verify-deployment.js
- Move fs import to top of deploy-automation.js
This commit is contained in:
aitbc
2026-04-29 10:51:42 +02:00
parent 58cc6676fa
commit d826318aab
4 changed files with 34 additions and 71 deletions

View File

@@ -3,8 +3,9 @@
* Verifies contract deployments and performs basic health checks
*/
const { ethers } = require("hardhat");
const fs = require("fs");
import hardhat from "hardhat";
const { ethers } = hardhat;
import fs from "fs";
async function main() {
console.log("=== AITBC Smart Contract Deployment Verification ===");