Skip to content

Commit

Permalink
Merge branch 'master' into feat/content-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jahvi committed Apr 17, 2024
2 parents 0e6457b + e247b69 commit 58dc839
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/subcommand/env.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use {super::*, colored::Colorize, std::net::TcpListener};
use {super::*, crate::wallet::batch, colored::Colorize, std::net::TcpListener};

struct KillOnDrop(process::Child);

Expand Down Expand Up @@ -74,6 +74,32 @@ rpcport={bitcoind_port}
),
)?;

fs::write(absolute.join("inscription.txt"), "FOO")?;

let yaml = serde_yaml::to_string(&batch::File {
etching: Some(batch::Etching {
divisibility: 0,
rune: "FOO".parse::<SpacedRune>().unwrap(),
supply: "2000".parse().unwrap(),
premine: "1000".parse().unwrap(),
symbol: '¢',
terms: Some(batch::Terms {
amount: "1000".parse().unwrap(),
cap: 1,
..default()
}),
turbo: false,
}),
inscriptions: vec![batch::Entry {
file: Some("env/inscription.txt".into()),
..default()
}],
..default()
})
.unwrap();

fs::write(absolute.join("batch.yaml"), yaml)?;

let _bitcoind = KillOnDrop(
Command::new("bitcoind")
.arg(format!("-conf={}", absolute.join("bitcoin.conf").display()))
Expand Down

0 comments on commit 58dc839

Please sign in to comment.