Commit Graph
6669 Commits
Author SHA1 Message Date
Alessio TregliaandFederico Kunze 9b6e694a00 client: fix Paginate's arguments validation (#6205)
Check both page and defLimit against negative values.

Follow up of #6205

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-13 13:14:43 +00:00
dependabot-preview[bot] d9bcca2601 build(deps): bump gopkg.in/yaml.v2 from 2.2.8 to 2.3.0 (#6207)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.8 to 2.3.0.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.8...v2.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-13 08:58:50 -04:00
Federico Kunze a08aa41213 ibc/07-tendermint: variable trust-level (#6206)
* ibc/07-tendermint: variable trust-level

* update client state and tests

* fix tests

* address comments from review

* cli: define trust-level as flag
2020-05-13 01:10:25 +00:00
Federico Kunze b93300288e x/ibc: stateful clients (#6202)
Closes: #6198
2020-05-12 21:13:41 +02:00
atheeshp da92383bff Bank proto buf migration (#6166)
* Bank proto buf migration

* WIP: Added proto code for bank

* added supply on bank module

* Bank module proto migration

* formatter applied

* Added comment for RegisterInterfaceTypes in bank/module
2020-05-12 17:35:05 +00:00
Marko 2f68c4166d fix import to sdk (#6201) 2020-05-12 17:12:26 +00:00
Marko 4173ea5eba types: add bech32 (#6200)
* bring over bech32 from tendermint

* fix spacing

* address comment

* change to fmt.Errorf

* space dem comments

* remove err cheks
2020-05-12 16:53:30 +00:00
Yongwoo Lee d4882606d5 Merge PR #6195: Add codespace to broadcast(sync/async) response 2020-05-12 11:26:54 -04:00
dependabot-preview[bot] e01a56e5bf build(deps): bump vuepress-theme-cosmos from 1.0.163 to 1.0.164 in /docs (#6196)
Bumps [vuepress-theme-cosmos](https://github.com/cosmos/vuepress-theme-cosmos) from 1.0.163 to 1.0.164.
- [Release notes](https://github.com/cosmos/vuepress-theme-cosmos/releases)
- [Commits](https://github.com/cosmos/vuepress-theme-cosmos/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-12 09:20:34 -04:00
Federico Kunze 80be50319c baseapp: track events emitted from AnteHandler (#6187)
* baseapp: append AnteHandler events to tx result

* changelog

* baseapp tests

* fix test

* update changelog

* update log

* move event out from conditional

* minor update

* fix panic

* add switch case

* remove result on error

* change conditional

* check for event len

* update tests
2020-05-11 18:23:41 -04:00
Federico Kunze 138e0b074f x/ibc: log fixes (#6184)
* x/ibc: log fixes

* fix test
2020-05-11 17:17:05 +00:00
Federico Kunze f88d9ab586 x/ibc: create localhost client on InitGenesis (#6170)
closes: #6159
2020-05-11 17:46:00 +02:00
dependabot-preview[bot]andAlessio Treglia f37308778a build(deps): bump github.com/spf13/viper from 1.6.3 to 1.7.0 (#6183)
* build(deps): bump github.com/spf13/viper from 1.6.3 to 1.7.0

Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.6.3 to 1.7.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.6.3...v1.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* refresh go.sum

* run make format

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-11 10:22:36 +02:00
Alexander Bezobchuk 8bd8d107a3 flags: fix "max-body-bytes" flag description (#6180) 2020-05-10 15:21:24 -04:00
atheeshp dd148fcd7a gov: port integration tests (#6120) 2020-05-10 16:25:27 +02:00
Alessio Treglia df4335a2f6 CODEOWNERS: add Jonathan (#6177) 2020-05-09 00:03:30 +02:00
Markoandmergify[bot] bef3689245 linter: enable nolintlint (#6162)
* nolintlint enable

* remove space

* fix tests

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-05-08 08:46:12 +00:00
Adam Bozanich 4e328d75db client/keys/parse: honor config changes (#6172)
`keys parse` uses the global configuration before
before client applications have had a chance to
apply their settings.

This change adds a `GetSealedConfig()` helper
that waits for the config to be sealed before
returning it.

fixes #5091
addresses #5283
2020-05-08 10:30:55 +02:00
Alessio Treglia c8c47786da x/ibc: fix int overflow (#6171)
x/ibc/07-tendermint/types/test_utils.go: Calculate and use
machine-dependent maxInt instead of causing int overflow by
passing math.MaxInt64.

Closes: #6130
2020-05-07 22:11:29 -04:00
Alexander Bezobchuk fe9fe87693 REST: Add 'max-body-bytes' Flag (#6167)
* Add max-body-bytes flag for REST service

* Add changelog entries

* Change types
2020-05-07 17:49:08 +00:00
AdityaandChristopher Goes b3cada1001 x/ibc: fix event emission on msgs (#6161)
* add sender events into signer, and update events into keeper

* move all handler functionality to keeper for update

Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
2020-05-07 09:55:26 -04:00
54ed8d7a2c lint: official action (#6156)
* switch from review dog to official golangci action

* fix release

* disable nolintlint and wsl

* fix linting issues

* have name adhere to required

* add timeout

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-05-07 09:40:49 +00:00
Aaron CraeliusandFederico Kunze 9d022c17b7 Add amino compatibility layer for proto Any (#6151)
* WIP on Any amino compatibility layer

* Add tests & JSON

* Refactor Marshal/UnmarshalAny

* remove extra test

* Add support for nested Any's

* Add docs

* Update codec/any_test.go

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-06 20:47:03 +00:00
Federico Kunze f3e3a30e5e x/ibc: add missing query height (#6157) 2020-05-06 13:06:35 -04:00
Federico Kunze ff24a24ae6 x/ibc: query all client connection paths (#6155)
* x/ibc: query all client connections

* add queries to CLI and REST

* add missing height

* update swagger
2020-05-06 15:56:49 +00:00
d7ebee74e7 x/ibc: proto migration pt 1 (#6097)
* x/ibc: proto migration pt 1

* fix tests

* fixes and godoc

* yaml tags

* rm changelog

* address comments from review

* fix some tests

* fix tests

* add _UNSPECIFIED suffix for default enums

* Update app

* protobuf Any fixes

* use gogoproto

* fix tests

* wrap all messages

* address @alexanderbez comments

* update proto files

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-05-06 11:17:50 -04:00
dependabot-preview[bot]andFederico Kunze bb0a1edf8e build(deps): bump github.com/regen-network/cosmos-proto (#6154)
Bumps [github.com/regen-network/cosmos-proto](https://github.com/regen-network/cosmos-proto) from 0.2.2 to 0.3.0.
- [Release notes](https://github.com/regen-network/cosmos-proto/releases)
- [Commits](https://github.com/regen-network/cosmos-proto/compare/v0.2.2...v0.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-05-06 13:20:43 +00:00
Alessio Treglia b09eef7298 run make format (#6153) 2020-05-06 13:47:53 +02:00
SaReN c211488b0b x/auth: cli tests (#6152)
* Add cli tests for auth

* Format imports

* Fix auth tests

* Remove keys in validate sign call

* Eliminate defer in tests

* Format imports

* Test commit
2020-05-05 21:16:37 -04:00
Marko 7cf1efddbe release: procedure change (#6148) 2020-05-05 18:47:05 -04:00
Marko 1db967bd2e Merge PR #6150: update master with release changelog 2020-05-05 16:10:48 -04:00
MarkoandAlexander Bezobchuk 9e4ee7bf18 add comment bot for PR checklist (#6149)
* add comment bot and remove checklist from pr template

* give the bot some speech

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-05 19:43:01 +00:00
Alexander Bezobchuk 2f718c8d66 Remove evidence codec (#6146) 2020-05-05 19:13:36 +00:00
dependabot-preview[bot]andMarko Baricevic 2a82c691a2 build(deps): bump github.com/golang/protobuf from 1.4.0 to 1.4.1 (#6141)
* build(deps): bump github.com/golang/protobuf from 1.4.0 to 1.4.1

Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.4.0...v1.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix build

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Marko Baricevic <marbar3778@yahoo.com>
2020-05-05 18:00:40 +00:00
f2a331fddb Fix Timeout Handling (#6118)
* fix timeout

* remove print statement

* fix tests

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-05 14:46:13 +00:00
Alessio Treglia 680420432d CONTRIBUTING.md: use git tag -a for release tags (#6143)
git describe by default use annotated tags.

Rationale:

  Annotated tags, however, are stored as full objects in the Git
  database. They’re checksummed; contain the tagger name, email,
  and date; have a tagging message; and can be signed and verified
  with GNU Privacy Guard (GPG). It’s generally recommended that you
  create annotated tags so you can have all this information; but
  if you want a temporary tag or for some reason don’t want to keep
  the other information, lightweight tags are available too.

From: https://git-scm.com/book/en/v2/Git-Basics-Tagging#tagging
2020-05-05 16:31:41 +02:00
Aaron Craelius 386217209d Merge PR #6076: Proto Any init + evidence 2020-05-05 10:28:20 -04:00
SaReN 7e72e5b8a6 Add cli test for slashing (#6102)
Reference: #5951
2020-05-05 15:51:35 +02:00
Pavel 4a28dd1645 Args: cobra.ExactArgs(1) required but never used (#6140) 2020-05-05 08:43:20 +00:00
84f1261c7b Update docs/kr/intro and fix typo in docs/intro (#5979)
- update docs/kr/intro to latest documentation
- fix link typo in docs/intro/sdk-design

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-05-04 22:05:28 +00:00
Federico Kunze 106bcd5e13 default gen state (#6139) 2020-05-04 18:00:17 -04:00
Pavel 110942add6 add anotation for json/yaml marshal ibc/tendermint/header type (#6138) 2020-05-04 20:34:08 +00:00
Sebastien La DucaandAlexander Bezobchuk 18890a225b add string method to gas meter (#6137)
* add string method to gas meter

* update changelog

* Update store/types/gas.go

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-04 19:23:44 +00:00
Aditya 687d4246e5 Fix cap initialization by writing to uncached context (#6136) 2020-05-04 18:52:35 +00:00
9ec46de285 Update swagger.yaml (#6133)
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-04 14:15:42 +00:00
Alessio TregliaandAlexander Bezobchuk 2414e5bdd4 x/auth: turn sign --validate-sigantures into a standalone command (#6108)
--validate-signatures should not be a flag of the sign command
as the operation performed (transaction signatures verification)
is logically distinct.

cli_test is and has always been an horrible name for package
directory as it's very much Go anti-idiomatic - _test is the
suffix used by test packages, not directories. Plus, CLI test
cases can and should live alongside other testcases that don't
require binaries to be built beforehand. Thus:

x/module/client/cli_test/*.go -> x/module/client/cli/

Test files that require sim{cli,d} shall be tagged with // +build cli_test

With regard to cli test auxiliary functions, they should live in:

x/module/client/testutil/

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-04 13:55:16 +00:00
colin axner 54ecf7d629 bump ibc sub module error codes (#6117)
* bump ibc sub module error codes

* add godoc

* update error numbers
2020-05-04 09:02:23 -04:00
Marko 01b59db35e ci: remove swagger check (#6123) 2020-05-02 22:22:49 +02:00
MarkoandAlessio Treglia 218ec99508 various linter fixes (#6106)
x/staking: Fix all linter warnings.

Fixed warnings across base packages.

New linters:
- unparam
- nolintlint

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-02 21:26:59 +02:00
Alessio Treglia 9251812f69 add Aaron,Cory to CODEOWNERS (#6119) 2020-05-02 15:16:24 +02:00