Skip to content

Commit b8d3fbc

Browse files
committedJan 11, 2022
Replace lc-core by duniter
1 parent 925f093 commit b8d3fbc

File tree

19 files changed

+124
-125
lines changed

19 files changed

+124
-125
lines changed
 

‎.devcontainer/devcontainer.json

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Substrate Node template",
2+
"name": "Duniter node",
33
"context": "..",
44
"settings": {
55
"terminal.integrated.shell.linux": "/bin/bash",
@@ -10,16 +10,15 @@
1010
"bungcip.better-toml",
1111
"vadimcn.vscode-lldb"
1212
],
13-
"forwardPorts": [
14-
3000,
15-
9944
16-
],
13+
"forwardPorts": [3000, 9944],
1714
"preCreateCommand": ["cargo build", "cargo check"],
18-
"postStartCommand": "./target/debug/lc-core --dev --ws-external",
15+
"postStartCommand": "./target/debug/duniter --dev --ws-external",
1916
"menuActions": [
20-
{"id": "polkadotjs",
21-
"label": "Open PolkadotJS Apps",
22-
"type": "external-preview",
23-
"args": ["https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F/$HOST/wss"]}
17+
{
18+
"id": "polkadotjs",
19+
"label": "Open PolkadotJS Apps",
20+
"type": "external-preview",
21+
"args": ["https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F/$HOST/wss"]
22+
}
2423
]
2524
}

