Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
chore: Change template license to Unlicense (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d authored Aug 24, 2023
1 parent 29d31ea commit 4b6a712
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ members = [
"primitives/cosmos",
"primitives/io",
"primitives/rpc",
"runtime",
"node",
"template/runtime",
"template/node",
]

[workspace.dependencies]
Expand Down Expand Up @@ -92,7 +92,7 @@ hp-io = { path = "primitives/io", default-features = false }
hp-rpc = { path = "primitives/rpc", default-features = false }
pallet-cosmos = { path = "frame/cosmos", default-features = false }
pallet-cosmos-accounts = { path = "frame/cosmos-accounts", default-features = false }
horizon-runtime = { path = "runtime", default-features = false }
horizon-template-runtime = { path = "template/runtime", default-features = false }

[profile.release]
panic = "unwind"
Expand Down
8 changes: 4 additions & 4 deletions node/Cargo.toml → template/node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "horizon-node"
version = "0.1.0"
name = "horizon-temaplte-node"
version = "0.0.0"
edition = "2021"
license = "GPL-3.0-or-later"
license = "Unlicense"
repository = "https://github.com/NoirHQ/horizon/"
build = "build.rs"

Expand Down Expand Up @@ -58,7 +58,7 @@ hc-rpc = { workspace = true }
hp-account = { workspace = true }
hp-io = { workspace = true }
hp-rpc = { workspace = true }
horizon-runtime = { workspace = true }
horizon-template-runtime = { workspace = true }

[build-dependencies]
substrate-build-script-utils = { workspace = true }
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion node/src/chain_spec.rs → template/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

use horizon_runtime::{
use horizon_template_runtime::{
AccountId, AuraConfig, BalancesConfig, CosmosAccountsConfig, GrandpaConfig,
RuntimeGenesisConfig, Signature, SudoConfig, SystemConfig, WASM_BINARY,
};
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion node/src/command.rs → template/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::{
cli::{Cli, Subcommand},
service,
};
use horizon_runtime::Block;
use horizon_template_runtime::Block;
use sc_cli::SubstrateCli;
use sc_service::PartialComponents;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion node/src/rpc.rs → template/node/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

use std::sync::Arc;

use horizon_runtime::{opaque::Block, AccountId, Balance, Nonce};
use horizon_template_runtime::{opaque::Block, AccountId, Balance, Nonce};
use jsonrpsee::RpcModule;
pub use sc_rpc_api::DenyUnsafe;
use sc_transaction_pool_api::TransactionPool;
Expand Down
6 changes: 3 additions & 3 deletions node/src/service.rs → template/node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

use futures::prelude::*;
use horizon_runtime::{self, opaque::Block, RuntimeApi};
use horizon_template_runtime::{self, opaque::Block, RuntimeApi};
use sc_client_api::{Backend, BlockBackend};
use sc_consensus_aura::{ImportQueueParams, SlotProportion, StartAuraParams};
use sc_consensus_grandpa::SharedVoterState;
Expand All @@ -35,11 +35,11 @@ impl sc_executor::NativeExecutionDispatch for ExecutorDispatch {
type ExtendHostFunctions = hp_io::crypto::HostFunctions;

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

fn native_version() -> sc_executor::NativeVersion {
horizon_runtime::native_version()
horizon_template_runtime::native_version()
}
}

Expand Down
6 changes: 3 additions & 3 deletions runtime/Cargo.toml → template/runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "horizon-runtime"
version = "0.1.0"
name = "horizon-template-runtime"
version = "0.0.0"
edition = "2021"
license = "GPL-3.0-or-later"
license = "Unlicense"
repository = "https://github.com/NoirHQ/horizon/"
build = "build.rs"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4b6a712

Please sign in to comment.