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

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

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