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

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

/// @notice Deploy GRUVaultIndex v2 (patch + import support) on hub 138.
contract DeployNewGRUVaultIndex138 is Script {
    function run() external {
        uint256 pk = vm.envUint("PRIVATE_KEY");
        address admin = vm.addr(pk);
        vm.startBroadcast(pk);
        GRUVaultIndex idx = new GRUVaultIndex(admin);
        vm.stopBroadcast();
        console2.log("GRUVaultIndex:", address(idx));
    }
}
