Skip to content

Commit

Permalink
Upgrade to Polkadot v1.8.0 (#67)
Browse files Browse the repository at this point in the history
* feat: migrate to polkadot-v1.2.0.

logion-network/logion-internal#1069

* feat: migrate to polkadot-v1.3.0.

logion-network/logion-internal#1080

* feat: update to polkadot-v1.5.0.

logion-network/logion-internal#1085

* feat: upgrade to polkadot-v1.8.0.

logion-network/logion-internal#1122

---------

Co-authored-by: Benoit Devos <[email protected]>
  • Loading branch information
gdethier and benoitdevos authored Mar 13, 2024
1 parent 3e0b4f6 commit 9a22f1b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,32 @@ version = '1.0.188'
[dev-dependencies.sp-state-machine]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.sp-std]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.sp-staking]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.log]
default-features = false
Expand All @@ -54,23 +54,23 @@ version = '3.0.0'
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
optional = true
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.frame-support]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.frame-system]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.pallet-session]
default-features = false
features = ['historical']
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[dependencies.scale-info]
default-features = false
Expand All @@ -80,7 +80,7 @@ version = '2.1.1'
[dependencies.sp-weights]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'

[features]
default = ['std']
Expand Down
4 changes: 2 additions & 2 deletions docs/im-online-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[dependencies.pallet-im-online]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'
```

```toml
Expand Down Expand Up @@ -150,7 +150,7 @@ construct_runtime!(
[dependencies.pallet-im-online]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'
```

* Import `ImOnlineId` in the `chain_spec.rs`.
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A [Substrate](https://github.com/paritytech/polkadot-sdk/tree/master/substrate#substrate) pallet to add/remove authorities/validators in PoA networks.

**Note: Current master is compatible with Substrate [polkadot-v1.1.0](https://github.com/paritytech/polkadot-sdk/tree/polkadot-v1.1.0) branch. For older versions, please see releases/tags.**
**Note: Current master is compatible with Substrate [polkadot-v1.8.0](https://github.com/paritytech/polkadot-sdk/tree/polkadot-v1.8.0) branch. For older versions, please see releases/tags.**

## Setup with Substrate Node Template

Expand All @@ -22,7 +22,7 @@ version = '1.1.0'
[dependencies.pallet-session]
default-features = false
git = 'https://github.com/paritytech/polkadot-sdk.git'
tag = 'polkadot-v1.1.0'
tag = 'polkadot-v1.8.0'
```

```toml
Expand Down
3 changes: 2 additions & 1 deletion src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use super::*;
use crate as validator_set;
use frame_support::parameter_types;
use frame_support::{derive_impl, parameter_types};
use frame_system::EnsureRoot;
use pallet_session::*;
use sp_core::{crypto::key_types::DUMMY, H256};
Expand Down Expand Up @@ -147,6 +147,7 @@ parameter_types! {
frame_system::limits::BlockWeights::simple_max(frame_support::weights::Weight::from_parts(1024, 0));
}

#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)]
impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type BlockWeights = ();
Expand Down

0 comments on commit 9a22f1b

Please sign in to comment.