Skip to content
Snippets Groups Projects
Unverified Commit da88e4aa authored by Joshy Orndorff's avatar Joshy Orndorff Committed by GitHub
Browse files

Update node template to alpha 5 (#27)

* Run release script

* Change dependencies to crates.io
parent 5b41f0b1
No related branches found
No related tags found
No related merge requests found
source diff could not be displayed: it is too large. Options to address this: view the blob.
[build-dependencies]
vergen = '3.0.4'
[build-dependencies.build-script-utils]
git = 'https://github.com/paritytech/substrate.git'
package = 'substrate-build-script-utils'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[package] [package]
authors = ['Anonymous'] authors = ['Anonymous']
build = 'build.rs' build = 'build.rs'
...@@ -15,10 +6,14 @@ homepage = 'https://substrate.dev' ...@@ -15,10 +6,14 @@ homepage = 'https://substrate.dev'
license = 'Unlicense' license = 'Unlicense'
name = 'node-template' name = 'node-template'
repository = 'https://github.com/paritytech/substrate/' repository = 'https://github.com/paritytech/substrate/'
version = '2.0.0-alpha.3' version = '2.0.0-alpha.5'
[[bin]] [build-dependencies]
name = 'node-template' vergen = '3.0.4'
[build-dependencies.build-script-utils]
package = 'substrate-build-script-utils'
version = '2.0.0-alpha.5'
[dependencies] [dependencies]
futures = '0.3.1' futures = '0.3.1'
...@@ -26,87 +21,61 @@ log = '0.4.8' ...@@ -26,87 +21,61 @@ log = '0.4.8'
structopt = '0.3.8' structopt = '0.3.8'
[dependencies.grandpa] [dependencies.grandpa]
git = 'https://github.com/paritytech/substrate.git'
package = 'sc-finality-grandpa' package = 'sc-finality-grandpa'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '0.8.0-alpha.5'
version = '0.8.0-alpha.3'
[dependencies.grandpa-primitives] [dependencies.grandpa-primitives]
git = 'https://github.com/paritytech/substrate.git'
package = 'sp-finality-grandpa' package = 'sp-finality-grandpa'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3'
[dependencies.node-template-runtime] [dependencies.node-template-runtime]
path = '../runtime' path = '../runtime'
version = '2.0.0-alpha.3' version = '2.0.0-alpha.5'
[dependencies.sc-basic-authorship] [dependencies.sc-basic-authorship]
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3'
[dependencies.sc-cli] [dependencies.sc-cli]
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3'
[dependencies.sc-client] [dependencies.sc-client]
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3' [dependencies.sc-client-api]
version = '2.0.0-alpha.5'
[dependencies.sc-consensus-aura] [dependencies.sc-consensus-aura]
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3'
[dependencies.sc-executor] [dependencies.sc-executor]
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3'
[dependencies.sc-network] [dependencies.sc-network]
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3'
[dependencies.sc-service] [dependencies.sc-service]
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3'
[dependencies.sc-transaction-pool] [dependencies.sc-transaction-pool]
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-consensus] [dependencies.sp-consensus]
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3'
[dependencies.sp-consensus-aura] [dependencies.sp-consensus-aura]
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3'
[dependencies.sp-core] [dependencies.sp-core]
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-inherents] [dependencies.sp-inherents]
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-runtime] [dependencies.sp-runtime]
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-transaction-pool] [dependencies.sp-transaction-pool]
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3' [[bin]]
name = 'node-template'
...@@ -12,7 +12,7 @@ use sp_runtime::traits::{Verify, IdentifyAccount}; ...@@ -12,7 +12,7 @@ use sp_runtime::traits::{Verify, IdentifyAccount};
//const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/"; //const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
/// Specialized `ChainSpec`. This is a specialization of the general Substrate ChainSpec type. /// Specialized `ChainSpec`. This is a specialization of the general Substrate ChainSpec type.
pub type ChainSpec = sc_service::ChainSpec<GenesisConfig>; pub type ChainSpec = sc_service::GenericChainSpec<GenesisConfig>;
/// The chain specification option. This is expected to come in from the CLI and /// The chain specification option. This is expected to come in from the CLI and
/// is little more than one of a number of alternatives which can easily be converted /// is little more than one of a number of alternatives which can easily be converted
...@@ -142,9 +142,9 @@ fn testnet_genesis(initial_authorities: Vec<(AuraId, GrandpaId)>, ...@@ -142,9 +142,9 @@ fn testnet_genesis(initial_authorities: Vec<(AuraId, GrandpaId)>,
} }
} }
pub fn load_spec(id: &str) -> Result<Option<ChainSpec>, String> { pub fn load_spec(id: &str) -> Result<Box<dyn sc_service::ChainSpec>, String> {
Ok(match Alternative::from(id) { Ok(match Alternative::from(id) {
Some(spec) => Some(spec.load()?), Some(spec) => Box::new(spec.load()?),
None => None, None => Box::new(ChainSpec::from_json_file(std::path::PathBuf::from(id))?),
}) })
} }
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
use std::sync::Arc; use std::sync::Arc;
use std::time::Duration; use std::time::Duration;
use sc_client::LongestChain; use sc_client::LongestChain;
use node_template_runtime::{self, GenesisConfig, opaque::Block, RuntimeApi}; use sc_client_api::ExecutorProvider;
use node_template_runtime::{self, opaque::Block, RuntimeApi};
use sc_service::{error::{Error as ServiceError}, AbstractService, Configuration, ServiceBuilder}; use sc_service::{error::{Error as ServiceError}, AbstractService, Configuration, ServiceBuilder};
use sp_inherents::InherentDataProviders; use sp_inherents::InherentDataProviders;
use sc_executor::native_executor_instance; use sc_executor::native_executor_instance;
pub use sc_executor::NativeExecutor; pub use sc_executor::NativeExecutor;
use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair}; use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};
use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider}; use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider, StorageAndProofProvider};
// Our native executor instance. // Our native executor instance.
native_executor_instance!( native_executor_instance!(
...@@ -24,6 +25,7 @@ native_executor_instance!( ...@@ -24,6 +25,7 @@ native_executor_instance!(
/// be able to perform chain operations. /// be able to perform chain operations.
macro_rules! new_full_start { macro_rules! new_full_start {
($config:expr) => {{ ($config:expr) => {{
use std::sync::Arc;
let mut import_setup = None; let mut import_setup = None;
let inherent_data_providers = sp_inherents::InherentDataProviders::new(); let inherent_data_providers = sp_inherents::InherentDataProviders::new();
...@@ -42,7 +44,7 @@ macro_rules! new_full_start { ...@@ -42,7 +44,7 @@ macro_rules! new_full_start {
.ok_or_else(|| sc_service::Error::SelectChainRequired)?; .ok_or_else(|| sc_service::Error::SelectChainRequired)?;
let (grandpa_block_import, grandpa_link) = let (grandpa_block_import, grandpa_link) =
grandpa::block_import(client.clone(), &*client, select_chain)?; grandpa::block_import(client.clone(), &(client.clone() as Arc<_>), select_chain)?;
let aura_block_import = sc_consensus_aura::AuraBlockImport::<_, _, _, AuraPair>::new( let aura_block_import = sc_consensus_aura::AuraBlockImport::<_, _, _, AuraPair>::new(
grandpa_block_import.clone(), client.clone(), grandpa_block_import.clone(), client.clone(),
...@@ -67,7 +69,7 @@ macro_rules! new_full_start { ...@@ -67,7 +69,7 @@ macro_rules! new_full_start {
} }
/// Builds a new service for a full client. /// Builds a new service for a full client.
pub fn new_full(config: Configuration<GenesisConfig>) pub fn new_full(config: Configuration)
-> Result<impl AbstractService, ServiceError> -> Result<impl AbstractService, ServiceError>
{ {
let is_authority = config.roles.is_authority(); let is_authority = config.roles.is_authority();
...@@ -87,9 +89,11 @@ pub fn new_full(config: Configuration<GenesisConfig>) ...@@ -87,9 +89,11 @@ pub fn new_full(config: Configuration<GenesisConfig>)
.expect("Link Half and Block Import are present for Full Services or setup failed before. qed"); .expect("Link Half and Block Import are present for Full Services or setup failed before. qed");
let service = builder let service = builder
.with_finality_proof_provider(|client, backend| .with_finality_proof_provider(|client, backend| {
Ok(Arc::new(GrandpaFinalityProofProvider::new(backend, client)) as _) // GenesisAuthoritySetProvider is implemented for StorageAndProofProvider
)? let provider = client as Arc<dyn StorageAndProofProvider<_, _>>;
Ok(Arc::new(GrandpaFinalityProofProvider::new(backend, provider)) as _)
})?
.build()?; .build()?;
if participates_in_consensus { if participates_in_consensus {
...@@ -154,9 +158,9 @@ pub fn new_full(config: Configuration<GenesisConfig>) ...@@ -154,9 +158,9 @@ pub fn new_full(config: Configuration<GenesisConfig>)
link: grandpa_link, link: grandpa_link,
network: service.network(), network: service.network(),
inherent_data_providers: inherent_data_providers.clone(), inherent_data_providers: inherent_data_providers.clone(),
on_exit: service.on_exit(),
telemetry_on_connect: Some(service.telemetry_on_connect_stream()), telemetry_on_connect: Some(service.telemetry_on_connect_stream()),
voting_rule: grandpa::VotingRulesBuilder::default().build(), voting_rule: grandpa::VotingRulesBuilder::default().build(),
prometheus_registry: service.prometheus_registry()
}; };
// the GRANDPA voter task is considered infallible, i.e. // the GRANDPA voter task is considered infallible, i.e.
...@@ -177,7 +181,7 @@ pub fn new_full(config: Configuration<GenesisConfig>) ...@@ -177,7 +181,7 @@ pub fn new_full(config: Configuration<GenesisConfig>)
} }
/// Builds a new service for a light client. /// Builds a new service for a light client.
pub fn new_light(config: Configuration<GenesisConfig>) pub fn new_light(config: Configuration)
-> Result<impl AbstractService, ServiceError> -> Result<impl AbstractService, ServiceError>
{ {
let inherent_data_providers = InherentDataProviders::new(); let inherent_data_providers = InherentDataProviders::new();
...@@ -201,7 +205,10 @@ pub fn new_light(config: Configuration<GenesisConfig>) ...@@ -201,7 +205,10 @@ pub fn new_light(config: Configuration<GenesisConfig>)
.map(|fetcher| fetcher.checker().clone()) .map(|fetcher| fetcher.checker().clone())
.ok_or_else(|| "Trying to start light import queue without active fetch checker")?; .ok_or_else(|| "Trying to start light import queue without active fetch checker")?;
let grandpa_block_import = grandpa::light_block_import( let grandpa_block_import = grandpa::light_block_import(
client.clone(), backend, &*client.clone(), Arc::new(fetch_checker), client.clone(),
backend,
&(client.clone() as Arc<_>),
Arc::new(fetch_checker),
)?; )?;
let finality_proof_import = grandpa_block_import.clone(); let finality_proof_import = grandpa_block_import.clone();
let finality_proof_request_builder = let finality_proof_request_builder =
...@@ -218,8 +225,10 @@ pub fn new_light(config: Configuration<GenesisConfig>) ...@@ -218,8 +225,10 @@ pub fn new_light(config: Configuration<GenesisConfig>)
Ok((import_queue, finality_proof_request_builder)) Ok((import_queue, finality_proof_request_builder))
})? })?
.with_finality_proof_provider(|client, backend| .with_finality_proof_provider(|client, backend| {
Ok(Arc::new(GrandpaFinalityProofProvider::new(backend, client)) as _) // GenesisAuthoritySetProvider is implemented for StorageAndProofProvider
)? let provider = client as Arc<dyn StorageAndProofProvider<_, _>>;
Ok(Arc::new(GrandpaFinalityProofProvider::new(backend, provider)) as _)
})?
.build() .build()
} }
[dev-dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dev-dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dev-dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[features]
default = ['std']
std = [
'codec/std',
'frame-support/std',
'safe-mix/std',
'system/std',
]
[package] [package]
authors = ['Anonymous'] authors = ['Anonymous']
description = 'FRAME pallet template' description = 'FRAME pallet template'
...@@ -33,18 +6,17 @@ homepage = 'https://substrate.dev' ...@@ -33,18 +6,17 @@ homepage = 'https://substrate.dev'
license = 'Unlicense' license = 'Unlicense'
name = 'pallet-template' name = 'pallet-template'
repository = 'https://github.com/paritytech/substrate/' repository = 'https://github.com/paritytech/substrate/'
version = '2.0.0-alpha.3' version = '2.0.0-alpha.5'
[dependencies.codec] [dependencies.codec]
default-features = false default-features = false
features = ['derive'] features = ['derive']
package = 'parity-scale-codec' package = 'parity-scale-codec'
version = '1.0.0' version = '1.2.0'
[dependencies.frame-support] [dependencies.frame-support]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.safe-mix] [dependencies.safe-mix]
default-features = false default-features = false
...@@ -52,7 +24,26 @@ version = '1.0.0' ...@@ -52,7 +24,26 @@ version = '1.0.0'
[dependencies.system] [dependencies.system]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git'
package = 'frame-system' package = 'frame-system'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3'
[dev-dependencies.sp-core]
default-features = false
version = '2.0.0-alpha.5'
[dev-dependencies.sp-io]
default-features = false
version = '2.0.0-alpha.5'
[dev-dependencies.sp-runtime]
default-features = false
version = '2.0.0-alpha.5'
[features]
default = ['std']
std = [
'codec/std',
'frame-support/std',
'safe-mix/std',
'system/std',
]
...@@ -28,6 +28,9 @@ pub trait Trait: system::Trait { ...@@ -28,6 +28,9 @@ pub trait Trait: system::Trait {
// This pallet's storage items. // This pallet's storage items.
decl_storage! { decl_storage! {
// It is important to update your storage name so that your pallet's
// storage items are isolated from other pallets.
// ---------------------------------vvvvvvvvvvvvvv
trait Store for Module<T: Trait> as TemplateModule { trait Store for Module<T: Trait> as TemplateModule {
// Just a dummy storage item. // Just a dummy storage item.
// Here we are declaring a StorageValue, `Something` as a Option<u32> // Here we are declaring a StorageValue, `Something` as a Option<u32>
......
...@@ -5,87 +5,41 @@ homepage = 'https://substrate.dev' ...@@ -5,87 +5,41 @@ homepage = 'https://substrate.dev'
license = 'Unlicense' license = 'Unlicense'
name = 'node-template-runtime' name = 'node-template-runtime'
repository = 'https://github.com/paritytech/substrate/' repository = 'https://github.com/paritytech/substrate/'
version = '2.0.0-alpha.3' version = '2.0.0-alpha.5'
[build-dependencies.wasm-builder-runner]
git = 'https://github.com/paritytech/substrate.git'
package = 'substrate-wasm-builder-runner'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '1.0.5'
[features]
default = ['std']
std = [
'aura/std',
'balances/std',
'codec/std',
'frame-executive/std',
'frame-support/std',
'grandpa/std',
'randomness-collective-flip/std',
'serde',
'sp-api/std',
'sp-block-builder/std',
'sp-consensus-aura/std',
'sp-core/std',
'sp-inherents/std',
'sp-io/std',
'sp-offchain/std',
'sp-runtime/std',
'sp-session/std',
'sp-std/std',
'sp-transaction-pool/std',
'sp-version/std',
'sudo/std',
'system/std',
'timestamp/std',
'transaction-payment/std',
'template/std',
]
[dependencies.aura] [dependencies.aura]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git'
package = 'pallet-aura' package = 'pallet-aura'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3'
[dependencies.balances] [dependencies.balances]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git'
package = 'pallet-balances' package = 'pallet-balances'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3'
[dependencies.codec] [dependencies.codec]
default-features = false default-features = false
features = ['derive'] features = ['derive']
package = 'parity-scale-codec' package = 'parity-scale-codec'
version = '1.0.0' version = '1.2.0'
[dependencies.frame-executive] [dependencies.frame-executive]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.frame-support] [dependencies.frame-support]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.grandpa] [dependencies.grandpa]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git'
package = 'pallet-grandpa' package = 'pallet-grandpa'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3'
[dependencies.randomness-collective-flip] [dependencies.randomness-collective-flip]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git'
package = 'pallet-randomness-collective-flip' package = 'pallet-randomness-collective-flip'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3'
[dependencies.serde] [dependencies.serde]
features = ['derive'] features = ['derive']
...@@ -94,106 +48,107 @@ version = '1.0.101' ...@@ -94,106 +48,107 @@ version = '1.0.101'
[dependencies.sp-api] [dependencies.sp-api]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-block-builder] [dependencies.sp-block-builder]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-consensus-aura] [dependencies.sp-consensus-aura]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '0.8.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '0.8.0-alpha.3'
[dependencies.sp-core] [dependencies.sp-core]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-inherents] [dependencies.sp-inherents]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-io] [dependencies.sp-io]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-offchain] [dependencies.sp-offchain]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-runtime] [dependencies.sp-runtime]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-session] [dependencies.sp-session]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-std] [dependencies.sp-std]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-transaction-pool] [dependencies.sp-transaction-pool]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sp-version] [dependencies.sp-version]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' version = '2.0.0-alpha.5'
rev = '013c1ee167354a08283fb69915fda56a62fee943'
version = '2.0.0-alpha.3'
[dependencies.sudo] [dependencies.sudo]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git'
package = 'pallet-sudo' package = 'pallet-sudo'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3'
[dependencies.system] [dependencies.system]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git'
package = 'frame-system' package = 'frame-system'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3'
[dependencies.template] [dependencies.template]
default-features = false default-features = false
package = 'pallet-template' package = 'pallet-template'
path = '../pallets/template' path = '../pallets/template'
version = '2.0.0-alpha.3' version = '2.0.0-alpha.5'
[dependencies.timestamp] [dependencies.timestamp]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git'
package = 'pallet-timestamp' package = 'pallet-timestamp'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3'
[dependencies.transaction-payment] [dependencies.transaction-payment]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git'
package = 'pallet-transaction-payment' package = 'pallet-transaction-payment'
rev = '013c1ee167354a08283fb69915fda56a62fee943' version = '2.0.0-alpha.5'
version = '2.0.0-alpha.3' [build-dependencies.wasm-builder-runner]
package = 'substrate-wasm-builder-runner'
version = '1.0.5'
[features]
default = ['std']
std = [
'aura/std',
'balances/std',
'codec/std',
'frame-executive/std',
'frame-support/std',
'grandpa/std',
'randomness-collective-flip/std',
'serde',
'sp-api/std',
'sp-block-builder/std',
'sp-consensus-aura/std',
'sp-core/std',
'sp-inherents/std',
'sp-io/std',
'sp-offchain/std',
'sp-runtime/std',
'sp-session/std',
'sp-std/std',
'sp-transaction-pool/std',
'sp-version/std',
'sudo/std',
'system/std',
'timestamp/std',
'transaction-payment/std',
'template/std',
]
...@@ -297,10 +297,6 @@ impl_runtime_apis! { ...@@ -297,10 +297,6 @@ impl_runtime_apis! {
Executive::apply_extrinsic(extrinsic) Executive::apply_extrinsic(extrinsic)
} }
fn apply_trusted_extrinsic(extrinsic: <Block as BlockT>::Extrinsic) -> ApplyExtrinsicResult {
Executive::apply_trusted_extrinsic(extrinsic)
}
fn finalize_block() -> <Block as BlockT>::Header { fn finalize_block() -> <Block as BlockT>::Header {
Executive::finalize_block() Executive::finalize_block()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment