abstract contract RamppERC721A is 
    Ownable,
    ERC721A,
    Withdrawable,
    ReentrancyGuard  {
    constructor(
        string memory tokenName,
        string memory tokenSymbol
    ) ERC721A(tokenName, tokenSymbol, 3, 4444 ) {}
    using SafeMath for uint256;
    uint8 public CONTRACT_VERSION = 2;
    string public _baseTokenURI = "null";

    bool public mintingOpen = true;
    
    uint256 public PRICE = 0.01 ether;
    

    
    /////////////// Admin Mint Functions
    /**
    * @dev Mints a token to an address with a tokenURI.
    * This is owner only and allows a fee-free drop
    * @param _to address of the future owner of the token
    */
    function mintToAdmin(address _to) public onlyOwner {
        require(getNextTokenId() <= collectionSize, "Cannot mint over supply cap of 4444");
        _safeMint(_to, 1);
    }

    function mintManyAdmin(address[] memory _addresses, uint256 _addressCount) public onlyOwner {
        for(uint i=0; i < _addressCount; i++ ) {
            mintToAdmin(_addresses[i]);
        }
    }

    
    /////////////// GENERIC MINT FUNCTIONS
    /**
    * @dev Mints a single token to an address.
    * fee may or may not be required*
    * @param _to address of the future owner of the token
    */
    function mintTo(address _to) public payable {
        require(getNextTokenId() <= collectionSize, "Cannot mint over supply cap of 4444");
        require(mintingOpen == true, "Minting is not open right now!");
        
        require(msg.value == PRICE, "Value needs to be exactly the mint fee!");
        
        _safeMint(_to, 1);
        
    }

    /**
    * @dev Mints a token to an address with a tokenURI.
    * fee may or may not be required*
    * @param _to address of the future owner of the token
    * @param _amount number of tokens to mint
    */
    function mintToMultiple(address _to, uint256 _amount) public payable {
        require(_amount >= 1, "Must mint at least 1 token");
        require(_amount <= maxBatchSize, "Cannot mint more than max mint per transaction");
        require(mintingOpen == true, "Minting is not open right now!");
        
        require(currentTokenId() + _amount <= collectionSize, "Cannot mint over supply cap of 4444");
        require(msg.value == getPrice(_amount), "Value below required mint fee for amount");

        _safeMint(_to, _amount);
        
    }

    function openMinting() public onlyOwner {
        mintingOpen = true;
    }

    function stopMinting() public onlyOwner {
        mintingOpen = false;
    }

    

    

    
    /**
     * @dev Allows owner to set Max mints per tx
     * @param _newMaxMint maximum amount of tokens allowed to mint per tx. Must be >= 1
     */
     function setMaxMint(uint256 _newMaxMint) public onlyOwner {
         require(_newMaxMint >= 1, "Max mint must be at least 1");
         maxBatchSize = _newMaxMint;
     }
    

    
    function setPrice(uint256 _feeInWei) public onlyOwner {
        PRICE = _feeInWei;
    }

    function getPrice(uint256 _count) private view returns (uint256) {
        return PRICE.mul(_count);
    }

    
    
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    function baseTokenURI() public view returns (string memory) {
        return _baseTokenURI;
    }

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) {
        return ownershipOf(tokenId);
    }
}
function mintTo(address _to) public payable {
    require(getNextTokenId() <= collectionSize, "Cannot mint over supply cap of 4444");
    require(mintingOpen == true, "Minting is not open right now!");
        
    require(msg.value == PRICE, "Value needs to be exactly the mint fee!");
        
    _safeMint(_to, 1);
        
}

/**
 * @dev Mints a single token to an address.
 * fee may or may not be required*
 * @param _to address of the future owner of the token
 */