Files
CurrenciCombo/contracts/scripts/deploy.ts
defiQUG f600b7b15e Add ECDSA signature verification and enhance ComboHandler functionality
- Integrated ECDSA for signature verification in ComboHandler.
- Updated event emissions to include additional parameters for better tracking.
- Improved gas tracking during execution of combo plans.
- Enhanced database interactions for storing and retrieving plans, including conflict resolution and status updates.
- Added new dependencies for security and database management in orchestrator.
2025-11-05 16:28:48 -08:00

41 lines
1.1 KiB
TypeScript

import { HardhatRuntimeEnvironment } from "hardhat/types";
export default async function deploy(hre: HardhatRuntimeEnvironment) {
const { ethers, deployments, getNamedAccounts } = hre;
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();
// Deploy AdapterRegistry
const adapterRegistry = await deploy("AdapterRegistry", {
from: deployer,
args: [],
log: true,
});
// Deploy NotaryRegistry
const notaryRegistry = await deploy("NotaryRegistry", {
from: deployer,
args: [],
log: true,
});
// Deploy ComboHandler
const comboHandler = await deploy("ComboHandler", {
from: deployer,
args: [adapterRegistry.address, notaryRegistry.address],
log: true,
});
console.log("✅ Contracts deployed:");
console.log(` AdapterRegistry: ${adapterRegistry.address}`);
console.log(` NotaryRegistry: ${notaryRegistry.address}`);
console.log(` ComboHandler: ${comboHandler.address}`);
return {
adapterRegistry: adapterRegistry.address,
notaryRegistry: notaryRegistry.address,
comboHandler: comboHandler.address,
};
}