cosmos-sdk/client
dauTT b52ffa08e1
Implement ADR 026 (#7029)
* Add allow_governance_override_after_expiry flag to tendermint NewCreateClientCmd

* 1) Add LatestTimestamp to ClientState struct by adding a new attribute latest_timestamp to the message ClientState in proto/ibc/tendermint/tendermint.proto
2) Autogenerate x/ibc/07-tendermint/types/tendermint.pb.go by running 'make proto-gen'. Strangely, as a side effect x/distribution/types/genesis.pb.go, x/evidence/types/genesis.pb.go were also modified by the command 'make proto-gen'
3) Add Expired() function

* Fix tests

* 1) Add allow_governance_override_after_expiry flag to tendemint clientStatus
2) Add allow_governance_override_after_misbehaviour flag to tendermint ClientStatus

* Cosmetic changes

* Fix tests

* Add Unfreeze function

* Add new ClientUpdateProposal type

* Add minor fixes

* Add NewClientUpdateProposalHandler unit tests

* Fix proto-lint-docker

* Delete x/ibc/07-tendermint/tendermint_test.go

* Follow convention to put signer last in msg function signature

* 1) Add GetLatestTimestamp function  to ClientStatus interface
2) Change Expired() signature to Expired(now time.Time)

* 1) Add override flag to UpdateClient function
2) Fix tests

* Refactor HandleClientUpdateProposal

* 1) Extend exported Header interface with MarshalBinaryBare and UnmarshalBinaryBare methods
2) Move ClientUpdateProposal message to from ibc.proto to client.proto
3) Refactoring code
4) Add override flag to UpdateClient method
5) Fix tests

* 1) Uncomment tests and clean up code
2) Add basic validation of the header (ValidateBasic) when the override flag is true

* Cosmetic changes

* Add TODO comments

* Fix header MarshalBinaryBare, UnmarshalBinaryBare by using protobuf encoding/decoding

* Fix proto comments

* Fix override logic

* undo gettimestamp for solo machine and localhost

* add update after proposal func, some major refactoring in progress, various issues addressed

* fix tendermint proposal update handling

* run make proto-gen

* remove timestamp from tendemint client

* fix build issue for tm types

* apply various review comments

* add tests for 02-client functionality

* self review fixes

* typo

* update tests slightly

* update tendermint proposal handling tests

* Update x/ibc/02-client/keeper/proposal.go

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/ibc/07-tendermint/types/proposal_handle.go

Co-authored-by: Aditya <adityasripal@gmail.com>

* Update x/ibc/07-tendermint/types/proposal_handle.go

Co-authored-by: Aditya <adityasripal@gmail.com>

* apply most of @fedekunze and some of @AdityaSripal suggestions

* convert test to bools

* update docs and increase code cov

* fix build

* fix typo, remove omitempty

* add switch

* apply @fedekunze latest suggestions

* fix lint

* Update x/ibc/02-client/keeper/proposal_test.go

Co-authored-by: Christopher Goes <cwgoes@pluranimity.org>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Colin Axner <colinaxner@berkeley.edu>
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Aditya <adityasripal@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-09-04 20:59:22 +00:00
..
debug Make JSONMarshaler methods require proto.Message (#7054) 2020-08-26 09:39:38 +00:00
docs Merge PR #6426: Migrate API Server 2020-06-15 13:39:09 -04:00
flags custom testnet cmd signing algorithms (#7012) 2020-08-12 08:34:10 +00:00
grpc Implement ADR 026 (#7029) 2020-09-04 20:59:22 +00:00
grpc-gateway Add swagger for gRPC REST (#7075) 2020-08-28 18:49:08 +00:00
input client/keys: make add command's output parseable (#6603) 2020-07-05 13:22:49 +02:00
keys Add key recover test (#7183) 2020-08-28 17:29:32 +01:00
rpc tendermint: update to rc3 (#6892) 2020-08-14 13:58:53 -04:00
testutil Add SkipSequenceCheck flag in SignatureV2 for Amino signatures (#7234) 2020-09-04 17:49:07 +00:00
tx Remove GetSignatures from SigVerifiableTx (#6550) 2020-09-02 20:41:13 +00:00
account_retriever.go Merge PR #7006: auth: Update AccountRetriever 2020-08-13 10:22:16 -04:00
broadcast_test.go client: rename CliContext to Context (#6290) 2020-06-01 12:46:03 +00:00
broadcast.go refactor auths broadcast cmd in alignment with #6216 (#6713) 2020-07-17 17:17:21 +00:00
cmd_test.go testutil: add ApplyMockIODiscardOutErr, simplify existing functions (#6665) 2020-07-10 08:55:48 +02:00
cmd.go cli: refactor flag reading (#6884) 2020-07-30 16:44:22 +00:00
context_test.go Make JSONMarshaler methods require proto.Message (#7054) 2020-08-26 09:39:38 +00:00
context.go Make JSONMarshaler methods require proto.Message (#7054) 2020-08-26 09:39:38 +00:00
errors.go client: rename CliContext to Context (#6290) 2020-06-01 12:46:03 +00:00
grpc_query_test.go Replaced hardcoded 'cosmos' and 'cosmosvaloper' help references (#7056) 2020-08-17 09:04:50 +00:00
grpc_query.go gRPC gateway init (#7019) 2020-08-25 15:44:13 +00:00
query.go Rename *codec.Codec to *codec.LegacyAmino (#6991) 2020-08-10 19:41:21 +00:00
test_helpers.go Merge PR #7006: auth: Update AccountRetriever 2020-08-13 10:22:16 -04:00
tx_config.go Implement gRPC Simulate endpoint (#7035) 2020-08-24 14:41:08 +00:00
utils_test.go client: fix Paginate's arguments validation (#6205) 2020-05-13 13:14:43 +00:00
utils.go add page flag for CLI queries (#6824) 2020-07-24 08:17:11 +00:00