From 7eb7568890155b9d231809bb156a0f6d456ff24d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Thu, 28 Nov 2024 15:34:53 +0100 Subject: [PATCH] Minor fixes for changelog of 5.1.0 release (#2322) * Use fixed version links in changelog * Use version 5.1.0 in examples --- CHANGELOG.md | 17 +++++++++-------- .../public/contract-xcm/Cargo.toml | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a0d2a6b42..a45f526a36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,19 +30,19 @@ ink! 5.1 supports the usage of XCM in contracts, developers are no longer limite to cross-contract calls, but can now execute cross-parachain calls. We added a contract example that demonstrates the usage: -[`contract-xcm`](https://github.com/use-ink/ink/tree/master/integration-tests/public/runtime-call-contract) +[`contract-xcm`](https://github.com/use-ink/ink-examples/tree/main/contract-xcm) We also added a new page on our documentation website: TODO. You can view the Rust docs of the two functions here: -* [`xcm_send`](https://use-ink.github.io/ink/ink_env/fn.xcm_send.html) -* [`xcm_execute`](https://use-ink.github.io/ink/ink_env/fn.xcm_execute.html) +* [`xcm_send`](https://docs.rs/ink_env/5.1.0/ink_env/fn.xcm_send.html) +* [`xcm_execute`](https://docs.rs/ink_env/5.1.0/ink_env/fn.xcm_execute.html) #### (2) Call an ink! contract from a `polkadot-sdk` runtime ink! 5.1 comes with basic support for calling contracts from a Polkadot runtime. -We've added [this example](https://github.com/use-ink/ink/tree/master/integration-tests/public/runtime-call-contract) +We've added [this example](https://github.com/use-ink/ink-examples/tree/main/runtime-call-contract) that demonstrates how to call `flipper` from a `polkadot-sdk` runtime pallet. Calling a contract from the runtime is an interesting application for parachains, @@ -61,8 +61,10 @@ The limitations currently are: #### (3) E2E Testing We replaced our `drink` sandbox dependency with an internal ink! crate. -In case you use [DRink!](https://use.ink/basics/contract-testing/drink), these are -the two changes you have to make: +In case you use [DRink!](https://use.ink/basics/contract-testing/drink): + +First, you should upgrade your `drink` dependency to `version = "0.18.0"`. +Second, these are the two changes you have to make: ```diff - #[ink_e2e::test(backend(runtime_only(sandbox = ink_e2e::MinimalSandbox)))] @@ -83,7 +85,7 @@ The compatibility changes a bit to ink! 5.0: - `polkadot-sdk`: [>= v1.12.0](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.12.0) (this release stabilized the `pallet-contracts` XCM functions that ink! uses) - `substrate-contracts-node`: `>= 0.42.0` -- [DRink!](https://github.com/inkdevhub/drink): `>= 0.15.0` +- [DRink!](https://github.com/inkdevhub/drink): `>= 0.18.0` ### Added - [Runtime-to-Contract Calls] Environment agnostic contract invocation API, for calling contracts from runtime ‒ [#2219](https://github.com/use-ink/ink/pull/2219) @@ -95,7 +97,6 @@ The compatibility changes a bit to ink! 5.0: - [E2E] Add ability to take and restore snapshots ‒ [#2261](https://github.com/paritytech/ink/pull/2261) (thanks [@0xLucca](https://github.com/0xLucca)!) - [E2E] Demonstrate usage of seeds for secret URIs in E2E test for chain snapshots ‒ [#2163](https://github.com/paritytech/ink/pull/2163) - ### Changed - Update repository URLs & references from `paritytech` GitHub organization to new `use-ink` one ‒ [#2220](https://github.com/use-ink/ink/pull/2220) and [#2248](https://github.com/use-ink/ink/pull/2248) - [E2E] Update `subxt` and `polkadot-sdk` dependencies ‒ [#2174](https://github.com/use-ink/ink/pull/2174) diff --git a/integration-tests/public/contract-xcm/Cargo.toml b/integration-tests/public/contract-xcm/Cargo.toml index eef9c75bf6..35fa9cb477 100644 --- a/integration-tests/public/contract-xcm/Cargo.toml +++ b/integration-tests/public/contract-xcm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "contract-xcm" -version = "4.0.0" +version = "5.1.0" authors = ["Use Ink "] edition = "2021" publish = false