-
Notifications
You must be signed in to change notification settings - Fork 95
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
Gj thea client #709
Gj thea client #709
Conversation
## Describe your changes * Fixed todos and added claim_deposit ext. * Added test cases.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## Develop #709 +/- ##
===========================================
- Coverage 52.05% 47.16% -4.90%
===========================================
Files 64 65 +1
Lines 5246 4942 -304
===========================================
- Hits 2731 2331 -400
- Misses 2515 2611 +96
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
#![cfg_attr(not(feature = "std"), no_std)] | ||
#![allow(clippy::unused_unit)] | ||
#![deny(unused_crate_dependencies)] |
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.
To keep deps list clean - I think this should be present and unused dependencies - removed
bls-primitives = {path = "primitives/bls-primitives", default-features = false} | ||
thea-primitives = {path = "primitives/thea", default-features = false} |
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.
Spaces
serde = "1.0.152" | ||
serde_json = "1.0.94" | ||
tokio = "1.26.0" | ||
tokio-stream = {version="0.1.12", features = ["time"]} |
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.
Spaces
sp-tracing = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } | ||
|
||
[dev-dependencies] | ||
substrate-test-runtime-client = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } |
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.
Space
@@ -0,0 +1,122 @@ | |||
use std::time::Duration; |
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.
Module level documentation
] | ||
"sp-runtime/std", | ||
"polkadex-primitives/std" | ||
] |
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.
Empty line at the end of file
sp-api = { workspace = true, default-features = false } | ||
sp-std = { workspace = true, default-features = false } | ||
sp-runtime = { workspace = true, default-features = false } |
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.
Code style
#[derive(Encode, Decode, Clone, Debug, TypeInfo, PartialEq, Eq)] | ||
pub struct ApprovedWithdraw { | ||
pub asset_id: u128, | ||
pub amount: u128, | ||
pub network: u8, | ||
pub beneficiary: Vec<u8>, | ||
pub payload: Vec<u8>, | ||
pub index: u32, | ||
} |
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.
Documentation
@@ -0,0 +1,145 @@ | |||
#![cfg_attr(not(feature = "std"), no_std)] |
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.
Crate level documentation
pub struct Message { | ||
pub block_no: u64, | ||
pub nonce: u64, | ||
pub data: Vec<u8>, | ||
// Message originated from this network | ||
pub network: Network, | ||
pub is_key_change: bool, | ||
// ValidatorSetId at which this message was executed. | ||
pub validator_set_id: ValidatorSetId, | ||
pub validator_set_len: u64, | ||
} |
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.
Documentation
Describe your changes
Issue ticket number and link
Checklist before requesting a review