Skip to content

Commit 7a2e5cb

Browse files
authored
Merge release-v0.3.11 into main (#1071)
* Update versions (#1063) * Fix try-runtime makefile targets (#1065) * Fix parachain-staking benchmarks (#1066) * Fix fee tests (#1070) * Update weights (#1068)
1 parent d67ae38 commit 7a2e5cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1813
-2049
lines changed

Cargo.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ pallet-author-slot-filter = { git = "https://github.com/zeitgeistpm/nimbus", bra
9292
parachain-info = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.37", default-features = false }
9393

9494
# Moonbeam (client)
95-
moonbeam-vrf = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "polkadot-v0.9.37-use-paritytech-dependencies" }
95+
moonbeam-vrf = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "polkadot-v0.9.37-use-paritytech-dependencies-bench-fix" }
9696

9797
# Moonbeam (wasm)
98-
pallet-author-mapping = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "polkadot-v0.9.37-use-paritytech-dependencies", default-features = false }
99-
pallet-parachain-staking = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "polkadot-v0.9.37-use-paritytech-dependencies", default-features = false }
100-
session-keys-primitives = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "polkadot-v0.9.37-use-paritytech-dependencies", default-features = false }
98+
pallet-author-mapping = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "polkadot-v0.9.37-use-paritytech-dependencies-bench-fix", default-features = false }
99+
pallet-parachain-staking = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "polkadot-v0.9.37-use-paritytech-dependencies-bench-fix", default-features = false }
100+
session-keys-primitives = { git = "https://github.com/zeitgeistpm/moonbeam", branch = "polkadot-v0.9.37-use-paritytech-dependencies-bench-fix", default-features = false }
101101

102102
# ORML (wasm)
103103
orml-asset-registry = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.37", default-features = false }

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,26 @@ check-dummy:
2222
--bin=zeitgeist \
2323
--features=parachain,try-runtime \
2424
try-runtime \
25-
--execution=Native \
2625
--chain=${TRYRUNTIME_CHAIN} \
27-
--no-spec-check-panic \
26+
--runtime=${RUNTIME_PATH} \
2827
on-runtime-upgrade \
28+
--checks=all \
2929
live \
3030
--uri=${TRYRUNTIME_URL}
3131

3232
try-runtime-upgrade-battery-station:
33-
@$(MAKE) TRYRUNTIME_CHAIN="battery_station_staging" TRYRUNTIME_URL="wss://bsr.zeitgeist.pm:443" -- --try-runtime
33+
@$(MAKE) TRYRUNTIME_CHAIN="battery_station_staging" \
34+
TRYRUNTIME_URL="wss://bsr.zeitgeist.pm:443" \
35+
RUNTIME_PATH="./target/debug/wbuild/battery-station-runtime/battery_station_runtime.compact.compressed.wasm" \
36+
-- \
37+
--try-runtime
3438

3539
try-runtime-upgrade-zeitgeist:
36-
@$(MAKE) TRYRUNTIME_CHAIN="zeitgeist_staging" TRYRUNTIME_URL="wss://zeitgeist-rpc.dwellir.com:443" -- --try-runtime
40+
@$(MAKE) TRYRUNTIME_CHAIN="zeitgeist_staging" \
41+
TRYRUNTIME_URL="wss://zeitgeist-rpc.dwellir.com:443" \
42+
RUNTIME_PATH="./target/debug/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.compressed.wasm" \
43+
-- \
44+
--try-runtime
3745

3846
build:
3947
SKIP_WASM_BUILD= cargo build

docs/changelog_for_devs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ APIs/RPC interface.
1919
### Changed
2020

2121
- ⚠️ All tokens now use 10 fractional decimal places.
22-
- cross-consensus messages (XCM) assume the global canonical representation for token balances.
22+
- Cross-consensus messages (XCM) assume the global canonical representation for token balances.
2323
- The token metadata in the asset registry now assumes that the existential deposit and fee factor
2424
are stored in base 10,000,000,000.
2525

node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ description = "An evolving blockchain for prediction markets and futarchy."
185185
edition = "2021"
186186
homepage = "https://zeitgeist.pm"
187187
name = "zeitgeist-node"
188-
version = "0.3.10"
188+
version = "0.3.11"
189189

190190
[package.metadata.docs.rs]
191191
targets = ["x86_64-unknown-linux-gnu"]

