def ticket_matuation_to_dict(mutation: str, meta_data: dict):
    """
    Used in run_mutations to create a dict from. In order to

    Takes one mutation line of an IPFS batch
    Returns structured dictionary.
        -> INDEX of dataframe / database
        'statehash_tx': -> hash / receipt of state or mutation(n)
        'previous_statehash': -> hash / receipt of state or mutation(n-1)
        'input_message' : -> value inputted in message input (could be privId or eventId)
        'transition_type': -> type of mutation (w or f)
        'transition_id': -> id of the mutation
        'block_height': -> blockheight of the block anchoring the mutation.
        'block_timestamp': -> timestamp of the block anchorring the mutation.
        'transaction_hash': -> hash of the blockchain transaction that anchorred the tx.
        'IPFS_hash': -> hash of the IPFS file that contains the mutation
    """

    m = list(mutation.split(","))

    output_dict = {
        'statehash_tx': m[0],
        'previous_statehash': m[1],
        'transition_type': m[2],
        'transition_id': m[3],
        'input_message': str("null"),
        'block_height': meta_data["block_height"],
        'block_timestamp': meta_data["block_timestamp"],
        'transaction_hash': meta_data["transaction_hash"],
        'IPFS_hash': meta_data["IPFS_hash"]
    }

    return output_dict