SHOWING: First 60
0#47,766,723text0#47,765,268text
wtx
.open_table(STATISTIC_TO_COUNT)
.unwrap()
.insert(&Statistic::Schema.key(), &u64::MAX)
.unwrap();
wtx.commit().unwrap();
context.tempdir
};
let path = tempdir.path().to_owned();
let delimiter = if cfg!(windows) { '\\' } else { '/' };
assert_eq!(
Context::builder().tempdir(tempdir).try_build().err().unwrap().to_string(),
format!("index at `{}{delimiter}regtest{delimiter}index.redb` appears to have been built with a newer, incompatible version of ord, consider updating ord: index schema {}, ord schema {SCHEMA_VERSION}", path.display(), u64::MAX));
}
#[test]
fn inscriptions_on_output() {
for context in Context::configurations() {
context.mine_blocks(1);
let txid = context.rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(1, 0, 0, inscription("text/plain", "hello").to_witness())],
..Default::default()
});
let inscription_id = InscriptionId { txid, index: 0 };
assert_eq!(
#44,990,529text let fee = FeeRate::try_from(fee_rate)
.unwrap()
.fee(commit_tx.vsize() + sig_vbytes)
.to_sat();
let reveal_value = commit_tx
.output
.iter()
.map(|o| o.value)
.reduce(|acc, i| acc + i)
.unwrap();
assert_eq!(reveal_value, 20_000 - fee);
let sig_vbytes = 16;
let fee = FeeRate::try_from(fee_rate)
.unwrap()
.fee(reveal_tx.vsize() + sig_vbytes)
.to_sat();
assert_eq!(fee, commit_tx.output[0].value - reveal_tx.output[1].value,);
assert_eq!(
reveal_tx.output[0].script_pubkey,
parent_info.destination.script_pubkey()
);
assert_eq!(reveal_tx.output[0].value, parent_info.tx_out.value);
pretty_assert_eq!(
reveal_tx.input[0],
TxIn {
previous_output: parent_info.location.outpoint,
sequence: Sequence::ENABLE_RBF_NO_LOCKTIME,
..Default::default()
}
);
}
#[test]
fn inscribe_with_commit_fee_rate() {
let utxos = vec![
(outpoint(1), Amount::from_sat(10_000)),
#44,988,471textmsgid "i2"
msgstr "i2"
#: /workspaces/ord_ko/docs/src/inscriptions.md:116
#: /workspaces/ord_ko/docs/src/inscriptions.md:117
msgid "3"
msgstr "3"
#: /workspaces/ord_ko/docs/src/inscriptions.md:116
msgid "i3, i4, i5"
msgstr "i3, i4, i5"
#: /workspaces/ord_ko/docs/src/inscriptions.md:118
msgid "4"
msgstr "4"
#: /workspaces/ord_ko/docs/src/inscriptions.md:118
msgid "i6"
msgstr "i6"
#: /workspaces/ord_ko/docs/src/inscriptions.md:120
msgid "Sandboxing"
msgstr "샌드박싱 (sandboxing)"
#: /workspaces/ord_ko/docs/src/inscriptions.md:123
msgid ""
"HTML and SVG inscriptions are sandboxed in order to prevent references to "
"off-chain content, thus keeping inscriptions immutable and self-contained."
msgstr ""
"오프체인 콘텐츠에 대한 참조를 방지하기 위해 HTML 및 SVG 인스크립션은 샌드박스"
"가 적용되어 인스크립션의 변경을 불가능하게 하고 독립적으로 유지될 수 있게 한"
"다."
#: /workspaces/ord_ko/docs/src/inscriptions.md:126
msgid ""
"This is accomplished by loading HTML and SVG inscriptions inside `iframes` "
"with the `sandbox` attribute, as well as serving inscription content with "
#44,985,609text