from typing import Dict


def read_transfer_data(transfer_dict: dict) -> Dict[str, int]:
    """
    Transfers a dict of raw data representing a transfer, to an input dict for the
    `get_transfer_msg` function.
    """
    return {'amount': int(transfer_dict['amount']), 'nonce': int(transfer_dict['nonce']),
            'sender_vault_id': int(transfer_dict['sender_vault_id']),
            'token': int(transfer_dict['token'], 16),
            'receiver_vault_id': int(transfer_dict['target_vault_id']),
            'receiver_public_key': int(transfer_dict['target_public_key'], 16),
            'expiration_timestamp': transfer_dict['expiration_timestamp']}