‎.vscode/launch.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
{
88
"type": "lldb",
99
"request": "launch",
10-
"name": "Debug unit tests in library 'lc-core'",
10+
"name": "Debug unit tests in library 'duniter'",
1111
"cargo": {
12-
"args": ["test", "--no-run", "--lib", "--package=lc-core"],
12+
"args": ["test", "--no-run", "--lib", "--package=duniter"],
1313
"filter": {
14-
"name": "lc-core",
14+
"name": "duniter",
1515
"kind": "lib"
1616
}
1717
},
@@ -21,11 +21,11 @@
2121
{
2222
"type": "lldb",
2323
"request": "launch",
24-
"name": "Debug executable 'lc-core'",
24+
"name": "Debug executable 'duniter'",
2525
"cargo": {
2626
"args": ["build"],
2727
"filter": {
28-
"name": "lc-core",
28+
"name": "duniter",
2929
"kind": "bin"
3030
}
3131
},
@@ -35,11 +35,11 @@
3535
{
3636
"type": "lldb",
3737
"request": "launch",
38-
"name": "Debug unit tests in executable 'lc-core'",
38+
"name": "Debug unit tests in executable 'duniter'",
3939
"cargo": {
40-
"args": ["test", "--no-run", "--bin=lc-core", "--package=lc-core"],
40+
"args": ["test", "--no-run", "--bin=duniter", "--package=duniter"],
4141
"filter": {
42-
"name": "lc-core",
42+
"name": "duniter",
4343
"kind": "bin"
4444
}
4545
},

‎Cargo.lock

+69-69
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Libre currency based on Substrate framework
1+
# Duniter v2s
22

3-
A FRAME-based [Substrate](https://www.substrate.io/) libre currency implementation.
3+
A rewriting of duniter based on [Substrate](https://www.substrate.io/) framework.
44

55
## Setup
66

@@ -13,15 +13,15 @@ NOTE: You must first follow the instructions in the [Setup] section (#setup).
1313
Use the following command to build the node without launching it:
1414

1515
```sh
16-
cargo build --release
16+
cargo build
1717
```
1818

1919
## Run
2020

2121
Use Rust's native `cargo` command to build and launch the node:
2222

2323
```sh
24-
cargo run --release -- --dev --tmp
24+
cargo run -- --dev --tmp
2525
```
2626

2727
## Contribute
@@ -34,27 +34,27 @@ Once the project has been built, the following command can be used to explore al
3434
subcommands:
3535

3636
```sh
37-
./target/release/lc-core -h
37+
./target/release/duniter -h
3838
```
3939

4040
## Single-Node Development Chain
4141

4242
This command will start the single-node development chain with persistent state:
4343

4444
```bash
45-
./target/release/lc-core --dev
45+
./target/debug/duniter --dev
4646
```
4747

4848
Purge the development chain's state:
4949

5050
```bash
51-
./target/release/lc-core purge-chain --dev
51+
./target/debug/duniter purge-chain --dev
5252
```
5353

5454
Start the development chain with detailed logging:
5555

5656
```bash
57-
RUST_LOG=debug RUST_BACKTRACE=1 ./target/release/lc-core -lruntime=debug --dev
57+
RUST_LOG=debug RUST_BACKTRACE=1 ./target/debug/duniter -lruntime=debug --dev
5858
```
5959

6060
## 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
7474
### Purge previous lacal testnet
7575

7676
```
77-
./target/release/lc-core purge-chain --base-path /tmp/alice --chain local
78-
./target/release/lc-core purge-chain --base-path /tmp/bob --chain local
77+
./target/debug/duniter purge-chain --base-path /tmp/alice --chain local
78+
./target/debug/duniter purge-chain --base-path /tmp/bob --chain local
7979
8080
```
8181

8282
### Start Alice's node
8383

8484
```bash
85-
./target/release/lc-core \
85+
./target/debug/duniter \
8686
--base-path /tmp/alice \
8787
--chain local \
8888
--alice \
@@ -96,7 +96,7 @@ If you want to see the multi-node consensus algorithm in action, refer to
9696
### Start Bob's node
9797

9898
```bash
99-
./target/release/lc-core \
99+
./target/debug/duniter \
100100
--base-path /tmp/bob \
101101
--chain local \
102102
--bob \
@@ -150,7 +150,7 @@ After the node has been [built](#build), refer to the embedded documentation to
150150
capabilities and configuration parameters that it exposes:
151151

152152
```shell
153-
./target/release/lc-core --help
153+
./target/debug/duniter --help
154154
```
155155

156156
### Runtime
@@ -210,15 +210,15 @@ Then run the following command to start a single node development chain.
210210
```
211211

212212
This command will firstly compile your code, and then start a local development network. You can
213-
also replace the default command (`cargo build --release && ./target/release/lc-core --dev --ws-external`)
213+
also replace the default command (`cargo build && ./target/debug/duniter --dev --ws-external`)
214214
by appending your own. A few useful ones are as follow.
215215

216216
```bash
217-
# Run Substrate node without re-compiling
218-
./scripts/docker_run.sh ./target/release/lc-core --dev --ws-external
217+
# Run duniter node without re-compiling
218+
./scripts/docker_run.sh ./target/debug/duniter --dev --ws-external
219219

220220
# Purge the local dev chain
221-
./scripts/docker_run.sh ./target/release/lc-core purge-chain --dev
221+
./scripts/docker_run.sh ./target/debug/duniter purge-chain --dev
222222

223223
# Check whether the code is compilable
224224
./scripts/docker_run.sh cargo check

‎docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.2"
22

33
services:
44
dev:
5-
container_name: node-template
5+
container_name: duniter-v2s
66
image: paritytech/ci-linux:974ba3ac-20201006
77
working_dir: /var/www/node-template
88
ports:
@@ -14,4 +14,4 @@ services:
1414
- type: bind
1515
source: ./.local
1616
target: /root/.local
17-
command: bash -c "cargo build --release && ./target/release/node-template --dev --ws-external"
17+
command: bash -c "cargo build && ./target/debug/node-template --dev --ws-external"

‎docs/setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Installation
33
---
44

55
This page will guide you through the steps needed to prepare a computer for development with the
6-
Substrate Node. Since Substrate is built with
6+
Duniter Substrate Node. Since Substrate is built with
77
[the Rust programming language](https://www.rust-lang.org/), the first thing you will need to do is
88
prepare the computer for Rust development - these steps will vary based on the computer's operating
99
system. Once Rust is configured, you will use its toolchains to interact with Rust projects; the

‎integration-tests/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
authors = ['Axiom-Team Developers <https://axiom-team.fr>']
3-
description = 'lc-core integration tests.'
3+
description = 'duniter integration tests.'
44
edition = '2018'
55
homepage = 'https://substrate.dev'
66
license = 'AGPL-3.0'
7-
name = 'lc-core-integration-tests'
8-
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
7+
name = 'duniter-integration-tests'
8+
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
99
version = '3.0.0'
1010

1111
[dev-dependencies]

‎integration-tests/src/common.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub async fn spawn_node() -> (Api, Client, Process) {
3737
let rpc_port = portpicker::pick_unused_port().expect("No ports free");
3838
let ws_port = portpicker::pick_unused_port().expect("No ports free");
3939
let process = Process(
40-
Command::new("../target/debug/lc-core")
40+
Command::new("../target/debug/duniter")
4141
.args([
4242
"--execution=Native",
4343
"--no-telemetry",

‎node/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[package]
22
authors = ['Axiom-Team Developers <https://axiom-team.fr>']
33
build = 'build.rs'
4-
description = 'A fresh FRAME-based Substrate node, ready for hacking.'
4+
description = 'Crypto-currency software (based on Substrate framework) to operate Ğ1 libre currency'
55
edition = '2018'
66
homepage = 'https://substrate.dev'
77
license = 'AGPL-3.0'
8-
name = 'lc-core'
9-
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
8+
name = 'duniter'
9+
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
1010
version = '3.0.0'
1111

1212
[package.metadata.docs.rs]
1313
targets = ['x86_64-unknown-linux-gnu']
1414

1515
[[bin]]
16-
name = 'lc-core'
16+
name = 'duniter'
1717

1818
[features]
1919
runtime-benchmarks = ['gdev-runtime/runtime-benchmarks']

‎node/src/command.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use sc_cli::{ChainSpec, RuntimeVersion, SubstrateCli};
2323

2424
impl SubstrateCli for Cli {
2525
fn impl_name() -> String {
26-
"Substrate Node".into()
26+
"Duniter".into()
2727
}
2828

2929
fn impl_version() -> String {

‎node/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with Substrate-Libre-Currency. If not, see <https://www.gnu.org/licenses/>.
1616

17-
//! lc-core CLI library.
17+
//! duniter CLI library.
1818
#![warn(missing_docs)]
1919

2020
mod chain_spec;

‎pallets/certification/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ homepage = 'https://substrate.dev'
66
license = 'AGPL-3.0'
77
name = 'pallet-certification'
88
readme = 'README.md'
9-
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
9+
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
1010
version = '3.0.0'
1111

1212
[features]

‎pallets/identity/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ homepage = 'https://substrate.dev'
66
license = 'AGPL-3.0'
77
name = 'pallet-identity'
88
readme = 'README.md'
9-
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
9+
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
1010
version = '3.0.0'
1111

1212
[features]

‎pallets/ud-accounts-storage/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ homepage = 'https://substrate.dev'
66
license = 'AGPL-3.0'
77
name = 'pallet-ud-accounts-storage'
88
readme = 'README.md'
9-
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
9+
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
1010
version = '3.0.0'
1111

1212
[features]

‎pallets/universal-dividend/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = '2018'
55
homepage = 'https://substrate.dev'
66
license = 'AGPL-3.0'
77
name = 'pallet-universal-dividend'
8-
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
8+
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
99
version = '3.0.0'
1010

1111
[features]

‎runtime/g1/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = '2018'
88
homepage = 'https://substrate.dev'
99
license = 'AGPL-3.0'
1010
name = 'g1-runtime'
11-
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
11+
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
1212
version = '3.0.0'
1313
[package.metadata.docs.rs]
1414
targets = ['x86_64-unknown-linux-gnu']

‎runtime/gdev/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = '2018'
88
homepage = 'https://substrate.dev'
99
license = 'AGPL-3.0'
1010
name = 'gdev-runtime'
11-
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
11+
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
1212
version = '3.0.0'
1313
[package.metadata.docs.rs]
1414
targets = ['x86_64-unknown-linux-gnu']

‎runtime/gtest/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = '2018'
88
homepage = 'https://substrate.dev'
99
license = 'AGPL-3.0'
1010
name = 'gtest-runtime'
11-
repository = 'https://git.duniter.org/nodes/rust/lc-core-substrate'
11+
repository = 'https://git.duniter.org/nodes/rust/duniter-substrate'
1212
version = '3.0.0'
1313
[package.metadata.docs.rs]
1414
targets = ['x86_64-unknown-linux-gnu']

‎scripts/docker_run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This script is meant to be run on Unix/Linux based systems
33
set -e
44

5-
echo "*** Start Substrate node template ***"
5+
echo "*** Start Duniter node ***"
66

77
cd $(dirname ${BASH_SOURCE[0]})/..
88

0 commit comments

Comments
 (0)
Please sign in to comment.