Skip to content

Commit

Permalink
Merge pull request #520 from cryptape/release-0.23.0
Browse files Browse the repository at this point in the history
Release 0.23.0
  • Loading branch information
kaikai1024 committed Apr 26, 2019
2 parents 2f12229 + 9a369d7 commit 12420de
Show file tree
Hide file tree
Showing 171 changed files with 6,497 additions and 3,112 deletions.
439 changes: 439 additions & 0 deletions .all-contributorsrc

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ alias:
- &job-default
docker:
- image: cita/cita-build:ubuntu-18.04-20190107
- image: cita/cita-build:ubuntu-18.04-20190413
working_directory: ~/cita-build
resource_class: xlarge

Expand Down Expand Up @@ -261,6 +261,16 @@ jobs:
name: Test Executor Process Invalid Proof
command: ./tests/integrate_test/cita_bft_resend.sh

"Discovery Test for network":
<<: *job-default
steps:
- restore_cache: *restore-source-codes-cache
- restore_cache: *restore-release-cache
- run: *after-restore-release-cache
- run:
name: Discovery test for network
command: ./tests/integrate_test/cita_discovery.sh

"Byzantine Test in Quota Mode":
<<: *job-default
steps:
Expand Down Expand Up @@ -366,6 +376,9 @@ workflows:
- "Integrate Test Part-2":
requires:
- "Release"
- "Discovery Test for network":
requires:
- "Release"
- "Byzantine Test in Quota Mode":
requires:
- "Release"
Expand Down Expand Up @@ -393,6 +406,7 @@ workflows:
requires:
- "Integrate Test Part-1"
- "Integrate Test Part-2"
- "Discovery Test for network"
- "Byzantine Test in Quota Mode"
- "Byzantine Test in Charge Mode"
- "Crosschain Test"
Expand Down
38 changes: 38 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Set default charset
charset = utf-8
indent_style = space
indent_size = 4

# Follow https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md
[*.rs]
indent_style = space
indent_size = 4
max_line_length = 100

# Matches multiple files with brace expansion notation
[*.{json,py,md,markdown}]
indent_style = space
indent_size = 4

[Makefile]
indent_style = tab
indent_size = 4

[*.yml]
indent_style = space
indent_size = 2

