// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {Script, console} from "forge-std/Script.sol";
import {BridgeRegistry} from "../../../contracts/bridge/interop/BridgeRegistry.sol";

contract DeployBridgeRegistry is Script {
    function run() external returns (address registry) {
        address admin = vm.envAddress("ADMIN_ADDRESS");
        
        vm.startBroadcast();
        registry = address(new BridgeRegistry(admin));
        vm.stopBroadcast();
        
        console.log("BridgeRegistry deployed at:", registry);
    }
}
