Skip to content

Commit

Permalink
Release v0.3.9 (#1033)
Browse files Browse the repository at this point in the history
* Update weights (#1025)

* Update crate and runtime version (#1026)

* Use argument in init.sh to avoid usage of sudo (#1028)

* Update scripts/init.sh

Co-authored-by: Chralt <chralt.developer@gmail.com>

* Update script documentation

---------

Co-authored-by: Chralt <chralt.developer@gmail.com>

* Fix name collision (#1029)

* Use updated Rococo bootnodes (#1030)

---------

Co-authored-by: Chralt <chralt.developer@gmail.com>
  • Loading branch information
sea212 and Chralt98 authored Jul 5, 2023
1 parent 205923d commit 9437d8b
Show file tree
Hide file tree
Showing 56 changed files with 1,227 additions and 1,182 deletions.
166 changes: 83 additions & 83 deletions Cargo.lock

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,22 @@ lto = true
opt-level = 3
# Zeitgeist runtime requires unwinding.
panic = "unwind"

[patch."https://github.com/paritytech/polkadot"]
pallet-xcm = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-cli = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-client = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-core-primitives = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-node-primitives = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-node-subsystem = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-overseer = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-parachain = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-primitives = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-runtime = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-runtime-parachains = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-service = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
polkadot-test-service = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
rococo-runtime = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
xcm = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
xcm-builder = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
xcm-executor = { git = "https://github.com/zeitgeistpm/polkadot.git", branch = "v0.9.32-recent-bootnodes" }
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY . /zeitgeist
RUN apt-get update && \
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold"

RUN ./scripts/init.sh
RUN ./scripts/init.sh nosudo

RUN . "$HOME/.cargo/env" && cargo build --profile "$PROFILE" --features "$FEATURES"

Expand Down
3 changes: 2 additions & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ zeitgeist-primitives = { path = "../primitives" }
zeitgeist-runtime = { path = "../runtime/zeitgeist", optional = true }
zrml-liquidity-mining = { path = "../zrml/liquidity-mining" }
zrml-swaps-rpc = { path = "../zrml/swaps/rpc" }

[features]
default = ["with-battery-station-runtime", "with-zeitgeist-runtime"]
parachain = [
Expand Down Expand Up @@ -177,7 +178,7 @@ description = "An evolving blockchain for prediction markets and futarchy."
edition = "2021"
homepage = "https://zeitgeist.pm"
name = "zeitgeist-node"
version = "0.3.8"
version = "0.3.9"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
2 changes: 1 addition & 1 deletion primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ with-global-disputes = []
authors = ["Zeitgeist PM <contact@zeitgeist.pm>"]
edition = "2021"
name = "zeitgeist-primitives"
version = "0.3.8"
version = "0.3.9"
2 changes: 1 addition & 1 deletion runtime/battery-station/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ with-global-disputes = [
authors = ["Zeitgeist PM <contact@zeitgeist.pm>"]
edition = "2021"
name = "battery-station-runtime"
version = "0.3.8"
version = "0.3.9"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
4 changes: 2 additions & 2 deletions runtime/battery-station/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("zeitgeist"),
impl_name: create_runtime_str!("zeitgeist"),
authoring_version: 1,
spec_version: 45,
spec_version: 46,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 20,
transaction_version: 21,
state_version: 1,
};

Expand Down
2 changes: 1 addition & 1 deletion runtime/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ with-global-disputes = []
authors = ["Zeitgeist PM <contact@zeitgeist.pm>"]
edition = "2021"
name = "common-runtime"
version = "0.3.8"
version = "0.3.9"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
6 changes: 3 additions & 3 deletions runtime/common/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for cumulus_pallet_xcmp_queue
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -51,13 +51,13 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::weights::WeightInfo for WeightInfo<T> {
// Storage: XcmpQueue QueueConfig (r:1 w:1)
fn set_config_with_u32() -> Weight {
Weight::from_ref_time(5_117_000)
Weight::from_ref_time(14_130_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: XcmpQueue QueueConfig (r:1 w:1)
fn set_config_with_weight() -> Weight {
Weight::from_ref_time(4_929_000)
Weight::from_ref_time(14_070_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
32 changes: 16 additions & 16 deletions runtime/common/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for frame_system
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -50,41 +50,41 @@ use frame_support::{
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> frame_system::weights::WeightInfo for WeightInfo<T> {
fn remark(b: u32) -> Weight {
Weight::from_ref_time(14_250_344)
Weight::from_ref_time(7_750_000)
// Standard Error: 1
.saturating_add(Weight::from_ref_time(221).saturating_mul(b.into()))
.saturating_add(Weight::from_ref_time(692).saturating_mul(b.into()))
}
fn remark_with_event(b: u32) -> Weight {
Weight::from_ref_time(8_451_000)
// Standard Error: 1
.saturating_add(Weight::from_ref_time(1_022).saturating_mul(b.into()))
Weight::from_ref_time(23_520_000)
// Standard Error: 4
.saturating_add(Weight::from_ref_time(2_341).saturating_mul(b.into()))
}
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
Weight::from_ref_time(5_344_000)
Weight::from_ref_time(16_260_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Skipped Metadata (r:0 w:0)
fn set_storage(i: u32) -> Weight {
Weight::from_ref_time(2_566_000)
// Standard Error: 641
.saturating_add(Weight::from_ref_time(422_592).saturating_mul(i.into()))
Weight::from_ref_time(7_690_000)
// Standard Error: 4_435
.saturating_add(Weight::from_ref_time(1_133_019).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
fn kill_storage(i: u32) -> Weight {
Weight::from_ref_time(171_591)
// Standard Error: 1_072
.saturating_add(Weight::from_ref_time(374_557).saturating_mul(i.into()))
Weight::from_ref_time(589_951)
// Standard Error: 8_232
.saturating_add(Weight::from_ref_time(925_898).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
fn kill_prefix(p: u32) -> Weight {
Weight::from_ref_time(3_820_435)
// Standard Error: 1_116
.saturating_add(Weight::from_ref_time(802_972).saturating_mul(p.into()))
Weight::from_ref_time(10_930_000)
// Standard Error: 10_457
.saturating_add(Weight::from_ref_time(2_090_894).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
}
}
12 changes: 6 additions & 6 deletions runtime/common/src/weights/orml_currencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for orml_currencies
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -49,33 +49,33 @@ impl<T: frame_system::Config> orml_currencies::WeightInfo for WeightInfo<T> {
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_non_native_currency() -> Weight {
Weight::from_ref_time(32_440_000)
Weight::from_ref_time(126_411_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: System Account (r:1 w:1)
fn transfer_native_currency() -> Weight {
Weight::from_ref_time(26_112_000)
Weight::from_ref_time(108_350_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Tokens Accounts (r:1 w:1)
// Storage: Tokens TotalIssuance (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn update_balance_non_native_currency() -> Weight {
Weight::from_ref_time(21_841_000)
Weight::from_ref_time(81_740_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: System Account (r:1 w:1)
fn update_balance_native_currency_creating() -> Weight {
Weight::from_ref_time(21_761_000)
Weight::from_ref_time(60_170_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
fn update_balance_native_currency_killing() -> Weight {
Weight::from_ref_time(19_903_000)
Weight::from_ref_time(56_730_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
12 changes: 6 additions & 6 deletions runtime/common/src/weights/orml_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for orml_tokens
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -49,36 +49,36 @@ impl<T: frame_system::Config> orml_tokens::WeightInfo for WeightInfo<T> {
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer() -> Weight {
Weight::from_ref_time(32_422_000)
Weight::from_ref_time(77_290_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_all() -> Weight {
Weight::from_ref_time(33_839_000)
Weight::from_ref_time(79_941_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_keep_alive() -> Weight {
Weight::from_ref_time(26_131_000)
Weight::from_ref_time(64_210_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Tokens Accounts (r:2 w:2)
// Storage: System Account (r:2 w:1)
fn force_transfer() -> Weight {
Weight::from_ref_time(29_017_000)
Weight::from_ref_time(69_260_000)
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Tokens Accounts (r:1 w:1)
// Storage: Tokens TotalIssuance (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn set_balance() -> Weight {
Weight::from_ref_time(21_766_000)
Weight::from_ref_time(52_360_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/common/src/weights/pallet_author_inherent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for pallet_author_inherent
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -56,7 +56,7 @@ impl<T: frame_system::Config> pallet_author_inherent::weights::WeightInfo for We
// Storage: AuthorFilter EligibleCount (r:1 w:0)
// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
fn kick_off_authorship_validation() -> Weight {
Weight::from_ref_time(17_682_000)
Weight::from_ref_time(59_020_000)
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
12 changes: 6 additions & 6 deletions runtime/common/src/weights/pallet_author_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for pallet_author_mapping
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -53,37 +53,37 @@ impl<T: frame_system::Config> pallet_author_mapping::weights::WeightInfo for Wei
// Storage: System Account (r:1 w:1)
// Storage: AuthorMapping NimbusLookup (r:0 w:1)
fn add_association() -> Weight {
Weight::from_ref_time(22_888_000)
Weight::from_ref_time(53_390_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: AuthorMapping MappingWithDeposit (r:2 w:2)
// Storage: AuthorMapping NimbusLookup (r:0 w:1)
fn update_association() -> Weight {
Weight::from_ref_time(19_480_000)
Weight::from_ref_time(48_100_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: AuthorMapping NimbusLookup (r:0 w:1)
fn clear_association() -> Weight {
Weight::from_ref_time(25_500_000)
Weight::from_ref_time(63_280_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: AuthorMapping NimbusLookup (r:1 w:1)
// Storage: AuthorMapping MappingWithDeposit (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn remove_keys() -> Weight {
Weight::from_ref_time(28_334_000)
Weight::from_ref_time(68_601_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: AuthorMapping NimbusLookup (r:1 w:1)
// Storage: AuthorMapping MappingWithDeposit (r:2 w:2)
fn set_keys() -> Weight {
Weight::from_ref_time(21_788_000)
Weight::from_ref_time(54_100_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/common/src/weights/pallet_author_slot_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for pallet_author_slot_filter
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -51,6 +51,6 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_author_slot_filter::weights::WeightInfo for WeightInfo<T> {
// Storage: AuthorFilter EligibleCount (r:0 w:1)
fn set_eligible() -> Weight {
Weight::from_ref_time(9_073_000).saturating_add(T::DbWeight::get().writes(1))
Weight::from_ref_time(24_300_000).saturating_add(T::DbWeight::get().writes(1))
}
}
Loading

0 comments on commit 9437d8b

Please sign in to comment.