#[default] #[serde(rename = "separate-outputs")] SeparateOutputs, #[serde(rename = "shared-output")] SharedOutput, } #[derive(Deserialize, Default, PartialEq, Debug, Clone)] #[serde(deny_unknown_fields)] pub(crate) struct BatchEntry { pub(crate) destination: Option<Address<NetworkUnchecked>>, pub(crate) file: PathBuf, pub(crate) metadata: Option<serde_yaml::Value>, pub(crate) metaprotocol: Option<String>, } impl BatchEntry { pub(crate) fn metadata(&self) -> Result<Option<Vec<u8>>> { Ok(match &self.metadata { None => None, Some(metadata) => { let mut cbor = Vec::new(); ciborium::into_writer(&metadata, &mut cbor)?; Some(cbor) } }) } } #[derive(Deserialize, PartialEq, Debug, Clone, Default)] #[serde(deny_unknown_fields)] pub(crate) struct Batchfile { pub(crate) inscriptions: Vec<BatchEntry>, pub(crate) mode: Mode, pub(crate) parent: Option<InscriptionId>, pub(crate) postage: Option<u64>, } impl Batchfile { pub(crate) fn load(path: &Path) -> Result<Batchfile> {

Inscription #44970461

ID

5e2fb40ddd...56de9dfbi0

Detail

History

Action
Price
Marketplace
From
To
Time

INSCRIBED

-

-

-w4m6

9 months

Sign Up for our Newsletter

And be the first to know about any updates!

OrdinalHub logo

All Rights Reserved OrdinalHub.com 2024

Support

Follow Us