From 4535a6d35cd8b235925b7a629a177fc4adda53eb Mon Sep 17 00:00:00 2001 From: Huba Gaspar Date: Fri, 9 Oct 2026 15:48:35 +0200 Subject: [PATCH] chore(deps): pin canton-lib 0.11.0 canton-lib 0.11.0 moves canton-api-client to 3.6.1. The localnet suite depends on canton-api-client directly, so its pin moves too. A project that pins a canton-lib v0.10.0 crate next to this one cannot resolve canton-api-client, so the release is 0.2.0. canton-lib 0.10.1 also makes active_contracts::get return the Ledger API error instead of an empty list. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 14 ++++++++++++++ Cargo.lock | 28 ++++++++++++++-------------- Cargo.toml | 14 +++++++------- README.md | 11 ++++++----- 4 files changed, 41 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5ab96c..ca5d5b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,20 @@ follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.2.0] - 2026-10-09 + +### Changed + +- The crate uses `canton-lib` 0.11.0 instead of 0.10.0. `canton-lib` now + uses `canton-api-client` 3.6.1 instead of 3.6.0. +- A project that also depends on a `canton-lib` crate must pin `v0.11.0`. + With a `v0.10.0` pin, Cargo cannot resolve `canton-api-client` and the + build fails. A direct `canton-api-client` dependency must be + `3.6.1-0.1.0` for the same reason. +- The re-exported `active_contracts::get` returns the Ledger API error when + the participant rejects the request. With 0.10.0 it returned an empty + list, so a rejected balance query reported 0. + ## [0.1.0] - 2026-10-06 The first release. `bitsafe-token` replaces `cbtc-lib` and adds BETH. diff --git a/Cargo.lock b/Cargo.lock index 228995b..3d0e876 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -606,7 +606,7 @@ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" [[package]] name = "bitsafe-token" -version = "0.1.0" +version = "0.2.0" dependencies = [ "alloy-primitives", "alloy-sol-types", @@ -738,9 +738,9 @@ dependencies = [ [[package]] name = "canton-api-client" -version = "3.6.0-0.1.0" +version = "3.6.1-0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1702122d98d165e2c77a1c6532e8be8a80d5bf7f25eac71beed5587a61fcaf01" +checksum = "47e17b77ce38ae760c1b8f82f8ae8dc0d2766f16a7092d540dfcf3bf26e21f6c" dependencies = [ "chrono", "reqwest 0.13.5", @@ -839,8 +839,8 @@ dependencies = [ [[package]] name = "common" -version = "0.10.0" -source = "git+https://github.com/DLC-link/canton-lib?tag=v0.10.0#f5a90bd2b44c976e641d9375e43fdc91b9dfa472" +version = "0.11.0" +source = "git+https://github.com/DLC-link/canton-lib?tag=v0.11.0#87646b727ff5d5ca56f33ca75cb2cce1dfc8f6f0" dependencies = [ "canton-api-client", "rust_decimal", @@ -2195,8 +2195,8 @@ dependencies = [ [[package]] name = "keycloak" -version = "0.10.0" -source = "git+https://github.com/DLC-link/canton-lib?tag=v0.10.0#f5a90bd2b44c976e641d9375e43fdc91b9dfa472" +version = "0.11.0" +source = "git+https://github.com/DLC-link/canton-lib?tag=v0.11.0#87646b727ff5d5ca56f33ca75cb2cce1dfc8f6f0" dependencies = [ "base64 0.22.1", "reqwest 0.12.28", @@ -2221,8 +2221,8 @@ checksum = "a4933f3f57a8e9d9da04db23fb153356ecaf00cbd14aee46279c33dc80925c37" [[package]] name = "ledger" -version = "0.10.0" -source = "git+https://github.com/DLC-link/canton-lib?tag=v0.10.0#f5a90bd2b44c976e641d9375e43fdc91b9dfa472" +version = "0.11.0" +source = "git+https://github.com/DLC-link/canton-lib?tag=v0.11.0#87646b727ff5d5ca56f33ca75cb2cce1dfc8f6f0" dependencies = [ "base64 0.22.1", "canton-api-client", @@ -2888,8 +2888,8 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" [[package]] name = "registry" -version = "0.10.0" -source = "git+https://github.com/DLC-link/canton-lib?tag=v0.10.0#f5a90bd2b44c976e641d9375e43fdc91b9dfa472" +version = "0.11.0" +source = "git+https://github.com/DLC-link/canton-lib?tag=v0.11.0#87646b727ff5d5ca56f33ca75cb2cce1dfc8f6f0" dependencies = [ "common", "reqwest 0.12.28", @@ -3664,7 +3664,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.3.4", + "getrandom 0.4.3", "once_cell", "rustix", "windows-sys 0.61.2", @@ -3758,8 +3758,8 @@ checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" [[package]] name = "token" -version = "0.10.0" -source = "git+https://github.com/DLC-link/canton-lib?tag=v0.10.0#f5a90bd2b44c976e641d9375e43fdc91b9dfa472" +version = "0.11.0" +source = "git+https://github.com/DLC-link/canton-lib?tag=v0.11.0#87646b727ff5d5ca56f33ca75cb2cce1dfc8f6f0" dependencies = [ "base64 0.22.1", "canton-api-client", diff --git a/Cargo.toml b/Cargo.toml index 54f096c..94446e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bitsafe-token" -version = "0.1.0" +version = "0.2.0" edition = "2024" description = "Client library for BitSafe bridged assets on Canton: CBTC, BETH" license = "MIT" @@ -20,22 +20,22 @@ uninlined_format_args = "allow" [dependencies] alloy-primitives = { version = "1.7.3" } alloy-sol-types = { version = "1.7.3" } -common = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.10.0" } -ledger = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.10.0" } -registry = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.10.0" } +common = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.11.0" } +ledger = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.11.0" } +registry = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.11.0" } reqwest = { version = "0.13.5", features = ["json"] } serde = { version = "1.0", features = ["derive"] } serde_json = { version = "1" } -token = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.10.0" } +token = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.11.0" } uuid = { version = "1.18", features = ["v4"] } [dev-dependencies] -canton-api-client = { version = "3.6.0-0.1.0" } +canton-api-client = { version = "3.6.1-0.1.0" } chrono = { version = "0.4.42" } csv = { version = "1.3" } dotenvy = { version = "0.15" } env_logger = { version = "0.11" } -keycloak = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.10.0" } +keycloak = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.11.0" } tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread", "time"] } [[example]] diff --git a/README.md b/README.md index 2df3766..c9547de 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ also re-exports the Canton Token Standard operations of [canton-lib](https://github.com/DLC-link/canton-lib), so you can hold, send and receive both assets. -**Status: 0.1.0.** The API can change in any 0.x release. The crate is not on +**Status: 0.2.0.** The API can change in any 0.x release. The crate is not on crates.io; you add it as a git dependency. It needs Rust 1.94 or newer (edition 2024). @@ -16,15 +16,16 @@ Add the crate to your `Cargo.toml`: ```toml [dependencies] -bitsafe-token = { git = "https://github.com/DLC-link/bitsafe-token-lib", tag = "v0.1.0" } +bitsafe-token = { git = "https://github.com/DLC-link/bitsafe-token-lib", tag = "v0.2.0" } # Login. Or use your own OpenID Connect client and pass its access token. -keycloak = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.10.0" } +keycloak = { git = "https://github.com/DLC-link/canton-lib", tag = "v0.11.0" } tokio = { version = "1", features = ["macros", "rt-multi-thread"] } ``` -If you add other `canton-lib` crates, pin the same tag, `v0.10.0`. Two +If you add other `canton-lib` crates, pin the same tag, `v0.11.0`. Two different pins make Cargo build two copies of the shared types, and then the -types do not match. +types do not match. A direct `canton-api-client` dependency must be version +`3.6.1-0.1.0`. With any other version, Cargo cannot resolve the build. ## Before you start