node/src/chain_spec/dev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub fn dev_config() -> Result<BatteryStationChainSpec, String> {
9393
nominations: vec![],
9494
parachain_bond_reserve_percent: DefaultParachainBondReservePercent::get(),
9595
parachain_id: crate::BATTERY_STATION_PARACHAIN_ID.into(),
96-
num_selected_candidates: 1,
96+
num_selected_candidates: 8,
9797
},
9898
#[cfg(not(feature = "parachain"))]
9999
AdditionalChainSpec {

primitives/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ with-global-disputes = []
3434
authors = ["Zeitgeist PM <contact@zeitgeist.pm>"]
3535
edition = "2021"
3636
name = "zeitgeist-primitives"
37-
version = "0.3.10"
37+
version = "0.3.11"

runtime/battery-station/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ with-global-disputes = [
409409
authors = ["Zeitgeist PM <contact@zeitgeist.pm>"]
410410
edition = "2021"
411411
name = "battery-station-runtime"
412-
version = "0.3.10"
412+
version = "0.3.11"
413413

414414
[package.metadata.docs.rs]
415415
targets = ["x86_64-unknown-linux-gnu"]

runtime/battery-station/src/integration_tests/xcm/tests/transfers.rs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use orml_traits::MultiCurrency;
3535
use xcm::latest::{Junction, Junction::*, Junctions::*, MultiLocation, NetworkId};
3636
use xcm_emulator::{Limited, TestExt};
3737
use zeitgeist_primitives::{
38-
constants::BalanceFractionalDecimals,
38+
constants::{BalanceFractionalDecimals, BASE},
3939
types::{CustomMetadata, XcmMetadata},
4040
};
4141

@@ -87,9 +87,6 @@ fn transfer_ztg_to_sibling() {
8787
// Verify that BOB now has (amount transferred - fee)
8888
assert_eq!(current_balance, transfer_amount - ztg_fee());
8989

90-
// Sanity check for the actual amount BOB ends up with
91-
assert_eq!(current_balance, 49_907_304_000);
92-
9390
// Verify that fees (of foreign currency) have been put into treasury
9491
assert_eq!(
9592
Tokens::free_balance(FOREIGN_ZTG_ID, &ZeitgeistTreasuryAccount::get()),
@@ -352,7 +349,7 @@ fn transfer_roc_to_relay_chain() {
352349
});
353350

354351
RococoNet::execute_with(|| {
355-
assert_eq!(rococo_runtime::Balances::free_balance(&BOB), 999_988_806_429);
352+
assert_eq!(rococo_runtime::Balances::free_balance(&BOB), 999_988_690_728);
356353
});
357354
}
358355

@@ -419,10 +416,7 @@ fn transfer_ztg_to_sibling_with_custom_fee() {
419416
let custom_fee = calc_fee(default_per_second(10) * 10);
420417

421418
// Verify that BOB now has (amount transferred - fee)
422-
assert_eq!(current_balance, transfer_amount - custom_fee);
423-
424-
// Sanity check for the actual amount BOB ends up with
425-
assert_eq!(current_balance, 49_073_040_000);
419+
assert_eq!(current_balance, transfer_amount - ztg_fee() * fee_factor / BASE);
426420

427421
// Verify that fees (of foreign currency) have been put into treasury
428422
assert_eq!(
@@ -434,8 +428,8 @@ fn transfer_ztg_to_sibling_with_custom_fee() {
434428

435429
#[test]
436430
fn test_total_fee() {
437-
assert_eq!(ztg_fee(), 92_696_000);
438-
assert_eq!(roc_fee(), 9_269_600_000);
431+
assert_eq!(ztg_fee(), 80_824_000);
432+
assert_eq!(roc_fee(), 8_082_400_000);
439433
}
440434

441435
#[inline]

runtime/battery-station/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
105105
spec_name: create_runtime_str!("zeitgeist"),
106106
impl_name: create_runtime_str!("zeitgeist"),
107107
authoring_version: 1,
108-
spec_version: 47,
108+
spec_version: 48,
109109
impl_version: 1,
110110
apis: RUNTIME_API_VERSIONS,
111-
transaction_version: 22,
111+
transaction_version: 23,
112112
state_version: 1,
113113
};
114114

0 commit comments

Comments
 (0)