feat: Include cbor probing for all known eras (#51)

This commit is contained in:
Santiago Carmuega 2022-02-17 09:52:07 -03:00 committed by GitHub
parent 60baccec47
commit b2688fcd9e
5 changed files with 62 additions and 19 deletions

View file

@ -20,3 +20,12 @@ where
minicbor::decode(bytes).map_err(|e| e.into())
}
}
#[derive(Debug, Copy, Clone)]
pub enum Era {
Byron,
Shelley,
Allegra, // time-locks
Mary, // multi-assets
Alonzo, // smart-contracts
}