![](/_next/image?url=%2Fimages%2Fgradient-top-bg.png&w=1920&q=75)
#[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
Collection
Ord
Owner
bc1pxhuyej...cvjqh9w4m6ID
5e2fb40ddd...56de9dfbi0
Detail
History
Sign Up for our Newsletter
And be the first to know about any updates!