github.com/pdaian/flashboys2@v0.0.0-20190718175736-b101c35361f0/webapp/templates/profit.html (about) 1 {% include 'header.html' %} 2 3 <div id="content"> 4 <h1> Revenue Breakdown - Detailed </h1> 5 6 {% include 'paginate.html' %} 7 8 <div class="limiter" style="margin-top: 20px;"> 9 <div class="container-table100"> 10 <div class="wrap-table100"> 11 <div class="table100"> 12 <table class="profitable"> 13 <thead> 14 <tr class="table100-head"> 15 <th class="column1">Transaction Hash<br>Sender</th> 16 <th class="columnprofit">Gas Price (<small>gwei</small>)</th> 17 <th class="columnprofit">Gas Bid / Paid</th> 18 <th class="columnprofit">Block/Index Mined/#Logs</th> 19 </tr> 20 </thead> 21 <tbody> 22 {% for tx in txs %} 23 <tr> 24 <td class="column1">TX #{{ tx['rowid'] }} {{ tx['transaction_hash'] }}<br>From {{ tx['from_address'] }}</td> 25 <td class="columnprofit">{{ tx['gas_price']|int / (10 ** 9) }} Gwei Bid </td> 26 <td class="columnprofit">{{ tx['gas'] }} of {{ tx['receipt_gas_used'] }} Gas Used <br>[{{ 100 * tx['receipt_gas_used']|float / tx['gas']|float }}%]</td> 27 <td class="columnprofit">Mined Block {{ tx['block_number'] }} @#{{ tx['transaction_index'] }} / {{ tx['num_logs'] }}</td> 28 </tr> 29 {% if tx['profit_data'] != None %} 30 <tr style="background-color: white; vertical-align: top;"> 31 <td colspan=1 style="text-align: center;"> 32 {% if tx['drawn'] %} 33 <img src="/static/profit/{{tx['transaction_hash']}}.png" style="padding: 20px 0 20px 0; max-width: 1000px;" /> 34 {% endif %} 35 </td> 36 <td style="padding:20px;" colspan=3>{{ graph_parser(tx['profit_graph']) }}<br><br> 37 {{ profit_parser(tx['profit_calcs']) }} 38 <br><br><h4>Transaction Attributes</h4> 39 <ul> 40 <li>To contract {{tx['to_address']}}</li> 41 </ul><br><br> 42 </td> 43 </tr> 44 {% endif %} 45 {% endfor %} 46 </tbody> 47 </table> 48 </div> 49 </div> 50 </div> 51 52 </div> 53 54 {% include 'paginate.html' %} 55 <br><br> 56 {% include 'footer.html' %} 57