Commit Graph

138 Commits

Author SHA1 Message Date
SaReN 39f53ac22f
client: rename CliContext to Context (#6290)
* Refactor CliContext as Context

* Fix lint issues

* Fix goimports

* Fix gov tests

* Resolved ci-lint issues

* Add changelog

* Rename cliCtx to clientCtx

* Fix mocks and routes

* Add changelog

* Update changelog

* Apply suggestions from code review

Co-authored-by: Alessio Treglia <alessio@tendermint.com>

* merge client/rpc/ro{ot,utes}.go

* Update docs

* client/rpc: remove redundant client/rpc.RegisterRPCRoutes

* regenerate mocks

* Update ADRs

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-01 12:46:03 +00:00
dependabot-preview[bot] 47d0fed2b0
build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0 (#6303)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.5.1...v1.6.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: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-05-29 14:05:17 +00:00
Alexander Bezobchuk f8bad078b7
Bump Tendermint version (#6300) 2020-05-28 14:46:28 +00:00
dependabot-preview[bot] b8cac82992
build(deps): bump github.com/otiai10/copy from 1.1.1 to 1.2.0 (#6279)
* build(deps): bump github.com/otiai10/copy from 1.1.1 to 1.2.0

Bumps [github.com/otiai10/copy](https://github.com/otiai10/copy) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/otiai10/copy/releases)
- [Commits](https://github.com/otiai10/copy/compare/v1.1.1...v1.2.0)

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

* run go mod tidy

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-25 10:18:49 +02:00
Aaron Craelius 850419fffd
Tx CLI proto module interface (#5989)
* WIP

* WIP

* WIP on removing x/auth dependency from client/tx

* Revert unneeded changes

* Simplify cli tx UX

* Wire up bank tx REST routes

* Fix assignment issue

* Wire up bank NewSendTxCmd

* fix lint

* revert file

* revert file

* fix simcli

* Refactor AccountRetriever

* Fix build

* Fix build

* Fix build

* Fix integration tests

* Fix tests

* Docs, linting

* Linting

* WIP on all modules

* Implement other module new tx cmd's

* Fix cmd's

* Refactor existing GetTxCmd

* Fix cmd

* Removing deprecated code

* Update ADR 020 & CHANGELOG

* Lint

* Lint

* Lint

* Lint

* Lint

* Lint

* Lint

* Fix client/tx tests

* Fix mocks

* Fix tests

* Lint fixes

* REST tx migration

* Wire up REST

* Linting

* Update CHANGELOG, docs

* Fix tests

* lint

* Address review feedback

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

* group vars

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-05-21 21:29:34 +00:00
Alessio Treglia 0db51de37a
remove Hans (#6243) 2020-05-18 15:12:44 +00:00
dependabot-preview[bot] 763eab7e96
build(deps): bump github.com/pelletier/go-toml from 1.7.0 to 1.8.0 (#6240)
Bumps [github.com/pelletier/go-toml](https://github.com/pelletier/go-toml) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/pelletier/go-toml/releases)
- [Commits](https://github.com/pelletier/go-toml/compare/v1.7.0...v1.8.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-18 07:41:46 -04:00
dependabot-preview[bot] 9b34484879
build(deps): bump github.com/golang/protobuf from 1.4.1 to 1.4.2 (#6224)
* build(deps): bump github.com/golang/protobuf from 1.4.1 to 1.4.2

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

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

* go mod tidy

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
2020-05-15 14:08:10 +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
dependabot-preview[bot] 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
Aaron Craelius 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
dependabot-preview[bot] 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
dependabot-preview[bot] 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
dependabot-preview[bot] bdcc04347c
build(deps): bump github.com/99designs/keyring from 1.1.4 to 1.1.5 (#6068)
Bumps [github.com/99designs/keyring](https://github.com/99designs/keyring) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/99designs/keyring/releases)
- [Commits](https://github.com/99designs/keyring/compare/v1.1.4...v1.1.5)

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-04-24 11:41:24 +02:00
Alexander Bezobchuk 72a2dae3db
Bump Tendermint v0.33.4 (#6055)
* Bump go.{mod,sum}

* Update APIs from Tendermint

* Add max clock drift to client state

* Test updates

* Update APIs from Tendermint

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-22 19:21:48 +00:00
Marko 8f8ca6852a
bump various deps (#6001) 2020-04-16 12:19:18 +02:00
dependabot-preview[bot] a6588a4d2d
Bump github.com/golang/protobuf from 1.4.0-rc.4 to 1.4.0 (#5990)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.4.0-rc.4 to 1.4.0.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.4.0-rc.4...v1.4.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: Alessio Treglia <alessio@tendermint.com>
2020-04-14 17:05:05 +02:00
dependabot-preview[bot] b7397d6df5
Bump github.com/spf13/viper from 1.6.2 to 1.6.3 (#5981)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.6.2...v1.6.3)
2020-04-10 10:31:50 +02:00
dependabot-preview[bot] d10de8aad9
Bump github.com/tendermint/tendermint from 0.33.2 to 0.33.3 (#5972)
Bumps [github.com/tendermint/tendermint](https://github.com/tendermint/tendermint) from 0.33.2 to 0.33.3.
- [Release notes](https://github.com/tendermint/tendermint/releases)
- [Changelog](https://github.com/tendermint/tendermint/blob/v0.33.3/CHANGELOG.md)
- [Commits](https://github.com/tendermint/tendermint/compare/v0.33.2...v0.33.3)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-09 14:47:07 +00:00
Alessio Treglia 5098548b8c
run go mod tidy (#5937) 2020-04-06 17:40:35 +02:00
dependabot-preview[bot] 498bb185d3
Bump github.com/tendermint/iavl from 0.13.2 to 0.13.3 (#5933)
Bumps [github.com/tendermint/iavl](https://github.com/tendermint/iavl) from 0.13.2 to 0.13.3.
- [Release notes](https://github.com/tendermint/iavl/releases)
- [Changelog](https://github.com/tendermint/iavl/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tendermint/iavl/compare/v0.13.2...v0.13.3)

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: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-04-06 10:15:50 -04:00
dependabot-preview[bot] 597093d8be
Bump github.com/pelletier/go-toml from 1.6.0 to 1.7.0 (#5932)
Bumps [github.com/pelletier/go-toml](https://github.com/pelletier/go-toml) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/pelletier/go-toml/releases)
- [Commits](https://github.com/pelletier/go-toml/compare/v1.6.0...v1.7.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-04-06 10:05:44 -04:00
dependabot-preview[bot] fd2bb9aab6
Bump github.com/tendermint/tm-db from 0.5.0 to 0.5.1 (#5897)
Bumps [github.com/tendermint/tm-db](https://github.com/tendermint/tm-db) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/tendermint/tm-db/releases)
- [Changelog](https://github.com/tendermint/tm-db/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tendermint/tm-db/compare/v0.5.0...v0.5.1)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-31 10:04:42 -03:00
Alessio Treglia 2a7a408d35
crypto/keyring: deprecate old keybase (#5889)
Remove the Update method from the Keybase interface.

Remove redundant lazy keybase implementation altogether.

Created LegacyKeybase interface to restrict capabilities to
only those required by keys commands that deal with
legacy keybase such as update and migrate.

Rename keyring.New() -> keyring.NewLegacy().

Rename client/keys.NewKeyBaseFromDir -> NewLegacyKeyBaseFromDir.

crypto/keyiring.NewInMemory() now returns a in-memory keyring.
BackendMemory is added yet not exposed via command line
--keyring-backend flag. keys add uses it when --dry-run flag
is on.
2020-03-30 20:30:50 +02:00
dependabot-preview[bot] b6c45b76a7
Bump github.com/spf13/cobra from 0.0.6 to 0.0.7 (#5891)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 0.0.6 to 0.0.7.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v0.0.6...0.0.7)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-30 10:49:54 -03:00
Alessio Treglia 206a511fa9
Use cosmos' fork of github.com/bartekn/go-bip39 (#5867)
Thanks @fedekunze for pointing this out.
2020-03-25 00:46:10 +01:00
Alessio Treglia 1d0967c32a
run go mod tidy && make format (#5847) 2020-03-20 17:14:14 +00:00
dependabot-preview[bot] e042b35102
Bump github.com/tendermint/iavl from 0.13.1 to 0.13.2
Bumps [github.com/tendermint/iavl](https://github.com/tendermint/iavl) from 0.13.1 to 0.13.2.
- [Release notes](https://github.com/tendermint/iavl/releases)
- [Changelog](https://github.com/tendermint/iavl/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tendermint/iavl/compare/v0.13.1...v0.13.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-19 06:31:39 +00:00
Aleksandr Bezobchuk 91115fd6ab
Merge branch 'master' into bez/proto-client-init 2020-03-17 17:56:21 -04:00
dependabot-preview[bot] b7f2f310a1
Bump github.com/golang/mock from 1.4.2 to 1.4.3 (#5816)
Bumps [github.com/golang/mock](https://github.com/golang/mock) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/golang/mock/releases)
- [Changelog](https://github.com/golang/mock/blob/master/.goreleaser.yml)
- [Commits](https://github.com/golang/mock/compare/v1.4.2...v1.4.3)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-17 09:30:05 -03:00
Aleksandr Bezobchuk cc6833eeb1
Merge branch 'master' into bez/update-distr-params-doc 2020-03-16 19:05:13 -04:00
Aleksandr Bezobchuk 25f036f248
Update params doc with restrictions 2020-03-16 19:02:55 -04:00
Aleksandr Bezobchuk ba150a8e75
Merge branch 'master' into bez/proto-client-init 2020-03-16 10:49:50 -04:00
dependabot-preview[bot] e31757cfa7
Bump github.com/golang/mock from 1.4.1 to 1.4.2
Bumps [github.com/golang/mock](https://github.com/golang/mock) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/golang/mock/releases)
- [Changelog](https://github.com/golang/mock/blob/master/.goreleaser.yml)
- [Commits](https://github.com/golang/mock/compare/v1.4.1...v1.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 06:40:15 +00:00
Aleksandr Bezobchuk f60cd5a2b5
Merge branch 'master' into bez/proto-client-init 2020-03-14 12:34:34 -04:00
Marko Baricevic 54f7dbfbab
fix go.sum 2020-03-13 22:31:40 +01:00
dependabot-preview[bot] 45870eb23c
Bump github.com/tendermint/iavl from 0.13.0 to 0.13.1
Bumps [github.com/tendermint/iavl](https://github.com/tendermint/iavl) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/tendermint/iavl/releases)
- [Changelog](https://github.com/tendermint/iavl/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tendermint/iavl/compare/v0.13.0...v0.13.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-13 20:57:12 +00:00
Aleksandr Bezobchuk 62dbd4a9be
Merge branch 'master' into bez/proto-client-init 2020-03-13 14:00:47 -04:00
dependabot-preview[bot] fe999c4201
Bump github.com/golang/protobuf from 1.3.4 to 1.3.5
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.3.4...v1.3.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-13 06:24:56 +00:00
Aleksandr Bezobchuk 34f9fc439a
Implement canonical signing 2020-03-12 13:32:03 -04:00
dependabot-preview[bot] 02ade535b7
Bump github.com/tendermint/tendermint from 0.33.1 to 0.33.2 (#5788) 2020-03-12 13:48:09 +01:00
Alessio Treglia da5c6ced1d
types: add test cases (#5747)
Upgrade gomock dependency.
2020-03-04 17:49:59 +00:00
Alessio Treglia 1b78457135
Run go mod tidy (#5721) 2020-02-28 13:19:00 +00:00
dependabot-preview[bot] 8227d9e376
Bump github.com/golang/protobuf from 1.3.3 to 1.3.4 (#5707)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.3.3...v1.3.4)

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

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-27 02:47:05 -05:00
dependabot-preview[bot] 201d1cdc34
Merge PR #5701: Bump github.com/tendermint/tm-db from 0.4.0 to 0.4.1
Bumps [github.com/tendermint/tm-db](https://github.com/tendermint/tm-db) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/tendermint/tm-db/releases)
- [Changelog](https://github.com/tendermint/tm-db/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tendermint/tm-db/compare/v0.4.0...v0.4.1)

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

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-26 08:56:17 -05:00
dependabot-preview[bot] b01185d34c
Merge PR #5699: Bump github.com/rakyll/statik from 0.1.6 to 0.1.7
Bumps [github.com/rakyll/statik](https://github.com/rakyll/statik) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/rakyll/statik/releases)
- [Commits](https://github.com/rakyll/statik/compare/v0.1.6...v0.1.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-26 08:39:02 -05:00
Marko e3dc0fd4a6
Merge PR #5671: CORS - Add a Flag for CORS 2020-02-21 12:17:27 +01:00
dependabot-preview[bot] 0c0c251397
Bump github.com/spf13/cobra from 0.0.5 to 0.0.6 (#5687)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 0.0.5 to 0.0.6.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/0.0.5...v0.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-21 09:19:58 +01:00
dependabot-preview[bot] b54d07e5ce
Merge PR #5680: Bump github.com/stretchr/testify from 1.5.0 to 1.5.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.5.0...v1.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 11:16:41 +01:00
dependabot-preview[bot] 4cb77f031c
Bump github.com/stretchr/testify from 1.4.0 to 1.5.0 (#5675)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.4.0...v1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-19 10:45:10 +01:00