diff --git a/Cargo.lock b/Cargo.lock index abd1414..10ba40d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4500,6 +4500,22 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-utility" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + [[package]] name = "parity-db" version = "0.4.3" @@ -7809,7 +7825,7 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "swanky-node" -version = "1.1.0" +version = "1.2.0" dependencies = [ "clap", "frame-benchmarking", @@ -7851,7 +7867,7 @@ dependencies = [ [[package]] name = "swanky-runtime" -version = "1.1.0" +version = "1.2.0" dependencies = [ "frame-benchmarking", "frame-executive", @@ -7875,6 +7891,7 @@ dependencies = [ "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-uniques", + "pallet-utility", "parity-scale-codec", "scale-info", "sp-api", @@ -8456,7 +8473,7 @@ checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "digest 0.10.6", - "rand 0.7.3", + "rand 0.8.5", "static_assertions", ] diff --git a/node/Cargo.toml b/node/Cargo.toml index 24373a8..5d039cb 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "swanky-node" -version = "1.1.0" +version = "1.2.0" description = "Local Substrate node for wasm contract development & testing" authors = ["Astar Network"] homepage = "https://astar.network" @@ -56,7 +56,7 @@ frame-benchmarking = { git = "https://github.com/paritytech/substrate.git", bran frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } # Local Dependencies -swanky-runtime = { version = "1.1.0", path = "../runtime" } +swanky-runtime = { version = "1.2.0", path = "../runtime" } # RPC related dependencies jsonrpsee = { version = "0.16.2", features = ["server"] } diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index b1ad3e2..3395204 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "swanky-runtime" -version = "1.1.0" +version = "1.2.0" description = "A fresh FRAME-based Substrate runtime, ready for hacking." authors = ["Astar Network"] homepage = "https://astar.network" @@ -27,6 +27,7 @@ pallet-sudo = { default-features = false, git = "https://github.com/paritytech/s pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } pallet-uniques = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } +pallet-utility = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } sp-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } sp-block-builder = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } @@ -83,6 +84,7 @@ std = [ "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", + "pallet-utility/std", "sp-api/std", "sp-block-builder/std", "sp-core/std", diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index b58e6f2..0b66667 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -235,6 +235,13 @@ impl frame_system::Config for Runtime { impl pallet_randomness_collective_flip::Config for Runtime {} +impl pallet_utility::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type RuntimeCall = RuntimeCall; + type PalletsOrigin = OriginCaller; + type WeightInfo = pallet_utility::weights::SubstrateWeight; +} + parameter_types! { pub const MinimumPeriod: u64 = 5; } @@ -471,6 +478,7 @@ construct_runtime!( Contracts: pallet_contracts, DappsStaking: pallet_dapps_staking, Uniques: pallet_uniques, + Utility: pallet_utility, } );