Emmanuel T Odeke
7f69b088d9
types: fix invalid int->string conversion in benchmarks ( #6678 )
...
Fixes an invalid int->string conversion that will become
a vet error for Go1.15. The correct conversion was to use
fmt.Sprintf("COINZ_%d", i)
instead of
"COINZ_" + string(i)
Noticed during a coverage audit.
2020-07-10 12:34:43 +02:00
Amaury Martiny
d23c779b87
Fix godocs for NewTxBuilderFromFlags ( #6676 )
2020-07-10 11:55:17 +02:00
Jonathan Gimeno
6ceedc9e4f
Remove TxBuilder references to viper. ( #6653 )
...
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-07-10 11:05:35 +02:00
Alessio Treglia
255ed06eb4
testutil: add ApplyMockIODiscardOutErr, simplify existing functions ( #6665 )
2020-07-10 08:55:48 +02:00
Al
d269eaf74c
Document types/context.go code ( #6654 )
...
* document context.go code
* update CHANGELOG.md unreleased
* creates -> returns
* Update CHANGELOG.md
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
* Update types/context.go
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-09 19:14:18 +00:00
Emmanuel T Odeke
2da1a63288
Merge PR #6667 : codec: remove unused, untested and expensive MarshalIndentFromJSON
2020-07-09 14:28:27 -04:00
colin axner
03fdc9d744
x/ibc: update error messages ( #6659 )
...
* update errors in 02-client
* update errors in 03-connection
* update 04-channel errors + fixes to 03 changes
* update ibc handler errors
* tm, commitment, and verify error updates
* update ics20
* remove unnecessary wrapping
* fix various build issues
2020-07-09 12:06:08 -04:00
Alessio Treglia
a940214a49
testutil cleanup and reorg ( #6658 )
...
Prepare migrating testing auxiliary functions from tests
to testutil.
Remove local duplicates on testutil.WriteToNewTempFile().
Always favor testutil.NewTestCaseDir() over ioutil.TempDir().
Add test cases for the testing auxiliary functions.
2020-07-09 14:21:20 +02:00
Amaury Martiny
f8df05f6f1
x/upgrade: Refactor CLI to use protobuf query ( #6623 )
...
* x/upgrade: Refactor CLI to use protobuf query
* Import lint
* Use table tests
* Small tweak in setup
* Address bez cli refactor
* Address fede's review
* Remove useless func args
* Add back clientCtx to tx command
* Update comments
* Update docs
* Small refactor
* remove Init()
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-08 22:00:56 +00:00
Jonathan Gimeno
a417b38926
Remove viper in Staking module. ( #6631 )
2020-07-08 22:00:34 +02:00
Alexander Bezobchuk
b25e3fc76d
Merge PR #6651 : More CLI cleanup
2020-07-08 13:57:45 -04:00
Ira Miller
589c1a531e
Enable/disable coin transfers by denom ( #6527 )
...
* initial implementation of per denom sendenabled
* Fix for accidentally removed keyword
* Validate individual param in param array
* Lint fix
* Refactor bank params to use protobuf
Modified SendEnabled property to be part of generic Params object
Updated genesis functions to use default params structure
* Refactor simulation genesis for clarity
* update changelog for bank sendenable per denom
* fix NoOpMsg type in multisend test
* Add a coin denom send check utility function
* Additional godoc comments and clarification
* Add default send enabled parameter to bank.
Remove empty denom capability from SendEnabled parameters
Update simulation to exercise both configuration options independently
* Minor suggested improvements.
* simulation fix
* bank proto sendenabled package name removed
* Remove extra gogo proto yaml tags
* Params rename IsSendEnabled to SendEnabledDenom
* Refactor to SendEnabledCoin(s)
* update slashing test to use bank params
* Clean up change log entry for feature.
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-07-08 17:43:08 +00:00
Marko
a459b785d6
run sims on master ( #6648 )
2020-07-08 17:50:01 +02:00
Akhil Kumar P
674845c7f6
x/params: query gRPC service ( #6585 )
...
* Add grpc queries in x/params
* Modify grpc query tests format
* Modify query request and revert changes in querier
* Fix protobuf lint issues
2020-07-08 15:33:55 +00:00
Federico Kunze
3fc5a4dfc6
x/ibc: update CLI queries ( #6647 )
2020-07-08 10:57:42 -04:00
Alessio Treglia
67be012e3f
x/genutil: use HomeDir stored in ClientCtx ( #6646 )
...
Follow-up of #6636
2020-07-08 16:41:46 +02:00
Alexander Bezobchuk
33decc9779
Remove context param ( #6645 )
2020-07-08 14:25:02 +00:00
Marko
a9da918f98
ci: codecov revert to 1.0.7 ( #6642 )
...
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-07-08 13:18:54 +02:00
Akhil Kumar P
4536ca22bb
x/auth: gRPC query service ( #6565 )
...
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
2020-07-08 13:12:38 +02:00
Federico Kunze
e6bb2e7ed7
x/ibc: refactor CLI ( #6639 )
...
* x/ibc: refactor CLI
* refactor client CLI
* rename version ClientName
* Update x/ibc/09-localhost/client/cli/cli.go
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
* address comments from review
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
2020-07-08 05:57:59 -04:00
Marko
e50c8df10c
ci: bump codecov ( #6638 )
2020-07-08 11:03:23 +02:00
Alexander Bezobchuk
3de1c7d4fd
x/crisis: In-Process CLI Integration Tests ( #6634 )
...
* init commit
* fix tests
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-08 08:23:34 +00:00
Ethan Buchman
83e71049e6
x/genutil: fix HomeFlag ( #6636 )
...
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-07-08 09:02:04 +02:00
Jonathan Gimeno
c41b787e06
Merge PR #6626 : Remove viper from genutil tests
2020-07-07 14:19:32 -04:00
Alessio Treglia
86243f6a8c
fix docs build failure ( #6633 )
2020-07-07 19:56:01 +02:00
Alessio Treglia
57ac28c814
client/flags: remove NewCompletionCmd() ( #6632 )
...
The functionality was adopted tendermint upstream, see
* https://github.com/tendermint/tendermint/pull/4665
2020-07-07 19:29:30 +02:00
Alexander Bezobchuk
bc261d9e83
version: Remove Viper ( #6628 )
...
* version: remove viper
* Remove home flag gets
* fix: tests
2020-07-07 17:20:09 +00:00
Alessio Treglia
57ffe14631
Makefile: build simd with ledger support ( #6629 )
...
Makefile: parse COSMOS_BUILD_OPTIONS
Look for build options in the make's COSMOS_BUILD_OPTIONS
variable. This allows one to build simd with ledger support.
References:
* https://github.com/cosmos/gaia/pull/363
* https://github.com/tendermint/tendermint/pull/4738
fix tiny typo in nolint: statement that causes golangci-lint to
misbehave.
2020-07-07 19:10:11 +02:00
colin axner
9a029aea04
refactor connection keeper_test ( #6622 )
...
* refactor first set of keeper
* finish cleaning up keeper tests
* fix build
Co-authored-by: Aditya <adityasripal@gmail.com>
2020-07-07 16:29:47 +00:00
colin axner
b4a027cb5d
update consensus height check ( #6625 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-07 15:45:30 +00:00
Alexander Bezobchuk
8670a10564
Merge PR #6595 : Single Binary & Command Refactor
2020-07-07 11:40:46 -04:00
Alessio Treglia
ebf1583462
tests: cleanup unused functions ( #6627 )
...
Gut unnecessary test helpers.
2020-07-07 17:15:30 +02:00
Federico Kunze
0fd559e42d
x/ibc: minor fixes ( #6621 )
2020-07-07 07:33:06 -04:00
Federico Kunze
be194ca1b7
docs: improve IBC guide ( #6472 )
...
* docs: improve IBC guide
* remove module specs
* capability spec
* update capability spec
* move cap to concepts
* remove module specs
* split IBC section
* wip integration.md
* complete integration.md
* format integration.md
* docs updates
* Apply suggestions from code review
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
* fix Next links
* further readings
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
2020-07-07 06:19:36 -04:00
Aditya
7fdcdc18e0
Enforce Connection Features on Channel Opening ( #6620 )
...
* add channel open checks for supported feature
* add tests and fix bugs
* fix version tests
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-07 10:00:12 +00:00
colin axner
f163ec6765
refactor ibc ante_test ( #6610 )
...
* remove old code from ante test
* add recv packet test
* add acknowledge test
* add timeout tests
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-07 08:30:23 +00:00
Aditya
6fa295c857
fix NextSeqAck increment logic ( #6619 )
...
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.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-07-07 08:03:43 +00:00
atheeshp
58dcef15e1
x/mint: gRPC query service ( #6535 )
...
* Added grpc for mint
* changed unused params
* updated tests
* removed empty query request
* fixed lint issues
* review changes
* review changes
* migrated to use test suite
* Update x/mint/keeper/grpc_query_test.go
Co-authored-by: SaReN <sahithnarahari@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-07 07:33:43 +00:00
SaReN
a0daec2d94
x/Slashing: gRPC query service ( #6597 )
...
* Add grpc methods - slashing
* Add slashing grpc queries
* Add tests
* Remove duplicate declarations
* Add signing infos
* Update query test
* Use suite for grpc tests
* Update godoc
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.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-07-06 21:54:25 +00:00
Jonathan Gimeno
3c76084bf5
Merge PR #6596 : Genutil remove global viper
2020-07-06 17:48:54 -04:00
Alexander Bezobchuk
de7885a594
keys: CLI Remove Viper ( #6613 )
...
* init commit
* Update ListKeysCmd
* updates
* updates
* test updates
* fix tests
* keys: Fix Test_runAddCmdLedgerWithCustomCoinType
* keys: Fix Test_runAddCmdLedger
* keys: Fix Test_runAddCmdBasic
* keys: Fix root tests
* keys: Fix Test_runMigrateCmd
* keys: Fix Test_runListCmd
* keys: Fix remaining tests
2020-07-06 19:50:09 +00:00
Marko
e76a765e14
bump days before stale ( #6616 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-06 19:37:42 +00:00
Federico Kunze
f35e3b2c02
x/ibc: gRPC query service ( #6466 )
...
* x/ibc: gRPC query service
* fixes
* connection updates
* register channel query service
* update clients
* change proofs to bytes
* implement additional channel grpc queries
* unrelayed packets query
* query.proto files
* move next sequence recv query to channel client
* update REST
* wip test
* add missing cli queries
* install the right tools
* fixes
* build
* lint
* use gRPC when query proof is not requested
* connection gRPC tests
* IBC query server interface
* more gRPC channel tests
* pagination tests
* connection use query server
* connection pagination tests
* channel pagination tests
* typo
* remove buf
* Update x/ibc/03-connection/keeper/grpc_query_test.go
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
* address comments from review
* fix tests
* unrelayed packet sequences flag
* remove ClientsConnections query
* fix
Co-authored-by: colin axner <25233464+colin-axner@users.noreply.github.com>
2020-07-06 15:35:35 -04:00
Aaron Craelius
2f44fbf2ab
Add support for protobuf TxGenerator and SIGN_MODE_DIRECT ( #6385 )
...
* Add TxWrapper, encoder, decoder and DirectModeHandler
* fix pkg name
* Update API and leave test TODO's
* Update TxWrapper API
* tests for tx wrapper (#6410 )
* WIP: added test for direct mode handler
* updated code
* Add msg
* Update TxWrapper API
* Fix pubkey declaration
* Add pubkey for tests
* Fix SetFee
* Remove logs
* Avoid global var declaration for tests
* Add test for GetPubKeys
* Fix direct signing tests
* Add more test cases for GetSignBytes
* Revert SetFee API
* Remove logs
* Refactor tests
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
* Refactoring
* Refactoring
* Integrate SignatureV2 API
* Fix wrapper tests
* Fix tests
* Linting and API tweaks
* Update API
* WIP on updating API
* Fix tests
* Update to new SigVerifiableTx
* Rename
* Update docs to reflect ADR 020
* proto-gen
* proto docs
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* Add tests
* Refactor and improving test coverage
* WIP on test coverage
* WIP on test coverage
* proto-gen
* Fix CompactBitArray.Size() bug
* Rename
* Remove Builder interface
* Address review comments
* Update x/auth/tx/sigs.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/auth/tx/encoder.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Update x/auth/tx/encoder.go
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
* Address review feedback
* Fix build issues
* Resolve conflicts
* Fix ValidateBasic test coverage
* Add test for malicious multisig
Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>
Co-authored-by: anilCSE <anil@vitwit.com>
Co-authored-by: sahith-narahari <sahithnarahari@gmail.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-07-06 17:03:45 +00:00
Alexander Bezobchuk
feb69770ef
Merge PR #6609 : x/auth: CLI Remove Viper
2020-07-06 10:23:32 -04:00
colin axner
bbe245ac1d
refactor connection verify_test ( #6588 )
...
* refactor verify consensus state
* refactor connection verification
* simplify code, channel + packet commitment tests
* refactor verify ack
* refactor verify ack absence
* refactor next seq recv test
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
2020-07-06 13:37:12 +00:00
Alexander Bezobchuk
fd9cdb8ba7
Merge PR #6608 : ibc: remove viper from CLI
2020-07-06 09:25:47 -04:00
Amaury Martiny
d0cabdeb88
x/upgrade: clean-up redundant struct ( #6606 )
...
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-06 10:27:44 +00:00
Alexander Bezobchuk
51df2f2033
Module Viper Removal ( #6604 )
...
* Remove viper
* Remove viper
* Remove viper
* Skip TestCLIValidateGenesis
* remove cruft leftover
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-07-06 10:12:00 +00:00
dependabot-preview[bot]
437b035160
build(deps): bump github.com/spf13/cast from 1.3.0 to 1.3.1 ( #6605 )
...
Bumps [github.com/spf13/cast](https://github.com/spf13/cast ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/spf13/cast/releases )
- [Commits](https://github.com/spf13/cast/compare/v1.3.0...v1.3.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-07-06 04:18:35 -04:00