SHOWING: First 60
<dd class=monospace>{send_txid}:0:0</dd>
.*
</dl>
.*",
),
);
}
#[test]
fn send_unknown_inscription() {
let rpc_server = test_bitcoincore_rpc::spawn();
create_wallet(&rpc_server);
let txid = rpc_server.mine_blocks(1)[0].txdata[0].txid();
CommandBuilder::new(format!(
"wallet send --fee-rate 1 bc1qcqgs2pps4u4yedfyl5pysdjjncs8et5utseepv {txid}i0"
))
.rpc_server(&rpc_server)
.expected_stderr(format!("error: Inscription {txid}i0 not found\n"))
.expected_exit_code(1)
.run_and_extract_stdout();
}
#[test]
fn send_inscribed_sat() {
let rpc_server = test_bitcoincore_rpc::spawn();
create_wallet(&rpc_server);
rpc_server.mine_blocks(1);
let (inscription, _) = inscribe(&rpc_server);
rpc_server.mine_blocks(1);
let output = CommandBuilder::new(format!(
"wallet send --fee-rate 1 bc1qcqgs2pps4u4yedfyl5pysdjjncs8et5utseepv {inscription}",
))
.rpc_server(&rpc_server)
.run_and_deserialize_output::<Output>();
rpc_server.mine_blocks(1);
let send_txid = output.transaction;#44,987,802textlet output = CommandBuilder::new("--index-sats wallet sats --tsv foo.tsv")
.write("foo.tsv", "nvtcsezkbtg")
.rpc_server(&rpc_server)
.run_and_deserialize_output::<Vec<OutputTsv>>();
assert_eq!(output[0].sat, "nvtcsezkbtg");
assert_eq!(output[0].output.to_string(), format!("{second_coinbase}:0"));
}
#[test]
fn sats_from_tsv_parse_error() {
let rpc_server = test_bitcoincore_rpc::spawn();
create_wallet(&rpc_server);
CommandBuilder::new("--index-sats wallet sats --tsv foo.tsv")
.write("foo.tsv", "===")
.rpc_server(&rpc_server)
.expected_exit_code(1)
.expected_stderr(
"error: failed to parse sat from string \"===\" on line 1: invalid digit found in string\n",
)
.run_and_extract_stdout();
}
#[test]
fn sats_from_tsv_file_not_found() {
let rpc_server = test_bitcoincore_rpc::spawn();
create_wallet(&rpc_server);
CommandBuilder::new("--index-sats wallet sats --tsv foo.tsv")
.rpc_server(&rpc_server)
.expected_exit_code(1)
.stderr_regex("error: I/O error reading `.*`\nbecause: .*\n")#44,987,211textmint1,000.mice#43,900,009brc-20mint1,000.mice#43,899,994brc-20mint1,000.mice#43,899,992brc-20mint1,000.mice#43,899,977brc-20mint1,000.mice#43,899,976brc-20mint1,000.mice#43,899,975brc-20mint1,000.mice#43,899,971brc-20mint1,000.mice#43,899,948brc-20mint1,000.mice#43,899,946brc-20mint1,000.mice#43,899,937brc-20mint1,000.mice#43,899,935brc-20mint1,000.mice#43,899,919brc-20mint1,000.mice#43,899,915brc-20mint1,000.mice#43,899,913brc-20mint1,000.mice#43,899,896brc-20mint1,000.mice#43,899,894brc-20mint1,000.mice#43,899,891brc-20mint1,000.mice#43,899,888brc-20mint1,000.mice#43,899,885brc-20mint1,000.mice#43,899,884brc-20mint1,000.mice#43,899,879brc-20mint1,000.mice#43,899,877brc-20mint1,000.mice#43,899,871brc-20transfer13,000,000.piin#39,914,141brc-20transfer5.test#35,085,161brc-20mint100,000,000.sats#15,897,418brc-20mint100,000,000.sats#15,897,396brc-20mint100,000,000.sats#15,897,390brc-20mint100,000,000.sats#15,897,379brc-20mint100,000,000.sats#15,897,369brc-20mint100,000,000.sats#15,897,368brc-20mint100,000,000.sats#15,897,361brc-20mint100,000,000.sats#15,897,360brc-20mint100,000,000.sats#15,897,355brc-20mint100,000,000.sats#15,897,343brc-20mint100,000,000.sats#15,897,340brc-20mint100,000,000.sats#15,897,337brc-20mint100,000,000.sats#15,897,308brc-20mint100,000,000.sats#15,897,298brc-20mint100,000,000.sats#15,897,291brc-20mint100,000,000.sats#15,897,290brc-20mint100,000,000.sats#15,897,280brc-20mint100,000,000.sats#15,897,278brc-20mint100,000,000.sats#15,897,256brc-20mint100,000,000.sats#15,897,255brc-20mint100,000,000.sats#15,897,253brc-20mint100,000,000.sats#15,897,252brc-20transfer10,000.ions#11,905,612brc-20transfer4,000.vdbx#11,417,798brc-20regdevi.sats#11,401,886snsregananda.sats#11,401,873snsregdoaa.sats#11,401,870snsregadama.sats#11,401,866snsregadil.sats#11,401,865snsregabul.sats#11,357,210snstransfer7,000.crsd#9,253,257brc-20mint1,000.crsd#9,103,471brc-20mint1,000.crsd#9,103,470brc-20