Skip to content

Commit

Permalink
chore: update naming from frontier to parachain-template
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwht committed May 11, 2024
1 parent e515e8e commit e9c09c2
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 83 deletions.
138 changes: 69 additions & 69 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ futures = "0.3.30"
serde_json = "1.0.114"

# Local
frontier-parachain-runtime = { path = "./runtime" }
parachain-template-runtime = { path = "./runtime" }

# Build
substrate-wasm-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.9.0", default-features = false }
Expand Down
6 changes: 3 additions & 3 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ color-print = { workspace = true }
hex-literal = "0.4.1"

# Local
frontier-parachain-runtime = {path = "../runtime"}
parachain-template-runtime = {path = "../runtime"}

# Substrate
frame-benchmarking = { workspace = true }
Expand Down Expand Up @@ -96,14 +96,14 @@ runtime-benchmarks = [
"cumulus-primitives-core/runtime-benchmarks",
"frame-benchmarking-cli/runtime-benchmarks",
"frame-benchmarking/runtime-benchmarks",
"frontier-parachain-runtime/runtime-benchmarks",
"parachain-template-runtime/runtime-benchmarks",
"polkadot-cli/runtime-benchmarks",
"polkadot-primitives/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
try-runtime = [
"frontier-parachain-runtime/try-runtime",
"parachain-template-runtime/try-runtime",
"polkadot-cli/try-runtime",
"sp-runtime/try-runtime",
]
2 changes: 1 addition & 1 deletion node/src/chain_spec.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use cumulus_primitives_core::ParaId;
use frontier_parachain_runtime as runtime;
use parachain_template_runtime as runtime;
use hex_literal::hex;
use runtime::{AccountId, AuraId, Signature, EXISTENTIAL_DEPOSIT};
use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup};
Expand Down
2 changes: 1 addition & 1 deletion node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::net::SocketAddr;
use cumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions;
use cumulus_primitives_core::ParaId;
use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
use frontier_parachain_runtime::Block;
use parachain_template_runtime::Block;
use log::info;
use sc_cli::{
ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams,
Expand Down
2 changes: 1 addition & 1 deletion node/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use fc_mapping_sync::{kv::MappingSyncWorker, SyncStrategy};
use fc_rpc::{EthTask, OverrideHandle};
pub use fc_rpc_core::types::{FeeHistoryCache, FeeHistoryCacheLimit, FilterPool};
// Local
use frontier_parachain_runtime::opaque::Block;
use parachain_template_runtime::opaque::Block;

/// Frontier DB backend type.
pub type FrontierBackend = fc_db::Backend<Block>;
Expand Down
2 changes: 1 addition & 1 deletion node/src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

use std::sync::Arc;

use frontier_parachain_runtime::{opaque::Block, AccountId, Balance, Nonce};
use parachain_template_runtime::{opaque::Block, AccountId, Balance, Nonce};

use sc_client_api::{
backend::{AuxStore, Backend, StorageProvider},
Expand Down
6 changes: 3 additions & 3 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{path::Path, sync::Arc, time::Duration};

use cumulus_client_cli::CollatorOptions;
// Local Runtime Types
use frontier_parachain_runtime::{
use parachain_template_runtime::{
opaque::{Block, Hash},
RuntimeApi, TransactionConverter,
};
Expand Down Expand Up @@ -57,11 +57,11 @@ impl sc_executor::NativeExecutionDispatch for ParachainNativeExecutor {
);

fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
frontier_parachain_runtime::api::dispatch(method, data)
parachain_template_runtime::api::dispatch(method, data)
}

fn native_version() -> sc_executor::NativeVersion {
frontier_parachain_runtime::native_version()
parachain_template_runtime::native_version()
}
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "frontier-parachain-runtime"
name = "parachain-template-runtime"
version = "0.1.0"
authors.workspace = true
description = "Parachain runtime template"
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ impl_opaque_keys! {

#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("frontier-parachain-runtime"),
impl_name: create_runtime_str!("frontier-parachain-runtime"),
spec_name: create_runtime_str!("parachain-template-runtime"),
impl_name: create_runtime_str!("parachain-template-runtime"),
authoring_version: 1,
spec_version: 1,
impl_version: 0,
Expand Down

0 comments on commit e9c09c2

Please sign in to comment.