mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 21:57:55 +00:00
Bring apopiak/prepare-v6-release to the release for v6 (#741)
* disable permissionless asset creation for Statemint (#669) * disable permissionless asset creation for Statemint * Companion for polkadot#3728 (#693) * Update mock runtime API * update Polkadot packages Co-authored-by: joao-paulo-parity <joao-paulo@parity.io> * Ensure a bad datastream cannot cause problems (#701) * Allow Queries and Subscriptions (#700) * Bump syn to 1.0.81 (#707) * Update Substrate & Polkadot (#709) * Udpate polkadot substrate (#713) * fmt with latest nightly * Bump subwasm version (#716) * Companion for `dispatch_as` (#715) * dispatch as companion * Upstream Statemine Release v5 Changes to Master (#720) * set substrate deps for pallet-asset-tx-payment * add DisabledValidatorsThreshold to parachain template * add DisabledValidatorsThreshold to mock config * adjust on_disabled type * remove on_chain_votes function in ParachainHost impl * remove ScrapedOnChainVotes * bump polkadot-collator version Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * set spec_versions to 500 * Statemine cannot execute. * disallow XCM execute on statemint * remove unnecessary dep on node-primitives * select parachains-common/std feature when building rococo-runtime with std * adjust Statemint to the three digit spec_version format * Add script to generate simple changelogs (#668) * Update weights from v4 for v5 comparison (#673) * updates weights * pallet_unique benchmarks added + weights upstream from v4 * Fix benchmarks after Parachain Template (#677) * pallet_unique benchmarks added + weights upstream from v4 * benchmarks fix for parachain template * Weights updates for Statemine v5 (#682) * pallet_unique benchmarks added + weights upstream from v4 * weights updates for statemine v5 * mention Storage in construct_runtime macro for pallet-xcm (#680) * Use pallet-xcm for version wrapping (#689) * use PolkadotXcm for XcmRouter WrapVersion * use PolkadotXcm for version wrapping Co-authored-by: Bryan Chen <xlchen1291@gmail.com> * patch weight for batch_all from rerun * Runtime version bump to v503 (#694) * adjust genesis value generation scripts to output entries array + add script to derive encoded call * add script to generate shell spec from runtime wasm * Ensure a bad datastream cannot cause problems (#701) * Ensure a bad datastream cannot cause problems * update Polkadot (to 0.9.11 169bab55d) * bump spec versions * Allow Queries and Subscriptions * statemint imports * slight naming changes in script * add shell genesis data + wasm + chainspec * adjust generated shell spec with production config values * update Substrate and Polkadot to master * swap out bootnodes for statemint shell * add a script for verifying the shell chain spec * add sha checksum for head data * remove verification script * remove hex wasm file * update Substrate and Polkadot again and fix compilation * remove redundant dispatch_as weight Co-authored-by: Bastian Köcher <info@kchr.de> Co-authored-by: Chevdor <chevdor@users.noreply.github.com> Co-authored-by: Gav Wood <gavin@parity.io> Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com> Co-authored-by: Bryan Chen <xlchen1291@gmail.com> Co-authored-by: joepetrowski <joe@parity.io> * Rework the runtime upgrade test (#727) * Rework the runtime upgrade test * Update test/service/tests/runtime_upgrade.rs Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> * Remove randomness collective flip new (#726) * randomess collective flip removed * remove migration for statemint Co-authored-by: Alexander Popiak <alexander.popiak@parity.io> * adjust XCM unit weights to 1B (#735) * Align Call Indices between Westmint and Statemint (#731) * align construct_runtime calls between statemint runtimes * bump westmint transaction_version * bump spec_version (#733) * point back to Polkadot 0.9.12 * adjust code to work with 0.9.12 again * adjust network test back to polkadot 0.9.12 * Align the Statemint Runtimes (#736) * align the different Statemint runtimes so they are more similar in structure * align Unpaid Execution filter * revert changes to Unpaid execution filter for Westmint * Bump spec versions (#742) Co-authored-by: Alexander Popiak <alexander.popiak@parity.io> Co-authored-by: Chris Sosnin <48099298+slumber@users.noreply.github.com> Co-authored-by: joao-paulo-parity <joao-paulo@parity.io> Co-authored-by: Gavin Wood <gavin@parity.io> Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Bastian Köcher <info@kchr.de> Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com> Co-authored-by: Bryan Chen <xlchen1291@gmail.com> Co-authored-by: joepetrowski <joe@parity.io>
This commit is contained in:
+27
-9
@@ -22,6 +22,12 @@
|
||||
#[cfg(feature = "std")]
|
||||
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
|
||||
|
||||
pub mod wasm_spec_version_incremented {
|
||||
#[cfg(feature = "std")]
|
||||
include!(concat!(env!("OUT_DIR"), "/wasm_binary_spec_version_incremented.rs"));
|
||||
}
|
||||
|
||||
use frame_support::traits::OnRuntimeUpgrade;
|
||||
use sp_api::{decl_runtime_apis, impl_runtime_apis};
|
||||
use sp_core::OpaqueMetadata;
|
||||
use sp_runtime::{
|
||||
@@ -59,9 +65,13 @@ impl_opaque_keys! {
|
||||
pub struct SessionKeys {}
|
||||
}
|
||||
|
||||
/// Some key that we set in genesis and only read in [`TestRuntimeUpgrade`] to ensure that
|
||||
/// [`OnRuntimeUpgrade`] works as expected.
|
||||
pub const TEST_RUNTIME_UPGRADE_KEY: &[u8] = b"+test_runtime_upgrade_key+";
|
||||
|
||||
// The only difference between the two declarations below is the `spec_version`. With the
|
||||
// `upgrade` feature enabled `spec_version` should be greater than the one of without the
|
||||
// `upgrade` feature.
|
||||
// `increment-spec-version` feature enabled `spec_version` should be greater than the one of without the
|
||||
// `increment-spec-version` feature.
|
||||
//
|
||||
// The duplication here is unfortunate necessity.
|
||||
//
|
||||
@@ -70,27 +80,27 @@ impl_opaque_keys! {
|
||||
// details. Since macro kicks in early, it operates on AST. Thus you cannot use constants.
|
||||
// Macros are expanded top to bottom, meaning we also cannot use `cfg` here.
|
||||
|
||||
#[cfg(feature = "upgrade")]
|
||||
#[cfg(not(feature = "increment-spec-version"))]
|
||||
#[sp_version::runtime_version]
|
||||
pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
spec_name: create_runtime_str!("cumulus-test-parachain"),
|
||||
impl_name: create_runtime_str!("cumulus-test-parachain"),
|
||||
authoring_version: 1,
|
||||
// Read the note above.
|
||||
spec_version: 4,
|
||||
spec_version: 1,
|
||||
impl_version: 1,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
transaction_version: 1,
|
||||
};
|
||||
|
||||
#[cfg(not(feature = "upgrade"))]
|
||||
#[cfg(feature = "increment-spec-version")]
|
||||
#[sp_version::runtime_version]
|
||||
pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
spec_name: create_runtime_str!("cumulus-test-parachain"),
|
||||
impl_name: create_runtime_str!("cumulus-test-parachain"),
|
||||
authoring_version: 1,
|
||||
// Read the note above.
|
||||
spec_version: 3,
|
||||
spec_version: 2,
|
||||
impl_version: 1,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
transaction_version: 1,
|
||||
@@ -235,8 +245,6 @@ impl pallet_transaction_payment::Config for Runtime {
|
||||
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||
}
|
||||
|
||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
||||
|
||||
impl pallet_sudo::Config for Runtime {
|
||||
type Call = Call;
|
||||
type Event = Event;
|
||||
@@ -270,7 +278,6 @@ construct_runtime! {
|
||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage},
|
||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
||||
}
|
||||
}
|
||||
@@ -321,10 +328,21 @@ pub type Executive = frame_executive::Executive<
|
||||
frame_system::ChainContext<Runtime>,
|
||||
Runtime,
|
||||
AllPallets,
|
||||
TestOnRuntimeUpgrade,
|
||||
>;
|
||||
/// The payload being signed in transactions.
|
||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||
|
||||
pub struct TestOnRuntimeUpgrade;
|
||||
|
||||
impl OnRuntimeUpgrade for TestOnRuntimeUpgrade {
|
||||
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
||||
assert_eq!(sp_io::storage::get(TEST_RUNTIME_UPGRADE_KEY), Some(vec![1, 2, 3, 4]));
|
||||
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
decl_runtime_apis! {
|
||||
pub trait GetLastTimestamp {
|
||||
/// Returns the last timestamp of a runtime.
|
||||
|
||||
Reference in New Issue
Block a user