# Indentation override for all JS under scripts directory
[scripts/**.js]
indent_style = space
indent_size = 2
File renamed without changes.
24 changes: 12 additions & 12 deletions CONTRIBUTING.md → .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

First off, thanks for taking the time to contribute!

The following is a set of guidelines for contributing to CITA and its packages. These are mostly guidelines, not rules. Use your best judgement, and feel free to propose changes to this document in a pull request.
The following is a set of guidelines for contributing to CITA and its packages. These are mostly guidelines, not rules. Use your best judgement, and feel free to propose changes to this document in a pull request.

## Table of Contents

Expand Down Expand Up @@ -91,40 +91,40 @@ Here we use [rustdoc](https://doc.rust-lang.org/book/first-edition/documentation

Documents are essential parts to communicate with our users. We need to make our documents well-structured and readable. Everyone who contributes to the documents should have a **strong responsibility** for creating the great experience.

- Everyone who modifies the documents needs to visualize the documents before making a pull request, in case there are some mistakes.
- Everyone who modifies the documents needs to visualize the documents before making a pull request, in case there are some mistakes.

- Separate Chinese and English characters by a blank space. [Chinese Version Only]
- Normally we need to add a blank space before the first character of English words and after the last character of English words.
- If the character before the first character of English words is punctuation mark, then we don’t need to add a blank space.
- If the character after the last character of English words is punctuation mark, then we don’t need to add a blank space.

Example:

- Bad Style:

我们采用 CITA 作为我们的blockchain基础设施服务。

- Good Style:

我们采用 CITA 作为我们的 blockchain 基础设施服务。

- Separate Chinese characters and numbers by a blank space. [Chinese Version Only]
- Detailed rules are same as above.

Example:

- Bad Style:

CITA 的速度超乎想象,比我用过的其他10几个区块链服务都要快。

- Good Style:

CITA 的速度超乎想象,比我用过的其他 10 几个区块链服务都要快。

- Please do remember to indent the contents below any ordered list or unordered list.

Example:

![Bad Style](https://ws4.sinaimg.cn/large/006tKfTcly1frtlvhnbfdj31kw0zkjvu.jpg)

![Good Style](https://ws3.sinaimg.cn/large/006tKfTcly1frtlwl2hq9j31kw0zktd5.jpg)
9 changes: 8 additions & 1 deletion ISSUE_TEMPLATE.md → .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Issue Template
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: kaikai1024

---

## Description

Expand Down
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Custom issue template
about: Any question that isn't answered in docs or forum
title: ''
labels: ''
assignees: ''

---

## Description

[Description of the issue]

## Additional Information

[Any other information which would be helpful to reproduce the issue].
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/simple.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Pull Request Template

## Requirements

- Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.

## Templates

### Description of the Change
### Applicable Issues
17 changes: 9 additions & 8 deletions PULL_REQUEST_TEMPLATE.md → .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Pull Request Template

### Requirements
## Requirements

- Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
- All new codes require tests to ensure against regressions.

### Templates
## Templates

#### Description of the Change
#### Alternate Design
#### Benefits
#### Possible Drawbacks
#### Verification Process
#### Applicable Issues
### Description of the Change
### Alternate Design
### Benefits
### Possible Drawbacks
### Verification Process
### Applicable Issues
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
path = scripts/config_tool/genesis
url = https://github.com/cryptape/genesis.git
branch = v0.22.0
[submodule "tests/jsondata"]
path = tests/jsondata
url = https://github.com/cryptape/cita-testdata.git
32 changes: 16 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stages:
- Release
- IntegrateTest
before_install:
- docker pull cita/cita-build:ubuntu-18.04-20190107
- docker pull cita/cita-build:ubuntu-18.04-20190413
jobs:
include:

Expand Down Expand Up @@ -54,11 +54,11 @@ jobs:
install:
- rm -rf /opt/cita-run/test-chain
- cd $TRAVIS_BUILD_DIR/target/install
- ./env.sh ./scripts/create_cita_config.py create
- ./bin/cita create
--nodes "127.0.0.1:4100"
--super_admin "0x4b5ae4567ad5d9fb92bc9afd6a657e6fa13a2523"
- ./env.sh ./bin/cita setup test-chain/0
- ./daemon.sh ./bin/cita start test-chain/0
- ./bin/cita setup test-chain/0
- ./bin/cita start test-chain/0
before_script:
- cd $TRAVIS_BUILD_DIR/target/install/scripts/contracts/tests
- travis_retry yarn install
Expand Down Expand Up @@ -104,12 +104,12 @@ jobs:
name: Unit Node
install:
- cd $TRAVIS_BUILD_DIR/target/install
- ./env.sh ./scripts/create_cita_config.py create
- ./bin/cita create
--nodes "127.0.0.1:4000,127.0.0.1:4001,127.0.0.1:4002"
--super_admin "0x4b5ae4567ad5d9fb92bc9afd6a657e6fa13a2523"
- for i in {0..2} ; do
./env.sh bin/cita setup test-chain/$i
&& ./daemon.sh bin/cita start test-chain/$i ;
./bin/cita setup test-chain/$i
&& ./bin/cita start test-chain/$i ;
done
script:
- npm run-script unit_node
Expand All @@ -118,37 +118,37 @@ jobs:
name: Integrate Quota
install:
- cd $TRAVIS_BUILD_DIR/target/install
- ./env.sh ./scripts/create_cita_config.py create
- ./bin/cita create
--nodes "127.0.0.1:4100"
--contract_arguments "SysConfig.checkQuota=true"
--super_admin "0x4b5ae4567ad5d9fb92bc9afd6a657e6fa13a2523"
- ./env.sh ./bin/cita setup test-chain/0
- ./daemon.sh ./bin/cita start test-chain/0
- ./bin/cita setup test-chain/0
- ./bin/cita start test-chain/0
script:
- npm run-script integrate_quota

- <<: *stage-contract-test-sha3-secp256k1
name: Integrate Permission
install:
- cd $TRAVIS_BUILD_DIR/target/install
- ./env.sh ./scripts/create_cita_config.py create
- ./bin/cita create
--nodes "127.0.0.1:4100"
--contract_arguments "SysConfig.checkCallPermission=true"
--super_admin "0x4b5ae4567ad5d9fb92bc9afd6a657e6fa13a2523"
- ./env.sh ./bin/cita setup test-chain/0
- ./daemon.sh ./bin/cita start test-chain/0
- ./bin/cita setup test-chain/0
- ./bin/cita start test-chain/0
script:
- npm run-script permission

- <<: *stage-contract-test-sha3-secp256k1
name: Integrate AutoExec
install:
- cd $TRAVIS_BUILD_DIR/target/install
- ./env.sh ./scripts/create_cita_config.py create
- ./bin/cita create
--nodes "127.0.0.1:4100"
--contract_arguments "SysConfig.autoExec=true"
--super_admin "0x4b5ae4567ad5d9fb92bc9afd6a657e6fa13a2523"
- ./env.sh ./bin/cita setup test-chain/0
- ./daemon.sh ./bin/cita start test-chain/0
- ./bin/cita setup test-chain/0
- ./bin/cita start test-chain/0
script:
- npm run-script auto_exec
Loading

0 comments on commit 12420de

Please sign in to comment.