Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bridges-v2-relay
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Jun 14, 2024
2 parents 6684819 + 9c61106 commit f69d0c1
Show file tree
Hide file tree
Showing 9 changed files with 2,490 additions and 1,301 deletions.
2,841 changes: 2,242 additions & 599 deletions Cargo.lock

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To prepare a release:
[`master` branch](https://github.com/paritytech/parity-bridges-common/tree/master);

2. Select release version: go to the `Cargo.toml` of `substrate-relay` crate
([here](https://github.com/paritytech/parity-bridges-common/blob/master/relays/bin-substrate/Cargo.toml#L3))
([here](https://github.com/paritytech/parity-bridges-common/blob/master/substrate-relay/Cargo.toml#L3))
to look for the latest version. Then increment the minor or major version.

**NOTE**: we are not going to properly support [semver](https://semver.org)
Expand Down Expand Up @@ -118,7 +118,7 @@ chain runtimes are changes: `Polkadot`, `Kusama`, `PBH`, `KBH`.

### Adding Support for Updated Chain

When one of involved chains is upgraded, we need to update the relayer code to
When one of the involved chains is upgraded or will be upgraded very soon (e.g., the enactment period ends in a few days), we need to update the relayer code to
support it. Normally it means:

1. Bumping bundled chain versions (`spec_version`, `transaction_version`) in following places:
Expand All @@ -135,7 +135,7 @@ support it. Normally it means:

2. Regenerating bundled runtime wrapper code using `runtime-codegen` binary:

_(You can use the pre-defined `./scripts/regenerate_runtimes.sh` to regenerate all supported runtimes. If you need just a particular runtime, then follow the commands below.)_
_(You can use the pre-defined `./scripts/regenerate_runtimes.sh` to regenerate all supported **already enacted live** runtimes. If you need just a particular runtime or a runtime which is not yet enacted, then follow the commands below.)_

If you can start updated chain node, it could be done using following command
(assuming you're in the root of the repository):
Expand All @@ -155,7 +155,8 @@ Otherwise, you'll need a runtime file. You may download it from:
Then use the following command:
```sh
cd tools/runtime-codegen
cargo run --bin runtime-codegen -- --from-wasm-file rococo_runtime.compact.compressed.wasm > ../../relays/client-rococo/src/codegen_runtime.rs
curl -sL https://github.com/polkadot-fellows/runtimes/releases/download/v1.2.4/bridge-hub-polkadot_runtime-v1002004.compact.compressed.wasm -o bridge-hub-polkadot_runtime-v1002004.compact.compressed.wasm
cargo run --bin runtime-codegen -- --from-wasm-file bridge-hub-polkadot_runtime-v1002004.compact.compressed.wasm > ../../relay-clients/client-bridge-hub-polkadot/src/codegen_runtime.rs
```

**IMPORTANT**: due to [well-known issue](https://github.com/paritytech/parity-bridges-common/issues/2669)
Expand Down
17 changes: 9 additions & 8 deletions relay-clients/client-bridge-hub-kusama/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ subxt = { version = "0.37.0", default-features = false, features = ["native"] }

# Bridge dependencies

bp-bridge-hub-kusama = { git = "https://github.com/paritytech/polkadot-sdk", branch = "bko-bridges-backports-and-nits" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "bko-bridges-backports-and-nits" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "bko-bridges-backports-and-nits" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "bko-bridges-backports-and-nits" }
bp-polkadot = { git = "https://github.com/paritytech/polkadot-sdk", branch = "bko-bridges-backports-and-nits" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "bko-bridges-backports-and-nits" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "bko-bridges-backports-and-nits" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "bko-bridges-backports-and-nits" }
bp-bridge-hub-kusama = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }

# Substrate Dependencies

Expand Down
Loading

0 comments on commit f69d0c1

Please sign in to comment.