chore: update utxorpc-spec to 0.3.0 (#399)
This commit is contained in:
parent
4cebe1271e
commit
78414b6ce8
2 changed files with 3 additions and 4 deletions
|
|
@ -11,8 +11,7 @@ readme = "README.md"
|
||||||
authors = ["Santiago Carmuega <santiago@carmuega.me>"]
|
authors = ["Santiago Carmuega <santiago@carmuega.me>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
#utxorpc = { path = "../../../utxorpc/rust-sdk" }
|
utxorpc-spec = { version = "0.3.0" }
|
||||||
utxorpc = { version = "1.0.0-alpha.1" }
|
|
||||||
pallas-traverse = { version = "=0.22.0", path = "../pallas-traverse" }
|
pallas-traverse = { version = "=0.22.0", path = "../pallas-traverse" }
|
||||||
pallas-primitives = { version = "=0.22.0", path = "../pallas-primitives" }
|
pallas-primitives = { version = "=0.22.0", path = "../pallas-primitives" }
|
||||||
pallas-codec = { version = "=0.22.0", path = "../pallas-codec" }
|
pallas-codec = { version = "=0.22.0", path = "../pallas-codec" }
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use pallas_traverse as trv;
|
||||||
|
|
||||||
use trv::OriginalHash;
|
use trv::OriginalHash;
|
||||||
|
|
||||||
use utxorpc::proto::cardano::v1 as u5c;
|
use utxorpc_spec::utxorpc::v1alpha::cardano as u5c;
|
||||||
|
|
||||||
pub fn map_purpose(x: &alonzo::RedeemerTag) -> u5c::RedeemerPurpose {
|
pub fn map_purpose(x: &alonzo::RedeemerTag) -> u5c::RedeemerPurpose {
|
||||||
match x {
|
match x {
|
||||||
|
|
@ -469,7 +469,7 @@ pub fn map_block(block: &trv::MultiEraBlock) -> u5c::Block {
|
||||||
header: u5c::BlockHeader {
|
header: u5c::BlockHeader {
|
||||||
slot: block.slot(),
|
slot: block.slot(),
|
||||||
hash: block.hash().to_vec().into(),
|
hash: block.hash().to_vec().into(),
|
||||||
height: block.number()
|
height: block.number(),
|
||||||
}
|
}
|
||||||
.into(),
|
.into(),
|
||||||
body: u5c::BlockBody {
|
body: u5c::BlockBody {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue