Skip to content
Snippets Groups Projects
Commit b8d3fbc3 authored by Éloïs's avatar Éloïs
Browse files

Replace lc-core by duniter

parent 925f0938
No related branches found
No related tags found
1 merge request!10Replace lc-core by duniter
Showing with 124 additions and 125 deletions
{
"name": "Substrate Node template",
"name": "Duniter node",
"context": "..",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
......@@ -10,16 +10,15 @@
"bungcip.better-toml",
"vadimcn.vscode-lldb"
],
"forwardPorts": [
3000,
9944
],
"forwardPorts": [3000, 9944],
"preCreateCommand": ["cargo build", "cargo check"],
"postStartCommand": "./target/debug/lc-core --dev --ws-external",
"postStartCommand": "./target/debug/duniter --dev --ws-external",
"menuActions": [
{"id": "polkadotjs",
"label": "Open PolkadotJS Apps",
"type": "external-preview",
"args": ["https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F/$HOST/wss"]}
{
"id": "polkadotjs",
"label": "Open PolkadotJS Apps",
"type": "external-preview",
"args": ["https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F/$HOST/wss"]
}
]
}
......@@ -7,11 +7,11 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'lc-core'",
"name": "Debug unit tests in library 'duniter'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=lc-core"],
"args": ["test", "--no-run", "--lib", "--package=duniter"],
"filter": {
"name": "lc-core",
"name": "duniter",
"kind": "lib"
}
},
......@@ -21,11 +21,11 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'lc-core'",
"name": "Debug executable 'duniter'",
"cargo": {
"args": ["build"],
"filter": {
"name": "lc-core",
"name": "duniter",
"kind": "bin"
}
},
......@@ -35,11 +35,11 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'lc-core'",
"name": "Debug unit tests in executable 'duniter'",
"cargo": {
"args": ["test", "--no-run", "--bin=lc-core", "--package=lc-core"],
"args": ["test", "--no-run", "--bin=duniter", "--package=duniter"],
"filter": {
"name": "lc-core",
"name": "duniter",
"kind": "bin"
}
},
......
......@@ -1283,6 +1283,75 @@ version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0"
[[package]]
name = "duniter"
version = "3.0.0"
dependencies = [
"async-io",
"common-runtime",
"frame-benchmarking",
"frame-benchmarking-cli",
"futures 0.3.16",
"g1-runtime",
"gdev-runtime",
"gtest-runtime",
"jsonrpc-core",
"log",
"maplit",
"pallet-grandpa",
"pallet-transaction-payment-rpc",
"pallet-transaction-payment-rpc-runtime-api",
"sc-basic-authorship",
"sc-chain-spec",
"sc-cli",
"sc-client-api",
"sc-consensus",
"sc-consensus-aura",
"sc-consensus-manual-seal",
"sc-executor",
"sc-finality-grandpa",
"sc-keystore",
"sc-rpc",
"sc-rpc-api",
"sc-service",
"sc-telemetry",
"sc-transaction-pool",
"sc-transaction-pool-api",
"serde_json",
"sp-api",
"sp-block-builder",
"sp-blockchain",
"sp-consensus",
"sp-consensus-aura",
"sp-core",
"sp-finality-grandpa",
"sp-inherents",
"sp-keyring",
"sp-offchain",
"sp-runtime",
"sp-session",
"sp-storage",
"sp-timestamp",
"sp-transaction-pool",
"sp-trie",
"structopt",
"substrate-build-script-utils",
"substrate-frame-rpc-system",
]
[[package]]
name = "duniter-integration-tests"
version = "3.0.0"
dependencies = [
"env_logger 0.9.0",
"parity-scale-codec",
"portpicker",
"serde_json",
"sp-keyring",
"subxt",
"tokio",
]
[[package]]
name = "dyn-clonable"
version = "0.9.0"
......@@ -2910,75 +2979,6 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "lc-core"
version = "3.0.0"
dependencies = [
"async-io",
"common-runtime",
"frame-benchmarking",
"frame-benchmarking-cli",
"futures 0.3.16",
"g1-runtime",
"gdev-runtime",
"gtest-runtime",
"jsonrpc-core",
"log",
"maplit",
"pallet-grandpa",
"pallet-transaction-payment-rpc",
"pallet-transaction-payment-rpc-runtime-api",
"sc-basic-authorship",
"sc-chain-spec",
"sc-cli",
"sc-client-api",
"sc-consensus",
"sc-consensus-aura",
"sc-consensus-manual-seal",
"sc-executor",
"sc-finality-grandpa",
"sc-keystore",
"sc-rpc",
"sc-rpc-api",
"sc-service",
"sc-telemetry",
"sc-transaction-pool",
"sc-transaction-pool-api",
"serde_json",
"sp-api",
"sp-block-builder",
"sp-blockchain",
"sp-consensus",
"sp-consensus-aura",
"sp-core",
"sp-finality-grandpa",
"sp-inherents",
"sp-keyring",
"sp-offchain",
"sp-runtime",
"sp-session",
"sp-storage",
"sp-timestamp",
"sp-transaction-pool",
"sp-trie",
"structopt",
"substrate-build-script-utils",
"substrate-frame-rpc-system",
]
[[package]]
name = "lc-core-integration-tests"
version = "3.0.0"
dependencies = [
"env_logger 0.9.0",
"parity-scale-codec",
"portpicker",
"serde_json",
"sp-keyring",
"subxt",
"tokio",
]
[[package]]
name = "libc"
version = "0.2.112"
......
# Libre currency based on Substrate framework
# Duniter v2s
A FRAME-based [Substrate](https://www.substrate.io/) libre currency implementation.
A rewriting of duniter based on [Substrate](https://www.substrate.io/) framework.
## Setup
......@@ -13,7 +13,7 @@ NOTE: You must first follow the instructions in the [Setup] section (#setup).
Use the following command to build the node without launching it:
```sh
cargo build --release
cargo build
```
## Run
......@@ -21,7 +21,7 @@ cargo build --release
Use Rust's native `cargo` command to build and launch the node:
```sh
cargo run --release -- --dev --tmp
cargo run -- --dev --tmp
```
## Contribute
......@@ -34,7 +34,7 @@ Once the project has been built, the following command can be used to explore al
subcommands:
```sh
./target/release/lc-core -h
./target/release/duniter -h
```
## Single-Node Development Chain
......@@ -42,19 +42,19 @@ subcommands:
This command will start the single-node development chain with persistent state:
```bash
./target/release/lc-core --dev
./target/debug/duniter --dev
```
Purge the development chain's state:
```bash
./target/release/lc-core purge-chain --dev
./target/debug/duniter purge-chain --dev
```
Start the development chain with detailed logging:
```bash
RUST_LOG=debug RUST_BACKTRACE=1 ./target/release/lc-core -lruntime=debug --dev
RUST_LOG=debug RUST_BACKTRACE=1 ./target/debug/duniter -lruntime=debug --dev
```
## Connect with Polkadot-JS Apps Front-end
......@@ -74,15 +74,15 @@ If you want to see the multi-node consensus algorithm in action, refer to
### Purge previous lacal testnet
```
./target/release/lc-core purge-chain --base-path /tmp/alice --chain local
./target/release/lc-core purge-chain --base-path /tmp/bob --chain local
./target/debug/duniter purge-chain --base-path /tmp/alice --chain local
./target/debug/duniter purge-chain --base-path /tmp/bob --chain local
```
### Start Alice's node
```bash
./target/release/lc-core \
./target/debug/duniter \
--base-path /tmp/alice \
--chain local \
--alice \
......@@ -96,7 +96,7 @@ If you want to see the multi-node consensus algorithm in action, refer to
### Start Bob's node
```bash
./target/release/lc-core \
./target/debug/duniter \
--base-path /tmp/bob \
--chain local \
--bob \
......@@ -150,7 +150,7 @@ After the node has been [built](#build), refer to the embedded documentation to
capabilities and configuration parameters that it exposes:
```shell
./target/release/lc-core --help
./target/debug/duniter --help
```
### Runtime
......@@ -210,15 +210,15 @@ Then run the following command to start a single node development chain.
```
This command will firstly compile your code, and then start a local development network. You can
also replace the default command (`cargo build --release && ./target/release/lc-core --dev --ws-external`)
also replace the default command (`cargo build && ./target/debug/duniter --dev --ws-external`)
by appending your own. A few useful ones are as follow.
```bash
# Run Substrate node without re-compiling
./scripts/docker_run.sh ./target/release/lc-core --dev --ws-external
# Run duniter node without re-compiling
./scripts/docker_run.sh ./target/debug/duniter --dev --ws-external
# Purge the local dev chain
./scripts/docker_run.sh ./target/release/lc-core purge-chain --dev
./scripts/docker_run.sh ./target/debug/duniter purge-chain --dev
# Check whether the code is compilable
./scripts/docker_run.sh cargo check
......
......@@ -2,7 +2,7 @@ version: "3.2"
services:
dev:
container_name: node-template
container_name: duniter-v2s
image: paritytech/ci-linux:974ba3ac-20201006
working_dir: /var/www/node-template
ports:
......@@ -14,4 +14,4 @@ services:
- type: bind
source: ./.local
target: /root/.local
command: bash -c "cargo build --release && ./target/release/node-template --dev --ws-external"
command: bash -c "cargo build && ./target/debug/node-template --dev --ws-external"
......@@ -3,7 +3,7 @@ title: Installation
---
This page will guide you through the steps needed to prepare a computer for development with the
Substrate Node. Since Substrate is built with
Duniter Substrate Node. Since Substrate is built with
[the Rust programming language](https://www.rust-lang.org/), the first thing you will need to do is
prepare the computer for Rust development - these steps will vary based on the computer's operating
system. Once Rust is configured, you will use its toolchains to interact with Rust projects; the
......
[package]
authors = ['Axiom-Team Developers <https://axiom-team.fr>']
description = 'lc-core integration tests.'
description = 'duniter integration tests.'
edition = '2018'
homepage = 'https://substrate.dev'
license = 'AGPL-3.0'
name = 'lc-core-integration-tests'
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
name = 'duniter-integration-tests'
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
version = '3.0.0'
[dev-dependencies]
......
......@@ -37,7 +37,7 @@ pub async fn spawn_node() -> (Api, Client, Process) {
let rpc_port = portpicker::pick_unused_port().expect("No ports free");
let ws_port = portpicker::pick_unused_port().expect("No ports free");
let process = Process(
Command::new("../target/debug/lc-core")
Command::new("../target/debug/duniter")
.args([
"--execution=Native",
"--no-telemetry",
......
[package]
authors = ['Axiom-Team Developers <https://axiom-team.fr>']
build = 'build.rs'
description = 'A fresh FRAME-based Substrate node, ready for hacking.'
description = 'Crypto-currency software (based on Substrate framework) to operate Ğ1 libre currency'
edition = '2018'
homepage = 'https://substrate.dev'
license = 'AGPL-3.0'
name = 'lc-core'
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
name = 'duniter'
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
version = '3.0.0'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
[[bin]]
name = 'lc-core'
name = 'duniter'
[features]
runtime-benchmarks = ['gdev-runtime/runtime-benchmarks']
......
......@@ -23,7 +23,7 @@ use sc_cli::{ChainSpec, RuntimeVersion, SubstrateCli};
impl SubstrateCli for Cli {
fn impl_name() -> String {
"Substrate Node".into()
"Duniter".into()
}
fn impl_version() -> String {
......
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with Substrate-Libre-Currency. If not, see <https://www.gnu.org/licenses/>.
//! lc-core CLI library.
//! duniter CLI library.
#![warn(missing_docs)]
mod chain_spec;
......
......@@ -6,7 +6,7 @@ homepage = 'https://substrate.dev'
license = 'AGPL-3.0'
name = 'pallet-certification'
readme = 'README.md'
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
version = '3.0.0'
[features]
......
......@@ -6,7 +6,7 @@ homepage = 'https://substrate.dev'
license = 'AGPL-3.0'
name = 'pallet-identity'
readme = 'README.md'
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
version = '3.0.0'
[features]
......
......@@ -6,7 +6,7 @@ homepage = 'https://substrate.dev'
license = 'AGPL-3.0'
name = 'pallet-ud-accounts-storage'
readme = 'README.md'
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
version = '3.0.0'
[features]
......
......@@ -5,7 +5,7 @@ edition = '2018'
homepage = 'https://substrate.dev'
license = 'AGPL-3.0'
name = 'pallet-universal-dividend'
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
version = '3.0.0'
[features]
......
......@@ -8,7 +8,7 @@ edition = '2018'
homepage = 'https://substrate.dev'
license = 'AGPL-3.0'
name = 'g1-runtime'
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
version = '3.0.0'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
......
......@@ -8,7 +8,7 @@ edition = '2018'
homepage = 'https://substrate.dev'
license = 'AGPL-3.0'
name = 'gdev-runtime'
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
version = '3.0.0'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
......
......@@ -8,7 +8,7 @@ edition = '2018'
homepage = 'https://substrate.dev'
license = 'AGPL-3.0'
name = 'gtest-runtime'
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
version = '3.0.0'
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']
......
......@@ -2,7 +2,7 @@
# This script is meant to be run on Unix/Linux based systems
set -e
echo "*** Start Substrate node template ***"
echo "*** Start Duniter node ***"
cd $(dirname ${BASH_SOURCE[0]})/..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment