SHOWING: First 60
context.index.assert_inscription_location(
first_inscription_id,
SatPoint {
outpoint: OutPoint { txid, vout: 0 },
offset: 0,
},
Some(50 * COIN_VALUE),
);
context.index.assert_inscription_location(
second_inscription_id,
SatPoint {
outpoint: OutPoint { txid, vout: 0 },
offset: 1,
},
Some(50 * COIN_VALUE + 1),
);
context.index.assert_inscription_location(
third_inscription_id,
SatPoint {
outpoint: OutPoint { txid, vout: 0 },
offset: 2,
},
Some(50 * COIN_VALUE + 2),
);
}
}
#[test]
fn inscriptions_with_pointers_to_same_sat_one_becomes_cursed_reinscriptions() {
for context in Context::configurations() {
context.mine_blocks(2);
let inscription = Inscription {
content_type: Some("text/plain".into()),
body: Some("hello jupiter".into()),
..Default::default()
};
let cursed_reinscription = Inscription {
#44,994,706text
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,
..Default::default()
}),
..Default::default()
}
.encipher(),
),
..Default::default()
});
server.mine_blocks(1);
server.assert_redirect("/search/2/1", "/rune/AAAAAAAAAAAAA");
server.assert_redirect("/search?query=2/1", "/rune/AAAAAAAAAAAAA");
server.assert_response_regex("/rune/100/200", StatusCode::NOT_FOUND, ".*");
server.assert_response_regex(
"/search/100000000000000000000/200000000000000000",
StatusCode::BAD_REQUEST,
".*",
);
}
#[test]
fn runes_are_displayed_on_runes_page() {
let server = TestServer::new_with_regtest_with_index_runes();
#44,989,473text
#: src/guides/explorer.md:19
msgid "`ord --enable-json-api server`"
msgstr "ord --enable-json-api server"
#: src/guides/explorer.md:21
msgid "To test how your inscriptions will look you can run:"
msgstr "Чтобы проверить, как будут выглядеть ваши надписи, вы можете запустить:"
#: src/guides/explorer.md:23
msgid "`ord preview <FILE1> <FILE2> ...`"
msgstr "`ord preview <FILE1> <FILE2> ...`"
#: src/guides/explorer.md:25
msgid "Search"
msgstr "Поиск"
#: src/guides/explorer.md:28
msgid "The search box accepts a variety of object representations."
msgstr "Поле поиска принимает различные представления объектов."
#: src/guides/explorer.md:30
msgid "Blocks"
msgstr "Блоки"
#: src/guides/explorer.md:32
msgid "Blocks can be searched by hash, for example, the genesis block:"
msgstr "Блоки можно искать по хэшу, например, блок genesis:"
#: src/guides/explorer.md:34
msgid ""
"[000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f](https://ordinals.com/search/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f)"
#44,982,408text