Skip to content

Commit 70d4868

Browse files
authored
zbl renamed to dcl (#16)
Co-authored-by: Alexandr Kolesov <alexandr.kolesov@dsr-corporation.com>
1 parent e47f24d commit 70d4868

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+551
-551
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ RUN make
3131
############################
3232
FROM alpine:latest
3333

34-
COPY --from=builder /go/bin/zbld /usr/bin/zbld
35-
COPY --from=builder /go/bin/zblcli /usr/bin/zblcli
34+
COPY --from=builder /go/bin/dcld /usr/bin/dcld
35+
COPY --from=builder /go/bin/dclcli /usr/bin/dclcli
3636

37-
VOLUME /root/.zbld
38-
VOLUME /root/.zblcli
37+
VOLUME /root/.dcld
38+
VOLUME /root/.dclcli
3939

4040
EXPOSE 26656 26657
4141

Makefile

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ PACKAGES = $(shell go list ./... | grep -v '/integration_tests')
33
VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
44
COMMIT := $(shell git log -1 --format='%H')
55

6-
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=ZbLedger \
7-
-X github.com/cosmos/cosmos-sdk/version.ServerName=zbld \
8-
-X github.com/cosmos/cosmos-sdk/version.ClientName=zblcli \
6+
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=DcLedger \
7+
-X github.com/cosmos/cosmos-sdk/version.ServerName=dcld \
8+
-X github.com/cosmos/cosmos-sdk/version.ClientName=dclcli \
99
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
1010
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT)
1111

@@ -22,12 +22,12 @@ LICENSED_FILES = $(shell find . -type f -not -wholename '*/.*')
2222
all: install
2323

2424
build: go.sum
25-
go build -mod=readonly $(BUILD_FLAGS) -o $(OUTPUT_DIR)/zbld ./cmd/zbld
26-
go build -mod=readonly $(BUILD_FLAGS) -o $(OUTPUT_DIR)/zblcli ./cmd/zblcli
25+
go build -mod=readonly $(BUILD_FLAGS) -o $(OUTPUT_DIR)/dcld ./cmd/dcld
26+
go build -mod=readonly $(BUILD_FLAGS) -o $(OUTPUT_DIR)/dclcli ./cmd/dclcli
2727

2828
install: go.sum
29-
go install -mod=readonly $(BUILD_FLAGS) ./cmd/zbld
30-
go install -mod=readonly $(BUILD_FLAGS) ./cmd/zblcli
29+
go install -mod=readonly $(BUILD_FLAGS) ./cmd/dcld
30+
go install -mod=readonly $(BUILD_FLAGS) ./cmd/dclcli
3131

3232
go.sum: go.mod
3333
@echo "--> Ensure dependencies have not been modified"
@@ -51,7 +51,7 @@ clean:
5151
# Docker
5252

5353
image:
54-
docker build -t zbledger .
54+
docker build -t dcledger .
5555

5656
localnet_init:
5757
/bin/bash ./genlocalnetconfig.sh

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# ZB Ledger
1+
# DC Ledger
22

33
## Overview
4-
ZB Ledger is a public permissioned Ledger which can be used for two main use cases:
4+
DC Ledger is a public permissioned Ledger which can be used for two main use cases:
55
- ZB compliance certification of device models
66
- Public key infrastructure (PKI)
77

8-
More information about use cases can be found in [ZB Ledger Overview](docs/ZB_Ledger_overview.pdf) and [Use Case Diagrams](docs/use_cases).
8+
More information about use cases can be found in [DC Ledger Overview](docs/ZB_Ledger_overview.pdf) and [Use Case Diagrams](docs/use_cases).
99

