Skip to content

Commit

Permalink
Merge pull request #213 from Concordium/release-5.0.0
Browse files Browse the repository at this point in the history
Prepare for release of 5.0.0
  • Loading branch information
limemloh authored Sep 9, 2024
2 parents 3445723 + bfdd499 commit 1e98372
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
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
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ 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"
```shell
cargo add concordium-rust-sdk
```

## Versions
Expand Down

0 comments on commit 1e98372

Please sign in to comment.