mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-06-13 07:01:08 +00:00
utility config
This commit is contained in:
@@ -44,6 +44,7 @@ pallet-session = { git = "https://github.com/paritytech/polkadot-sdk", branch =
|
|||||||
pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
pallet-proxy = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
||||||
pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
pallet-sudo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
||||||
pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
pallet-timestamp = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
||||||
|
pallet-utility = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
||||||
pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
pallet-transaction-payment = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
||||||
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
||||||
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
sp-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
|
||||||
@@ -112,6 +113,7 @@ std = [
|
|||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
"pallet-transaction-payment-rpc-runtime-api/std",
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
||||||
"pallet-transaction-payment/std",
|
"pallet-transaction-payment/std",
|
||||||
|
"pallet-utility/std",
|
||||||
"pallet-xcm/std",
|
"pallet-xcm/std",
|
||||||
"parachain-info/std",
|
"parachain-info/std",
|
||||||
"polkadot-parachain-primitives/std",
|
"polkadot-parachain-primitives/std",
|
||||||
@@ -157,6 +159,7 @@ runtime-benchmarks = [
|
|||||||
"sp-runtime/runtime-benchmarks",
|
"sp-runtime/runtime-benchmarks",
|
||||||
"xcm-builder/runtime-benchmarks",
|
"xcm-builder/runtime-benchmarks",
|
||||||
"xcm-executor/runtime-benchmarks",
|
"xcm-executor/runtime-benchmarks",
|
||||||
|
"pallet-utility/runtime-benchmarks",
|
||||||
]
|
]
|
||||||
|
|
||||||
try-runtime = [
|
try-runtime = [
|
||||||
@@ -183,6 +186,7 @@ try-runtime = [
|
|||||||
"parachain-info/try-runtime",
|
"parachain-info/try-runtime",
|
||||||
"polkadot-runtime-common/try-runtime",
|
"polkadot-runtime-common/try-runtime",
|
||||||
"sp-runtime/try-runtime",
|
"sp-runtime/try-runtime",
|
||||||
|
"pallet-utility/try-runtime",
|
||||||
]
|
]
|
||||||
|
|
||||||
experimental = ["pallet-aura/experimental"]
|
experimental = ["pallet-aura/experimental"]
|
||||||
|
|||||||
@@ -576,6 +576,13 @@ impl pallet_parachain_template::Config for Runtime {
|
|||||||
type RuntimeEvent = RuntimeEvent;
|
type RuntimeEvent = RuntimeEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl pallet_utility::Config for Runtime {
|
||||||
|
type PalletsOrigin = OriginCaller;
|
||||||
|
type RuntimeCall = RuntimeCall;
|
||||||
|
type RuntimeEvent = RuntimeEvent;
|
||||||
|
type WeightInfo = ();
|
||||||
|
}
|
||||||
|
|
||||||
// Create the runtime by composing the FRAME pallets that were previously
|
// Create the runtime by composing the FRAME pallets that were previously
|
||||||
// configured.
|
// configured.
|
||||||
construct_runtime!(
|
construct_runtime!(
|
||||||
@@ -587,6 +594,7 @@ construct_runtime!(
|
|||||||
Timestamp: pallet_timestamp = 2,
|
Timestamp: pallet_timestamp = 2,
|
||||||
ParachainInfo: parachain_info = 3,
|
ParachainInfo: parachain_info = 3,
|
||||||
Proxy: pallet_proxy = 4,
|
Proxy: pallet_proxy = 4,
|
||||||
|
Utility: pallet_utility = 5,
|
||||||
|
|
||||||
// Monetary stuff.
|
// Monetary stuff.
|
||||||
Balances: pallet_balances = 10,
|
Balances: pallet_balances = 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user