Skip to content

Commit

Permalink
chore: update node name
Browse files Browse the repository at this point in the history
  • Loading branch information
rixrix committed Apr 23, 2024
1 parent d70f8f9 commit c624bb9
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 23 deletions.
6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ license = "MIT-0"
homepage = "https://substrate.io"

[workspace]
members = [
"node",
"pallets/template",
"runtime",
]
members = ["node", "pallets/template", "runtime"]
resolver = "2"
[profile.release]
panic = "unwind"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Substrate Node Template
# Flat1 Network Node

A fresh [Substrate](https://substrate.io/) node, ready for hacking :rocket:
This forked repository is based on [substrate-node-template](https://github.com/substrate-developer-hub/substrate-node-template)

A standalone version of this template is available for each release of Polkadot
in the [Substrate Developer Hub Parachain
Expand Down Expand Up @@ -37,7 +37,7 @@ After you build the project, you can use the following command to explore its
parameters and subcommands:

```sh
./target/release/node-template -h
./target/release/flat1-network -h
```

You can generate and view the [Rust
Expand All @@ -54,19 +54,19 @@ The following command starts a single-node development chain that doesn't
persist state:

```sh
./target/release/node-template --dev
./target/release/flat1-network --dev
```

To purge the development chain's state, run the following command:

```sh
./target/release/node-template purge-chain --dev
./target/release/flat1-network purge-chain --dev
```

To start the development chain with detailed logging, run the following command:

```sh
RUST_BACKTRACE=1 ./target/release/node-template -ldebug --dev
RUST_BACKTRACE=1 ./target/release/flat1-network -ldebug --dev
```

Development chains:
Expand All @@ -85,7 +85,7 @@ similar to the following:
$ mkdir my-chain-state

// Use of that folder to store the chain state
$ ./target/release/node-template --dev --base-path ./my-chain-state/
$ ./target/release/flat1-network --dev --base-path ./my-chain-state/

// Check the folder structure created inside the base path after running the chain
$ ls ./my-chain-state
Expand Down
8 changes: 4 additions & 4 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "node-template"
name = "flat1-network"
description = "A solochain node template built with Substrate, part of Polkadot Sdk."
version = "0.0.0"
license = "MIT-0"
Expand Down Expand Up @@ -62,7 +62,7 @@ substrate-frame-rpc-system = { git = "https://github.com/paritytech/polkadot-sdk
frame-benchmarking-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.9.0" }

# Local Dependencies
node-template-runtime = { path = "../runtime" }
flat1-network-runtime = { path = "../runtime" }

# CLI-specific dependencies
try-runtime-cli = { git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-v1.9.0", optional = true }
Expand All @@ -77,15 +77,15 @@ runtime-benchmarks = [
"frame-benchmarking-cli/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"node-template-runtime/runtime-benchmarks",
"flat1-network-runtime/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
# in the near future.
try-runtime = [
"frame-system/try-runtime",
"pallet-transaction-payment/try-runtime",
"node-template-runtime/try-runtime",
"flat1-network-runtime/try-runtime",
"sp-runtime/try-runtime",
"try-runtime-cli/try-runtime",
]
2 changes: 1 addition & 1 deletion node/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use crate::service::FullClient;

use node_template_runtime as runtime;
use flat1_network_runtime as runtime;
use runtime::{AccountId, Balance, BalancesCall, SystemCall};
use sc_cli::Result;
use sc_client_api::BlockBackend;
Expand Down
2 changes: 1 addition & 1 deletion node/src/chain_spec.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use node_template_runtime::{AccountId, RuntimeGenesisConfig, Signature, WASM_BINARY};
use flat1_network_runtime::{AccountId, RuntimeGenesisConfig, Signature, WASM_BINARY};
use sc_service::ChainType;
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_consensus_grandpa::AuthorityId as GrandpaId;
Expand Down
2 changes: 1 addition & 1 deletion node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
service,
};
use frame_benchmarking_cli::{BenchmarkCmd, ExtrinsicFactory, SUBSTRATE_REFERENCE_HARDWARE};
use node_template_runtime::{Block, EXISTENTIAL_DEPOSIT};
use flat1_network_runtime::{Block, EXISTENTIAL_DEPOSIT};
use sc_cli::SubstrateCli;
use sc_service::PartialComponents;
use sp_keyring::Sr25519Keyring;
Expand Down
2 changes: 1 addition & 1 deletion node/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use std::sync::Arc;

use jsonrpsee::RpcModule;
use node_template_runtime::{opaque::Block, AccountId, Balance, Nonce};
use flat1_network_runtime::{opaque::Block, AccountId, Balance, Nonce};
use sc_transaction_pool_api::TransactionPool;
use sp_api::ProvideRuntimeApi;
use sp_block_builder::BlockBuilder;
Expand Down
2 changes: 1 addition & 1 deletion node/src/service.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.
use futures::FutureExt;
use node_template_runtime::{self, opaque::Block, RuntimeApi};
use flat1_network_runtime::{self, opaque::Block, RuntimeApi};
use sc_client_api::{Backend, BlockBackend};
use sc_consensus_aura::{ImportQueueParams, SlotProportion, StartAuraParams};
use sc_consensus_grandpa::SharedVoterState;
Expand Down
2 changes: 1 addition & 1 deletion pallets/template/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ../../target/release/node-template
// ../../target/release/flat1-network
// benchmark
// pallet
// --chain
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 = "node-template-runtime"
name = "flat1-network-runtime"
description = "A solochain runtime template built with Substrate, part of Polkadot Sdk."
version = "0.0.0"
license = "MIT-0"
Expand Down

0 comments on commit c624bb9

Please sign in to comment.