Skip to content

Commit

Permalink
ADR 003: Handler implementation (informalsystems#197)
Browse files Browse the repository at this point in the history
* Add doc comments and error types to ICS 02 module

* Rename ics02_client::client module to ics02_client::raw

* Replace message traits with structs

* Fix formatting error

* Add implementation specific error kind

* Fixup client message structs definitions

* Fix clippy warnings

* Add basic handler definitions

* Add initial implementation of CreateClient handler

* Add implementation of ClientDef for Tendermint

* Re-use existing traits

* Add valid test for create_client handler

* Add tests for case where client already exists

* WIP: Update client handler

* Add initial proposal for ADR 003

* Rename file to adr-003-handler-implementation.md

* Replace "handler" with "message processor" in plain text

* Formatting

* Fix create client handler tests

* Rename module handler to dispatch

* Formatting

* Add sketch of update client processor

* Move mocks into their own module

* Remove genericity over client def in client submodule

* Lift chain specific data into an enum

* Update ADR to match new handling of chain-specific data

* Fix the connection specifics in ADR

* Added Tendermint to the new "Any*" enums

Added client state to MsgCreateAnyClient, result, keeper, etc

Test for concrete tendermint MsgCreateClient

Updated TM client and consensus states, MsgCreateClient

Extract client and consensus states from MsgCreateClient for TM

Extract consensus state from MsgUpdateClient for TM

Co-authored-by: Adi Seredinschi <[email protected]>
Co-authored-by: Anca Zamfir <[email protected]>
  • Loading branch information
3 people authored Aug 19, 2020
1 parent d25b11f commit 9b319d9
Show file tree
Hide file tree
Showing 6 changed files with 689 additions and 10 deletions.
Loading

0 comments on commit 9b319d9

Please sign in to comment.