Skip to content

Commit 214d182

Browse files
satota2shimos
authored andcommitted
docs(*): Update docs to release v0.3.0
Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
1 parent e01943b commit 214d182

File tree

9 files changed

+55
-7
lines changed

9 files changed

+55
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# - integration-test - runs integration tests for a specific fabric version
1414
# - check-support-version - checks whether the specified FABRIC_TWO_DIGIT_VERSION is supported or not
1515

16-
BASE_VERSION = 0.2.0
16+
BASE_VERSION = 0.3.0
1717
FABRIC_TWO_DIGIT_VERSION ?= 2.4
1818

1919
SUPPORT_FABRIC_TWO_DIGIT_VERSIONS = 2.4 2.2

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,15 @@ The current implementation has limitations. The main limitations are as follows:
960960
961961
## Changes
962962
963+
## v0.3.0 (Oct. 27, 2022)
964+
965+
- Add a voting config option for chaincode_ops - ([Detail](./docs/VotingConfigOption.md))
966+
- This allows OpsSC users to configure the maximum number of malicious organizations (`f`) in the voting process
967+
- This config option is not yet supported for channel_ops
968+
- Add a function to update channel type and introduce `disable` channel type to channel_ops
969+
- Support both Hyperledger Fabric v2.4 and v2.2 series (Out of scope: v2.3)
970+
- Other minor improvements
971+
963972
### v0.2.0 (Oct. 5, 2021)
964973
965974
- Support chaincode deployment with private data for chaincode_ops
@@ -970,7 +979,7 @@ The current implementation has limitations. The main limitations are as follows:
970979
### v0.1.0 (Jan. 9, 2021)
971980
972981
- The initial version of Operations Smart Contract (OpsSC) for Hyperledger Fabric v2.x
973-
- Support chaincode operations (chaincode_ops): Streamline chaincode deployment with chaincode new lifecycle introduced from v2.x.
982+
- Support chaincode operations (chaincode_ops): Streamline chaincode deployment with chaincode new lifecycle introduced from v2.x
974983
- Support channel operations (channel_ops): Streamline channel configuration updates across multiple organizations (e.g., creating a channel, adding an organization, adding an orderer etc.)
975984
976985
## Authors

common/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opssc-common",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Common features for OpsSC",
55
"scripts": {
66
"prepare": "tsc",

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ This folder contains documents about OpsSC (e.g., Design memo).
55
## Contents
66

77
- [Design memo for OpsSC](./design)
8+
- [Voting config option](./VotingConfigOption.md)

docs/VotingConfigOption.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Voting Config Option
2+
3+
`chaincode_ops` chaincode provides a voting config option.
4+
This allows OpsSC users to configure the maximum number of malicious organizations (`f`) in the voting process.
5+
This config option is not yet supported for channel_ops.
6+
- If the option is set, `2f + 1` is required to judge a proposal gets `Approved`.
7+
- If the option is not set, a majority of all participating organizations is required to judge a proposal gets `Approved`.
8+
9+
You can use this to call the following CC functions in `chaincode_ops` chaincode.
10+
- `SetMaxMaliciousOrgsInVotes()`: sets number of max malicious orgs in votes.
11+
- `UnsetMaxMaliciousOrgsInVotes()`: unsets number of max malicious orgs in votes.
12+
- `GetVotingConfig()`: returns the voting config.
13+
14+
## Example: Skip the Voting Process
15+
16+
By using this, it is possible to configure to skip the voting process from other organizations for chaincode proposals.
17+
With this configuration, when a proposal request is sent by one organization via the REST API of the OpsSC API server,
18+
the deployment of the proposed chaincode is automatically executed immediately.
19+
20+
The following command is an example by invoking the SC function via an OpsSC API server:
21+
22+
```bash
23+
curl -X POST "http://localhost:3000/api/v1/utils/invokeTransaction" \
24+
-H "Expect:" \
25+
-H 'Content-Type: application/json; charset=utf-8' \
26+
-d @- <<EOF
27+
{
28+
"channelID": "ops-channel",
29+
"ccName": "chaincode_ops",
30+
"func": "SetMaxMaliciousOrgsInVotes",
31+
"args": ["0"]
32+
}
33+
EOF
34+
```
35+
36+
_NOTE:_ In this configuration, chaincode is deployed by a single organization's decision (it means a centralized manner).
37+
Note that this means that OpsSC is not used for the decentralized operations that it originally envisioned, which partially undermines the value it provides.
38+
Of course, it is useful for testing or developing phase, etc.

integration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opssc-integration",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Integration test for OpsSC",
55
"scripts": {
66
"test": "./node_modules/.bin/cucumber-js -p default",

opssc-agent/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opssc-agent",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "OpsSC Agent",
55
"main": "opssc-agent.js",
66
"scripts": {

opssc-api-server/APISpecification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ None
833833

834834
- **Code:** 200 <br />
835835
**Content:** The version of the API server <br />
836-
`"0.2.0"`
836+
`"0.3.0"`
837837

838838
- **Error Response:**
839839

opssc-api-server/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opssc-api-server",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "OpsSC API Server",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)