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

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

contract DeployCWMultiTokenBridgeL2 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);
        CWMultiTokenBridgeL2 bridge = new CWMultiTokenBridgeL2(sendRouter, receiveRouter, feeToken);
        vm.stopBroadcast();

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