Skip to content

Commit

Permalink
Add BEEFY capabilities to the Polkadot runtime (#65)
Browse files Browse the repository at this point in the history
This adds BEEFY capabilities to the Polkadot runtime.

Governance/sudo call is later required to enable/start consensus.

Part of paritytech/parity-bridges-common#2420

---------

Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
serban300 and bkchr authored Dec 8, 2023
1 parent 49a04e5 commit 9bbd9d2
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 32 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- XCM transport fees are now exponential and are sent to a treasury account ([polkadot-fellows/runtimes#87](https://github.com/polkadot-fellows/runtimes/pull/87)). Context: https://github.com/paritytech/polkadot-sdk/pull/1234
- System parachains are now trusted teleporters of each other ([polkadot-fellows/runtimes#87](https://github.com/polkadot-fellows/runtimes/pull/87)). Context: https://github.com/paritytech/polkadot-sdk/pull/1368
- Treasury is able to spend various asset kinds ([polkadot-fellows/runtimes#87](https://github.com/polkadot-fellows/runtimes/pull/87))
- Add BEEFY to Polkadot ([polkadot-fellows/runtimes#65](https://github.com/polkadot-fellows/runtimes/pull/65))
- Fellowship Treasury pallet on Polkadot Collectives ([polkadot-fellows/runtimes#109](https://github.com/polkadot-fellows/runtimes/pull/109))

### Fixed

- Add missing weight functions for `runtime_parachains_hrmp` and `preimage` pallets ([polkadot-fellows/runtimes#56](https://github.com/polkadot-fellows/runtimes/pull/56))
- Fix for Reward Deficit in the pool ([polkadot-fellows/runtimes#87](https://github.com/polkadot-fellows/runtimes/pull/87)). Context: https://github.com/paritytech/polkadot-sdk/pull/1255

## [1.0.1] 22.10.2023
## [1.0.1] 14.11.2023

### Changed

Expand Down
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions relay/polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ smallvec = "1.8.0"
authority-discovery-primitives = { package = "sp-authority-discovery", default-features = false , version = "23.0.0" }
babe-primitives = { package = "sp-consensus-babe", default-features = false , version = "0.29.0" }
beefy-primitives = { package = "sp-consensus-beefy", default-features = false , version = "10.0.0" }
binary-merkle-tree = { default-features = false , version = "10.0.0" }
block-builder-api = { package = "sp-block-builder", default-features = false , version = "23.0.0" }
inherents = { package = "sp-inherents", default-features = false , version = "23.0.0" }
offchain-primitives = { package = "sp-offchain", default-features = false , version = "23.0.0" }
Expand All @@ -29,6 +30,7 @@ sp-arithmetic = { default-features = false , version = "20.0.0" }
sp-api = { default-features = false , version = "23.0.0" }
sp-genesis-builder = { default-features = false , version = "0.4.0" }
sp-std = { default-features = false , version = "12.0.0" }
sp-application-crypto = { default-features = false , version = "27.0.0" }
sp-io = { default-features = false , version = "27.0.0" }
sp-mmr-primitives = { default-features = false , version = "23.0.0" }
sp-runtime = { default-features = false , version = "28.0.0" }
Expand All @@ -45,6 +47,8 @@ pallet-authorship = { default-features = false , version = "25.0.0" }
pallet-babe = { default-features = false , version = "25.0.0" }
pallet-bags-list = { default-features = false , version = "24.0.0" }
pallet-balances = { default-features = false , version = "25.0.0" }
pallet-beefy = { default-features = false , version = "25.0.0" }
pallet-beefy-mmr = { default-features = false , version = "25.0.0" }
pallet-bounties = { default-features = false , version = "24.0.0" }
pallet-child-bounties = { default-features = false , version = "24.0.0" }
pallet-transaction-payment = { default-features = false , version = "25.0.0" }
Expand All @@ -62,6 +66,7 @@ pallet-im-online = { default-features = false , version = "24.0.0" }
pallet-indices = { default-features = false , version = "25.0.0" }
pallet-membership = { default-features = false , version = "25.0.0" }
pallet-message-queue = { default-features = false , version = "28.0.0" }
pallet-mmr = { default-features = false , version = "24.0.0" }
pallet-multisig = { default-features = false , version = "25.0.0" }
pallet-nomination-pools = { default-features = false , version = "22.0.0" }
pallet-nomination-pools-runtime-api = { default-features = false , version = "20.0.0" }
Expand Down Expand Up @@ -128,6 +133,7 @@ std = [
"authority-discovery-primitives/std",
"babe-primitives/std",
"beefy-primitives/std",
"binary-merkle-tree/std",
"bitvec/std",
"block-builder-api/std",
"frame-benchmarking?/std",
Expand All @@ -147,6 +153,8 @@ std = [
"pallet-babe/std",
"pallet-bags-list/std",
"pallet-balances/std",
"pallet-beefy/std",
"pallet-beefy-mmr/std",
"pallet-bounties/std",
"pallet-child-bounties/std",
"pallet-collective/std",
Expand All @@ -162,6 +170,7 @@ std = [
"pallet-indices/std",
"pallet-membership/std",
"pallet-message-queue/std",
"pallet-mmr/std",
"pallet-multisig/std",
"pallet-nomination-pools-benchmarking?/std",
"pallet-nomination-pools-runtime-api/std",
Expand Down Expand Up @@ -197,6 +206,7 @@ std = [
"serde/std",
"serde_derive",
"sp-api/std",
"sp-application-crypto/std",
"sp-arithmetic/std",
"sp-core/std",
"sp-genesis-builder/std",
Expand Down Expand Up @@ -241,6 +251,7 @@ runtime-benchmarks = [
"pallet-indices/runtime-benchmarks",
"pallet-membership/runtime-benchmarks",
"pallet-message-queue/runtime-benchmarks",
"pallet-mmr/runtime-benchmarks",
"pallet-multisig/runtime-benchmarks",
"pallet-nomination-pools-benchmarking/runtime-benchmarks",
"pallet-nomination-pools/runtime-benchmarks",
Expand Down Expand Up @@ -281,6 +292,8 @@ try-runtime = [
"pallet-babe/try-runtime",
"pallet-bags-list/try-runtime",
"pallet-balances/try-runtime",
"pallet-beefy-mmr/try-runtime",
"pallet-beefy/try-runtime",
"pallet-bounties/try-runtime",
"pallet-child-bounties/try-runtime",
"pallet-collective/try-runtime",
Expand All @@ -295,6 +308,7 @@ try-runtime = [
"pallet-indices/try-runtime",
"pallet-membership/try-runtime",
"pallet-message-queue/try-runtime",
"pallet-mmr/try-runtime",
"pallet-multisig/try-runtime",
"pallet-nomination-pools/try-runtime",
"pallet-offences/try-runtime",
Expand Down
Loading

0 comments on commit 9bbd9d2

Please sign in to comment.