Skip to content

Commit 54ec0ce

Browse files
authored
Merge pull request #917 from irisnet/release0.9
R4R: Release version 0.9.0
2 parents 3a5697d + 7facc25 commit 54ec0ce

File tree

520 files changed

+23088
-9468
lines changed

Some content is hidden

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

520 files changed

+23088
-9468
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ docs/.vuepress/dist/
77
node_modules/
88
package.json
99
yarn.lock
10-
client/lcd/statik/statik.go
10+
lite/statik/statik.go
1111
dependency-graph.png
12-
tools/protobuf/*.a
13-
tools/protobuf/*.o
14-
tools/protobuf/*.so
12+

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# Changelog
22

3+
4+
## 0.9.0
5+
6+
*December 27th, 2018*
7+
8+
- Refactor the gov types
9+
- Make the deposit flag not be required in the gov submit-proposal cmd
10+
- Add withdraw address into the withdraw tags list
11+
- Fix the monitor bug
12+
13+
## 0.9.0-rc0
14+
15+
*December 19th, 2018*
16+
17+
BREAKING CHANGES:
18+
19+
- Use `iristool` to replace the original `irisdebug` and `irismon`
20+
- `iris init` must specify moniker
21+
22+
FEATURES:
23+
24+
- [iriscli] Optimize the way tags are displayed
25+
- [iriscli] Add `iriscli stake delegations-to [validator-addr]` and `/stake/validators/{validatorAddr}/delegations` interfaces
26+
- [iris] Application framework code refactoring
27+
- [iris] Add a new mechanism to distribute service fee tax
28+
- [iris] Slashing module supports querying slashing history
29+
- [iris] Gov module adds TxTaxUsageProposal/SoftwareHaltProposal proposals
30+
- [iris] Export and import blockchain snapshot at any block height
31+
- [iris] Redesigned to implement class 2 software upgrade
32+
- [iris] Restrict the block gas limit
33+
- [iris] Improve tx search to support multiple tags
34+
- [iris] Improve the default behavior of iris --home
35+
- [iris] `iris tendermint show-address` output begins with `fca`
36+
- [iris] Restrict the number of signatures on the transaction
37+
- [iris] Add a check for the validator private key type and reject the unsupported private key type
38+
- [tendermint] Update tendermint to v0.27.0
39+
40+
BUG FIXES:
41+
42+
- Add chain-id value checking for sign command
43+
- Specify the required flags for cmds `query-proposal`, `query-deposit` and `query-vote`
44+
45+
346
## 0.8.0
447

548
*December 13th, 2018*

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ RUN cd $REPO_PATH && \
2727
make test_unit && \
2828
make build_linux && \
2929
make install && \
30-
make install_examples && \
3130
make test_cli
32-
# make test_lcd && \
33-
# make test_sim
3431

3532
FROM alpine:3.7
3633

Gopkg.lock

Lines changed: 17 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@
2626

2727
[[override]]
2828
name = "github.com/tendermint/iavl"
29-
version = "=v0.12.0"
29+
# version = "=v0.11.1"
30+
source = "https://github.com/irisnet/iavl.git"
31+
branch = "irisnet/v0.12.0-iris"
3032

3133
[[override]]
3234
name = "github.com/tendermint/tendermint"
3335
source = "https://github.com/irisnet/tendermint.git"
34-
version = "=v0.27.0-dev1-iris"
36+
branch = "irisnet/v0.27.0-iris"
37+
3538

3639
[[constraint]]
3740
name = "github.com/emicklei/proto"

Makefile

Lines changed: 35 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation' | grep -v '/prometheus' | grep -v '/clitest' | grep -v '/lcd' | grep -v '/protobuf')
22
PACKAGES_MODULES=$(shell go list ./... | grep 'modules')
3+
PACKAGES_TYPES=$(shell go list ./... | grep 'irisnet/irishub/types')
4+
PACKAGES_STORE=$(shell go list ./... | grep 'irisnet/irishub/store')
35
PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
46

57
all: get_tools get_vendor_deps install
68

79
COMMIT_HASH := $(shell git rev-parse --short HEAD)
8-
INSTALL_FLAGS = -ldflags "-X github.com/irisnet/irishub/version.GitCommit=${COMMIT_HASH}"
910

1011
Bech32PrefixAccAddr := $(shell if [ -z ${Bech32PrefixAccAddr} ]; then echo "faa"; else echo ${Bech32PrefixAccAddr}; fi)
1112
Bech32PrefixAccPub := $(shell if [ -z ${Bech32PrefixAccPub} ]; then echo "fap"; else echo ${Bech32PrefixAccPub}; fi)
@@ -14,18 +15,27 @@ Bech32PrefixValPub := $(shell if [ -z ${Bech32PrefixValPub} ]; then echo "fvp";
1415
Bech32PrefixConsAddr := $(shell if [ -z ${Bech32PrefixConsAddr} ]; then echo "fca"; else echo ${Bech32PrefixConsAddr}; fi)
1516
Bech32PrefixConsPub := $(shell if [ -z ${Bech32PrefixConsPub} ]; then echo "fcp"; else echo ${Bech32PrefixConsPub}; fi)
1617
BUILD_FLAGS = -ldflags "\
17-
-X github.com/irisnet/irishub/init.Bech32PrefixAccAddr=${Bech32PrefixAccAddr} \
18-
-X github.com/irisnet/irishub/init.Bech32PrefixAccPub=${Bech32PrefixAccPub} \
19-
-X github.com/irisnet/irishub/init.Bech32PrefixValAddr=${Bech32PrefixValAddr} \
20-
-X github.com/irisnet/irishub/init.Bech32PrefixValPub=${Bech32PrefixValPub} \
21-
-X github.com/irisnet/irishub/init.Bech32PrefixConsAddr=${Bech32PrefixConsAddr} \
22-
-X github.com/irisnet/irishub/init.Bech32PrefixConsPub=${Bech32PrefixConsPub}"
18+
-X github.com/irisnet/irishub/server/init.Bech32PrefixAccAddr=${Bech32PrefixAccAddr} \
19+
-X github.com/irisnet/irishub/server/init.Bech32PrefixAccPub=${Bech32PrefixAccPub} \
20+
-X github.com/irisnet/irishub/server/init.Bech32PrefixValAddr=${Bech32PrefixValAddr} \
21+
-X github.com/irisnet/irishub/server/init.Bech32PrefixValPub=${Bech32PrefixValPub} \
22+
-X github.com/irisnet/irishub/server/init.Bech32PrefixConsAddr=${Bech32PrefixConsAddr} \
23+
-X github.com/irisnet/irishub/server/init.Bech32PrefixConsPub=${Bech32PrefixConsPub}"
24+
25+
INSTALL_FLAGS = -ldflags "\
26+
-X github.com/irisnet/irishub/version.GitCommit=${COMMIT_HASH} \
27+
-X github.com/irisnet/irishub/server/init.Bech32PrefixAccAddr=${Bech32PrefixAccAddr} \
28+
-X github.com/irisnet/irishub/server/init.Bech32PrefixAccPub=${Bech32PrefixAccPub} \
29+
-X github.com/irisnet/irishub/server/init.Bech32PrefixValAddr=${Bech32PrefixValAddr} \
30+
-X github.com/irisnet/irishub/server/init.Bech32PrefixValPub=${Bech32PrefixValPub} \
31+
-X github.com/irisnet/irishub/server/init.Bech32PrefixConsAddr=${Bech32PrefixConsAddr} \
32+
-X github.com/irisnet/irishub/server/init.Bech32PrefixConsPub=${Bech32PrefixConsPub}"
2333

2434
########################################
2535
### Tools & dependencies
2636

2737
echo_bech32_prefix:
28-
@echo "\"source tools/script/setBechPrefix.sh\" to set bech prefix for your own application, or default values will be applied"
38+
@echo "\"source scripts/setBechPrefix.sh\" to set bech prefix for your own application, or default values will be applied"
2939
@echo Bech32PrefixAccAddr=${Bech32PrefixAccAddr}
3040
@echo Bech32PrefixAccPub=${Bech32PrefixAccPub}
3141
@echo Bech32PrefixValAddr=${Bech32PrefixValAddr}
@@ -34,22 +44,22 @@ echo_bech32_prefix:
3444
@echo Bech32PrefixConsPub=${Bech32PrefixConsPub}
3545

3646
check_tools:
37-
cd deps_tools && $(MAKE) check_tools
47+
cd scripts && $(MAKE) check_tools
3848

3949
check_dev_tools:
40-
cd deps_tools && $(MAKE) check_dev_tools
50+
cd scripts && $(MAKE) check_dev_tools
4151

4252
update_tools:
43-
cd deps_tools && $(MAKE) update_tools
53+
cd scripts && $(MAKE) update_tools
4454

4555
update_dev_tools:
46-
cd deps_tools && $(MAKE) update_dev_tools
56+
cd scripts && $(MAKE) update_dev_tools
4757

4858
get_tools:
49-
cd deps_tools && $(MAKE) get_tools
59+
cd scripts && $(MAKE) get_tools
5060

5161
get_dev_tools:
52-
cd deps_tools && $(MAKE) get_dev_tools
62+
cd scripts && $(MAKE) get_dev_tools
5363

5464
get_vendor_deps:
5565
@rm -rf vendor/
@@ -64,50 +74,28 @@ draw_deps:
6474
########################################
6575
### Generate swagger docs for irislcd
6676
update_irislcd_swagger_docs:
67-
@statik -src=client/lcd/swaggerui -dest=client/lcd -f
77+
@statik -src=lite/swagger-ui -dest=lite -f
6878

6979
########################################
7080
### Compile and Install
7181
install: update_irislcd_swagger_docs echo_bech32_prefix
72-
go install $(INSTALL_FLAGS) $(BUILD_FLAGS) ./cmd/iris
73-
go install $(INSTALL_FLAGS) $(BUILD_FLAGS) ./cmd/iriscli
74-
go install $(INSTALL_FLAGS) $(BUILD_FLAGS) ./cmd/irislcd
75-
go install $(INSTALL_FLAGS) $(BUILD_FLAGS) ./cmd/irismon
76-
77-
install_debug:
78-
go install $(BUILD_FLAGS) ./cmd/irisdebug
82+
go install $(INSTALL_FLAGS) ./cmd/iris
83+
go install $(INSTALL_FLAGS) ./cmd/iriscli
84+
go install $(INSTALL_FLAGS) ./cmd/irislcd
85+
go install $(INSTALL_FLAGS) ./cmd/iristool
7986

8087
build_linux: update_irislcd_swagger_docs echo_bech32_prefix
8188
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o build/iris ./cmd/iris && \
8289
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o build/iriscli ./cmd/iriscli && \
8390
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o build/irislcd ./cmd/irislcd && \
84-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o build/irismon ./cmd/irismon
91+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o build/iristool ./cmd/iristool
8592

8693
build_cur: update_irislcd_swagger_docs echo_bech32_prefix
8794
go build $(BUILD_FLAGS) -o build/iris ./cmd/iris && \
8895
go build $(BUILD_FLAGS) -o build/iriscli ./cmd/iriscli && \
8996
go build $(BUILD_FLAGS) -o build/irislcd ./cmd/irislcd && \
90-
go build $(BUILD_FLAGS) -o build/irismon ./cmd/irismon
91-
92-
build_examples: update_irislcd_swagger_docs echo_bech32_prefix
93-
go build $(BUILD_FLAGS) -o build/iris1 ./examples/irishub1/cmd/iris1
94-
go build $(BUILD_FLAGS) -o build/iriscli1 ./examples/irishub1/cmd/iriscli1
95-
go build $(BUILD_FLAGS) -o build/iris2-bugfix ./examples/irishub-bugfix-2/cmd/iris2-bugfix
96-
go build $(BUILD_FLAGS) -o build/iriscli2-bugfix ./examples/irishub-bugfix-2/cmd/iriscli2-bugfix
97-
98-
99-
install_examples: update_irislcd_swagger_docs echo_bech32_prefix
100-
go install $(BUILD_FLAGS) ./examples/irishub1/cmd/iris1
101-
go install $(BUILD_FLAGS) ./examples/irishub1/cmd/iriscli1
102-
go install $(BUILD_FLAGS) ./examples/irishub-bugfix-2/cmd/iris2-bugfix
103-
go install $(BUILD_FLAGS) ./examples/irishub-bugfix-2/cmd/iriscli2-bugfix
104-
97+
go build $(BUILD_FLAGS) -o build/iristool ./cmd/iristool
10598

106-
build_example_linux: update_irislcd_swagger_docs echo_bech32_prefix
107-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o build/iris1 ./examples/irishub1/cmd/iris1
108-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o build/iriscli1 ./examples/irishub1/cmd/iriscli1
109-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o build/iris2-bugfix ./examples/irishub-bugfix-2/cmd/iris2-bugfix
110-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o build/iriscli2-bugfix ./examples/irishub-bugfix-2/cmd/iriscli2-bugfix
11199

112100
########################################
113101
### Testing
@@ -119,12 +107,14 @@ test_sim: test_sim_modules test_sim_benchmark test_sim_iris_nondeterminism test_
119107
test_unit:
120108
#@go test $(PACKAGES_NOSIMULATION)
121109
@go test $(PACKAGES_MODULES)
110+
@go test $(PACKAGES_TYPES)
111+
@go test $(PACKAGES_STORE)
122112

123113
test_cli:
124-
@go test -timeout 20m -count 1 -p 1 client/clitest/utils.go client/clitest/bank_test.go client/clitest/distribution_test.go client/clitest/gov_test.go client/clitest/iparam_test.go client/clitest/irismon_test.go client/clitest/record_test.go client/clitest/service_test.go client/clitest/stake_test.go
114+
@go test -timeout 20m -count 1 -p 1 tests/cli/utils.go tests/cli/bank_test.go tests/cli/distribution_test.go tests/cli/gov_test.go tests/cli/iparam_test.go tests/cli/irismon_test.go tests/cli/record_test.go tests/cli/service_test.go tests/cli/stake_test.go
125115

126116
test_upgrade_cli:
127-
@go test -timeout 20m -count 1 -p 1 client/clitest/utils.go client/clitest/bank_test.go
117+
@go test -timeout 20m -count 1 -p 1 tests/cli/utils.go tests/cli/bank_test.go
128118

129119
test_lcd:
130120
@go test `go list github.com/irisnet/irishub/client/lcd`

0 commit comments

Comments
 (0)