10-
ZB Ledger is based on [Tendermint](https://tendermint.com/) and [Cosmos SDK](https://cosmos.network/sdk).
10+
DC Ledger is based on [Tendermint](https://tendermint.com/) and [Cosmos SDK](https://cosmos.network/sdk).
1111

1212
#### Main Components
1313
The ledger consists of
1414
- A pool of Tendermint-based validator nodes maintaining the ledger.
15-
Every validator node runs ZB Ledger application code (based on Cosmos SDK) implementing the use cases.
15+
Every validator node runs DC Ledger application code (based on Cosmos SDK) implementing the use cases.
1616
- The client to be used for interactions with the pool (sending write and read requests).
1717
The following clients are supported:
1818
- CLI to communicate with the pool (as a [light client](https://pkg.go.dev/github.com/tendermint/tendermint/lite2?tab=doc)).
@@ -21,7 +21,7 @@ The ledger consists of
2121
(as a [light client](https://pkg.go.dev/github.com/tendermint/tendermint/lite2?tab=doc)).
2222
The REST API is based on the Cosmos SDK. See [REST Usage](#rest-usage) section for details.
2323
- Tendermint's Light Client can be used for a direct communication on API level.
24-
There are currently no ZB Ledger specific API libraries for various platforms and languages,
24+
There are currently no DC Ledger specific API libraries for various platforms and languages,
2525
but they may be provided in future.
2626
These libraries can be based on the following Light Client implementations:
2727
- [Golang Light Client implementation](https://pkg.go.dev/github.com/tendermint/tendermint/lite2?tab=doc)
@@ -35,7 +35,7 @@ The ledger consists of
3535
- **for demo purposes only**: can be used for sending write requests from the default (demo) accounts
3636

3737
#### Public Permissioned Ledger
38-
ZB Ledger is a public permissioned ledger in the following sense:
38+
DC Ledger is a public permissioned ledger in the following sense:
3939
- Anyone can read from the ledger (that's why it's public). See [How to read from the Ledger](docs/transactions.md#how-to-read-from-the-ledger).
4040
- Writes to the ledger are permissioned. See [How to write to the Ledger](docs/transactions.md#how-to-write-to-the-ledger) for details.
4141
In order to send write transactions to the ledger you need:
@@ -64,7 +64,7 @@ Sending read requests to the Ledger doesn't require an Account (Ledger is public
6464

6565
#### REST Usage
6666
A REST API server is a CLI run in a REST mode:
67-
`zblcli rest-server --chain-id <chain_id>`.
67+
`dclcli rest-server --chain-id <chain_id>`.
6868

6969
Please configure the CLI before using (see [how-to.md](docs/how-to.md#cli-configuration)).
7070

@@ -107,12 +107,12 @@ the following instructions from [how-to.md](docs/how-to.md) can be used for ever
107107

108108
#### Build and run the app locally
109109
- To build and run, follow the [Cosmos SDK tutorial](https://github.com/cosmos/sdk-tutorials/blob/master/nameservice/tutorial/22-build-run.md).
110-
Use __zbld__, __zblcli__ instead of __nsd__, __nscli__.
110+
Use __dcld__, __dclcli__ instead of __nsd__, __nscli__.
111111
- To start localnet using docker-compose run `make install && make localnet_init && make localnet_start`
112112
- 4 nodes will be started and will expose their RPC enpoints on ports `26657`, `26659`, `26661`, `26662`
113113
- To stop localnet run `make localnet_stop`
114114
#### Deploy a pool of validator nodes
115-
One can either deploy its own pool of validator nodes or join the ZB Ledger Network
115+
One can either deploy its own pool of validator nodes or join the DC Ledger Network
116116
(currently the network is in a Demo mode).
117117

118118
Read more about deployment in [ansible/readme.md](ansible/README.md)
@@ -125,7 +125,7 @@ and [Running a Validator Node](docs/running-node.md).
125125
- [Device off-ledger certification](docs/use_cases/use_cases_device_off_ledger_certification.png)
126126
- [Auth](docs/use_cases/use_cases_txn_auth.png)
127127
- [Validators](docs/use_cases/use_cases_add_validator_node.png)
128-
- [ZB Ledger Overview](docs/ZB_Ledger_overview.pdf)
128+
- [DC Ledger Overview](docs/ZB_Ledger_overview.pdf)
129129
- [List of Transactions](docs/transactions.md)
130130
- [How To Guide](docs/how-to.md)
131131
- [CLI Help](docs/cli-help.md)

ansible/client/binary.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
tasks:
1919
- name: Copy binary
2020
copy:
21-
src: "./../../build/zblcli"
21+
src: "./../../build/dclcli"
2222
dest: "/usr/bin/"
2323
mode: 0755

ansible/client/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
tasks:
1818
- name: Remove existing config
1919
file:
20-
path: "/home/ubuntu/.zblcli/"
20+
path: "/home/ubuntu/.dclcli/"
2121
state: absent
2222
- name: Copy config
2323
copy:
2424
src: "./../../localnet/client/"
25-
dest: "/home/ubuntu/.zblcli/"
25+
dest: "/home/ubuntu/.dclcli/"
2626
owner: "ubuntu"
2727
group: "ubuntu"

ansible/client/service.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
tasks:
1919
- name: Remove existing config
2020
file:
21-
path: "/etc/systemd/system/zblcli.service"
21+
path: "/etc/systemd/system/dclcli.service"
2222
state: absent
2323
- name: Copy service configuration
2424
copy:
25-
src: "./../templates/zblcli.service"
25+
src: "./../templates/dclcli.service"
2626
dest: "/etc/systemd/system/"

ansible/client/start.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
become: yes
1818
tasks:
1919
- name: Start service
20-
service: "name=zblcli state=started enabled=yes"
20+
service: "name=dclcli state=started enabled=yes"

ansible/client/status.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
user: ubuntu
1717
tasks:
1818
- name: Rest service status
19-
command: "service zblcli status"
19+
command: "service dclcli status"
2020
changed_when: false
2121
register: status
2222

ansible/client/stop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
become: yes
1818
tasks:
1919
- name: Start service
20-
service: "name=zblcli state=stopped enabled=yes"
20+
service: "name=dclcli state=stopped enabled=yes"

ansible/nodes/binary.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
tasks:
1919
- name: Copy binary
2020
copy:
21-
src: "./../../build/zbld"
21+
src: "./../../build/dcld"
2222
dest: "/usr/bin/"
2323
mode: 0755

ansible/nodes/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
tasks:
1818
- name: Remove existing config
1919
file:
20-
path: "/home/ubuntu/.zbld/"
20+
path: "/home/ubuntu/.dcld/"
2121
state: absent
2222
- name: Copy config
2323
when: inventory_hostname == 'node' ~ item
2424
copy:
2525
src: "./../../localnet/node{{item}}/"
26-
dest: "/home/ubuntu/.zbld/"
26+
dest: "/home/ubuntu/.dcld/"
2727
owner: "ubuntu"
2828
group: "ubuntu"
2929
loop: [ 0, 1, 2, 3 ]

ansible/nodes/service.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
tasks:
1919
- name: Copy service configuration
2020
copy:
21-
src: "./../templates/zbld.service"
21+
src: "./../templates/dcld.service"
2222
dest: "/etc/systemd/system/"

ansible/nodes/start.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
become: yes
1818
tasks:
1919
- name: Start service
20-
service: "name=zbld state=started enabled=yes"
20+
service: "name=dcld state=started enabled=yes"

ansible/nodes/status.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
user: ubuntu
1717
tasks:
1818
- name: Service status
19-
command: "service zbld status"
19+
command: "service dcld status"
2020
changed_when: false
2121
register: status
2222

ansible/nodes/stop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
become: yes
1818
tasks:
1919
- name: Start service
20-
service: "name=zbld state=stopped enabled=yes"
20+
service: "name=dcld state=stopped enabled=yes"
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Unit]
2-
Description=ZB Ledger client service
2+
Description=DC Ledger client service
33
After=network.target
44
StartLimitIntervalSec=0
55

@@ -8,7 +8,7 @@ Type=simple
88
Restart=always
99
RestartSec=1
1010
User=ubuntu
11-
ExecStart=/usr/bin/zblcli rest-server
11+
ExecStart=/usr/bin/dclcli rest-server
1212

1313
[Install]
1414
WantedBy=multi-user.target
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Unit]
2-
Description=ZB Ledger service
2+
Description=DC Ledger service
33
After=network.target
44
StartLimitIntervalSec=0
55

@@ -8,7 +8,7 @@ Type=simple
88
Restart=always
99
RestartSec=1
1010
User=ubuntu
11-
ExecStart=/usr/bin/zbld start
11+
ExecStart=/usr/bin/dcld start
1212

1313
[Install]
1414
WantedBy=multi-user.target

0 commit comments

Comments
 (0)