mirror of
https://github.com/pezkuwichain/pez-minimal-template.git
synced 2026-06-14 01:51:02 +00:00
[create-pull-request] automated change
This commit is contained in:
committed by
github-actions[bot]
parent
d7a09baa65
commit
34a0e0a0e5
+5
-24
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "minimal-template-runtime"
|
||||
description = "A solochain runtime template built with Substrate, part of Polkadot Sdk. (polkadot v1.15.0)"
|
||||
description = "A solochain runtime template built with Substrate, part of Polkadot Sdk."
|
||||
version = "0.1.0"
|
||||
license = "Unlicense"
|
||||
authors.workspace = true
|
||||
@@ -12,36 +12,17 @@ publish = false
|
||||
[dependencies]
|
||||
codec = { workspace = true }
|
||||
scale-info = { workspace = true }
|
||||
frame = { features = ["experimental", "runtime"], workspace = true }
|
||||
pallet-balances.workspace = true
|
||||
pallet-sudo.workspace = true
|
||||
pallet-timestamp.workspace = true
|
||||
pallet-transaction-payment.workspace = true
|
||||
pallet-transaction-payment-rpc-runtime-api.workspace = true
|
||||
sp-genesis-builder.workspace = true
|
||||
sp-runtime = { features = ["serde"], workspace = true }
|
||||
polkadot-sdk = { workspace = true, features = ["experimental", "pallet-balances", "pallet-sudo", "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "runtime"] }
|
||||
pallet-minimal-template.workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
substrate-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
polkadot-sdk = { optional = true, workspace = true, features = ["substrate-wasm-builder"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"scale-info/std",
|
||||
|
||||
"frame/std",
|
||||
|
||||
"pallet-balances/std",
|
||||
"pallet-sudo/std",
|
||||
"pallet-timestamp/std",
|
||||
"pallet-transaction-payment-rpc-runtime-api/std",
|
||||
"pallet-transaction-payment/std",
|
||||
|
||||
"pallet-minimal-template/std",
|
||||
|
||||
"sp-genesis-builder/std",
|
||||
"sp-runtime/std",
|
||||
"substrate-wasm-builder",
|
||||
"polkadot-sdk/std",
|
||||
"scale-info/std",
|
||||
]
|
||||
|
||||
@@ -8,3 +8,8 @@ responsible for validating blocks and executing the state changes they define.
|
||||
|
||||
👉 Learn more about FRAME
|
||||
[here](https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/polkadot_sdk/frame_runtime/index.html).
|
||||
|
||||
|
||||
## Release
|
||||
|
||||
Polkadot SDK stable2409
|
||||
|
||||
+1
-1
@@ -18,6 +18,6 @@
|
||||
fn main() {
|
||||
#[cfg(feature = "std")]
|
||||
{
|
||||
substrate_wasm_builder::WasmBuilder::build_using_defaults();
|
||||
polkadot_sdk::substrate_wasm_builder::WasmBuilder::build_using_defaults();
|
||||
}
|
||||
}
|
||||
|
||||
+8
-16
@@ -26,20 +26,14 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::{vec, vec::Vec};
|
||||
use frame::{
|
||||
deps::frame_support::{
|
||||
genesis_builder_helper::{build_state, get_preset},
|
||||
runtime,
|
||||
weights::{FixedFee, NoFee},
|
||||
},
|
||||
prelude::*,
|
||||
runtime::{
|
||||
apis::{
|
||||
self, impl_runtime_apis, ApplyExtrinsicResult, CheckInherentsResult,
|
||||
ExtrinsicInclusionMode, OpaqueMetadata,
|
||||
},
|
||||
use pallet_transaction_payment::{FeeDetails, RuntimeDispatchInfo};
|
||||
use polkadot_sdk::{
|
||||
polkadot_sdk_frame::{
|
||||
self as frame,
|
||||
prelude::*,
|
||||
runtime::{apis, prelude::*},
|
||||
},
|
||||
*,
|
||||
};
|
||||
|
||||
/// The runtime version.
|
||||
@@ -83,7 +77,7 @@ type SignedExtra = (
|
||||
);
|
||||
|
||||
// Composes the runtime by adding all the used pallets and deriving necessary types.
|
||||
#[runtime]
|
||||
#[frame_construct_runtime]
|
||||
mod runtime {
|
||||
/// The main runtime type.
|
||||
#[runtime::runtime]
|
||||
@@ -171,8 +165,6 @@ type Header = HeaderFor<Runtime>;
|
||||
type RuntimeExecutive =
|
||||
Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllPalletsWithSystem>;
|
||||
|
||||
use pallet_transaction_payment::{FeeDetails, RuntimeDispatchInfo};
|
||||
|
||||
impl_runtime_apis! {
|
||||
impl apis::Core<Block> for Runtime {
|
||||
fn version() -> RuntimeVersion {
|
||||
@@ -296,7 +288,7 @@ impl_runtime_apis! {
|
||||
// https://github.com/paritytech/substrate/issues/10579#issuecomment-1600537558
|
||||
pub mod interface {
|
||||
use super::Runtime;
|
||||
use frame::deps::frame_system;
|
||||
use polkadot_sdk::{polkadot_sdk_frame as frame, *};
|
||||
|
||||
pub type Block = super::Block;
|
||||
pub use frame::runtime::types_common::OpaqueBlock;
|
||||
|
||||
Reference in New Issue
Block a user