@main.command()<EOL>@click.pass_context<EOL>@onlineChain<EOL>@click.argument("<STR_LIT>", type=str, required=False)<EOL>def proposals(ctx, account):
proposals = Proposals(account)<EOL>t = PrettyTable(<EOL>[<EOL>"<STR_LIT:id>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>]<EOL>)<EOL>t.align = "<STR_LIT:l>"<EOL>for proposal in proposals:<EOL><INDENT>if proposal.proposer:<EOL><INDENT>proposer = Account(proposal.proposer, peerplays_instance=ctx.peerplays)[<EOL>"<STR_LIT:name>"<EOL>]<EOL><DEDENT>else:<EOL><INDENT>proposer = "<STR_LIT>"<EOL><DEDENT>t.add_row(<EOL>[<EOL>proposal["<STR_LIT:id>"],<EOL>proposal["<STR_LIT>"],<EOL>proposer,<EOL>[<EOL>Account(x)["<STR_LIT:name>"]<EOL>for x in (<EOL>proposal["<STR_LIT>"]<EOL>+ proposal["<STR_LIT>"]<EOL>)<EOL>],<EOL>json.dumps(<EOL>[Account(x)["<STR_LIT:name>"] for x in proposal["<STR_LIT>"]]<EOL>+ proposal["<STR_LIT>"]<EOL>+ proposal["<STR_LIT>"],<EOL>indent=<NUM_LIT:1>,<EOL>),<EOL>proposal.get("<STR_LIT>", None),<EOL>json.dumps(proposal["<STR_LIT>"], indent=<NUM_LIT:4>),<EOL>]<EOL>)<EOL><DEDENT>click.echo(str(t))<EOL>
List proposals