Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for release of 5.0.0 #213

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
## Unreleased changes

## 5.0.0

- Update the `ContractClient` to optionally include a schema.
- Update the `create` method to the `ContractClient` to look up the embedded schema from the chain.
- Add the `new_with_schema` method to the `ContractClient` to create a `ContractClient` with a given schema.
- Add `dry_run_update_with_reject_reason_info` and `dry_run_update_raw_with_reject_reason_info` methods to the `ContractClient`. They are like the `dry_run_update` and `dry_run_update_raw` methods but in case of a reject, decode the reject reason into a human-readable error.
- Add `decode_concordium_std_error` and `decode_smart_contract_revert` functions to facilitate reject reason decoding of failed transactions.
- Add `cis3` module and `Cis3Contract` for interacting with CIS3 contracts.
- Updated the concordium-base submodule to incorporate protocol 7 changes (cooldown and baker pool status changes).
- Updated the `concordium-base` to version 6 to incorporate protocol 7 changes (cooldown and baker pool status changes).
Specifically, this changes the following public types:
- `AccountInfo`: Now has two new fields, `cooldown: Vec<Cooldown>` and `available_balance: Amount`.
The `cooldown` field specifies the stake currently in cooldown for the account.
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "concordium-rust-sdk"
version = "4.3.0"
version = "5.0.0"
authors = ["Concordium <[email protected]>"]
edition = "2021"
rust-version = "1.73"
Expand Down Expand Up @@ -37,8 +37,8 @@ num-traits = "0.2"
http = "0.2"
tokio-stream = "0.1"

concordium_base = { version = "5.0", path = "./concordium-base/rust-src/concordium_base/", features = ["encryption"] }
concordium-smart-contract-engine = { version = "5.0", path = "./concordium-base/smart-contracts/wasm-chain-integration/", default-features = false, features = ["async"]}
concordium_base = { version = "6.0", path = "./concordium-base/rust-src/concordium_base/", features = ["encryption"] }
concordium-smart-contract-engine = { version = "6.0", path = "./concordium-base/smart-contracts/wasm-chain-integration/", default-features = false, features = ["async"]}
aes-gcm = { version = "0.10", features = ["std"] }
tracing = "0.1"

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ MSRV bump will be accompanied by at least a minor version bump of the SDK.
The SDK is published on [crates.io](https://crates.io/crates/concordium-rust-sdk).

```toml
[dependencies]
concordium-rust-sdk = "2"
cargo add concordium-rust-sdk
```
limemloh marked this conversation as resolved.
Show resolved Hide resolved

## Versions
Expand Down