// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

import "forge-std/Script.sol";
import "../contracts/VaultfireGenesisNFT.sol";

/// @notice Deploys VaultfireGenesisNFT to Base and auto-mints token #1 to deployer.
/// Run:
///   forge script script/Deploy.s.sol \
///     --rpc-url base \
///     --broadcast \
///     --verify \
///     --etherscan-api-key $BASESCAN_KEY \
///     --account deployer
contract Deploy is Script {
    function run() external {
        string memory uri = "https://theloopbreaker.com/nft/vaultfire-genesis.json";
        vm.startBroadcast();
        VaultfireGenesisNFT nft = new VaultfireGenesisNFT(uri);
        vm.stopBroadcast();
        console.log("VaultfireGenesisNFT deployed:", address(nft));
        console.log("Token #1 owner:", nft.ownerOf(1));
        console.log("Token URI:", nft.tokenURI(1));
    }
}
