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

Release v0.34.0 (develop) #4086

Merged
merged 47 commits into from Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
7ec3d3d
update docs for mainnet
gamarin2 Mar 8, 2019
1662d6b
finalize mainnet docs
gamarin2 Mar 11, 2019
d563a26
bez review
gamarin2 Mar 11, 2019
3f87671
Apply suggestions from code review
jackzampolin Mar 11, 2019
e111162
Update docs/gaia/delegator-guide-cli.md
jackzampolin Mar 11, 2019
5b5960c
fix version
gamarin2 Mar 12, 2019
9e446df
melekes review
gamarin2 Mar 13, 2019
85b0733
Apply suggestions from code review
cwgoes Mar 13, 2019
bd1b693
chris review
gamarin2 Mar 13, 2019
f39cc0d
typo fix
gamarin2 Mar 13, 2019
ea0db50
Merge PR #3855: Mainnet docs update to master
jackzampolin Mar 13, 2019
ce82e01
Merge PR #3922: DOCS: gamarin/master docs update
gamarin2 Mar 18, 2019
da17a6d
Merge PR #3999: Fix distribution zero height export bug
rigelrozanski Apr 2, 2019
1822dee
Update CHANGELOG
alexanderbez Apr 2, 2019
7d85a06
Fix link in changelog
alexanderbez Apr 2, 2019
cc534d7
Remove pending log
alexanderbez Apr 2, 2019
d0152b3
Fix version in changelog
alexanderbez Apr 2, 2019
32327e8
Merge branch 'master' into release/v0.33.1
jackzampolin Apr 2, 2019
fd957f2
Update CHANGELOG
alexanderbez Apr 3, 2019
d8833d7
Remove pending files
alexanderbez Apr 3, 2019
ecba8a1
Merge PR #4037: Fix doc conflicts
gamarin2 Apr 3, 2019
0e55b6e
Merge PR #4028: Hex Encode Data in Tx Responses
alexanderbez Apr 3, 2019
1024562
Fix pending log entry
alexanderbez Apr 3, 2019
fbc3fcb
Merge branch 'master' into release/v0.34.0
alexanderbez Apr 3, 2019
0f3363e
Merge pull request #4024 from cosmos/release/v0.33.1
ebuchman Apr 3, 2019
51f2507
Merge branch 'master' into release/v0.34.0
alexanderbez Apr 3, 2019
9ac6d7b
Update Tendermint to use release/v0.31.0-dev0-fix
alexanderbez Apr 3, 2019
b3b988b
Use tagged version instead of commit
alexanderbez Apr 3, 2019
138466e
Update Test_multiSigKey_Properties
alexanderbez Apr 3, 2019
c87c556
Update CHANGELOG
alexanderbez Apr 3, 2019
dba3369
Remove module files
alexanderbez Apr 3, 2019
2c48238
crisis manual
rigelrozanski Apr 3, 2019
7f1b46e
Merge PR #4041: Manual for the Crisis Module
jackzampolin Apr 3, 2019
f6985c8
Merge pull request #4039 from cosmos/release/v0.33.2
ebuchman Apr 3, 2019
cbc9ab0
Merge branch 'master' into release/v0.34.0
alexanderbez Apr 3, 2019
3361871
Merge PR #4047: Fix queryDelegationRewards
alexanderbez Apr 4, 2019
1a8ab1c
Merge PR #4019: Update Docs from Staging
gamarin2 Apr 5, 2019
576eb51
Merge PR #4058: Fix DecCoins Bugs
alexanderbez Apr 5, 2019
bec4689
Merge PR #4023: Genesis port script v0.33.x to v0.34.0
fedekunze Apr 8, 2019
c255764
Add back IOTA time in consensus params
alexanderbez Apr 8, 2019
ace9910
Update change log
alexanderbez Apr 10, 2019
38e3fdf
Merge PR #4094: Account for Rounding Errors in Distribution Calculations
rigelrozanski Apr 10, 2019
f8b9a60
Fix docs config
alexanderbez Apr 10, 2019
de72066
Remove panic on zero input during MulDecTruncate
alexanderbez Apr 11, 2019
927f76f
Update Tendermint to v0.31.4
jackzampolin Apr 12, 2019
0f7877c
Merge pull request #4107 from cosmos/jack/tm-update
jackzampolin Apr 12, 2019
046932b
Merge branch 'develop' into release/v0.34.0
alexanderbez Apr 15, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,6 +7,7 @@
*.swn
.vscode
.idea
*.pyc

# Build
vendor
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .pending/breaking/gaiacli/Remove-REST-server-s

This file was deleted.

1 change: 0 additions & 1 deletion .pending/breaking/sdk/3245-Rename-validato

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .pending/bugfixes/gaia/3974-Fix-go-env-sett

This file was deleted.

1 change: 0 additions & 1 deletion .pending/bugfixes/gaia/3996-Change-make-get

This file was deleted.

1 change: 0 additions & 1 deletion .pending/bugfixes/gaiacli/3883-Remove-Height-F

This file was deleted.

1 change: 0 additions & 1 deletion .pending/bugfixes/gaiacli/3899-Using-gaiacli-c

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .pending/bugfixes/sdk/3977-Fix-docker-imag

This file was deleted.

1 change: 0 additions & 1 deletion .pending/features/gaia/2935-optionally-asse

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .pending/features/sdk/2935-New-module-Cris

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions .pending/improvements/gaia/3819-Simulation-refa

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions .pending/improvements/gaia/4018-create-genesis-
@@ -0,0 +1 @@
#4018 create genesis port script for release v.0.34.0
alexanderbez marked this conversation as resolved.
Show resolved Hide resolved
1 change: 0 additions & 1 deletion .pending/improvements/gaiacli/3833-Modify-stake-to

This file was deleted.

1 change: 0 additions & 1 deletion .pending/improvements/gaiacli/3841-Add-indent-to-J

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .pending/improvements/sdk/3752-Explanatory-doc

This file was deleted.

1 change: 0 additions & 1 deletion .pending/improvements/sdk/3801-baseapp-safety-improvements

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions .pending/improvements/sdk/3907-Drop-dep-in-fav

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .pending/improvements/sdk/3940-Codespace-shoul

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion .pending/improvements/sdk/926-circuit-breaker-

This file was deleted.

1 change: 0 additions & 1 deletion .pending/improvements/sdk/Fixed-various-linter

This file was deleted.

161 changes: 161 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,166 @@
# Changelog

