Skip to content

Commit

Permalink
chore(interop): update u5c spec to v0.7.0 (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega authored Jul 15, 2024
1 parent 1406d7a commit a856196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pallas-utxorpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pallas-primitives = { version = "=0.28.0", path = "../pallas-primitives" }
pallas-codec = { version = "=0.28.0", path = "../pallas-codec" }
pallas-crypto = { version = "=0.28.0", path = "../pallas-crypto" }

utxorpc-spec = { version = "0.6.0" }
utxorpc-spec = { version = "0.7.0" }

[dev-dependencies]
hex = "0.4.3"
Expand Down
3 changes: 3 additions & 0 deletions pallas-utxorpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,15 @@ impl<C: LedgerContext> Mapper<C> {

u5c::Certificate {
certificate: inner.into(),
redeemer: None, // TODO
}
}

pub fn map_withdrawals(&self, x: &(&[u8], u64)) -> u5c::Withdrawal {
u5c::Withdrawal {
reward_account: Vec::from(x.0).into(),
coin: x.1,
redeemer: None, // TODO
}
}

Expand All @@ -301,6 +303,7 @@ impl<C: LedgerContext> Mapper<C> {
u5c::Multiasset {
policy_id: x.policy().to_vec().into(),
assets: x.assets().iter().map(|x| self.map_asset(x)).collect(),
redeemer: None, // TODO
}
}

Expand Down

0 comments on commit a856196

Please sign in to comment.