diff --git a/Cargo.toml b/Cargo.toml index c320e08..c58bbb2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ license = "MIT-0" authors = ["Parity Technologies "] homepage = "https://substrate.io" -repository = "https://github.com/paritytech/polkadot-sdk-solochain-template.git" +repository = "https://github.com/paritytech/pezkuwi-sdk-solochain-template.git" edition = "2021" [workspace] @@ -36,7 +36,7 @@ sc-telemetry = { path = "substrate/client/telemetry", default-features = false, sc-transaction-pool = { path = "substrate/client/transaction-pool", default-features = false, version = "35.0.0" } sc-transaction-pool-api = { path = "substrate/client/transaction-pool/api", default-features = false, version = "35.0.0" } serde_json = { version = "1.0.114", default-features = false } -solochain-template-runtime = { path = "templates/solochain/runtime", version = "0.1.0" } +pez-solochain-template-runtime = { path = "runtime", version = "0.1.0" } sp-api = { path = "substrate/primitives/api", default-features = false, version = "33.0.0" } sp-block-builder = { path = "substrate/primitives/block-builder", default-features = false, version = "33.0.0" } sp-blockchain = { path = "substrate/primitives/blockchain", default-features = false, version = "35.1.0" } diff --git a/Dockerfile b/Dockerfile index 97e6dd2..ac1524f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,28 +1,28 @@ FROM docker.io/paritytech/ci-unified:latest as builder -WORKDIR /polkadot -COPY . /polkadot +WORKDIR /pezkuwi +COPY . /pezkuwi RUN cargo fetch RUN cargo build --locked --release FROM docker.io/parity/base-bin:latest -COPY --from=builder /polkadot/target/release/solochain-template-node /usr/local/bin +COPY --from=builder /pezkuwi/target/release/pez-solochain-template-node /usr/local/bin USER root -RUN useradd -m -u 1001 -U -s /bin/sh -d /polkadot polkadot && \ - mkdir -p /data /polkadot/.local/share && \ - chown -R polkadot:polkadot /data && \ - ln -s /data /polkadot/.local/share/polkadot && \ +RUN useradd -m -u 1001 -U -s /bin/sh -d /pezkuwi pezkuwi && \ + mkdir -p /data /pezkuwi/.local/share && \ + chown -R pezkuwi:pezkuwi /data && \ + ln -s /data /pezkuwi/.local/share/pezkuwi && \ # unclutter and minimize the attack surface rm -rf /usr/bin /usr/sbin && \ # check if executable works in this container - /usr/local/bin/solochain-template-node --version + /usr/local/bin/pez-solochain-template-node --version -USER polkadot +USER pezkuwi EXPOSE 30333 9933 9944 9615 VOLUME ["/data"] -ENTRYPOINT ["/usr/local/bin/solochain-template-node"] +ENTRYPOINT ["/usr/local/bin/pez-solochain-template-node"] diff --git a/README.md b/README.md index 2e3b114..b96754f 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,17 @@ A fresh [Substrate](https://substrate.io/) node, ready for hacking :rocket: -A standalone version of this template is available for each release of Polkadot -in the [Substrate Developer Hub Parachain +A standalone version of this template is available for each release of Pezkuwi +in the [Substrate Developer Hub TeyrChain Template](https://github.com/substrate-developer-hub/substrate-node-template/) -repository. The parachain template is generated directly at each Polkadot +repository. The teyrchain template is generated directly at each Pezkuwi release branch from the [Solochain Template in -Substrate](https://github.com/paritytech/polkadot-sdk/tree/master/templates/solochain) +Substrate](https://github.com/paritytech/pezkuwi-sdk/tree/master/templates/solochain) upstream It is usually best to use the stand-alone version to start a new project. All bugs, suggestions, and feature requests should be made upstream in the -[Substrate](https://github.com/paritytech/polkadot-sdk/tree/master/substrate) +[Substrate](https://github.com/paritytech/pezkuwi-sdk/tree/master/substrate) repository. ## Getting Started @@ -97,15 +97,15 @@ $ ls ./my-chain-state/chains/dev db keystore network ``` -### Connect with Polkadot-JS Apps Front-End +### Connect with Pezkuwi-JS Apps Front-End After you start the node template locally, you can interact with it using the -hosted version of the [Polkadot/Substrate -Portal](https://polkadot.js.org/apps/#/explorer?rpc=ws://localhost:9944) +hosted version of the [Pezkuwi/Substrate +Portal](https://pezkuwi.js.org/apps/#/explorer?rpc=ws://localhost:9944) front-end by connecting to the local node endpoint. A hosted version is also available on [IPFS](https://dotapps.io/). You can also find the source code and instructions for hosting your own instance in the -[`polkadot-js/apps`](https://github.com/polkadot-js/apps) repository. +[`pezkuwi-js/apps`](https://github.com/pezkuwi-js/apps) repository. ### Multi-Node Local Testnet @@ -130,7 +130,7 @@ capabilities: the network. Substrate makes it possible to supply custom consensus engines and also ships with several consensus mechanisms that have been built on top of [Web3 Foundation - research](https://research.web3.foundation/Polkadot/protocols/NPoS). + research](https://research.web3.foundation/Pezkuwi/protocols/NPoS). - RPC Server: A remote procedure call (RPC) server is used to interact with Substrate nodes. @@ -185,7 +185,7 @@ template and note the following: The runtime in this project is constructed using many FRAME pallets that ship with [the Substrate -repository](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame) and a +repository](https://github.com/paritytech/pezkuwi-sdk/tree/master/substrate/frame) and a template pallet that is [defined in the `pallets`](./pallets/template/src/lib.rs) directory. @@ -220,5 +220,5 @@ the correct dependencies, activate direnv `direnv allow`. ### Docker Please follow the [Substrate Docker instructions -here](https://github.com/paritytech/polkadot-sdk/blob/master/substrate/docker/README.md) to +here](https://github.com/paritytech/pezkuwi-sdk/blob/master/substrate/docker/README.md) to build the Docker container with the Substrate Node Template binary. diff --git a/docs/rust-setup.md b/docs/rust-setup.md index 00089ab..f38fb48 100644 --- a/docs/rust-setup.md +++ b/docs/rust-setup.md @@ -178,8 +178,8 @@ rustup target add wasm32-unknown-unknown --toolchain nightly If you want to guarantee that your build works on your computer as you update Rust and other dependencies, you should use a specific Rust nightly version that is known to be compatible with the version of Substrate they are using; this version will vary from project to project and different projects may use different mechanisms to communicate this -version to developers. For instance, the Polkadot client specifies this information in its [release -notes](https://github.com/paritytech/polkadot-sdk/releases). +version to developers. For instance, the Pezkuwi client specifies this information in its [release +notes](https://github.com/paritytech/pezkuwi-sdk/releases). ```bash # Specify the specific nightly toolchain in the date below: diff --git a/node/Cargo.toml b/node/Cargo.toml index 007c133..f3f7c5f 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "solochain-template-node" -description = "A solochain node template built with Substrate, part of Polkadot Sdk. (polkadot v1.14.0)" +name = "pez-solochain-template-node" +description = "A solochain node template built with Substrate, part of Pezkuwi Sdk. (pezkuwi v1.14.0)" version = "0.1.0" license = "Unlicense" authors.workspace = true @@ -49,7 +49,7 @@ pallet-transaction-payment = { version = "36.0.0", workspace = true } pallet-transaction-payment-rpc = { version = "38.0.0", workspace = true, default-features = true } substrate-frame-rpc-system = { version = "36.0.0", workspace = true, default-features = true } frame-benchmarking-cli = { version = "40.0.0", workspace = true, default-features = true } -solochain-template-runtime = { version = "0.1.0", workspace = true } +pez-solochain-template-runtime = { version = "0.1.0", workspace = true } [build-dependencies] substrate-build-script-utils = { version = "11.0.0", workspace = true, default-features = true } @@ -61,7 +61,7 @@ runtime-benchmarks = [ "frame-benchmarking-cli/runtime-benchmarks", "frame-system/runtime-benchmarks", "sc-service/runtime-benchmarks", - "solochain-template-runtime/runtime-benchmarks", + "pez-solochain-template-runtime/runtime-benchmarks", "sp-runtime/runtime-benchmarks", ] # Enable features that allow the runtime to be tried and debugged. Name might be subject to change @@ -69,6 +69,6 @@ runtime-benchmarks = [ try-runtime = [ "frame-system/try-runtime", "pallet-transaction-payment/try-runtime", - "solochain-template-runtime/try-runtime", + "pez-solochain-template-runtime/try-runtime", "sp-runtime/try-runtime", ] diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 651025e..4b027de 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -6,7 +6,7 @@ use sp_core::{sr25519, Pair, Public}; use sp_runtime::traits::{IdentifyAccount, Verify}; // The URL for the telemetry server. -// const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/"; +// const STAGING_TELEMETRY_URL: &str = "wss://telemetry.pezkuwi.io/submit/"; /// Specialized `ChainSpec`. This is a specialization of the general Substrate ChainSpec type. pub type ChainSpec = sc_service::GenericChainSpec; diff --git a/pallets/template/Cargo.toml b/pallets/template/Cargo.toml index 19a4158..fbcb2c7 100644 --- a/pallets/template/Cargo.toml +++ b/pallets/template/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pallet-template" -description = "FRAME pallet template for defining custom runtime logic. (polkadot v1.14.0)" +description = "FRAME pallet template for defining custom runtime logic. (pezkuwi v1.14.0)" version = "0.1.0" license = "Unlicense" authors.workspace = true diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 6e6126d..3308323 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] -name = "solochain-template-runtime" -description = "A solochain runtime template built with Substrate, part of Polkadot Sdk. (polkadot v1.14.0)" +name = "pez-solochain-template-runtime" +description = "A solochain runtime template built with Substrate, part of Pezkuwi Sdk. (pezkuwi v1.14.0)" version = "0.1.0" license = "Unlicense" authors.workspace = true diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index c147845..9ebe12b 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -94,13 +94,13 @@ pub mod opaque { // https://docs.substrate.io/main-docs/build/upgrade#runtime-versioning #[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { - spec_name: create_runtime_str!("solochain-template-runtime"), - impl_name: create_runtime_str!("solochain-template-runtime"), + spec_name: create_runtime_str!("pez-solochain-template-runtime"), + impl_name: create_runtime_str!("pez-solochain-template-runtime"), authoring_version: 1, // The version of the runtime specification. A full node will not attempt to use its native // runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`, // `spec_version`, and `authoring_version` are the same between Wasm and native. - // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use + // This value is set to 100 to notify Pezkuwi-JS App (https://pezkuwi.js.org/apps) to use // the compatible custom types. spec_version: 100, impl_version: 1,