Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,027 changes: 510 additions & 517 deletions runtimes/Cargo.lock

Large diffs are not rendered by default.

117 changes: 59 additions & 58 deletions runtimes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
"asset-hub-kusama",
"asset-hub-polkadot",
"coretime-kusama",
"people-kusama",
"polkadot",
"runtime-call",
]
Expand All @@ -19,80 +20,80 @@ members = [

ziggy = { version = "1.5.0", default-features = false }

polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
asset-hub-polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
asset-hub-polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
# bridge-hub-polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.0.2", default-features = false }
collectives-polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
coretime-polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
people-polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
collectives-polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
coretime-polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
people-polkadot-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }

staging-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
asset-hub-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
staging-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
asset-hub-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
# bridge-hub-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.0.2", default-features = false }
coretime-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
coretime-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
# encointer-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.0.2", default-features = false }
glutton-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
people-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
glutton-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
people-kusama-runtime = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }

system-parachains-constants = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
polkadot-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
kusama-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
system-parachains-constants = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
polkadot-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
kusama-runtime-constants = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }

codec = { version = "3.7.5", features = ["derive", "max-encoded-len"], default-features = false, package = "parity-scale-codec" }
hex = "0.4.3"
scale-info = { default-features = false, version = "2.11.6", features = ["std"] }

staging-xcm = { default-features = false , version = "21.0.0" }
staging-xcm = { default-features = false , version = "22.0.0" }

parachains-common = { default-features = false , version = "27.1.0" }
parachains-common = { default-features = false , version = "28.0.0" }

frame-support = { default-features = false, version = "45.1.0" }
frame-system = { default-features = false, version = "45.0.0" }
frame-support = { default-features = false, version = "46.0.0" }
frame-system = { default-features = false, version = "46.0.0" }
frame-metadata = { default-features = false, version = "23.0.1", features = ["current", "decode", "std"] }

sp-runtime = { default-features = false, version = "45.0.0" }
sp-state-machine = { version = "0.49.0", default-features = false }
sp-consensus-aura = { default-features = false, version = "0.46.0" }
sp-trie = { default-features = false, version = "42.0.1" }
sp-core = { default-features = false, version = "39.0.0" }
sp-authority-discovery = { default-features = false, version = "40.0.0" }
sp-consensus-babe = { default-features = false, version = "0.46.0" }
sp-consensus-beefy = { default-features = false, version = "28.0.0" }
sp-application-crypto = { default-features = false, version = "44.0.0" }
sp-runtime = { default-features = false, version = "46.0.0" }
sp-state-machine = { version = "0.50.0", default-features = false }
sp-consensus-aura = { default-features = false, version = "0.47.0" }
sp-trie = { default-features = false, version = "43.0.0" }
sp-core = { default-features = false, version = "40.0.0" }
sp-authority-discovery = { default-features = false, version = "41.0.0" }
sp-consensus-babe = { default-features = false, version = "0.47.0" }
sp-consensus-beefy = { default-features = false, version = "29.0.0" }
sp-application-crypto = { default-features = false, version = "45.0.0" }

pallet-timestamp = { default-features = false, version = "44.0.0" }
pallet-balances = { default-features = false, version = "46.0.0" }
pallet-assets = { default-features = false, version = "48.1.0" }
pallet-uniques = { default-features = false, version = "45.0.0" }
pallet-xcm = { default-features = false, version = "25.0.0" }
pallet-utility = { default-features = false, version = "45.0.0" }
pallet-proxy = { default-features = false, version = "45.0.0" }
pallet-multisig = { default-features = false, version = "45.0.0" }
pallet-vesting = { default-features = false, version = "45.0.0" }
pallet-remote-proxy = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.1.1", default-features = false }
pallet-recovery = { default-features = false, version = "45.0.0" }
pallet-whitelist = { default-features = false, version = "44.0.0" }
pallet-broker = { default-features = false, version = "0.24.1" }
pallet-staking-async-ah-client = { default-features = false, version = "0.7.2" }
pallet-bags-list = { default-features = false, version = "44.0.1" }
pallet-bounties = { default-features = false, version = "44.0.0" }
pallet-grandpa = { default-features = false, version = "45.0.0" }
pallet-identity = { default-features = false, version = "45.0.0" }
pallet-referenda = { default-features = false, version = "45.0.0" }
pallet-society = { default-features = false, version = "45.1.0" }
pallet-staking = { default-features = false, version = "45.1.0" }
pallet-treasury = { default-features = false, version = "44.0.0" }
pallet-revive = { default-features = false, version = "0.12.2" }
pallet-timestamp = { default-features = false, version = "45.0.0" }
pallet-balances = { default-features = false, version = "47.0.0" }
pallet-assets = { default-features = false, version = "49.0.1" }
pallet-uniques = { default-features = false, version = "46.0.0" }
pallet-xcm = { default-features = false, version = "26.0.0" }
pallet-utility = { default-features = false, version = "46.0.0" }
pallet-proxy = { default-features = false, version = "46.0.0" }
pallet-multisig = { default-features = false, version = "46.0.0" }
pallet-vesting = { default-features = false, version = "46.0.0" }
pallet-remote-proxy = { git = "https://github.com/polkadot-fellows/runtimes.git", tag = "v2.2.2", default-features = false }
pallet-recovery = { default-features = false, version = "46.0.0" }
pallet-whitelist = { default-features = false, version = "45.0.0" }
pallet-broker = { default-features = false, version = "0.25.0" }
pallet-staking-async-ah-client = { default-features = false, version = "0.8.0" }
pallet-bags-list = { default-features = false, version = "45.0.0" }
pallet-bounties = { default-features = false, version = "45.0.0" }
pallet-grandpa = { default-features = false, version = "46.0.0" }
pallet-identity = { default-features = false, version = "46.0.0" }
pallet-referenda = { default-features = false, version = "46.0.0" }
pallet-society = { default-features = false, version = "46.0.0" }
pallet-staking = { default-features = false, version = "46.0.0" }
pallet-treasury = { default-features = false, version = "45.0.0" }
pallet-revive = { default-features = false, version = "0.13.0" }

