Skip to content

Commit

Permalink
Migrate BagsList (#168)
Browse files Browse the repository at this point in the history
Signed-off-by: david <david@lemarier.ca>
  • Loading branch information
lemarier committed Jul 13, 2022
1 parent e1a2a53 commit 725768c
Show file tree
Hide file tree
Showing 21 changed files with 112 additions and 42 deletions.
82 changes: 67 additions & 15 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "tidechain"
path = "src/main.rs"

[package]
version = "0.5.0"
version = "0.5.1"
name = "tidechain"
description = "Implementation of Tidechain node in Rust based on the Substrate framework."
license = "GPL-3.0-or-later"
Expand All @@ -24,7 +24,7 @@ members = [
'node/service',
'runtime/tidechain',
'runtime/lagoon',
#'utils/generate-bags',
'utils/generate-bags',
'frame/*',
]

Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tidechain-cli"
version = "0.5.0"
version = "0.5.1"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
license = "GNU GPL v3"
Expand Down
2 changes: 1 addition & 1 deletion frame/asset-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "pallet-asset-registry"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion frame/fees/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "pallet-fees"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion frame/oracle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "pallet-oracle"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion frame/quorum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "pallet-quorum"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion frame/security/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "pallet-security"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion frame/tidefi-rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "pallet-tidefi-rpc"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion frame/tidefi-stake/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "pallet-tidefi-stake"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion frame/tidefi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "pallet-tidefi"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion node/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "tidechain-client"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion node/rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "tidechain-rpc"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion node/service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "tidechain-service"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
8 changes: 4 additions & 4 deletions runtime/common/config/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ use crate::{
AccountId, Balance, BlockExecutionWeight, EpochDuration, GrandpaId, ImOnlineId, Moment,
RuntimeBlockLength, RuntimeBlockWeights,
},
Babe, BagsList, Balances, BlockNumber, Call, CouncilCollectiveInstance,
ElectionProviderMultiPhase, Event, Historical, ImOnline, Offences, Runtime, Session, SessionKeys,
Staking, Timestamp, TransactionPayment, Treasury,
Babe, Balances, BlockNumber, Call, CouncilCollectiveInstance, ElectionProviderMultiPhase, Event,
Historical, ImOnline, Offences, Runtime, Session, SessionKeys, Staking, Timestamp,
TransactionPayment, Treasury, VoterList,
};
use frame_support::{
parameter_types,
Expand Down Expand Up @@ -348,7 +348,7 @@ impl pallet_staking::Config for Runtime {
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
type OffendingValidatorsThreshold = OffendingValidatorsThreshold;
// Use the nominators map to iter voters, but also keep bags-list up-to-date.
type VoterList = BagsList;
type VoterList = VoterList;
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
type BenchmarkingConfig = StakingBenchmarkingConfig;
type OnStakerSlash = ();
Expand Down
2 changes: 1 addition & 1 deletion runtime/lagoon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.5.0"
version = "0.5.1"
name = "lagoon-runtime"
authors = ["Semantic Network Team <publishers@tidelabs.org>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion runtime/lagoon/src/bag_thresholds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

//! Autogenerated bag thresholds.
//!
//! Generated on 2022-01-06T00:58:15.278014+00:00
//! Generated on 2022-07-13T11:21:56.904857+00:00
//! for the lagoon runtime.

/// Existential weight for this runtime.
Expand Down

0 comments on commit 725768c

Please sign in to comment.