Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Revert "Release 2.0.0 rc3"" #292

Merged
merged 23 commits into from
Jun 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fb7a84f
update test
May 19, 2019
7058ed5
fix bugs
May 24, 2019
ead0002
Merge remote-tracking branch 'upstream/release-2.0.0-rc3' into releas…
morebtcg May 24, 2019
c6bfb70
fix performance test
morebtcg May 24, 2019
759616a
fix performance
morebtcg May 27, 2019
6c341d6
Merge remote-tracking branch 'upstream/release-2.0.0-rc3' into releas…
morebtcg May 27, 2019
620bda9
fix status
fqliao May 30, 2019
ccf1ff6
Merge pull request #289 from fqliao/release-2.0.0-rc3
fqliao Jun 1, 2019
6621ed4
Revert "Revert "Release 2.0.0 rc3""
bxq2011hust Jun 4, 2019
51f062f
Merge pull request #293 from FISCO-BCOS/release-2.0.0-rc3
bxq2011hust Jun 5, 2019
728c20f
update performance test
Jun 10, 2019
acb5dab
Merge remote-tracking branch 'upstream/release-2.0.0-rc3' into
Jun 10, 2019
519ee75
remove static nodeToBlockNumberMap
fqliao Jun 11, 2019
d843384
modify public for bin and set tableName to tableInfo
fqliao Jun 11, 2019
11f2cec
Merge pull request #298 from morebtcg/release-2.0.0-rc3
fqliao Jun 11, 2019
44ba93f
modify error code
fqliao Jun 12, 2019
ea301c1
Merge pull request #299 from fqliao/release-2.0.0-rc3
fqliao Jun 12, 2019
3783c7b
Merge pull request #300 from fqliao/release-2.0.0-rc3
fqliao Jun 12, 2019
390ab79
modify BCOS_VERSION from private to public
fqliao Jun 12, 2019
9054e6a
Merge pull request #303 from fqliao/release-2.0.0-rc3
fqliao Jun 13, 2019
08b36a9
Merge pull request #302 from fqliao/release-2.0.0-rc3
fqliao Jun 13, 2019
38c4a7f
Merge pull request #307 from FISCO-BCOS/release-2.0.0-rc3
bxq2011hust Jun 13, 2019
43a732e
make receipt error more friendly and format code
vita-dounai Jun 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
67 changes: 0 additions & 67 deletions .circleci/config.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ gradle.properties
/src/test/resources/node.key
/src/test/java/org/fisco/bcos/temp
build.gradle.bak
/.settings/
.project
36 changes: 23 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# safelist
branches:
only:
- master
- /release-2.*/
tags:
only:
- /v2.*/
only:
- /.*/

matrix:
fast_finish: true
include:
- os: linux
dist: xenial
sudo: required

language: java
jdk:
- oraclejdk8
- openjdk8

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand All @@ -23,9 +26,16 @@ cache:
before_install:
- gradle wrapper

script:
- ./gradlew build -x test
- ./gradlew jacocoTestReport

