-
Notifications
You must be signed in to change notification settings - Fork 9
Add democracy pallet governance + fix benchmark script #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2b006cc
add pallet democracy and collective
haerdib 4917e16
fix PreimageByteDeposit value
haerdib 8ca536f
fix cargo build
haerdib e53d4d9
fix build
haerdib 2944517
remove restriction on ExternalMajorityOrigin
haerdib f95c452
update comments
haerdib dd8b832
add testing values
haerdib a057782
bump spec version
haerdib 8aeb840
add council
haerdib bed3a46
update comments
haerdib c2a5517
fix benchmarking
haerdib ad9a45b
update blacklist accepted origin
haerdib c87c5c5
add some comments to council and tc committee
haerdib f0f0fd9
update technical committee comment
haerdib fb7c0c4
update benchmark script
haerdib 3ec07f2
benchmark pallet_collective & democracy
haerdib 2bd4021
tune origins to our council and TC setup
b1159bb
remaining tunings
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| name = "integritee-collator" | ||
| description = "The Integritee parachain collator binary" | ||
| # align major.minor revision with the runtimes. bump patch revision ad lib. make this the github release tag | ||
| version = "1.5.22" | ||
| version = "1.5.23" | ||
| authors = ["Integritee AG <[email protected]>"] | ||
| homepage = "https://integritee.network/" | ||
| repository = "https://github.com/integritee-network/parachain" | ||
|
|
@@ -112,3 +112,7 @@ runtime-benchmarks = [ | |
| 'polkadot-service/runtime-benchmarks', | ||
| 'parachain-runtime/runtime-benchmarks' | ||
| ] | ||
| fast-runtime = [ | ||
| "polkadot-service/fast-runtime", | ||
| "parachain-runtime/fast-runtime", | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| name = 'integritee-runtime' | ||
| description = "The Integritee parachain runtime" | ||
| # patch revision must match runtime spec_version | ||
| version = '1.5.18' | ||
| version = '1.5.19' | ||
| authors = ["Integritee AG <[email protected]>"] | ||
| homepage = "https://integritee.network/" | ||
| repository = "https://github.com/integritee-network/parachain" | ||
|
|
@@ -39,6 +39,8 @@ frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate" | |
| # pallets | ||
| pallet-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.19" } | ||
| pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.19" } | ||
| pallet-collective = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.19" } | ||
| pallet-democracy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.19" } | ||
| pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.19" } | ||
| pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.19" } | ||
| pallet-treasury = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.19" } | ||
|
|
@@ -115,6 +117,8 @@ std = [ | |
| "frame-system-rpc-runtime-api/std", | ||
| "pallet-aura/std", | ||
| "pallet-balances/std", | ||
| "pallet-collective/std", | ||
| "pallet-democracy/std", | ||
| "pallet-randomness-collective-flip/std", | ||
| "pallet-timestamp/std", | ||
| "pallet-treasury/std", | ||
|
|
@@ -163,6 +167,8 @@ runtime-benchmarks = [ | |
| "frame-system/runtime-benchmarks", | ||
| "pallet-balances/runtime-benchmarks", | ||
| "pallet-claims/runtime-benchmarks", | ||
| "pallet-collective/runtime-benchmarks", | ||
| "pallet-democracy/runtime-benchmarks", | ||
| "pallet-multisig/runtime-benchmarks", | ||
| "pallet-proxy/runtime-benchmarks", | ||
| "pallet-scheduler/runtime-benchmarks", | ||
|
|
@@ -174,3 +180,5 @@ runtime-benchmarks = [ | |
| "pallet-utility/runtime-benchmarks", | ||
| "cumulus-pallet-xcmp-queue/runtime-benchmarks", | ||
| ] | ||
| # Set timing constants (e.g. session period) to faster versions to speed up testing. | ||
| fast-runtime = [] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| // Copyright 2021 Integritee AG and Supercomputing Systems AG | ||
| // This file is part of the "Integritee parachain" and is | ||
| // based on Cumulus from Parity Technologies (UK) Ltd. | ||
|
|
||
| // Integritee parachain is free software: you can redistribute it and/or modify | ||
| // it under the terms of the GNU General Public License as published by | ||
| // the Free Software Foundation, either version 3 of the License, or | ||
| // (at your option) any later version. | ||
|
|
||
| // Cumulus is distributed in the hope that it will be useful, | ||
| // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| // GNU General Public License for more details. | ||
|
|
||
| // You should have received a copy of the GNU General Public License | ||
| // along with Integritee parachain. If not, see <http://www.gnu.org/licenses/>. | ||
|
|
||
| //! XCM configuration for Integritee Runtime. | ||
| //! | ||
|
|
||
| /// Copied from polkadot/runtime/common/src/lib.rs | ||
| /// Macro to set a value (e.g. when using the `parameter_types` macro) to either a production value | ||
| /// or to an environment variable or testing value (in case the `fast-runtime` feature is selected). | ||
| /// Note that the environment variable is evaluated _at compile time_. | ||
| /// | ||
| /// Usage: | ||
| /// ```Rust | ||
| /// parameter_types! { | ||
| /// pub const VotingPeriod: BlockNumber = prod_or_fast!(7 * DAYS, 1 * MINUTES); | ||
| /// } | ||
| #[macro_export] | ||
| macro_rules! prod_or_fast { | ||
| ($prod:expr, $test:expr) => { | ||
| if cfg!(feature = "fast-runtime") { | ||
| $test | ||
| } else { | ||
| $prod | ||
| } | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.