Skip to content

Commit

Permalink
Merge pull request #632 from WeBankFinTech/dev
Browse files Browse the repository at this point in the history
v1.5.2 dev=>master
  • Loading branch information
mingzhenliu authored Jul 19, 2021
2 parents a2fb920 + 77a05e2 commit 7217e48
Show file tree
Hide file tree
Showing 81 changed files with 1,988 additions and 338 deletions.
32 changes: 16 additions & 16 deletions .ci/ci_check.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash

set -e

curl -LO https://raw.githubusercontent.com/FISCO-BCOS/FISCO-BCOS/dev/tools/build_chain.sh && chmod u+x build_chain.sh
bash <(curl -s https://raw.githubusercontent.com/FISCO-BCOS/FISCO-BCOS/dev/tools/ci/download_bin.sh) -b dev -m
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.7.0
./nodes/127.0.0.1/start_all.sh
./nodes/127.0.0.1/fisco-bcos -v
cp nodes/127.0.0.1/sdk/* src/main/resources/
cp nodes/127.0.0.1/sdk/* src/test/resources/
#./gradlew verifyGoogleJavaFormat
# test module needs optimization
./gradlew build -x test
#./gradlew test
#!/bin/bash

set -e

curl -LO https://raw.githubusercontent.com/FISCO-BCOS/FISCO-BCOS/dev/tools/build_chain.sh && chmod u+x build_chain.sh
bash <(curl -s https://raw.githubusercontent.com/FISCO-BCOS/FISCO-BCOS/dev/tools/ci/download_bin.sh) -b dev -m
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.7.2
./nodes/127.0.0.1/start_all.sh
./nodes/127.0.0.1/fisco-bcos -v
cp nodes/127.0.0.1/sdk/* src/main/resources/
cp nodes/127.0.0.1/sdk/* src/test/resources/
#./gradlew verifyGoogleJavaFormat
# test module needs optimization
./gradlew build -x test
#./gradlew test
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ gradle.properties
/bin
*.crt
*.key
*.publickey
h2

/lib/
solcjs
v0.*.js
v0.*.js.gz
v0.*.*.js
v0.*.*.js.gz
/output/
/conf/


26 changes: 25 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ branches:
- dev

language: java

services:
- mysql
matrix:
# fast_finish: true
include:
Expand All @@ -26,6 +27,29 @@ matrix:
dist: xenial
sudo: required

- language: java
jdk: openjdk11
os: linux
dist: xenial
sudo: required

- language: java
jdk: openjdk12
os: linux
dist: xenial
sudo: required

- language: java
jdk: openjdk13
os: linux
dist: xenial
sudo: required

- language: java
jdk: openjdk14
os: linux
dist: xenial
sudo: required

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand Down
24 changes: 22 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
### v1.5.2(2021-07-16)

**Add**
- 优化合约Java项目导出功能,支持批量编译合约,支持多用户与channel端口检查
- 合约仓库新增资产合约模板
- 增加交易组装接口`/tran/convertRawTxStr`和编码交易函数接口`/trans/encodeFunction`
- 支持合约IDE绑定合约地址

**Fix**
- 优化交易窗口,支持无私钥用户时直接创建私钥

**兼容性**
- 支持FISCO-BCOS v2.4.x 及以上版本
- WeBASE-Node-Manager v1.5.0+
- WeBASE-Sign v1.5.0+
- WeBASE-Transaction v1.3.0+

详细了解,请阅读[**技术文档**](https://webasedoc.readthedocs.io/zh_CN/latest/)


### v1.5.1(2021-05-28)

**Add**
Expand All @@ -13,7 +33,7 @@

**兼容性**
- 支持FISCO-BCOS v2.4.x 及以上版本
- WeBASE-Node-Manager v1.4.1+
- WeBASE-Node-Manager v1.5.0+
- WeBASE-Sign v1.5.0+
- WeBASE-Transaction v1.3.0+

Expand All @@ -32,7 +52,7 @@

**兼容性**
- 支持FISCO-BCOS v2.4.x 及以上版本
- WeBASE-Node-Manager v1.4.1+
- WeBASE-Node-Manager v1.5.0+
- WeBASE-Sign v1.5.0+
- WeBASE-Transaction v1.3.0+

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# 节点前置服务
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://webasedoc.readthedocs.io/zh_CN/latest/docs/WeBASE/CONTRIBUTING.html)
[![CodeFactor](https://www.codefactor.io/repository/github/webankfintech/webase-front/badge)](https://www.codefactor.io/repository/github/webankfintech/webase-front)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f5be085401f54e7080a654693ac260d4)](https://www.codacy.com/gh/WeBankFinTech/WeBASE-Front?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=WeBankFinTech/WeBASE-Front&amp;utm_campaign=Badge_Grade)
[![Code Lines](https://tokei.rs/b1/github/WeBankFinTech/WeBASE-Front?category=code)](https://github.com/WeBankFinTech/WeBASE-Front)
[![license](http://img.shields.io/badge/license-Apache%20v2-blue.svg)](http://www.apache.org/licenses/)
[![GitHub (pre-)release](https://img.shields.io/github/release/WeBankFinTech/WeBASE-Front/all.svg)](https://github.com/WeBankFinTech/WeBASE-Front/releases)
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repositories {

}

def spring_version="4.3.27.RELEASE"
def spring_version="4.3.29.RELEASE"
List spring =[
"org.springframework:spring-core:$spring_version",
"org.springframework:spring-beans:$spring_version",
Expand Down Expand Up @@ -71,7 +71,7 @@ List jaxb = [
"javax.activation:activation:1.1.1"
]

def jackson_version = "2.11.0"
def jackson_version = "2.11.4"
List jackson = [
"com.fasterxml.jackson.core:jackson-annotations:$jackson_version",
"com.fasterxml.jackson.core:jackson-core:$jackson_version",
Expand All @@ -90,9 +90,9 @@ List tomcat = [
]

List scaffold = [
'com.webank.webase:solscaffold:1.0.1',
'com.webank:SmartDev-Scaffold:1.0.0-SNAPSHOT',
'com.webank:solc-gradle-plugin:1.0.0'
'com.webank.webase:solscaffold:1.0.2',
'com.webank:SmartDev-Scaffold:1.0.0.1',
'com.webank:solc-gradle-plugin:1.0.1'
]

dependencies {
Expand Down
3 changes: 2 additions & 1 deletion docker/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt-get update \
#COPY --from=builder /code/dist/lib /dist/lib
#COPY --from=builder /code/dist/conf_template /dist/conf
#COPY --from=builder /code/dist/apps /dist/apps
COPY static /dist/static
COPY lib /dist/lib
COPY conf_template /dist/conf
COPY apps /dist/apps
Expand All @@ -18,7 +19,7 @@ EXPOSE 5002

ENV CLASSPATH "/dist/conf/:/dist/apps/*:/dist/lib/*"

ENV JAVA_OPTS " -server -Dfile.encoding=UTF-8 -Xmx256m -Xms256m -Xmn128m -Xss512k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/log/heap_error.log -XX:+UseG1GC -XX:MaxGCPauseMillis=200 "
ENV JAVA_OPTS " -server -Dfile.encoding=UTF-8 -Xmx512m -Xms512m -Xmn256m -Xss512k -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/log/heap_error.log -XX:+UseG1GC -XX:MaxGCPauseMillis=200 "
ENV APP_MAIN "com.webank.webase.front.Application"

# start commond
Expand Down
2 changes: 1 addition & 1 deletion release_note.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.5.1
v1.5.2
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ public class ConstantCode {
public static final RetCode WRITE_PRIVATE_KEY_CRT_KEY_FILE_FAIL = RetCode.mark(201157,"Write private key file fail!");
// add in v1.5.1
public static final RetCode GENERATE_CONTRACT_PROJECT_FAIL = RetCode.mark(201161, "generate project failed in scaffold");
// v1.5.2
public static final RetCode IP_FORMAT_ERROR = RetCode.mark(201162, "IP format error.");


/* precompiled runtime check or error */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ public void deleteContract(Long contractId, int groupId) {
* save contract data.
*/
public Contract saveContract(ReqContractSave contractReq) {
log.debug("start saveContract contractReq:{}", JsonUtils.toJSONString(contractReq));
log.info("start saveContract contractReq:{}", JsonUtils.toJSONString(contractReq));
if (contractReq.getContractId() == null) {
// new
return newContract(contractReq);
Expand Down Expand Up @@ -580,6 +580,11 @@ public Contract updateContract(ReqContractSave contractReq) {
contractReq.getContractName(), contractReq.getContractId());
BeanUtils.copyProperties(contractReq, contract);
contract.setModifyTime(LocalDateTime.now());
if(contract.getContractAddress()!=null && contract.getContractAddress().length()>("0x").length())
{
contract.setContractStatus(ContractStatus.DEPLOYED.getValue());
contract.setDeployTime(LocalDateTime.now());
}
contractRepository.save(contract);
// update time
ContractPath contractPathVo = new ContractPath();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ public class ReqContractSave {
* 合约编译的runtime-bytecode(runtime-bin),用于交易解析
*/
private String contractBin;

private String contractAddress;
}
Loading

0 comments on commit 7217e48

Please sign in to comment.