* [0.34.0](#0340)
* [Breaking Changes](#breaking-changes)
* [Gaia](#gaia)
* [Gaia CLI](#gaia-cli)
* [SDK](#sdk)
* [Tendermint](#tendermint)
* [New features](#new-features)
* [SDK](#sdk-1)
* [Gaia](#gaia-1)
* [Gaia CLI](#gaia-cli-1)
* [Gaia REST API](#gaia-rest-api)
* [Improvements](#improvements)
* [Gaia](#gaia-2)
* [Gaia CLI](#gaia-cli-2)
* [SDK](#sdk-2)
* [Bug Fixes](#bug-fixes)
* [Gaia](#gaia-3)
* [Gaia CLI](#gaia-cli-3)
* [SDK](#sdk-3)
* [0.33.2](#0332)
* [Improvements](#improvements-1)
* [Tendermint](#tendermint-1)
* [0.33.1](#0331)
* [Bug Fixes](#bug-fixes-1)
* [Gaia](#gaia-4)

## 0.34.0

### Breaking Changes

#### Gaia

* [\#3463](https://github.com/cosmos/cosmos-sdk/issues/3463) Revert bank module handler fork (re-enables transfers)
* [\#3875](https://github.com/cosmos/cosmos-sdk/issues/3875) Replace `async` flag with `--broadcast-mode` flag where the default
value is `sync`. The `block` mode should not be used. The REST client now
uses `mode` parameter instead of the `return` parameter.

#### Gaia CLI

* [\#3938](https://github.com/cosmos/cosmos-sdk/issues/3938) Remove REST server's SSL support altogether.

#### SDK

* [\#3245](https://github.com/cosmos/cosmos-sdk/issues/3245) Rename validator.GetJailed() to validator.IsJailed()
* [\#3516](https://github.com/cosmos/cosmos-sdk/issues/3516) Remove concept of shares from staking unbonding and redelegation UX;
replaced by direct coin amount.

#### Tendermint

* [\#4029](https://github.com/cosmos/cosmos-sdk/issues/4029) Upgrade Tendermint to v0.31.3

### New features

#### SDK

* [\#2935](https://github.com/cosmos/cosmos-sdk/issues/2935) New module Crisis which can test broken invariant with messages
* [\#3813](https://github.com/cosmos/cosmos-sdk/issues/3813) New sdk.NewCoins safe constructor to replace bare sdk.Coins{} declarations.
* [\#3858](https://github.com/cosmos/cosmos-sdk/issues/3858) add website, details and identity to gentx cli command
* Implement coin conversion and denomination registration utilities

#### Gaia

* [\#2935](https://github.com/cosmos/cosmos-sdk/issues/2935) Optionally assert invariants on a blockly basis using `gaiad --assert-invariants-blockly`
* [\#3886](https://github.com/cosmos/cosmos-sdk/issues/3886) Implement minting module querier and CLI/REST clients.

#### Gaia CLI

* [\#3937](https://github.com/cosmos/cosmos-sdk/issues/3937) Add command to query community-pool

#### Gaia REST API

* [\#3937](https://github.com/cosmos/cosmos-sdk/issues/3937) Add route to fetch community-pool
* [\#3949](https://github.com/cosmos/cosmos-sdk/issues/3949) added /slashing/signing_infos to get signing_info for all validators

### Improvements

#### Gaia

* [\#3808](https://github.com/cosmos/cosmos-sdk/issues/3808) `gaiad` and `gaiacli` integration tests use ./build/ binaries.
* \[\#3819](https://github.com/cosmos/cosmos-sdk/issues/3819) Simulation refactor, log output now stored in ~/.gaiad/simulation/
* Simulation moved to its own module (not a part of mock)
* Logger type instead of passing function variables everywhere
* Logger json output (for reloadable simulation running)
* Cleanup bank simulation messages / remove dup code in bank simulation
* Simulations saved in `~/.gaiad/simulations/`
* "Lean" simulation output option to exclude No-ops and !ok functions (`--SimulationLean` flag)
* [\#3893](https://github.com/cosmos/cosmos-sdk/issues/3893) Improve `gaiacli tx sign` command
* Add shorthand flags -a and -s for the account and sequence numbers respectively
* Mark the account and sequence numbers required during "offline" mode
* Always do an RPC query for account and sequence number during "online" mode

#### Gaia CLI

* [\#3833](https://github.com/cosmos/cosmos-sdk/issues/3833) Modify stake to atom in gaia's doc.
* [\#3841](https://github.com/cosmos/cosmos-sdk/issues/3841) Add indent to JSON of `gaiacli keys [add|show|list]`
* [\#3859](https://github.com/cosmos/cosmos-sdk/issues/3859) Add newline to echo of `gaiacli keys ...`
* [\#3959](https://github.com/cosmos/cosmos-sdk/issues/3959) Improving error messages when signing with ledger devices fails

#### SDK

* [\#3238](https://github.com/cosmos/cosmos-sdk/issues/3238) Add block time to tx responses when querying for
txs by tags or hash.
* \[\#3752](https://github.com/cosmos/cosmos-sdk/issues/3752) Explanatory docs for minting mechanism (`docs/spec/mint/01_concepts.md`)
* [\#3801](https://github.com/cosmos/cosmos-sdk/issues/3801) `baseapp` safety improvements
* [\#3820](https://github.com/cosmos/cosmos-sdk/issues/3820) Make Coins.IsAllGT() more robust and consistent.
* [\#3828](https://github.com/cosmos/cosmos-sdk/issues/3828) New sdkch tool to maintain changelogs
* [\#3864](https://github.com/cosmos/cosmos-sdk/issues/3864) Make Coins.IsAllGTE() more consistent.
* [\#3907](https://github.com/cosmos/cosmos-sdk/issues/3907): dep -> go mod migration
* Drop dep in favor of go modules.
* Upgrade to Go 1.12.1.
* [\#3917](https://github.com/cosmos/cosmos-sdk/issues/3917) Allow arbitrary decreases to validator commission rates.
* [\#3937](https://github.com/cosmos/cosmos-sdk/issues/3937) Implement community pool querier.
* [\#3940](https://github.com/cosmos/cosmos-sdk/issues/3940) Codespace should be lowercase.
* [\#3986](https://github.com/cosmos/cosmos-sdk/issues/3986) Update the Stringer implementation of the Proposal type.
* [\#926](https://github.com/cosmos/cosmos-sdk/issues/926) circuit breaker high level explanation
* [\#3896](https://github.com/cosmos/cosmos-sdk/issues/3896) Fixed various linters warnings in the context of the gometalinter -> golangci-lint migration
* [\#3916](https://github.com/cosmos/cosmos-sdk/issues/3916) Hex encode data in tx responses

### Bug Fixes

#### Gaia

* [\#3825](https://github.com/cosmos/cosmos-sdk/issues/3825) Validate genesis before running gentx
* [\#3889](https://github.com/cosmos/cosmos-sdk/issues/3889) When `--generate-only` is provided, the Keybase is not used and as a result
the `--from` value must be a valid Bech32 cosmos address.
* 3974 Fix go env setting in installation.md
* 3996 Change 'make get_tools' to 'make tools' in DOCS_README.md.

#### Gaia CLI

* [\#3883](https://github.com/cosmos/cosmos-sdk/issues/3883) Remove Height Flag from CLI Queries
* [\#3899](https://github.com/cosmos/cosmos-sdk/issues/3899) Using 'gaiacli config node' breaks ~/config/config.toml

#### SDK

* [\#3837](https://github.com/cosmos/cosmos-sdk/issues/3837) Fix `WithdrawValidatorCommission` to properly set the validator's remaining commission.
* [\#3870](https://github.com/cosmos/cosmos-sdk/issues/3870) Fix DecCoins#TruncateDecimal to never return zero coins in
either the truncated coins or the change coins.
* [\#3915](https://github.com/cosmos/cosmos-sdk/issues/3915) Remove ';' delimiting support from ParseDecCoins
* [\#3977](https://github.com/cosmos/cosmos-sdk/issues/3977) Fix docker image build
* [\#4020](https://github.com/cosmos/cosmos-sdk/issues/4020) Fix queryDelegationRewards by returning an error
when the validator or delegation do not exist.
* [\#4050](https://github.com/cosmos/cosmos-sdk/issues/4050) Fix DecCoins APIs
where rounding or truncation could result in zero decimal coins.

## 0.33.2

### Improvements

#### Tendermint

* Upgrade Tendermint to `v0.31.0-dev0-fix0` which includes critical security fixes.

## 0.33.1

### Bug Fixes

#### Gaia

* [\#3999](https://github.com/cosmos/cosmos-sdk/pull/3999) Fix distribution delegation for zero height export bug

## 0.33.0

BREAKING CHANGES
Expand Down
24 changes: 18 additions & 6 deletions client/lcd/lcd_test.go
Expand Up @@ -611,7 +611,9 @@ func TestSubmitProposal(t *testing.T) {
require.Equal(t, uint32(0), resultTx.Code)

var proposalID uint64
cdc.MustUnmarshalBinaryLengthPrefixed(resultTx.Data, &proposalID)
bz, err := hex.DecodeString(resultTx.Data)
require.NoError(t, err)
cdc.MustUnmarshalBinaryLengthPrefixed(bz, &proposalID)

// verify balance
acc = getAccount(t, port, addr)
Expand Down Expand Up @@ -646,7 +648,9 @@ func TestDeposit(t *testing.T) {
require.Equal(t, uint32(0), resultTx.Code)

var proposalID uint64
cdc.MustUnmarshalBinaryLengthPrefixed(resultTx.Data, &proposalID)
bz, err := hex.DecodeString(resultTx.Data)
require.NoError(t, err)
cdc.MustUnmarshalBinaryLengthPrefixed(bz, &proposalID)

// verify balance
acc = getAccount(t, port, addr)
Expand Down Expand Up @@ -703,7 +707,9 @@ func TestVote(t *testing.T) {
require.Equal(t, uint32(0), resultTx.Code)

var proposalID uint64
cdc.MustUnmarshalBinaryLengthPrefixed(resultTx.Data, &proposalID)
bz, err := hex.DecodeString(resultTx.Data)
require.NoError(t, err)
cdc.MustUnmarshalBinaryLengthPrefixed(bz, &proposalID)

// verify balance
acc = getAccount(t, port, addr)
Expand Down Expand Up @@ -804,18 +810,24 @@ func TestProposalsQuery(t *testing.T) {
// Addr1 proposes (and deposits) proposals #1 and #2
resultTx := doSubmitProposal(t, port, seeds[0], names[0], passwords[0], addrs[0], halfMinDeposit, fees)
var proposalID1 uint64
cdc.MustUnmarshalBinaryLengthPrefixed(resultTx.Data, &proposalID1)
bz, err := hex.DecodeString(resultTx.Data)
require.NoError(t, err)
cdc.MustUnmarshalBinaryLengthPrefixed(bz, &proposalID1)
tests.WaitForHeight(resultTx.Height+1, port)

resultTx = doSubmitProposal(t, port, seeds[0], names[0], passwords[0], addrs[0], halfMinDeposit, fees)
var proposalID2 uint64
cdc.MustUnmarshalBinaryLengthPrefixed(resultTx.Data, &proposalID2)
bz, err = hex.DecodeString(resultTx.Data)
require.NoError(t, err)
cdc.MustUnmarshalBinaryLengthPrefixed(bz, &proposalID2)
tests.WaitForHeight(resultTx.Height+1, port)

// Addr2 proposes (and deposits) proposals #3
resultTx = doSubmitProposal(t, port, seeds[1], names[1], passwords[1], addrs[1], halfMinDeposit, fees)
var proposalID3 uint64
cdc.MustUnmarshalBinaryLengthPrefixed(resultTx.Data, &proposalID3)
bz, err = hex.DecodeString(resultTx.Data)
require.NoError(t, err)
cdc.MustUnmarshalBinaryLengthPrefixed(bz, &proposalID3)
tests.WaitForHeight(resultTx.Height+1, port)

// Addr2 deposits on proposals #2 & #3
Expand Down
2 changes: 1 addition & 1 deletion cmd/gaia/cmd/gaiad/main.go
Expand Up @@ -55,7 +55,7 @@ func main() {

// prepare and add flags
executor := cli.PrepareBaseCmd(rootCmd, "GA", app.DefaultNodeHome)
rootCmd.Flags().BoolVar(&assertInvariantsBlockly, flagAssertInvariantsBlockly,
rootCmd.PersistentFlags().BoolVar(&assertInvariantsBlockly, flagAssertInvariantsBlockly,
false, "Assert registered invariants on a blockly basis")
err := executor.Execute()
if err != nil {
Expand Down
28 changes: 28 additions & 0 deletions contrib/export/lib.py
@@ -0,0 +1,28 @@
#!/usr/bin/env python3

import argparse
import json
import sys


def init_default_argument_parser(prog_desc, default_chain_id, default_start_time):
parser = argparse.ArgumentParser(description=prog_desc)
parser.add_argument(
'exported_genesis',
help='exported genesis.json file',
type=argparse.FileType('r'), default=sys.stdin,
)
parser.add_argument('--chain-id', type=str, default=default_chain_id)
parser.add_argument('--start-time', type=str, default=default_start_time)
return parser


def main(argument_parser, process_genesis_func):
args = argument_parser.parse_args()
if args.chain_id.strip() == '':
sys.exit('chain-id required')

genesis = json.loads(args.exported_genesis.read())

print(json.dumps(process_genesis_func(
genesis=genesis, parsed_args=args,), indent=True))