Skip to content

Commit 6363fb4

Browse files
Update dependencies (#836)
* update dependencies * update to polkadot-stable2503-7 * python3 scripts/generate_llms.py * these dependencies are tied to the zero-to-hero tutorial which currently use * update polkadot-sdk version * dry_run_xcm * Update develop/interoperability/test-and-debug.md Co-authored-by: Nicolás Hussein <[email protected]> * Update develop/interoperability/test-and-debug.md Co-authored-by: Nicolás Hussein <[email protected]> * formatting updates --------- Co-authored-by: Nicolás Hussein <[email protected]>
1 parent d91648b commit 6363fb4

File tree

4 files changed

+24
-26
lines changed

4 files changed

+24
-26
lines changed

develop/interoperability/test-and-debug.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,25 @@ The XCM Emulator provides both advantages and limitations when testing cross-cha
4646

4747
The `xcm-emulator` provides macros for defining a mocked testing environment. Check all the existing macros and functionality in the [XCM Emulator source code](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs){target=\_blank}. The most important macros are:
4848

49-
- [**`decl_test_relay_chains`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L355){target=\_blank} - defines runtime and configuration for the relay chains. Example:
49+
- [**`decl_test_relay_chains`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L361){target=\_blank} - defines runtime and configuration for the relay chains. Example:
5050

5151
```rust
52-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/polkadot-stable2412/cumulus/parachains/integration-tests/emulated/chains/relays/westend/src/lib.rs:26:47'
52+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/polkadot-stable2412/cumulus/parachains/integration-tests/emulated/chains/relays/westend/src/lib.rs:27:47'
5353
```
5454

55-
- [**`decl_test_parachains`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L590){target=\_blank} - defines runtime and configuration for the parachains. Example:
55+
- [**`decl_test_parachains`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L596){target=\_blank} - defines runtime and configuration for the parachains. Example:
5656

5757
```rust
58-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/polkadot-stable2412/cumulus/parachains/integration-tests/emulated/chains/parachains/assets/asset-hub-westend/src/lib.rs:32:55'
58+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/polkadot-stable2412/cumulus/parachains/integration-tests/emulated/chains/parachains/assets/asset-hub-westend/src/lib.rs:33:55'
5959
```
6060

61-
- [**`decl_test_bridges`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L1178){target=\_blank} - creates bridges between chains, specifying the source, target, and message handler. Example:
61+
- [**`decl_test_bridges`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L1221){target=\_blank} - creates bridges between chains, specifying the source, target, and message handler. Example:
6262

6363
```rust
6464
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/polkadot-stable2412/cumulus/parachains/integration-tests/emulated/networks/rococo-westend-system/src/lib.rs:63:74'
6565
```
6666

67-
- [**`decl_test_networks`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L916){target=\_blank} - defines a testing network with relay chains, parachains, and bridges, implementing message transport and processing logic. Example:
67+
- [**`decl_test_networks`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L958){target=\_blank} - defines a testing network with relay chains, parachains, and bridges, implementing message transport and processing logic. Example:
6868

6969
```rust
7070
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/polkadot-stable2412/cumulus/parachains/integration-tests/emulated/networks/westend-system/src/lib.rs:38:52'

develop/interoperability/xcm-runtime-apis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This API can be used independently for dry-running, double-checking, or testing.
3636
This API allows a dry-run of any extrinsic and obtaining the outcome if it fails or succeeds, as well as the local xcm and remote xcm messages sent to other chains.
3737

3838
```rust
39-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/dry_run.rs:67:67'
39+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/dry_run.rs:68:68'
4040
```
4141

4242
??? interface "Input parameters"
@@ -117,7 +117,7 @@ This API allows a dry-run of any extrinsic and obtaining the outcome if it fails
117117
This API allows the direct dry-run of an xcm message instead of an extrinsic one, checks if it will execute successfully, and determines what other xcm messages will be forwarded to other chains.
118118

119119
```rust
120-
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/dry_run.rs:70:70'
120+
--8<-- 'https://raw.githubusercontent.com/paritytech/polkadot-sdk/refs/tags/{{dependencies.repositories.polkadot_sdk.version}}/polkadot/xcm/xcm-runtime-apis/src/dry_run.rs:75:75'
121121
```
122122

123123
??? interface "Input parameters"

llms.txt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,10 @@ The XCM Emulator provides both advantages and limitations when testing cross-cha
668668

669669
The `xcm-emulator` provides macros for defining a mocked testing environment. Check all the existing macros and functionality in the [XCM Emulator source code](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs){target=\_blank}. The most important macros are:
670670

671-
- [**`decl_test_relay_chains`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L355){target=\_blank} - defines runtime and configuration for the relay chains. Example:
671+
- [**`decl_test_relay_chains`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L361){target=\_blank} - defines runtime and configuration for the relay chains. Example:
672672

673673
```rust
674-
// Westend declaration
675-
decl_test_relay_chains! {
674+
decl_test_relay_chains! {
676675
#[api_version(11)]
677676
pub struct Westend {
678677
genesis = genesis::genesis(),
@@ -695,11 +694,10 @@ decl_test_relay_chains! {
695694
}
696695
```
697696

698-
- [**`decl_test_parachains`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L590){target=\_blank} - defines runtime and configuration for the parachains. Example:
697+
- [**`decl_test_parachains`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L596){target=\_blank} - defines runtime and configuration for the parachains. Example:
699698

700699
```rust
701-
// AssetHubWestend Parachain declaration
702-
decl_test_parachains! {
700+
decl_test_parachains! {
703701
pub struct AssetHubWestend {
704702
genesis = genesis::genesis(),
705703
on_init = {
@@ -724,7 +722,7 @@ decl_test_parachains! {
724722
}
725723
```
726724

727-
- [**`decl_test_bridges`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L1178){target=\_blank} - creates bridges between chains, specifying the source, target, and message handler. Example:
725+
- [**`decl_test_bridges`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L1221){target=\_blank} - creates bridges between chains, specifying the source, target, and message handler. Example:
728726

729727
```rust
730728
decl_test_bridges! {
@@ -741,7 +739,7 @@ decl_test_parachains! {
741739
}
742740
```
743741

744-
- [**`decl_test_networks`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L916){target=\_blank} - defines a testing network with relay chains, parachains, and bridges, implementing message transport and processing logic. Example:
742+
- [**`decl_test_networks`**](https://github.com/paritytech/polkadot-sdk/blob/{{dependencies.repositories.polkadot_sdk.version}}/cumulus/xcm/xcm-emulator/src/lib.rs#L958){target=\_blank} - defines a testing network with relay chains, parachains, and bridges, implementing message transport and processing logic. Example:
745743

746744
```rust
747745
decl_test_networks! {
@@ -1188,7 +1186,7 @@ This API can be used independently for dry-running, double-checking, or testing.
11881186
This API allows a dry-run of any extrinsic and obtaining the outcome if it fails or succeeds, as well as the local xcm and remote xcm messages sent to other chains.
11891187

11901188
```rust
1191-
fn dry_run_call(origin: OriginCaller, call: Call) -> Result<CallDryRunEffects<Event>, Error>;
1189+
fn dry_run_call(origin: OriginCaller, call: Call, result_xcms_version: XcmVersion) -> Result<CallDryRunEffects<Event>, Error>;
11921190
```
11931191

11941192
??? interface "Input parameters"

variables.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ dependencies:
1818
docker_image_version: 1.84.1
1919
polkadot_sdk:
2020
repository_url: https://github.com/paritytech/polkadot-sdk
21-
version: polkadot-stable2412
22-
docker_image_version: stable2412
21+
version: polkadot-stable2503-7
22+
docker_image_version: stable2503-7
2323
open_zeppelin_contracts:
2424
repository_url: https://github.com/OpenZeppelin/openzeppelin-contracts
2525
version: v5.3.0
@@ -30,13 +30,13 @@ dependencies:
3030
crates:
3131
subxt:
3232
name: subxt
33-
version: 0.42.1
33+
version: 0.43.0
3434
subxt_cli:
3535
name: subxt-cli
36-
version: 0.42.1
36+
version: 0.43.0
3737
subxt_signer:
3838
name: subxt-signer
39-
version: 0.42.1
39+
version: 0.43.0
4040
tokio:
4141
name: tokio
4242
version: 1.44.2
@@ -50,20 +50,20 @@ dependencies:
5050
javascript_packages:
5151
chopsticks:
5252
name: '@acala-network/chopsticks'
53-
version: 1.1.1
53+
version: 1.2.1
5454
asset_transfer_api:
5555
name: '@substrate/asset-transfer-api'
5656
version: 1.0.0
5757
polkadot_js_api_version: v16.2.2 # Check changelog for pjs version bumps
5858
moonwall:
5959
name: '@moonwall/cli'
60-
version: 5.12.0
60+
version: 5.13.1
6161
polkadot_js_api:
6262
name: '@polkadot/api'
63-
version: 16.3.1
63+
version: 16.4.2
6464
polkadot_api:
6565
name: polkadot-api
66-
version: 1.14.1
66+
version: 1.15.0
6767
hardhat_resolc:
6868
name: '@hardhat-resolc'
6969
version: 0.0.7

0 commit comments

Comments
 (0)