Skip to content
Closed
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: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ panic = 'unwind'
[workspace]
members = [
'node',
'pallets/template',
'pallets/cfgeneric',
'runtime',
]
68 changes: 0 additions & 68 deletions pallets/template/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion pallets/template/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions pallets/template/src/benchmarking.rs

This file was deleted.

104 changes: 0 additions & 104 deletions pallets/template/src/lib.rs

This file was deleted.

62 changes: 0 additions & 62 deletions pallets/template/src/mock.rs

This file was deleted.

23 changes: 0 additions & 23 deletions pallets/template/src/tests.rs

This file was deleted.

7 changes: 0 additions & 7 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ git = 'https://github.com/paritytech/substrate.git'
rev = 'd6c33e7ec313f9bd5e319dc0a5a3ace5543f9617'
version = '3.0.0'

[dependencies.pallet-template]
default-features = false
path = '../pallets/template'
version = '3.0.0'

[dependencies.pallet-timestamp]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
Expand Down Expand Up @@ -198,7 +193,6 @@ runtime-benchmarks = [
'frame-system/runtime-benchmarks',
'hex-literal',
'pallet-balances/runtime-benchmarks',
'pallet-template/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
]
Expand All @@ -213,7 +207,6 @@ std = [
'pallet-grandpa/std',
'pallet-randomness-collective-flip/std',
'pallet-sudo/std',
'pallet-template/std',
'pallet-timestamp/std',
'pallet-transaction-payment-rpc-runtime-api/std',
'pallet-transaction-payment/std',
Expand Down
9 changes: 0 additions & 9 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ pub use frame_support::{
};
use pallet_transaction_payment::CurrencyAdapter;

/// Import the template pallet.
pub use pallet_template;

/// An index to a block.
pub type BlockNumber = u32;
Expand Down Expand Up @@ -274,10 +272,6 @@ impl pallet_sudo::Config for Runtime {
type Call = Call;
}

/// Configure the pallet-template in pallets/template.
impl pallet_template::Config for Runtime {
type Event = Event;
}

// Create the runtime by composing the FRAME pallets that were previously configured.
construct_runtime!(
Expand All @@ -294,8 +288,6 @@ construct_runtime!(
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
// Include the custom logic from the pallet-template in the runtime.
TemplateModule: pallet_template::{Pallet, Call, Storage, Event<T>},
}
);

Expand Down Expand Up @@ -487,7 +479,6 @@ impl_runtime_apis! {
add_benchmark!(params, batches, frame_system, SystemBench::<Runtime>);
add_benchmark!(params, batches, pallet_balances, Balances);
add_benchmark!(params, batches, pallet_timestamp, Timestamp);
add_benchmark!(params, batches, pallet_template, TemplateModule);

if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }
Ok(batches)
Expand Down