-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
161 additions
and
3 deletions.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
bridge_node/bridge/api/monitor/templates/monitor/multisig.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{% extends "monitor/base.jinja2" %} | ||
{% block content %} | ||
<h2>Multisig</h2> | ||
<table class="table"> | ||
<tr> | ||
<th>Change address</th> | ||
<td><code>{{ change_address }}</code></td> | ||
</tr> | ||
<tr> | ||
<th>Cardinal balance (BTC)</th> | ||
<td><code>{{ cardinal_balance_btc }}</code></td> | ||
</tr> | ||
<tr> | ||
<th>Runic balance (BTC)</th> | ||
<td><code>{{ runic_balance_btc }}</code></td> | ||
</tr> | ||
</table> | ||
|
||
<h3>Rune balances</h3> | ||
<table> | ||
{% for rune_name, amount_raw in rune_balances.items() %} | ||
<tr> | ||
<th>{{ rune_name }}</th> | ||
<td>{{ format_raw_rune_amount(rune_name, amount_raw) }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
|
||
<h3>UTXOs</h3> | ||
<table class="table"> | ||
<tr> | ||
<th>txid:vout</th> | ||
<th>address</th> | ||
<th>amount sat</th> | ||
<th>confirmations</th> | ||
<th>rune balances</th> | ||
</tr> | ||
{% for utxo, ord_output in utxos_with_ord_outputs %} | ||
<tr> | ||
<td>{{ utxo.txid }}:{{ utxo.vout }}</td> | ||
<td> | ||
{{ utxo.address }} | ||
{% if utxo.address == change_address %} | ||
<small>(change)</small> | ||
{% endif %} | ||
</td> | ||
<td>{{ utxo.amount_satoshi }}</td> | ||
<td>{{ utxo.confirmations }}</td> | ||
<th> | ||
{% if not ord_output %} | ||
(no ord output) | ||
{% elif not ord_output.rune_balances %} | ||
- | ||
{% else %} | ||
<table> | ||
{% for rune_name, amount in ord_output.rune_balances.items() %} | ||
<tr> | ||
<th>{{ rune_name }}</th> | ||
<td>{{ format_raw_rune_amount(rune_name, amount_raw) }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
<table> | ||
{% endblock %} |
5 changes: 5 additions & 0 deletions
5
bridge_node/bridge/api/monitor/templates/monitor/users.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends "monitor/base.jinja2" %} | ||
{% block content %} | ||
<h2>Users</h2> | ||
<p>TODO</p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters