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

import {Script, console2} from "forge-std/Script.sol";

import {Chain138LPLocker} from "../../contracts/wrapped-lp-public/Chain138LPLocker.sol";

/**
 * @title DeployWrappedLPLockerChain138
 * @notice Deploy **only** `Chain138LPLocker` on Chain 138. Use `--rpc-url` pointing at Core RPC.
 * @dev Env: `LP_TOKEN`, `ADMIN`, `PRIVATE_KEY`. Verify on Blockscout after deploy.
 */
contract DeployWrappedLPLockerChain138 is Script {
    function run() external {
        address lpToken = vm.envAddress("LP_TOKEN");
        address admin = vm.envAddress("ADMIN");
        uint256 pk = vm.envUint("PRIVATE_KEY");

        vm.startBroadcast(pk);

        Chain138LPLocker locker = new Chain138LPLocker(lpToken, admin);
        console2.log("Chain138LPLocker", address(locker));

        vm.stopBroadcast();
    }
}