cumulus-primitives-core = { default-features = false , version = "0.23.0" }
cumulus-primitives-parachain-inherent = { default-features = false , version = "0.23.0" }
cumulus-pallet-parachain-system = { default-features = false, version = "0.25.0" }
cumulus-test-relay-sproof-builder = { default-features = false , version = "0.24.0" }
cumulus-primitives-core = { default-features = false , version = "0.24.0" }
cumulus-primitives-parachain-inherent = { default-features = false , version = "0.24.0" }
cumulus-pallet-parachain-system = { default-features = false, version = "0.26.0" }
cumulus-test-relay-sproof-builder = { default-features = false , version = "0.25.0" }

polkadot-parachain-primitives = { default-features = false, version = "20.0.0" }
polkadot-primitives = { default-features = false, version = "22.0.0" }
polkadot-runtime-parachains = { version = "24.0.0", default-features = false }
polkadot-runtime-common = { version = "24.0.0", default-features = false }
polkadot-parachain-primitives = { default-features = false, version = "21.0.0" }
polkadot-primitives = { default-features = false, version = "23.0.0" }
polkadot-runtime-parachains = { version = "25.0.0", default-features = false }
polkadot-runtime-common = { version = "25.0.0", default-features = false }

[patch.crates-io]
ark-vrf = { git = "https://github.com/davxy/ark-vrf", tag = "v0.1.0" }
ark-vrf = { git = "https://github.com/davxy/ark-vrf", tag = "v0.1.0" }
26 changes: 13 additions & 13 deletions runtimes/asset-hub-kusama/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,19 @@ fn process_input(accounts: &[AccountId], genesis: &Storage, data: &[u8]) {
iter::from_fn(|| DecodeLimit::decode_with_depth_limit(64, &mut extrinsic_data).ok())
.filter(|(_, _, x): &(_, _, RuntimeCall)| {
!recursively_find_call(x.clone(), |call| {
matches!(&call, RuntimeCall::AhMigrator(_))
// || matches!(call.clone(), RuntimeCall::NominationPools(_))
|| matches!(
&call,
RuntimeCall::Vesting(pallet_vesting::Call::vested_transfer { .. })
) || matches!(
&call,
RuntimeCall::PolkadotXcm(pallet_xcm::Call::execute { .. })
)
|| matches!(
&call,
RuntimeCall::Referenda(pallet_referenda::Call::submit { .. })
)
matches!(
&call,
RuntimeCall::Vesting(pallet_vesting::Call::vested_transfer { .. })
) || matches!(
&call,
RuntimeCall::PolkadotXcm(pallet_xcm::Call::execute { .. })
) || matches!(
&call,
RuntimeCall::Referenda(pallet_referenda::Call::submit { .. })
) || matches!(
&call,
RuntimeCall::Revive(pallet_revive::Call::instantiate_with_code { .. })
)
})
})
.collect();
Expand Down
20 changes: 13 additions & 7 deletions runtimes/asset-hub-polkadot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ fn generate_genesis(accounts: &[AccountId]) -> Storage {
claims: ClaimsConfig::default(),
indices: IndicesConfig::default(),
multi_block_election_verifier: MultiBlockElectionVerifierConfig::default(),
nomination_pools: NominationPoolsConfig::default(),
nomination_pools: NominationPoolsConfig {
min_create_bond: 1 << 43,
min_join_bond: 1 << 42,
..Default::default()
},
staking: StakingConfig::default(),
treasury: TreasuryConfig::default(),
revive: ReviveConfig::default(),
Expand Down Expand Up @@ -179,11 +183,13 @@ fn process_input(accounts: &[AccountId], genesis: &Storage, data: &[u8]) {
iter::from_fn(|| DecodeLimit::decode_with_depth_limit(64, &mut extrinsic_data).ok())
.filter(|(_, _, x): &(_, _, RuntimeCall)| {
!recursively_find_call(x.clone(), |call| {
matches!(&call, RuntimeCall::AhMigrator(_))
|| matches!(
&call,
RuntimeCall::Vesting(pallet_vesting::Call::vested_transfer { .. })
)
matches!(
&call,
RuntimeCall::Vesting(pallet_vesting::Call::vested_transfer { .. })
) || matches!(
&call,
RuntimeCall::Revive(pallet_revive::Call::instantiate_with_code { .. })
)
})
})
.collect();
Expand Down Expand Up @@ -366,7 +372,7 @@ fn check_invariants(block: u32, initial_total_issuance: Balance) {
let counted_issuance = counted_free + counted_reserved;
// The reason we do not simply use `!=` here is that some balance might be transfered to another chain via XCM.
// If we find some kind of workaround for this, we could replace `<` by `!=` here and make the check stronger.
assert!(total_issuance <= counted_issuance,);
assert!(total_issuance >= counted_issuance,);
assert!(total_issuance <= initial_total_issuance,);
let account_42 = AccountId32::from([42; 32]);
assert_eq!(Assets::balance(42, account_42), 42);
Expand Down
5 changes: 4 additions & 1 deletion runtimes/coretime-kusama/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ fn recursively_find_call(call: RuntimeCall, matches_on: fn(RuntimeCall) -> bool)
return true;
}
}
} else if let RuntimeCall::Utility(pallet_utility::Call::if_else { main, fallback }) = call {
return recursively_find_call(*main, matches_on)
|| recursively_find_call(*fallback, matches_on);
} else if let RuntimeCall::Multisig(pallet_multisig::Call::as_multi_threshold_1 {
call, ..
})
Expand Down Expand Up @@ -333,7 +336,7 @@ fn check_invariants(block: u32, initial_total_issuance: Balance) {
let total_issuance = TotalIssuance::<Runtime>::get();
let counted_issuance = counted_free + counted_reserved;
assert!(
total_issuance <= counted_issuance,
total_issuance >= counted_issuance,
"Inconsistent total issuance: {total_issuance} but counted {counted_issuance}"
);
assert!(
Expand Down
2 changes: 1 addition & 1 deletion runtimes/kusama/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ fn check_invariants(block: u32, initial_total_issuance: Balance) {
let total_issuance = TotalIssuance::<Runtime>::get();
let counted_issuance = counted_free + counted_reserved;
assert!(
total_issuance == counted_issuance,
total_issuance >= counted_issuance,
"Inconsistent total issuance: {total_issuance} but counted {counted_issuance}"
);
assert!(
Expand Down
70 changes: 70 additions & 0 deletions runtimes/people-kusama/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[package]
name = "people-kusama-fuzzer"
version = "0.1.0"
edition = "2021"
publish = false

[dependencies]
ziggy = { workspace = true }

people-kusama-runtime = { workspace = true }

parachains-common = { workspace = true }

codec = { workspace = true }
scale-info = { workspace = true }

frame-support = { workspace = true }
frame-system = { workspace = true }
frame-metadata = { workspace = true }

sp-runtime = { workspace = true }
sp-state-machine = { workspace = true }
sp-consensus-aura = { workspace = true }
sp-trie = { workspace = true }
sp-core = { workspace = true }

pallet-timestamp = { workspace = true }
pallet-balances = { workspace = true }
pallet-xcm = { workspace = true }
pallet-utility = { workspace = true }
pallet-proxy = { workspace = true }
pallet-multisig = { workspace = true }
pallet-identity = { workspace = true }

cumulus-primitives-core = { workspace = true }
cumulus-primitives-parachain-inherent = { workspace = true }
cumulus-pallet-parachain-system = { workspace = true }
cumulus-test-relay-sproof-builder = { workspace = true }

polkadot-parachain-primitives = { workspace = true }
polkadot-primitives = { workspace = true }

[features]
default = ["std", "try-runtime"]
fuzzing = []
std = [
"people-kusama-runtime/std",
"parachains-common/std",
"codec/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-state-machine/std",
"sp-consensus-aura/std",
"pallet-timestamp/std",
"pallet-balances/std",
"cumulus-primitives-core/std",
"cumulus-primitives-parachain-inherent/std",
"cumulus-pallet-parachain-system/std",
"cumulus-test-relay-sproof-builder/std",
"polkadot-parachain-primitives/std",
"sp-trie/std",
]
try-runtime = [
"people-kusama-runtime/try-runtime",
"frame-support/try-runtime",
"frame-system/try-runtime",
"sp-runtime/try-runtime",
"pallet-timestamp/try-runtime",
]
1 change: 1 addition & 0 deletions runtimes/people-kusama/allowlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*pallet_*
Loading
Loading