);
assert_eq!(
server.index.get_rune_balances(),
[(OutPoint { txid, vout: 0 }, vec![(id, u128::max_value())])]
);
server.assert_response_regex(
"/runes",
StatusCode::OK,
".*
Runes.*
Runes
.*",
);
}
#[test]
fn runes_are_displayed_on_rune_page() {
let server = TestServer::new_with_regtest_with_index_runes();
server.mine_blocks(1);
let rune = Rune(RUNE);
server.assert_response_regex(format!("/rune/{rune}"), StatusCode::NOT_FOUND, ".*");
let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(1, 0, 0, inscription("text/plain", "hello").to_witness())],
op_return: Some(
Runestone {
edicts: vec![Edict {
id: 0,
amount: u128::max_value(),
output: 0,
}],
etching: Some(Etching {
rune,
symbol: Some('$'),
..Default::default()