feat(interop): re-export utxorpc spec to unify downstream versions (#448)

This commit is contained in:
Santiago Carmuega 2024-04-18 22:40:40 -03:00 committed by GitHub
parent 92da124247
commit 8fde4a5e11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -11,7 +11,9 @@ readme = "README.md"
authors = ["Santiago Carmuega <santiago@carmuega.me>"]
[dependencies]
utxorpc-spec = { version = "0.4.4" }
pallas-traverse = { version = "=0.25.0", path = "../pallas-traverse" }
pallas-primitives = { version = "=0.25.0", path = "../pallas-primitives" }
pallas-codec = { version = "=0.25.0", path = "../pallas-codec" }
utxorpc-spec = { version = "0.5.0" }
# utxorpc-spec = { path = "../../../utxorpc/spec/gen/rust" }

View file

@ -6,6 +6,8 @@ use pallas_traverse as trv;
use trv::OriginalHash;
pub use utxorpc_spec::utxorpc::v1alpha as spec;
use utxorpc_spec::utxorpc::v1alpha::cardano as u5c;
pub fn map_purpose(x: &conway::RedeemerTag) -> u5c::RedeemerPurpose {