rune,
supply: u128::max_value(),
timestamp: 2,
..Default::default()
}
)]
);
let output = OutPoint { txid, vout: 0 };
assert_eq!(
server.index.get_rune_balances(),
[(output, vec![(id, u128::max_value())])]
);
server.assert_response_regex(
format!("/output/{output}"),
StatusCode::OK,
format!(
".*<title>Output {output}</title>.*<h1>Output <span class=monospace>{output}</span></h1>.*
<dt>runes</dt>
<dd>
<table>
<tr>
<th>rune</th>
<th>balance</th>
</tr>
<tr>
<td><a href=/rune/AAAAAAAAAAAAA>AAAAAAAAAAAAA</a></td>
<td>34028236692093846346337460743176821145.5</td>
</tr>
</table>
</dd>
.*"
),
);
assert_eq!(
server.get_json::<OutputJson>(format!("/output/{output}")),
OutputJson {
value: 5000000000,
script_pubkey: String::new(),
address: None,
transaction: txid.to_string(),
sat_ranges: None,