-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add serialization for various structs and enums #653
Add serialization for various structs and enums #653
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #653 +/- ##
==========================================
- Coverage 72.97% 72.47% -0.51%
==========================================
Files 127 127
Lines 15696 15805 +109
==========================================
Hits 11454 11454
- Misses 4242 4351 +109
☔ View full report in Codecov by Sentry. |
#[cfg_attr( | ||
feature = "parity-scale-codec", | ||
derive( | ||
parity_scale_codec::Encode, | ||
parity_scale_codec::Decode, | ||
scale_info::TypeInfo | ||
) | ||
)] | ||
#[cfg_attr( | ||
feature = "borsh", | ||
derive(borsh::BorshSerialize, borsh::BorshDeserialize) | ||
)] | ||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] | ||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Display)] | ||
#[display(fmt = "clients/{_0}/clientType")] | ||
pub struct ClientTypePath(pub ClientId); | ||
|
||
impl ClientTypePath { | ||
pub fn new(client_id: &ClientId) -> ClientTypePath { | ||
ClientTypePath(client_id.clone()) | ||
} | ||
} |
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.
This ClientTypePath
should be dropped. Check here please.
Otherwise looks good to me 🙏
* Add serialization for various structs and enums * Create 652-codec-borsh-serde.md --------- Signed-off-by: Davirain <[email protected]>
* some docstrings updated * Remove dynamic_typing module * move some utils to tendermint client * Make `crate::utils` private * docs * Remove unused struct * move events under core * move timestamp under core * Move tx_msg under core * Make naming convention comment not module-level * Make core::handler private * Re-export all core::context * make tx_msg private and re-export Msg * core module docs * many docs improvements * Release v0.39.0 (#657) * unclog release * bump version * Correct issue 621 description --------- Co-authored-by: Farhad Shabani <[email protected]> * fix doc test * `Validation/ExecutionContext` method docs * more docs improvements * remove unused function * client docs improvements * move trust_threshold to tendermint * connection * finish ics-20 docs * finish docs for the tendermint light client * core docs * move `ModuleExtras` out of channel * Make all `TYPE_URL` private * Move `Acknowledgement ` * remove superfluous channel message modules * finish channel docs * Remove `ics05_port` module * ValidationError -> IdentifierError * remove error module * cleanup ics24_host path * move host validate module under identifier * move RouterError * move msgs under core * remove tx_msg * router module * remove arbitrary restrictions on `ModuleId` * router * finish ics23 * mock * fmt * Add serialization for various structs and enums (#653) * Add serialization for various structs and enums * Create 652-codec-borsh-serde.md --------- Signed-off-by: Davirain <[email protected]> * changelog * remove `ClientTypePath` --------- Signed-off-by: Davirain <[email protected]> Co-authored-by: Farhad Shabani <[email protected]> Co-authored-by: Davirain <[email protected]>
* Add serialization for various structs and enums * Create 652-codec-borsh-serde.md --------- Signed-off-by: Davirain <[email protected]>
* some docstrings updated * Remove dynamic_typing module * move some utils to tendermint client * Make `crate::utils` private * docs * Remove unused struct * move events under core * move timestamp under core * Move tx_msg under core * Make naming convention comment not module-level * Make core::handler private * Re-export all core::context * make tx_msg private and re-export Msg * core module docs * many docs improvements * Release v0.39.0 (#657) * unclog release * bump version * Correct issue 621 description --------- Co-authored-by: Farhad Shabani <[email protected]> * fix doc test * `Validation/ExecutionContext` method docs * more docs improvements * remove unused function * client docs improvements * move trust_threshold to tendermint * connection * finish ics-20 docs * finish docs for the tendermint light client * core docs * move `ModuleExtras` out of channel * Make all `TYPE_URL` private * Move `Acknowledgement ` * remove superfluous channel message modules * finish channel docs * Remove `ics05_port` module * ValidationError -> IdentifierError * remove error module * cleanup ics24_host path * move host validate module under identifier * move RouterError * move msgs under core * remove tx_msg * router module * remove arbitrary restrictions on `ModuleId` * router * finish ics23 * mock * fmt * Add serialization for various structs and enums (#653) * Add serialization for various structs and enums * Create 652-codec-borsh-serde.md --------- Signed-off-by: Davirain <[email protected]> * changelog * remove `ClientTypePath` --------- Signed-off-by: Davirain <[email protected]> Co-authored-by: Farhad Shabani <[email protected]> Co-authored-by: Davirain <[email protected]>
Closes: #652
Description
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.