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.
This commit is contained in:
40
contracts/scripts/deploy.ts
Normal file
40
contracts/scripts/deploy.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user