Skip to content

Commit

Permalink
feat: bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
HinsonSIDAN committed Jun 12, 2024
1 parent 12e0599 commit 6b8ed00
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/sidan-csl-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sidan-csl-rs"
version = "0.5.1"
version = "0.5.2"
edition = "2021"
license = "Apache-2.0"
description = "Wrapper around the cardano-serialization-lib for easier transaction building, heavily inspired by cardano-cli APIs"
Expand Down
2 changes: 0 additions & 2 deletions packages/sidan-csl-rs/src/builder/core.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use pallas_traverse::cert;

use crate::{
core::builder::{IMeshCSL, MeshCSL},
csl,
Expand Down
18 changes: 7 additions & 11 deletions packages/sidan-csl-rs/src/core/builder.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use std::net::{Ipv4Addr, Ipv6Addr};

use pallas_traverse::cert;

use crate::{csl, model::*};

use super::{utils::build_tx_builder, utils::sign_transaction, utils::to_bignum, utils::to_value};
Expand Down Expand Up @@ -409,19 +407,17 @@ impl IMeshCSL for MeshCSL {
match relay {
Relay::SingleHostAddr(single_host_address_relay) => {
let ipv4_bytes: Option<csl::Ipv4> =
single_host_address_relay.ipv4.map_or(None, |ipv4_str| {
single_host_address_relay.ipv4.map(|ipv4_str| {
let addr: Ipv4Addr =
ipv4_str.parse().expect("ipv4 address parse failed");

Some(csl::Ipv4::new(addr.octets().to_vec()).unwrap())
csl::Ipv4::new(addr.octets().to_vec()).unwrap()
});

let ipv6_bytes: Option<csl::Ipv6> =
single_host_address_relay.ipv6.map_or(None, |ipv6_str| {
single_host_address_relay.ipv6.map(|ipv6_str| {
let addr: Ipv6Addr =
ipv6_str.parse().expect("ipv6 address parse failed");

Some(csl::Ipv6::new(addr.octets().to_vec()).unwrap())
csl::Ipv6::new(addr.octets().to_vec()).unwrap()
});
relays.add(&csl::Relay::new_single_host_addr(
&csl::SingleHostAddr::new(
Expand Down Expand Up @@ -470,11 +466,11 @@ impl IMeshCSL for MeshCSL {
.unwrap(),
&pool_owners,
&relays,
register_pool.pool_params.metadata.map_or(None, |data| {
Some(csl::PoolMetadata::new(
register_pool.pool_params.metadata.map(|data| {
csl::PoolMetadata::new(
&csl::URL::new(data.url).unwrap(),
&csl::PoolMetadataHash::from_hex(&data.hash).unwrap(),
))
)
}),
)),
))
Expand Down
4 changes: 2 additions & 2 deletions packages/whisky/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "whisky"
version = "0.5.1"
version = "0.5.2"
edition = "2021"
license = "Apache-2.0"
description = "The Cardano Rust SDK, inspired by MeshJS"
Expand All @@ -24,7 +24,7 @@ noop_proc_macro = "0.3.0"
pallas-codec = "0.22.0"
pallas-primitives = "0.22.0"
pallas-traverse = "0.22.0"
sidan-csl-rs = { version = "=0.5.1", path = "../sidan-csl-rs" }
sidan-csl-rs = { version = "=0.5.2", path = "../sidan-csl-rs" }

[profile.release]
# Tell `rustc` to optimize for small code size.
Expand Down

0 comments on commit 6b8ed00

Please sign in to comment.