Skip to content

Commit

Permalink
Release 0.23.1
Browse files Browse the repository at this point in the history
m10-protos@0.23.1
m10-sdk@0.23.1
m10-signing@0.23.1

Generated by cargo-workspaces
  • Loading branch information
sadroeck committed Aug 5, 2022
1 parent c868898 commit a3bfe05
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions examples/bank-emulator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ serde_json = "1"
serde_with = "1"
smol_str = "0.1"
m10-bank-emulator-protos = { path = "../../shared/rust/bank-emulator-protos", features = ["client"] }
m10-protos = { version = "0.23.0", features = ["dynamic2"] }
m10-protos = { version = "0.23.1", features = ["dynamic2"] }
tracing-actix-web = "0.5.0-beta.9"
tracing = "0.1"
tracing-subscriber = { version = "0.2", default-features = false, features = ["env-filter", "smallvec", "ansi", "parking_lot"] }
Expand All @@ -41,4 +41,4 @@ tokio = { version = "1.6.1", features = ["full"] }
tonic = "0.5"
uuid = { version = "0.8", features = ["serde"] }
m10-rds-pool = { path = "../rds-pool" }
m10-sdk = "0.23.0"
m10-sdk = "0.23.1"
2 changes: 1 addition & 1 deletion examples/bank-emulator/integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ tonic = "0.5"
tokio = { version = "1.7.0", features = ["full"] }
uuid = { version = "0.8", features = ["serde"] }
m10-bank-emulator = { path = ".." }
m10-sdk = "0.23.0"
m10-sdk = "0.23.1"
2 changes: 1 addition & 1 deletion examples/cbdc-admin/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async-trait = "0.1"
base64 = "0.13"
config = { version = "0.11", default-features = false, features = ["toml"] }
hex = "0.4"
m10-sdk = "0.23.0"
m10-sdk = "0.23.1"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_with = "1"
Expand Down
4 changes: 2 additions & 2 deletions examples/m10_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ futures-lite = "1.11"
hex = "0.4"
hyper = "0.14"
hyper-rustls = "0.22"
m10-sdk = "0.23.0"
m10-protos = { version = "0.23.0", features = ["dynamic2"] }
m10-sdk = "0.23.1"
m10-protos = { version = "0.23.1", features = ["dynamic2"] }
ron = "0.6.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion rust/protos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "m10-protos"
version = "0.23.0"
version = "0.23.1"
authors = ["Sascha Wise <sascha@m10.io>", "Sam De Roeck <sam.deroeck@m10.io>"]
edition = "2021"
description = "M10 Protocol Buffers"
Expand Down
6 changes: 3 additions & 3 deletions rust/sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "m10-sdk"
version = "0.23.0"
version = "0.23.1"
authors = ["Michael Wittner <michael.wittner@m10.io>", "Sam De Roeck <sam.deroeck@m10.io>"]
edition = "2021"
description = "M10 SDK API"
Expand All @@ -24,7 +24,7 @@ format = ["parse-display", "base64", "hex/default"]
bytes = "1"
fastrand = "1"
hex = { version = "0.4", default-features = false }
m10-protos = { version = "0.23.0", path = "../protos" }
m10-protos = { version = "0.23.1", path = "../protos" }
uuid = { version = "0.8", features = ["serde", "v4"] }
serde = { version = "1", features = ["derive"] }
serde_with = { version = "1", features = ["hex"] }
Expand All @@ -39,7 +39,7 @@ ring = { version = "0.16", features = ["std"], optional = true }
# service
futures-core = { version = "0.3", optional = true }
futures-util = { version = "0.3", optional = true }
m10-signing = { version = "0.23.0", path = "../signing", optional = true }
m10-signing = { version = "0.23.1", path = "../signing", optional = true }
tonic = { version = "0.5", features = ["tls", "tls-roots"], optional = true }

# format
Expand Down
14 changes: 10 additions & 4 deletions rust/sdk/src/types/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,17 @@ impl TryFrom<sdk::TransferStep> for TransferStep {
type Error = M10Error;

fn try_from(step: sdk::TransferStep) -> Result<Self, Self::Error> {
let sdk::TransferStep {
from_account_id,
to_account_id,
amount,
metadata,
} = step;
Ok(TransferStep {
from: AccountId::try_from_be_slice(&step.from_account_id)?,
to: AccountId::try_from_be_slice(&step.to_account_id)?,
amount: step.amount,
metadata: vec![],
from: AccountId::try_from_be_slice(&from_account_id)?,
to: AccountId::try_from_be_slice(&to_account_id)?,
amount,
metadata,
})
}
}
Expand Down
4 changes: 2 additions & 2 deletions rust/signing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "m10-signing"
version = "0.23.0"
version = "0.23.1"
authors = ["Michael Wittner <michael.wittner@m10.io>"]
edition = "2021"
description = "M10 utility library for request signing"
Expand All @@ -11,7 +11,7 @@ repository = "https://github.com/m10io/sdk"
[dependencies]
async-trait = "0.1"
base64 = "0.13"
m10-protos = { version = "0.23.0", path = "../protos" }
m10-protos = { version = "0.23.1", path = "../protos" }
serde = { version = "1", default-features = false, features = ["alloc", "derive", "rc"] }
ring = { version = "0.16", features = ["std"] }
thiserror = "1"

0 comments on commit a3bfe05

Please sign in to comment.