@staticmethod<EOL><INDENT>def votes(address):<DEDENT>
qry = DbCursor().execute_and_fetchall("""<STR_LIT>""".format(address))<EOL>Vote = namedtuple(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>')<EOL>res = []<EOL>for i in qry:<EOL><INDENT>if i[<NUM_LIT:0>][<NUM_LIT:0>] == '<STR_LIT:+>':<EOL><INDENT>direction = True<EOL><DEDENT>elif i[<NUM_LIT:0>][<NUM_LIT:0>] == '<STR_LIT:->':<EOL><INDENT>direction = False<EOL><DEDENT>else:<EOL><INDENT>logger.fatal('<STR_LIT>'.format(i))<EOL>raise ParseError('<STR_LIT>'.format(i))<EOL><DEDENT>vote = Vote(<EOL>direction=direction,<EOL>delegate=i[<NUM_LIT:0>][<NUM_LIT:1>:],<EOL>timestamp=i[<NUM_LIT:1>],<EOL>)<EOL>res.append(vote)<EOL><DEDENT>return res<EOL>
Returns a list of namedtuples all votes made by an address, {(+/-)pubkeydelegate:timestamp}, timestamp DESC