-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local chain implementation & basic tests #422
Conversation
Codecov Report
@@ Coverage Diff @@
## master #422 +/- ##
=========================================
+ Coverage 13.6% 39.0% +25.4%
=========================================
Files 69 156 +87
Lines 3752 11197 +7445
Branches 1374 4308 +2934
=========================================
+ Hits 513 4377 +3864
- Misses 2618 6194 +3576
- Partials 621 626 +5
Continue to review full report at Codecov.
|
@@ -19,7 +19,7 @@ use crate::ics02_client::error::{Error, Kind}; | |||
use crate::ics24_host::identifier::ClientId; | |||
use crate::tx_msg::Msg; | |||
|
|||
const TYPE_MSG_CREATE_CLIENT: &str = "create_client"; | |||
pub const TYPE_URL: &str = "/ibc.core.client.v1.MsgCreateClient"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: Introduced these public constants in all messages to be able to use them in pattern match
ing, which is useful in the ICS26 handler:
Ok(key) | ||
} | ||
|
||
fn build_client_state(&self, height: ICSHeight) -> Result<Self::ClientState, Error> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These methods are unchanged, just moved around to appear in the same order here as in trait Chain
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great work!
This reverts commit 43bd008. In anticipation of merging master into this dev branch..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a couple of comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks Adi!
* Attemptin integration at the level of Chain trait * Removed rpc client from trait Chain * Removed ChainConfig from trait Chain * Minor fixes as follow-up from informalsystems#364 * Impl generic runtime instantiation. * Migrated CLIs to use generic runtime spawn. * Added mock light client. First test (incomplete impl). * Almost ready to send_tx (mock has to be mutable). * Added chain executor. * Mutable chain in send_tx, simplified spawn.After review w/ Anca & Romain * impl CosmosSDKChain cleanup * Adapted mock context, ICS18 & 26 to correct abstractions. * Cleaned up Msg trait, added const TYPE_URL. * Basic light client impl to complete create client test. * Removed clippy allow exception * Updated changelog * Revert "Updated changelog" This reverts commit 43bd008. In anticipation of merging master into this dev branch.. * Redid the changelog * After Anca's comments
Closes: #158
For contributor use:
docs/
) and code comments.Files changed
in the Github PR explorer.