import json
import base64


def get_msg_list(tx: dict) -> list:
    """
    Takes a tx dict, decodes and returns the msg list
    :param tx: tx dict
    :return: decoded msg list
    """
    decoded_msg_list = []
    msg_list = tx["events"][0]["sub"][0]["additional"]["execute_message"]
    for msg in msg_list:
        decoded_msg = json.loads(base64.b64decode(msg))
        decoded_msg_list.append(decoded_msg)

    return decoded_msg_list