Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the evm and auto-id domain runtime spec version #2955

Merged
merged 2 commits into from
Jul 29, 2024
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
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion domains/runtime/auto-id/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pallet-timestamp = { default-features = false, git = "https://github.com/subspac
pallet-transaction-payment = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
pallet-transporter = { version = "0.1.0", path = "../../pallets/transporter", default-features = false }
pallet-utility = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
scale-info = { version = "2.11.2", default-features = false, features = ["derive"] }
sp-api = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
sp-block-builder = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
Expand Down Expand Up @@ -85,6 +86,7 @@ std = [
"pallet-transaction-payment/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transporter/std",
"pallet-utility/std",
"scale-info/std",
"sp-api/std",
"sp-block-builder/std",
Expand Down Expand Up @@ -120,5 +122,6 @@ runtime-benchmarks = [
"pallet-auto-id/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-messenger/runtime-benchmarks",
"pallet-domain-id/runtime-benchmarks"
"pallet-domain-id/runtime-benchmarks",
"pallet-utility/runtime-benchmarks"
]
10 changes: 9 additions & 1 deletion domains/runtime/auto-id/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("subspace-auto-id-domain"),
impl_name: create_runtime_str!("subspace-auto-id-domain"),
authoring_version: 0,
spec_version: 0,
spec_version: 1,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down Expand Up @@ -469,6 +469,13 @@ impl pallet_domain_sudo::Config for Runtime {
type IntoRuntimeCall = IntoRuntimeCall;
}

impl pallet_utility::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type PalletsOrigin = OriginCaller;
type WeightInfo = pallet_utility::weights::SubstrateWeight<Runtime>;
}

// Create the runtime by composing the FRAME pallets that were previously configured.
//
// NOTE: Currently domain runtime does not naturally support the pallets with inherent extrinsics.
Expand All @@ -481,6 +488,7 @@ construct_runtime!(
// extrinsic.
Timestamp: pallet_timestamp = 1,
ExecutivePallet: domain_pallet_executive = 2,
Utility: pallet_utility = 8,

// monetary stuff
Balances: pallet_balances = 20,
Expand Down
3 changes: 3 additions & 0 deletions domains/runtime/evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pallet-timestamp = { default-features = false, git = "https://github.com/subspac
pallet-transaction-payment = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
pallet-transporter = { version = "0.1.0", path = "../../pallets/transporter", default-features = false }
pallet-utility = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
scale-info = { version = "2.11.2", default-features = false, features = ["derive"] }
sp-api = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
sp-block-builder = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "0cbfcb0232bbf71ac5b14cc8c99bf043cec420ef" }
Expand Down Expand Up @@ -105,6 +106,7 @@ std = [
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-transporter/std",
"pallet-utility/std",
"scale-info/std",
"sp-api/std",
"sp-block-builder/std",
Expand Down Expand Up @@ -139,6 +141,7 @@ runtime-benchmarks = [
"pallet-ethereum/runtime-benchmarks",
"pallet-evm/runtime-benchmarks",
"pallet-messenger/runtime-benchmarks",
"pallet-utility/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"sp-storage",
]
10 changes: 9 additions & 1 deletion domains/runtime/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("subspace-evm-domain"),
impl_name: create_runtime_str!("subspace-evm-domain"),
authoring_version: 0,
spec_version: 1,
spec_version: 2,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 0,
Expand Down Expand Up @@ -743,6 +743,13 @@ impl pallet_domain_sudo::Config for Runtime {
type IntoRuntimeCall = IntoRuntimeCall;
}

impl pallet_utility::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type PalletsOrigin = OriginCaller;
type WeightInfo = pallet_utility::weights::SubstrateWeight<Runtime>;
}

// Create the runtime by composing the FRAME pallets that were previously configured.
//
// NOTE: Currently domain runtime does not naturally support the pallets with inherent extrinsics.
Expand All @@ -755,6 +762,7 @@ construct_runtime!(
// extrinsic.
Timestamp: pallet_timestamp = 1,
ExecutivePallet: domain_pallet_executive = 2,
Utility: pallet_utility = 8,

// monetary stuff
Balances: pallet_balances = 20,
Expand Down
Loading