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

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

contract DeployCWMultiTokenBridgeL1 is Script {
    function run() external {
        uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
        address sendRouter = vm.envAddress("CW_SEND_ROUTER");
        address receiveRouter = vm.envAddress("CW_RECEIVE_ROUTER");
        address feeToken = vm.envOr("CW_FEE_TOKEN", address(0));

        vm.startBroadcast(deployerPrivateKey);
        CWMultiTokenBridgeL1 bridge = new CWMultiTokenBridgeL1(sendRouter, receiveRouter, feeToken);
        vm.stopBroadcast();

        console.log("CWMultiTokenBridgeL1:", address(bridge));
    }
}
