Skip to content
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

Merged
merged 69 commits into from
Apr 20, 2023
Merged

Gj thea client #709

merged 69 commits into from
Apr 20, 2023

Conversation

35359595
Copy link
Contributor

Describe your changes

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • I removed all Clippy and Formatting Warnings.
  • I added required Copyrights.

@Gauthamastro Gauthamastro marked this pull request as ready for review April 19, 2023 11:44
@codecov
Copy link

codecov bot commented Apr 19, 2023

Codecov Report

Patch coverage: 39.19% and project coverage change: -4.90 ⚠️

Comparison is base (619310f) 52.05% compared to head (7dae73f) 47.16%.

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     
Impacted Files Coverage Δ
client/src/lib.rs 0.00% <ø> (ø)
clients/orderbook/src/error.rs 0.00% <0.00%> (ø)
clients/orderbook/src/keystore.rs 60.00% <ø> (-3.64%) ⬇️
clients/thea/src/connector/parachain.rs 0.00% <0.00%> (ø)
clients/thea/src/error.rs 0.00% <0.00%> (ø)
clients/thea/src/lib.rs 0.00% <0.00%> (ø)
clients/thea/src/metrics.rs 0.00% <0.00%> (ø)
node/src/chain_spec.rs 0.00% <ø> (ø)
pallets/asset-handler/src/lib.rs 67.19% <ø> (ø)
pallets/thea-message-handler/src/lib.rs 0.00% <0.00%> (ø)
... and 16 more

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Gauthamastro Gauthamastro merged commit d2c699c into Develop Apr 20, 2023
@Gauthamastro Gauthamastro deleted the gj-thea-client branch April 20, 2023 01:41
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::unused_unit)]
#![deny(unused_crate_dependencies)]
Copy link
Contributor

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

Comment on lines +44 to +45
bls-primitives = {path = "primitives/bls-primitives", default-features = false}
thea-primitives = {path = "primitives/thea", default-features = false}
Copy link
Contributor

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"]}
Copy link
Contributor

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" }
Copy link
Contributor

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;
Copy link
Contributor

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"
]
Copy link
Contributor

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

Comment on lines +11 to +13
sp-api = { workspace = true, default-features = false }
sp-std = { workspace = true, default-features = false }
sp-runtime = { workspace = true, default-features = false }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code style

Comment on lines +21 to +29
#[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,
}
Copy link
Contributor

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)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crate level documentation

Comment on lines +8 to +18
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,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants