difftreelog
feat use state_version = 1
in: master
10 files changed
Cargo.lockdiffbeforeafterboth5892 "pallet-preimage",5892 "pallet-preimage",5893 "pallet-refungible",5893 "pallet-refungible",5894 "pallet-session",5894 "pallet-session",5895 "pallet-state-trie-migration",5895 "pallet-structure",5896 "pallet-structure",5896 "pallet-sudo",5897 "pallet-sudo",5897 "pallet-template-transaction-payment",5898 "pallet-template-transaction-payment",9395 "pallet-preimage",9396 "pallet-preimage",9396 "pallet-refungible",9397 "pallet-refungible",9397 "pallet-session",9398 "pallet-session",9399 "pallet-state-trie-migration",9398 "pallet-structure",9400 "pallet-structure",9399 "pallet-sudo",9401 "pallet-sudo",9400 "pallet-template-transaction-payment",9402 "pallet-template-transaction-payment",13812 "pallet-preimage",13814 "pallet-preimage",13813 "pallet-refungible",13815 "pallet-refungible",13814 "pallet-session",13816 "pallet-session",13817 "pallet-state-trie-migration",13815 "pallet-structure",13818 "pallet-structure",13816 "pallet-sudo",13819 "pallet-sudo",13817 "pallet-template-transaction-payment",13820 "pallet-template-transaction-payment",Cargo.tomldiffbeforeafterboth107pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }107pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }108pallet-preimage = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }108pallet-preimage = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }109pallet-session = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }109pallet-session = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }110pallet-state-trie-migration = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }110pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }111pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }111pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }112pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }112pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }113pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }runtime/common/config/substrate.rsdiffbeforeafterboth31use sp_arithmetic::traits::One;31use sp_arithmetic::traits::One;32use frame_system::{32use frame_system::{33 limits::{BlockLength, BlockWeights},33 limits::{BlockLength, BlockWeights},34 EnsureRoot,34 EnsureRoot, EnsureNever,35};35};36use pallet_transaction_payment::{Multiplier, ConstFeeMultiplier};36use pallet_transaction_payment::{Multiplier, ConstFeeMultiplier};37use crate::{37use crate::{115 type MaxConsumers = ConstU32<16>;115 type MaxConsumers = ConstU32<16>;116}116}117118parameter_types! {119 pub const MigrationMaxKeyLen: u32 = 512;120}121122impl pallet_state_trie_migration::Config for Runtime {123 type WeightInfo = pallet_state_trie_migration::weights::SubstrateWeight<Self>;124 type RuntimeEvent = RuntimeEvent;125 type Currency = Balances;126 type SignedDepositPerItem = ();127 type SignedDepositBase = ();128 type ControlOrigin = EnsureRoot<AccountId>;129 // Only root can perform this migration130 type SignedFilter = EnsureNever<AccountId>;131 type MaxKeyLen = MigrationMaxKeyLen;132}117133118parameter_types! {134parameter_types! {119 pub const MinimumPeriod: u64 = SLOT_DURATION / 2;135 pub const MinimumPeriod: u64 = SLOT_DURATION / 2;runtime/common/construct_runtime.rsdiffbeforeafterboth25 UncheckedExtrinsic = UncheckedExtrinsic25 UncheckedExtrinsic = UncheckedExtrinsic26 {26 {27 System: frame_system = 0,27 System: frame_system = 0,28 StateTrieMigration: pallet_state_trie_migration = 1,282929 ParachainSystem: cumulus_pallet_parachain_system = 20,30 ParachainSystem: cumulus_pallet_parachain_system = 20,30 ParachainInfo: parachain_info = 21,31 ParachainInfo: parachain_info = 21,runtime/opal/Cargo.tomldiffbeforeafterboth73 "pallet-authorship/std",73 "pallet-authorship/std",74 "pallet-preimage/std",74 "pallet-preimage/std",75 "pallet-session/std",75 "pallet-session/std",76 "pallet-state-trie-migration/std",76 "sp-consensus-aura/std",77 "sp-consensus-aura/std",77 'app-promotion-rpc/std',78 'app-promotion-rpc/std',78 'evm-coder/std',79 'evm-coder/std',225pallet-balances = { features = ["insecure_zero_ed"], workspace = true }226pallet-balances = { features = ["insecure_zero_ed"], workspace = true }226pallet-preimage = { workspace = true }227pallet-preimage = { workspace = true }227pallet-session = { workspace = true }228pallet-session = { workspace = true }229pallet-state-trie-migration = { workspace = true }228pallet-sudo = { workspace = true }230pallet-sudo = { workspace = true }229pallet-timestamp = { workspace = true }231pallet-timestamp = { workspace = true }230pallet-transaction-payment = { workspace = true }232pallet-transaction-payment = { workspace = true }runtime/opal/src/lib.rsdiffbeforeafterboth56 impl_version: 0,56 impl_version: 0,57 apis: RUNTIME_API_VERSIONS,57 apis: RUNTIME_API_VERSIONS,58 transaction_version: 3,58 transaction_version: 3,59 state_version: 0,59 state_version: 1,60};60};616162parameter_types! {62parameter_types! {runtime/quartz/Cargo.tomldiffbeforeafterboth75 "pallet-identity/std",75 "pallet-identity/std",76 "pallet-preimage/std",76 "pallet-preimage/std",77 "pallet-session/std",77 "pallet-session/std",78 "pallet-state-trie-migration/std",78 "sp-consensus-aura/std",79 "sp-consensus-aura/std",79 'app-promotion-rpc/std',80 'app-promotion-rpc/std',80 'evm-coder/std',81 'evm-coder/std',217pallet-balances = { features = ["insecure_zero_ed"], workspace = true }218pallet-balances = { features = ["insecure_zero_ed"], workspace = true }218pallet-preimage = { workspace = true }219pallet-preimage = { workspace = true }219pallet-session = { workspace = true }220pallet-session = { workspace = true }221pallet-state-trie-migration = { workspace = true }220pallet-sudo = { workspace = true }222pallet-sudo = { workspace = true }221pallet-timestamp = { workspace = true }223pallet-timestamp = { workspace = true }222pallet-transaction-payment = { workspace = true }224pallet-transaction-payment = { workspace = true }runtime/quartz/src/lib.rsdiffbeforeafterboth59 impl_version: 0,59 impl_version: 0,60 apis: RUNTIME_API_VERSIONS,60 apis: RUNTIME_API_VERSIONS,61 transaction_version: 3,61 transaction_version: 3,62 state_version: 0,62 state_version: 1,63};63};646465parameter_types! {65parameter_types! {runtime/unique/Cargo.tomldiffbeforeafterboth72 "pallet-identity/std",72 "pallet-identity/std",73 "pallet-preimage/std",73 "pallet-preimage/std",74 "pallet-session/std",74 "pallet-session/std",75 "pallet-state-trie-migration/std",75 "sp-consensus-aura/std",76 "sp-consensus-aura/std",76 'app-promotion-rpc/std',77 'app-promotion-rpc/std',77 'evm-coder/std',78 'evm-coder/std',216pallet-balances = { features = ["insecure_zero_ed"], workspace = true }217pallet-balances = { features = ["insecure_zero_ed"], workspace = true }217pallet-preimage = { workspace = true }218pallet-preimage = { workspace = true }218pallet-session = { workspace = true }219pallet-session = { workspace = true }220pallet-state-trie-migration = { workspace = true }219pallet-sudo = { workspace = true }221pallet-sudo = { workspace = true }220pallet-timestamp = { workspace = true }222pallet-timestamp = { workspace = true }221pallet-transaction-payment = { workspace = true }223pallet-transaction-payment = { workspace = true }runtime/unique/src/lib.rsdiffbeforeafterboth56 impl_version: 0,56 impl_version: 0,57 apis: RUNTIME_API_VERSIONS,57 apis: RUNTIME_API_VERSIONS,58 transaction_version: 3,58 transaction_version: 3,59 state_version: 0,59 state_version: 1,60};60};616162parameter_types! {62parameter_types! {