Skip to content

Commit

Permalink
Minor fixes for changelog of 5.1.0 release (#2322)
Browse files Browse the repository at this point in the history
* Use fixed version links in changelog

* Use version 5.1.0 in examples
  • Loading branch information
cmichi authored Nov 28, 2024
1 parent e4fd25d commit 7eb7568
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)))]
Expand All @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/public/contract-xcm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "contract-xcm"
version = "4.0.0"
version = "5.1.0"
authors = ["Use Ink <[email protected]>"]
edition = "2021"
publish = false
Expand Down

0 comments on commit 7eb7568

Please sign in to comment.