after_success:
- bash <(curl -s https://codecov.io/bash)
script: |
curl -LO https://raw.githubusercontent.com/FISCO-BCOS/FISCO-BCOS/release-2.0.0-rc3/tools/build_chain.sh && chmod u+x build_chain.sh
bash <(curl -s https://raw.githubusercontent.com/FISCO-BCOS/FISCO-BCOS/master/tools/ci/download_bin.sh) -b release-2.0.0-rc3
echo "127.0.0.1:4 agency1 1,2,3" > ipconf
./build_chain.sh -e bin/fisco-bcos -f ipconf -p 30300,20200,8545 -v 2.0.0-rc3
./nodes/127.0.0.1/start_all.sh
./nodes/127.0.0.1/fisco-bcos -v
cp nodes/127.0.0.1/sdk/* src/integration-test/resources/
mv src/integration-test/resources/applicationContext-sample.xml src/integration-test/resources/applicationContext.xml
./gradlew verifyGoogleJavaFormat
./gradlew build
./gradlew test
./gradlew integrationTest
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ Go to [issues page](https://github.com/FISCO-BCOS/web3sdk/issues)
7. Wait the community to review the code
8. Merged !!!!

## Code formatting

The code formatting tool are described by the [google-java-format-gradle-plugin](https://github.com/sherter/google-java-format-gradle-plugin).

Execute the task `googleJavaFormat` to format all *.java files in the project
```
./gradlew goJF
```
Execute the task `verifyGoogleJavaFormat` to verify that all *.java files are formatted properly
```
./gradlew verGJF
```

## Continous integration

Expand Down
32 changes: 28 additions & 4 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
### v2.0.0-rc3

(2019-05-28)

增加
1. 提供CRUDService类,包含操作用户表的CRUD接口。
2. 提供加载账号文件的工具管理类PEMManager和P12Manager,可以分别加载PEM格式和PKCS12格式的账戶文件。
3. 增加集成测试,覆盖web3j api和precompile api。

更新
1. 优化日志格式,调整日志输出内容,可以更详细显示交易流程信息。
2. 优化选择节点块高最大的节点发送交易。
3. 支持多群组区块链前置配置。
4. SDK配置文件中,机构属性字段修改为agencyName。

* Compatibility

1. 兼容rc1,rc2, rc3的节点


### v2.0.0-rc2

(2019-04-25)

* Add
* 增加

1. 可并行合约开发框架ParallelContract.sol
2. 并行预编译转账合约DagTransferPrecompiled的压测程序
3. 并行solidity转账合约parallelOk的压测程序
4. CRUD合约的压测程序
5. 回滚合约的压测程序

* Update
* 更新

1. 在交易编码中加入chainID和groupID,以支持rc2节点的交易格式
2. sol转java,在java文件中增加了abi字段。
Expand All @@ -23,15 +43,19 @@

(2019-03-18)

* Add
* 增加

1. 提供多群组支持
2. 提供Spring Boot配置以及demo项目
3. 提供模块化的单元测试,新增使用示例
4. 增加Precompiled Service接口,实现对区块链相关配置的管理,及实现特定预编译合约的功能

* Update
* 更新

1. 同步以太坊最新代码,支持动态数组返回,支持最新0.5.x合约
2. 优化合约编译流程,无需下载solcj即可直接编译合约生成abi bin和java合约文件
3. 升级Web3j,修改Web3j接口名

* Compatibility

1. 兼容rc1的节点
104 changes: 66 additions & 38 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
plugins {
id 'com.github.sherter.google-java-format' version '0.8'
}

apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'signing'
apply plugin:'application'
apply plugin: 'jacoco'
apply plugin: 'application'


sourceCompatibility = 1.8
Expand All @@ -15,13 +17,23 @@ targetCompatibility = 1.8

// In this section you declare where to find the dependencies of your project
repositories {
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
maven { url 'https://dl.bintray.com/ethereum/maven/' }
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url 'https://dl.bintray.com/ethereum/maven/' }
mavenCentral()
}

googleJavaFormat {
options style: 'AOSP'
source = sourceSets*.allJava
include '**/*.java'
exclude '**/temp/*.java'
}

verifyGoogleJavaFormat {
source = sourceSets*.allJava
include '**/*.java'
exclude '**/temp/*.java'
}

def spring_version="4.3.18.RELEASE"

Expand All @@ -44,39 +56,44 @@ List alibaba = [

// In this section you declare the dependencies for your production and test code
dependencies {
// compile files('lib/solcJ-all-0.4.25-gm.jar')
//compile 'org.ethereum:solcJ-all:0.5.2'
compile 'org.ethereum:solcJ-all:0.4.25'
compile logger,spring,alibaba
compile 'org.apache.commons:commons-lang3:3.1'
compile "com.fasterxml.jackson.core:jackson-databind:2.9.6"
compile 'io.netty:netty-all:4.1.32.Final'
// compile files('lib/solcJ-all-0.4.25-gm.jar')
// compile 'org.ethereum:solcJ-all:0.5.2'
compile 'org.ethereum:solcJ-all:0.4.25'
compile logger,spring,alibaba
compile 'org.apache.commons:commons-lang3:3.1'
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
compile 'io.netty:netty-all:4.1.32.Final'
compile 'io.netty:netty-tcnative:2.0.20.Final'
compile 'io.netty:netty-tcnative-boringssl-static:2.0.20.Final'
compile 'com.google.guava:guava:19.0'
compile 'commons-configuration:commons-configuration:1.10'

// web3j
compile 'org.apache.httpcomponents:httpclient:4.5.5',
// web3j
compile 'org.apache.httpcomponents:httpclient:4.5.5',
'org.bouncycastle:bcprov-jdk15on:1.54',
'com.lambdaworks:scrypt:1.4.0',
'com.squareup:javapoet:1.7.0',
'io.reactivex:rxjava:1.2.4',
"io.reactivex.rxjava2:rxjava:2.2.2",
'com.github.jnr:jnr-unixsocket:0.15',
'info.picocli:picocli:3.6.0',
"org.java-websocket:Java-WebSocket:1.3.8",
"org.apache.commons:commons-collections4:4.0",
"commons-io:commons-io:2.4",
'com.github.stefanbirkner:system-rules:1.18.0',
'junit:junit:4.12',
'org.mockito:mockito-core:2.23.0'
'io.reactivex.rxjava2:rxjava:2.2.2',
'com.github.jnr:jnr-unixsocket:0.15',
'info.picocli:picocli:3.6.0',
'org.java-websocket:Java-WebSocket:1.3.8',
'org.apache.commons:commons-collections4:4.0',
'commons-io:commons-io:2.4',
'com.github.stefanbirkner:system-rules:1.18.0',
'junit:junit:4.12',
'org.mockito:mockito-core:2.23.0'
compile 'de.vandermeer:asciitable:0.3.2'
}

archivesBaseName = 'web3sdk'
group = 'org.fisco-bcos'
version = '2.0.2'
//archivesBaseName = 'web3sdk'
//group = 'org.fisco-bcos'
//version = '2.0.2'

configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}

// for old sdk
sourceSets {
main {
Expand All @@ -88,8 +105,29 @@ sourceSets {
srcDir 'src/test/resources'
}
}
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/java')
}
resources.srcDir file('src/integration-test/resources')
}
}

task integrationTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
}

check.dependsOn integrationTest
integrationTest.mustRunAfter test

check.dependsOn.remove(test)
check.dependsOn.remove(integrationTest)
check.dependsOn.remove(verifyGoogleJavaFormat)

// 1 dist jar
jar {
destinationDir file('dist/apps')
Expand Down Expand Up @@ -186,14 +224,4 @@ test {
// }
// }
//}

jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}

check.dependsOn jacocoTestReport

mainClassName = System.getProperty("exec.mainClass") ?: "org.fisco.bcos.channel.test.amop.Channel2Client"
13 changes: 13 additions & 0 deletions doc/CONTRIBUTING_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@
7. 等待社区review这个PR
8. PR合入,特性开发完成!

## 代码格式化

代码格式化gradle插件[google-java-format-gradle-plugin](https://github.com/sherter/google-java-format-gradle-plugin).

执行任务 `googleJavaFormat`格式化java文件。
```
./gradlew goJF
```
执行任务 `verifyGoogleJavaFormat`验证java文件是否格式化完成
```
./gradlew verGJF
```

## 持续集成(CI)

持续集成框架
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-all.zip
2 changes: 1 addition & 1 deletion release_note.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.0.0-rc2
v2.0.0-rc3
Loading