Skip to content

Commit 09688d0

Browse files
authored
Merge pull request #3568 from cosmos/release/v0.31.0
Release v0.31.0
2 parents b8843fc + b1937bc commit 09688d0

File tree

380 files changed

+13477
-8096
lines changed

Some content is hidden

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

380 files changed

+13477
-8096
lines changed

.circleci/config.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
defaults: &linux_defaults
44
working_directory: /go/src/github.com/cosmos/cosmos-sdk
55
docker:
6-
- image: circleci/golang:1.11.4
6+
- image: circleci/golang:1.11.5
77
environment:
88
GOBIN: /tmp/workspace/bin
99

@@ -17,7 +17,7 @@ macos_config: &macos_defaults
1717
xcode: "10.1.0"
1818
working_directory: /Users/distiller/project/src/github.com/cosmos/cosmos-sdk
1919
environment:
20-
GO_VERSION: "1.11.4"
20+
GO_VERSION: "1.11.5"
2121

2222
set_macos_env: &macos_env
2323
run:
@@ -82,6 +82,7 @@ jobs:
8282
name: Get metalinter
8383
command: |
8484
export PATH="$GOBIN:$PATH"
85+
make devtools-clean
8586
make devtools
8687
- run:
8788
name: Lint source
@@ -171,7 +172,7 @@ jobs:
171172
name: Test multi-seed Gaia simulation long
172173
command: |
173174
export PATH="$GOBIN:$PATH"
174-
scripts/multisim.sh 800 50 TestFullGaiaSimulation
175+
scripts/multisim.sh 500 50 TestFullGaiaSimulation
175176
176177
test_sim_gaia_multi_seed:
177178
<<: *linux_defaults
@@ -200,11 +201,10 @@ jobs:
200201
name: Run tests
201202
command: |
202203
export PATH="$GOBIN:$PATH"
203-
make install
204204
export VERSION="$(git describe --tags --long | sed 's/v\(.*\)/\1/')"
205-
for pkg in $(go list github.com/cosmos/cosmos-sdk/... | grep -v github.com/cosmos/cosmos-sdk/cmd/gaia/cli_test | grep -v '/simulation' | circleci tests split --split-by=timings); do
206-
id=$(basename "$pkg")
207-
GOCACHE=off go test -timeout 8m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
205+
for pkg in $(go list ./... | grep -v github.com/cosmos/cosmos-sdk/cmd/gaia/cli_test | grep -v '/simulation' | circleci tests split --split-by=timings); do
206+
id=$(echo "$pkg" | sed 's|[/.]|_|g')
207+
GOCACHE=off go test -timeout 8m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic -tags='ledger test_ledger_mock' "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
208208
done
209209
- persist_to_workspace:
210210
root: /tmp/workspace
@@ -226,10 +226,20 @@ jobs:
226226
command: |
227227
set -ex
228228
229+
echo "--> Concatenating profiles:"
230+
ls /tmp/workspace/profiles/
229231
echo "mode: atomic" > coverage.txt
230232
for prof in $(ls /tmp/workspace/profiles/); do
231233
tail -n +2 /tmp/workspace/profiles/"$prof" >> coverage.txt
232234
done
235+
- run:
236+
name: filter out DONTCOVER
237+
command: |
238+
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER' | xargs realpath --relative-to=$GOPATH/src)"
239+
for filename in ${excludelist}; do
240+
echo "Excluding ${filename} ..."
241+
sed -i "\%${filename}:%d" coverage.txt
242+
done
233243
- run:
234244
name: upload
235245
command: bash <(curl -s https://codecov.io/bash) -f coverage.txt
@@ -243,7 +253,7 @@ jobs:
243253
GOPATH: /home/circleci/.go_workspace/
244254
GOOS: linux
245255
GOARCH: amd64
246-
GO_VERSION: "1.11.4"
256+
GO_VERSION: "1.11.5"
247257
parallelism: 1
248258
steps:
249259
- checkout
@@ -380,9 +390,7 @@ workflows:
380390
- test_cover:
381391
requires:
382392
- setup_dependencies
383-
- localnet:
384-
requires:
385-
- setup_dependencies
393+
- localnet
386394
- upload_coverage:
387395
requires:
388396
- test_cover

.github/CODEOWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
* @ebuchman @rigelrozanski @cwgoes
55

66
# Precious documentation
7-
/docs/ @zramsay @jolesbi
7+
/docs/README.md @zramsay
8+
/docs/DOCS_README.md @zramsay
9+
/docs/.vuepress/ @zramsay

CHANGELOG.md

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

3+
## 0.31.0
4+
5+
BREAKING CHANGES
6+
7+
* Gaia REST API (`gaiacli advanced rest-server`)
8+
* [\#3284](https://github.com/cosmos/cosmos-sdk/issues/3284) Rename the `name`
9+
field to `from` in the `base_req` body.
10+
* [\#3485](https://github.com/cosmos/cosmos-sdk/pull/3485) Error responses are now JSON objects.
11+
* [\#3477][distribution] endpoint changed "all_delegation_rewards" -> "delegator_total_rewards"
12+
13+
* Gaia CLI (`gaiacli`)
14+
- [#3399](https://github.com/cosmos/cosmos-sdk/pull/3399) Add `gaiad validate-genesis` command to facilitate checking of genesis files
15+
- [\#1894](https://github.com/cosmos/cosmos-sdk/issues/1894) `version` prints out short info by default. Add `--long` flag. Proper handling of `--format` flag introduced.
16+
- [\#3465](https://github.com/cosmos/cosmos-sdk/issues/3465) `gaiacli rest-server` switched back to insecure mode by default:
17+
- `--insecure` flag is removed.
18+
- `--tls` is now used to enable secure layer.
19+
- [\#3451](https://github.com/cosmos/cosmos-sdk/pull/3451) `gaiacli` now returns transactions in plain text including tags.
20+
- [\#3497](https://github.com/cosmos/cosmos-sdk/issues/3497) `gaiad init` now takes moniker as required arguments, not as parameter.
21+
* [\#3501](https://github.com/cosmos/cosmos-sdk/issues/3501) Change validator
22+
address Bech32 encoding to consensus address in `tendermint-validator-set`.
23+
24+
* Gaia
25+
* [\#3457](https://github.com/cosmos/cosmos-sdk/issues/3457) Changed governance tally validatorGovInfo to use sdk.Int power instead of sdk.Dec
26+
* [\#3495](https://github.com/cosmos/cosmos-sdk/issues/3495) Added Validator Minimum Self Delegation
27+
* Reintroduce OR semantics for tx fees
28+
29+
* SDK
30+
* [\#2513](https://github.com/cosmos/cosmos-sdk/issues/2513) Tendermint updates are adjusted by 10^-6 relative to staking tokens,
31+
* [\#3487](https://github.com/cosmos/cosmos-sdk/pull/3487) Move HTTP/REST utilities out of client/utils into a new dedicated client/rest package.
32+
* [\#3490](https://github.com/cosmos/cosmos-sdk/issues/3490) ReadRESTReq() returns bool to avoid callers to write error responses twice.
33+
* [\#3502](https://github.com/cosmos/cosmos-sdk/pull/3502) Fixes issue when comparing genesis states
34+
* [\#3514](https://github.com/cosmos/cosmos-sdk/pull/3514) Various clean ups:
35+
- Replace all GetKeyBase\* functions family in favor of NewKeyBaseFromDir and NewKeyBaseFromHomeFlag.
36+
- Remove Get prefix from all TxBuilder's getters.
37+
* [\#3522](https://github.com/cosmos/cosmos-sdk/pull/3522) Get rid of double negatives: Coins.IsNotNegative() -> Coins.IsAnyNegative().
38+
* [\#3561](https://github.com/cosmos/cosmos-sdk/issues/3561) Don't unnecessarily store denominations in staking
39+
40+
41+
FEATURES
42+
43+
* Gaia REST API
44+
* [\#2358](https://github.com/cosmos/cosmos-sdk/issues/2358) Add distribution module REST interface
45+
46+
* Gaia CLI (`gaiacli`)
47+
* [\#3429](https://github.com/cosmos/cosmos-sdk/issues/3429) Support querying
48+
for all delegator distribution rewards.
49+
* [\#3449](https://github.com/cosmos/cosmos-sdk/issues/3449) Proof verification now works with absence proofs
50+
* [\#3484](https://github.com/cosmos/cosmos-sdk/issues/3484) Add support
51+
vesting accounts to the add-genesis-account command.
52+
53+
* Gaia
54+
- [\#3397](https://github.com/cosmos/cosmos-sdk/pull/3397) Implement genesis file sanitization to avoid failures at chain init.
55+
* [\#3428](https://github.com/cosmos/cosmos-sdk/issues/3428) Run the simulation from a particular genesis state loaded from a file
56+
57+
* SDK
58+
* [\#3270](https://github.com/cosmos/cosmos-sdk/issues/3270) [x/staking] limit number of ongoing unbonding delegations /redelegations per pair/trio
59+
* [\#3477][distribution] new query endpoint "delegator_validators"
60+
* [\#3514](https://github.com/cosmos/cosmos-sdk/pull/3514) Provided a lazy loading implementation of Keybase that locks the underlying
61+
storage only for the time needed to perform the required operation. Also added Keybase reference to TxBuilder struct.
62+
* [types] [\#2580](https://github.com/cosmos/cosmos-sdk/issues/2580) Addresses now Bech32 empty addresses to an empty string
63+
64+
65+
IMPROVEMENTS
66+
67+
* Gaia REST API
68+
* [\#3284](https://github.com/cosmos/cosmos-sdk/issues/3284) Update Gaia Lite
69+
REST service to support the following:
70+
* Automatic account number and sequence population when fields are omitted
71+
* Generate only functionality no longer requires access to a local Keybase
72+
* `from` field in the `base_req` body can be a Keybase name or account address
73+
* [\#3423](https://github.com/cosmos/cosmos-sdk/issues/3423) Allow simulation
74+
(auto gas) to work with generate only.
75+
* [\#3514](https://github.com/cosmos/cosmos-sdk/pull/3514) REST server calls to keybase does not lock the underlying storage anymore.
76+
* [\#3523](https://github.com/cosmos/cosmos-sdk/pull/3523) Added `/tx/encode` endpoint to serialize a JSON tx to base64-encoded Amino.
77+
78+
* Gaia CLI (`gaiacli`)
79+
* [\#3476](https://github.com/cosmos/cosmos-sdk/issues/3476) New `withdraw-all-rewards` command to withdraw all delegations rewards for delegators.
80+
* [\#3497](https://github.com/cosmos/cosmos-sdk/issues/3497) `gaiad gentx` supports `--ip` and `--node-id` flags to override defaults.
81+
* [\#3518](https://github.com/cosmos/cosmos-sdk/issues/3518) Fix flow in
82+
`keys add` to show the mnemonic by default.
83+
* [\#3517](https://github.com/cosmos/cosmos-sdk/pull/3517) Increased test coverage
84+
* [\#3523](https://github.com/cosmos/cosmos-sdk/pull/3523) Added `tx encode` command to serialize a JSON tx to base64-encoded Amino.
85+
86+
* Gaia
87+
* [\#3418](https://github.com/cosmos/cosmos-sdk/issues/3418) Add vesting account
88+
genesis validation checks to `GaiaValidateGenesisState`.
89+
* [\#3420](https://github.com/cosmos/cosmos-sdk/issues/3420) Added maximum length to governance proposal descriptions and titles
90+
* [\#3256](https://github.com/cosmos/cosmos-sdk/issues/3256) Add gas consumption
91+
for tx size in the ante handler.
92+
* [\#3454](https://github.com/cosmos/cosmos-sdk/pull/3454) Add `--jail-whitelist` to `gaiad export` to enable testing of complex exports
93+
* [\#3424](https://github.com/cosmos/cosmos-sdk/issues/3424) Allow generation of gentxs with empty memo field.
94+
* [\#3507](https://github.com/cosmos/cosmos-sdk/issues/3507) General cleanup, removal of unnecessary struct fields, undelegation bugfix, and comment clarification in x/staking and x/slashing
95+
96+
* SDK
97+
* [\#2605] x/params add subkey accessing
98+
* [\#2986](https://github.com/cosmos/cosmos-sdk/pull/2986) Store Refactor
99+
* [\#3435](https://github.com/cosmos/cosmos-sdk/issues/3435) Test that store implementations do not allow nil values
100+
* [\#2509](https://github.com/cosmos/cosmos-sdk/issues/2509) Sanitize all usage of Dec.RoundInt64()
101+
* [\#556](https://github.com/cosmos/cosmos-sdk/issues/556) Increase `BaseApp`
102+
test coverage.
103+
* [\#3357](https://github.com/cosmos/cosmos-sdk/issues/3357) develop state-transitions.md for staking spec, missing states added to `state.md`
104+
* [\#3552](https://github.com/cosmos/cosmos-sdk/pull/3552) Validate bit length when
105+
deserializing `Int` types.
106+
107+
108+
BUG FIXES
109+
110+
* Gaia CLI (`gaiacli`)
111+
- [\#3417](https://github.com/cosmos/cosmos-sdk/pull/3417) Fix `q slashing signing-info` panic by ensuring safety of user input and properly returning not found error
112+
- [\#3345](https://github.com/cosmos/cosmos-sdk/issues/3345) Upgrade ledger-cosmos-go dependency to v0.9.3 to pull
113+
https://github.com/ZondaX/ledger-cosmos-go/commit/ed9aa39ce8df31bad1448c72d3d226bf2cb1a8d1 in order to fix a derivation path issue that causes `gaiacli keys add --recover`
114+
to malfunction.
115+
- [\#3419](https://github.com/cosmos/cosmos-sdk/pull/3419) Fix `q distr slashes` panic
116+
- [\#3453](https://github.com/cosmos/cosmos-sdk/pull/3453) The `rest-server` command didn't respect persistent flags such as `--chain-id` and `--trust-node` if they were
117+
passed on the command line.
118+
- [\#3441](https://github.com/cosmos/cosmos-sdk/pull/3431) Improved resource management and connection handling (ledger devices). Fixes issue with DER vs BER signatures.
119+
120+
* Gaia
121+
* [\#3486](https://github.com/cosmos/cosmos-sdk/pull/3486) Use AmountOf in
122+
vesting accounts instead of zipping/aligning denominations.
123+
124+
3125
## 0.30.0
4126

5127
BREAKING CHANGES

0 commit comments

Comments
 (0)